@injex/core
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -200,3 +200,3 @@ "use strict"; | ||
lazyMetadata = metadataHandlers_1.default.getMetadata(Ctor.prototype); | ||
if (!(lazyMetadata.singleton && self.get(Ctor))) return [3 /*break*/, 2]; | ||
if (!(lazyMetadata && lazyMetadata.singleton && self.get(Ctor))) return [3 /*break*/, 2]; | ||
lazyInstance = self.get(Ctor); | ||
@@ -437,3 +437,3 @@ return [3 /*break*/, 4]; | ||
var optionalPromise = null; | ||
if (metadata.singleton) { | ||
if (metadata && metadata.singleton) { | ||
this._injectModuleDependencies(metadata.lazyLoader || module); | ||
@@ -440,0 +440,0 @@ optionalPromise = this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata); |
{ | ||
"name": "@injex/core", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "Simple, Decorated, Pluggable dependency-injection framework for TypeScript apps", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@injex/stdlib": "^3.3.4" | ||
"@injex/stdlib": "^3.3.5" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "9fb36b9aa2307628d300b8a870cb0d62517cded4" | ||
"gitHead": "cd50e849f1deaa8bd763e5fcbd332b310f67debf" | ||
} |
@@ -223,3 +223,3 @@ import { Hook, IConstructor, isFunction, isPromise, Logger, yieldToMain } from "@injex/stdlib"; | ||
let lazyInstance; | ||
if (lazyMetadata.singleton && self.get(Ctor)) { | ||
if (lazyMetadata && lazyMetadata.singleton && self.get(Ctor)) { | ||
lazyInstance = self.get(Ctor); | ||
@@ -447,3 +447,3 @@ } else { | ||
let optionalPromise: Promise<any> = null; | ||
if (metadata.singleton) { | ||
if (metadata && metadata.singleton) { | ||
this._injectModuleDependencies(metadata.lazyLoader || module); | ||
@@ -450,0 +450,0 @@ optionalPromise = this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata); |
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
95103
Updated@injex/stdlib@^3.3.5