Comparing version 2.4.31 to 2.4.32
@@ -8,4 +8,4 @@ import { GetReturnType, RegKeyType, KeyType, ClassType } from './utils/types'; | ||
constructorInject?: boolean; | ||
/** use class loader for autowired default: default ClassLoader */ | ||
useClassLoader?: ClassLoader | false; | ||
/** use class loader for autowired default: true */ | ||
useClassLoader?: ClassLoader | boolean; | ||
/** when implement class not found */ | ||
@@ -39,2 +39,3 @@ notFoundHandler?: (type: KeyType) => any; | ||
private static defaultInstance; | ||
private _classLoader?; | ||
get classLoader(): ClassLoader; | ||
@@ -41,0 +42,0 @@ private components; |
@@ -50,4 +50,4 @@ "use strict"; | ||
this.constructorInject = true; | ||
/** use class loader for autowired default: default ClassLoader */ | ||
this.useClassLoader = ClassLoader_1.classLoader; | ||
/** use class loader for autowired default: true */ | ||
this.useClassLoader = true; | ||
} | ||
@@ -71,3 +71,3 @@ return Config; | ||
get: function () { | ||
return this.config.useClassLoader ? this.config.useClassLoader : undefined; | ||
return this._classLoader; | ||
}, | ||
@@ -90,2 +90,8 @@ enumerable: false, | ||
Object.assign(this.config, config); | ||
this._classLoader = | ||
this.config.useClassLoader === true | ||
? ClassLoader_1.classLoader | ||
: this.config.useClassLoader === false | ||
? undefined | ||
: this.config.useClassLoader; | ||
}; | ||
@@ -92,0 +98,0 @@ /** |
{ | ||
"name": "power-di", | ||
"version": "2.4.31", | ||
"version": "2.4.32", | ||
"description": "A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
93785
2184