Comparing version 0.3.0-beta-10 to 0.3.0-beta-11
// Generated by CoffeeScript 1.9.3 | ||
module.exports = function(container) { | ||
var annotateContainer; | ||
annotateContainer = function(container) { | ||
var modules, noValues; | ||
if (container == null) { | ||
return {}; | ||
} | ||
modules = container.getRegistrations(); | ||
modules = container._registrations; | ||
noValues = function(i) { | ||
@@ -16,1 +15,16 @@ return modules[i].type !== 'value'; | ||
}; | ||
module.exports = function(container) { | ||
var annotations; | ||
if (container == null) { | ||
return {}; | ||
} | ||
annotations = container._parents.map(annotateContainer); | ||
annotations.push(annotateContainer(container)); | ||
return annotations.reduce(function(acc, item) { | ||
Object.keys(item).forEach(function(key) { | ||
return acc[key] = item[key]; | ||
}); | ||
return acc; | ||
}, {}); | ||
}; |
{ | ||
"name": "amend", | ||
"version": "0.3.0-beta-10", | ||
"version": "0.3.0-beta-11", | ||
"description": "Dependency injection module and IoC container.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
24732
371