Comparing version 3.2.5 to 3.3.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getInjectedParams = exports.setInjectedParams = exports.inject = void 0; | ||
const di_1 = require("./di"); | ||
const InheritancePreserver_1 = require("./InheritancePreserver"); | ||
@@ -29,4 +30,9 @@ const symbols_1 = require("../symbols"); | ||
const modifiedConstructor = InheritancePreserver_1.InheritancePreserver.getModifiedConstructor(constructor); | ||
const injected = implementation[symbols_1.injectionSymbol]; | ||
if (!modifiedConstructor || modifiedConstructor !== constructor || !Array.isArray(injected)) { | ||
let injected = implementation[symbols_1.injectionSymbol]; | ||
if (!modifiedConstructor) { | ||
(0, di_1.di)(constructor); | ||
InheritancePreserver_1.InheritancePreserver.constructorModified(constructor); | ||
injected = implementation[symbols_1.injectionSymbol]; | ||
} | ||
if (modifiedConstructor !== constructor || !Array.isArray(injected)) { | ||
return []; | ||
@@ -33,0 +39,0 @@ } |
{ | ||
"name": "cheap-di", | ||
"version": "3.2.5", | ||
"version": "3.3.1", | ||
"description": "JavaScript dependency injection like Autofac in .Net", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
69588
544