@nestjs/core 9.3.11 → 9.3.12
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.
|
@@ -4,10 +4,12 @@ import { RuntimeException } from './runtime.exception';
|
|
|
4
4
|
export declare class UnknownDependenciesException extends RuntimeException {
|
|
5
5
|
readonly type: string | symbol;
|
|
6
6
|
readonly context: InjectorDependencyContext;
|
|
7
|
-
readonly moduleRef?: Module;
|
|
8
7
|
readonly metadata?: {
|
|
9
8
|
id: string;
|
|
10
9
|
};
|
|
10
|
+
readonly moduleRef: {
|
|
11
|
+
id: string;
|
|
12
|
+
} | undefined;
|
|
11
13
|
constructor(type: string | symbol, context: InjectorDependencyContext, moduleRef?: Module, metadata?: {
|
|
12
14
|
id: string;
|
|
13
15
|
});
|
|
@@ -8,8 +8,8 @@ class UnknownDependenciesException extends runtime_exception_1.RuntimeException
|
|
|
8
8
|
super((0, messages_1.UNKNOWN_DEPENDENCIES_MESSAGE)(type, context, moduleRef));
|
|
9
9
|
this.type = type;
|
|
10
10
|
this.context = context;
|
|
11
|
-
this.moduleRef = moduleRef;
|
|
12
11
|
this.metadata = metadata;
|
|
12
|
+
this.moduleRef = moduleRef && { id: moduleRef.id };
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.UnknownDependenciesException = UnknownDependenciesException;
|
package/injector/module.js
CHANGED
|
@@ -214,7 +214,8 @@ class Module {
|
|
|
214
214
|
return !(0, shared_utils_1.isUndefined)(provider.useClass);
|
|
215
215
|
}
|
|
216
216
|
isCustomValue(provider) {
|
|
217
|
-
return
|
|
217
|
+
return ((0, shared_utils_1.isObject)(provider) &&
|
|
218
|
+
Object.prototype.hasOwnProperty.call(provider, 'useValue'));
|
|
218
219
|
}
|
|
219
220
|
isCustomFactory(provider) {
|
|
220
221
|
return !(0, shared_utils_1.isUndefined)(provider.useFactory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.12",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"uid": "2.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nestjs/common": "9.3.
|
|
38
|
+
"@nestjs/common": "9.3.12"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@nestjs/common": "^9.0.0",
|