Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "hekdi", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Depedency injection framework for node integrated with koa.js", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"koa-router": "^7.2.1", | ||
"mocha": "^3.5.0" | ||
"mocha": "^5.2.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -34,2 +34,6 @@ /** | ||
const resolve = dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
}; | ||
module.exports = { | ||
@@ -41,5 +45,3 @@ /** | ||
*/ | ||
service: dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
}, | ||
service: resolve, | ||
/** | ||
@@ -49,5 +51,3 @@ * return the result of plain function call | ||
*/ | ||
factory: dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
}, | ||
factory: resolve, | ||
/** | ||
@@ -70,5 +70,3 @@ * return the same instance of constructor each time | ||
*/ | ||
value: dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
}, | ||
value: resolve, | ||
/** | ||
@@ -78,5 +76,3 @@ * return link on the of the value | ||
*/ | ||
constant: dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
}, | ||
constant: resolve, | ||
/** | ||
@@ -86,5 +82,3 @@ * return other dependency by using value as a name | ||
*/ | ||
alias: dependencyName => function(trace) { | ||
return resolveDependency.call(this, dependencyName, trace); | ||
} | ||
alias: resolve | ||
}; |
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
19156
346