@injex/core
Advanced tools
Comparing version 3.3.5 to 3.3.6
@@ -261,11 +261,6 @@ "use strict"; | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
if (!(metadata && metadata.singleton)) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, stdlib_1.yieldToMain()]; | ||
case 1: | ||
_b.sent(); | ||
return [2 /*return*/, this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata)]; | ||
case 2: return [2 /*return*/]; | ||
if (metadata && metadata.singleton) { | ||
return [2 /*return*/, this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata)]; | ||
} | ||
return [2 /*return*/]; | ||
}); | ||
@@ -272,0 +267,0 @@ }); |
{ | ||
"name": "@injex/core", | ||
"version": "3.3.5", | ||
"version": "3.3.6", | ||
"description": "Simple, Decorated, Pluggable dependency-injection framework for TypeScript apps", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@injex/stdlib": "^3.3.5" | ||
"@injex/stdlib": "^3.3.6" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "cd50e849f1deaa8bd763e5fcbd332b310f67debf" | ||
"gitHead": "5fe7c8f5af915094d93add33f010d92c98fb780b" | ||
} |
@@ -278,3 +278,2 @@ import { Hook, IConstructor, isFunction, isPromise, Logger, yieldToMain } from "@injex/stdlib"; | ||
if (metadata && metadata.singleton) { | ||
await yieldToMain(); | ||
return this._invokeModuleInitMethod( | ||
@@ -281,0 +280,0 @@ 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
94653
1603
Updated@injex/stdlib@^3.3.6