Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "hekdi", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Depedency injection framework for node integrated with koa.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,9 @@ /** | ||
if (mayHaveDeps) { | ||
const deps = (config.value.$inject || []).map(name => this.getConfigOf(name).resolver(trace)); | ||
const deps = (config.value.$inject || []).map(name => { | ||
const d = this.getConfigOf(name); | ||
if (d === undefined) { | ||
throw new ReferenceError(errors.unmetDependency(this.belongTo.name, d.name)); | ||
} | ||
return d.resolver(trace); | ||
}); | ||
const isFactory = config.strategy === 'factory'; | ||
@@ -27,0 +33,0 @@ d = isFactory ? config.value(...deps) : new config.value(...deps); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18830
352