@injex/core
Advanced tools
Comparing version 2.0.10 to 2.1.0
@@ -157,3 +157,2 @@ "use strict"; | ||
var loaderInstance = this._createInstance(construct, constants_1.EMPTY_ARGS); | ||
this._injectModuleDependencies(loaderInstance, metadata); | ||
function loaderFn() { | ||
@@ -212,7 +211,13 @@ var args = []; | ||
var module = _a.module, metadata = _a.metadata; | ||
if (metadata && metadata.singleton) { | ||
_this._injectModuleDependencies(metadata.lazyLoader || module, metadata); | ||
} | ||
return { module: module, metadata: metadata }; | ||
}) | ||
.map(function (_a) { | ||
var module = _a.module, metadata = _a.metadata; | ||
return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_b) { | ||
if (metadata && metadata.singleton) { | ||
this._injectModuleDependencies(module, metadata); | ||
return [2 /*return*/, this._invokeModuleInitMethod(module, metadata)]; | ||
return [2 /*return*/, this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata)]; | ||
} | ||
@@ -219,0 +224,0 @@ return [2 /*return*/]; |
{ | ||
"name": "@injex/core", | ||
"version": "2.0.10", | ||
"version": "2.1.0", | ||
"description": "Simple, Decorated, Pluggable dependency-injection framework for TypeScript apps", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@injex/stdlib": "^2.0.10", | ||
"@injex/stdlib": "^2.1.0", | ||
"tslib": "^2.0.1" | ||
@@ -56,3 +56,3 @@ }, | ||
}, | ||
"gitHead": "639e751e1b40318adb51967030e3672d5cc43493" | ||
"gitHead": "1e2aaf520e73125f5108801bbc9c8c15550c5349" | ||
} |
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
47346
684
Updated@injex/stdlib@^2.1.0