UNPKG

fire-up

Version:

Fire Up! is a dependency injection container designed specifically for node.js with a powerful but sleek API.

21 lines (15 loc) 526 B
'use strict'; // Fire me up! var BPromise = require('bluebird'); var counter = 0; module.exports = { implements: ['instantiation/type/multiInstancesAsync/interface1', 'instantiation/type/multiInstancesAsync/interface2'], type: require('../../../../../lib/index.js').constants.MODULE_TYPE_MULTIPLE_INSTANCES }; module.exports.factory = function () { return BPromise.resolve() .then(function () { counter += 1; return [require('path').relative(process.cwd(), __filename), counter]; }); };