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 | 1× 1× 1× 1× 122× 1× 1× | "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; |