@nestjs/core 9.3.11 → 9.4.0
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/errors/exception-handler.js +1 -1
- package/errors/exceptions/unknown-dependencies.exception.d.ts +3 -1
- package/errors/exceptions/unknown-dependencies.exception.js +1 -1
- package/errors/exceptions-zone.js +1 -1
- package/exceptions/external-exception-filter.js +1 -1
- package/injector/instance-wrapper.js +1 -1
- package/injector/module.js +2 -1
- package/inspector/deterministic-uuid-registry.js +1 -1
- package/inspector/initialize-on-preview.allowlist.js +1 -1
- package/inspector/serialized-graph.js +1 -1
- package/inspector/uuid-factory.js +1 -1
- package/middleware/builder.js +1 -1
- package/package.json +3 -3
- package/repl/native-functions/help-repl-fn.js +1 -1
- package/repl/repl-logger.js +1 -1
|
@@ -12,5 +12,5 @@ class ExceptionHandler {
|
|
|
12
12
|
ExceptionHandler.logger.error(exception.what(), exception.stack);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
exports.ExceptionHandler = ExceptionHandler;
|
|
16
15
|
ExceptionHandler.logger = new logger_service_1.Logger(ExceptionHandler.name);
|
|
16
|
+
exports.ExceptionHandler = ExceptionHandler;
|
|
@@ -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;
|
|
@@ -286,6 +286,6 @@ class InstanceWrapper {
|
|
|
286
286
|
return key ? uuid_factory_1.UuidFactory.get(key) : (0, random_string_generator_util_1.randomStringGenerator)();
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
exports.InstanceWrapper = InstanceWrapper;
|
|
290
289
|
_a = exports.INSTANCE_METADATA_SYMBOL;
|
|
291
290
|
InstanceWrapper.logger = new common_1.Logger(InstanceWrapper.name);
|
|
291
|
+
exports.InstanceWrapper = InstanceWrapper;
|
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);
|
|
@@ -9,5 +9,5 @@ class InitializeOnPreviewAllowlist {
|
|
|
9
9
|
return this.allowlist.has(type);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.InitializeOnPreviewAllowlist = InitializeOnPreviewAllowlist;
|
|
13
12
|
InitializeOnPreviewAllowlist.allowlist = new WeakMap();
|
|
13
|
+
exports.InitializeOnPreviewAllowlist = InitializeOnPreviewAllowlist;
|
|
@@ -100,7 +100,6 @@ class SerializedGraph {
|
|
|
100
100
|
return deterministic_uuid_registry_1.DeterministicUuidRegistry.get(JSON.stringify(edgeDefinition));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
exports.SerializedGraph = SerializedGraph;
|
|
104
103
|
SerializedGraph.INTERNAL_PROVIDERS = [
|
|
105
104
|
application_config_1.ApplicationConfig,
|
|
106
105
|
module_ref_1.ModuleRef,
|
|
@@ -115,3 +114,4 @@ SerializedGraph.INTERNAL_PROVIDERS = [
|
|
|
115
114
|
request_constants_1.REQUEST,
|
|
116
115
|
inquirer_constants_1.INQUIRER,
|
|
117
116
|
];
|
|
117
|
+
exports.SerializedGraph = SerializedGraph;
|
package/middleware/builder.js
CHANGED
|
@@ -21,7 +21,6 @@ class MiddlewareBuilder {
|
|
|
21
21
|
return this.httpAdapter;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.MiddlewareBuilder = MiddlewareBuilder;
|
|
25
24
|
MiddlewareBuilder.ConfigProxy = class {
|
|
26
25
|
constructor(builder, middleware, routeInfoPathExtractor) {
|
|
27
26
|
this.builder = builder;
|
|
@@ -54,3 +53,4 @@ MiddlewareBuilder.ConfigProxy = class {
|
|
|
54
53
|
.toArray();
|
|
55
54
|
}
|
|
56
55
|
};
|
|
56
|
+
exports.MiddlewareBuilder = MiddlewareBuilder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"iterare": "1.2.1",
|
|
33
33
|
"path-to-regexp": "3.2.0",
|
|
34
34
|
"tslib": "2.5.0",
|
|
35
|
-
"uid": "2.0.
|
|
35
|
+
"uid": "2.0.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nestjs/common": "9.
|
|
38
|
+
"@nestjs/common": "9.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@nestjs/common": "^9.0.0",
|
|
@@ -24,6 +24,6 @@ class HelpReplFn extends repl_function_1.ReplFunction {
|
|
|
24
24
|
'\n');
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.HelpReplFn = HelpReplFn;
|
|
28
27
|
HelpReplFn.buildHelpMessage = ({ name, description }) => cli_colors_util_1.clc.cyanBright(name) +
|
|
29
28
|
(description ? ` ${cli_colors_util_1.clc.bold('-')} ${description}` : '');
|
|
29
|
+
exports.HelpReplFn = HelpReplFn;
|
package/repl/repl-logger.js
CHANGED
|
@@ -14,9 +14,9 @@ class ReplLogger extends common_1.ConsoleLogger {
|
|
|
14
14
|
return super.log.apply(this, Array.from(arguments));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.ReplLogger = ReplLogger;
|
|
18
17
|
ReplLogger.ignoredContexts = [
|
|
19
18
|
routes_resolver_1.RoutesResolver.name,
|
|
20
19
|
router_explorer_1.RouterExplorer.name,
|
|
21
20
|
nest_application_1.NestApplication.name,
|
|
22
21
|
];
|
|
22
|
+
exports.ReplLogger = ReplLogger;
|