@artus/injection
Advanced tools
Comparing version 0.2.5 to 0.3.0
@@ -183,3 +183,3 @@ "use strict"; | ||
instance[prop.propertyName] = prop.handler | ||
? this.resolveHandler(prop.handler, prop.id, instance) | ||
? this.resolveHandler(prop.handler, prop.id) | ||
: this.get(prop.id); | ||
@@ -191,3 +191,3 @@ }); | ||
instance[prop.propertyName] = prop.handler | ||
? await this.resolveHandler(prop.handler, prop.id, instance) | ||
? await this.resolveHandler(prop.handler, prop.id) | ||
: await this.getAsync(prop.id); | ||
@@ -211,3 +211,3 @@ })); | ||
} | ||
resolveHandler(handlerName, id, instance) { | ||
resolveHandler(handlerName, id) { | ||
const handler = this.getHandler(handlerName); | ||
@@ -217,5 +217,5 @@ if (!handler) { | ||
} | ||
return handler(id, instance); | ||
return handler(id, this); | ||
} | ||
} | ||
exports.default = Container; |
{ | ||
"name": "@artus/injection", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"description": "A IoC Implemention for Artus.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
32794