@wessberg/di
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -190,3 +190,3 @@ // src/constant.ts | ||
}); | ||
if (constructedInstance == null) { | ||
if (constructedInstance == null && !this.has({ identifier: dep })) { | ||
throw new InstantiationError(`Dependency '${dep}' was not found in the service registry.`, { identifier: me.identifier, parentChain: nextParentChain }); | ||
@@ -193,0 +193,0 @@ } |
{ | ||
"name": "@wessberg/di", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A compile-time powered Dependency-Injection container for Typescript that holds services and can produce instances of them as required.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
76892