@art-ws/di 2.0.23 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/injector.d.ts +1 -0
- package/dist/es/injector.js +2 -2
- package/package.json +1 -1
package/dist/es/injector.d.ts
CHANGED
@@ -31,3 +31,4 @@ export declare function getRootInjector(): Injector;
|
|
31
31
|
export declare function setRootInjector(injector: Injector | undefined): void;
|
32
32
|
export declare function getOnScopeHandler(): OnScopeHandler | undefined;
|
33
33
|
export declare function setOnScopeHandler(handler: OnScopeHandler | undefined): void;
|
34
|
+
export declare function getModuleName(module: DIModuleDef): string;
|
package/dist/es/injector.js
CHANGED
@@ -39,7 +39,7 @@ export class Injector {
|
|
39
39
|
if (added.has(m))
|
40
40
|
continue;
|
41
41
|
added.add(m);
|
42
|
-
console.log(`DI: Adding module: ${getModuleName(m)}`)
|
42
|
+
// console.log(`DI: Adding module: ${getModuleName(m)}`)
|
43
43
|
for (const imp of m.imports || []) {
|
44
44
|
this.addModuleInner(added, [imp]);
|
45
45
|
}
|
@@ -157,7 +157,7 @@ export function setOnScopeHandler(handler) {
|
|
157
157
|
function isClass(value) {
|
158
158
|
return typeof value === "function" && !!value.prototype;
|
159
159
|
}
|
160
|
-
function getModuleName(module) {
|
160
|
+
export function getModuleName(module) {
|
161
161
|
let name = module.name;
|
162
162
|
if (!name && module.providers?.length) {
|
163
163
|
const providers = module.providers
|