all files / lib/ junkie.js

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                        122×                    
"use strict";
var Container = require('./Container');
var ResolutionError = require('./ResolutionError');
 
/**
 * The main entry point into doing anything with junkie.
 *
 * @namespace
 */
var junkie = {};
 
/**
 * Create a new Container
 * @returns Container
 */
junkie.newContainer = function() {
  return new Container();
};
 
// Expose public types
 
/**
 * An Error subtype thrown in {@link Container#resolve} calls.
 * @type {ResolutionError}
 */
junkie.ResolutionError = ResolutionError;
 
module.exports = junkie;