@wessberg/di
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -99,7 +99,6 @@ // src/constant.ts | ||
} | ||
const instance = this.#constructInstance(options); | ||
if (instance == null) { | ||
if (!this.has(options)) { | ||
throw new InstantiationError(`The service wasn't found in the registry.`, { identifier: options.identifier }); | ||
} | ||
return instance; | ||
return this.#constructInstance(options); | ||
} | ||
@@ -106,0 +105,0 @@ /** |
{ | ||
"name": "@wessberg/di", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
76680
516