@bool-ts/core 1.0.3 → 1.0.4
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/hooks/injector.js +1 -1
- package/package.json +1 -1
- package/src/hooks/injector.ts +1 -1
package/dist/hooks/injector.js
CHANGED
|
@@ -12,7 +12,7 @@ export const Injector = new class {
|
|
|
12
12
|
}
|
|
13
13
|
const ownMetadataKeys = Reflect.getOwnMetadataKeys(target);
|
|
14
14
|
if (!ownMetadataKeys.includes(injectableKey)) {
|
|
15
|
-
console.error("Current metadata keys:", ownMetadataKeys);
|
|
15
|
+
console.error("Current metadata keys:", ownMetadataKeys, Reflect.getOwnMetadataKeys(target.constructor));
|
|
16
16
|
throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");
|
|
17
17
|
}
|
|
18
18
|
// Initialize dependencies injection
|
package/package.json
CHANGED
package/src/hooks/injector.ts
CHANGED
|
@@ -25,7 +25,7 @@ export const Injector: IInjector = new class {
|
|
|
25
25
|
const ownMetadataKeys = Reflect.getOwnMetadataKeys(target);
|
|
26
26
|
|
|
27
27
|
if (!ownMetadataKeys.includes(injectableKey)) {
|
|
28
|
-
console.error("Current metadata keys:", ownMetadataKeys);
|
|
28
|
+
console.error("Current metadata keys:", ownMetadataKeys, Reflect.getOwnMetadataKeys((target as Function).constructor));
|
|
29
29
|
throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");
|
|
30
30
|
}
|
|
31
31
|
|