@nestjs/core 9.0.0 → 9.0.3
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/injector/injector.js +1 -1
- package/package.json +2 -2
- package/repl/repl.d.ts +1 -2
- package/repl/repl.js +2 -2
- package/scanner.js +1 -1
package/injector/injector.js
CHANGED
|
@@ -367,7 +367,7 @@ class Injector {
|
|
|
367
367
|
async loadCtorMetadata(metadata, contextId, inquirer, parentInquirer) {
|
|
368
368
|
const hosts = await Promise.all(metadata.map(async (item) => this.resolveScopedComponentHost(item, contextId, inquirer, parentInquirer)));
|
|
369
369
|
const inquirerId = this.getInquirerId(inquirer);
|
|
370
|
-
return hosts.map(item => item.getInstanceByContextId(this.getContextId(contextId, item), inquirerId).instance);
|
|
370
|
+
return hosts.map(item => item === null || item === void 0 ? void 0 : item.getInstanceByContextId(this.getContextId(contextId, item), inquirerId).instance);
|
|
371
371
|
}
|
|
372
372
|
async loadPropertiesMetadata(metadata, contextId, inquirer) {
|
|
373
373
|
const dependenciesHosts = await Promise.all(metadata.map(async ({ wrapper: item, key }) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"uuid": "8.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nestjs/common": "9.0.
|
|
39
|
+
"@nestjs/common": "9.0.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^9.0.0",
|
package/repl/repl.d.ts
CHANGED
package/repl/repl.js
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.repl = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const _repl = require("repl");
|
|
6
5
|
const cli_colors_util_1 = require("@nestjs/common/utils/cli-colors.util");
|
|
7
6
|
const nest_factory_1 = require("../nest-factory");
|
|
7
|
+
const assign_to_object_util_1 = require("./assign-to-object.util");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const repl_context_1 = require("./repl-context");
|
|
10
10
|
const repl_logger_1 = require("./repl-logger");
|
|
11
|
-
const assign_to_object_util_1 = require("./assign-to-object.util");
|
|
12
11
|
async function repl(module) {
|
|
13
12
|
const app = await nest_factory_1.NestFactory.create(module, {
|
|
14
13
|
abortOnError: false,
|
|
@@ -17,6 +16,7 @@ async function repl(module) {
|
|
|
17
16
|
await app.init();
|
|
18
17
|
const replContext = new repl_context_1.ReplContext(app);
|
|
19
18
|
common_1.Logger.log(constants_1.REPL_INITIALIZED_MESSAGE);
|
|
19
|
+
const _repl = await Promise.resolve().then(() => require('repl'));
|
|
20
20
|
const replServer = _repl.start({
|
|
21
21
|
prompt: cli_colors_util_1.clc.green('> '),
|
|
22
22
|
ignoreUndefined: true,
|
package/scanner.js
CHANGED
|
@@ -319,7 +319,7 @@ class DependenciesScanner {
|
|
|
319
319
|
return module && !!module.forwardRef;
|
|
320
320
|
}
|
|
321
321
|
flatten(arr) {
|
|
322
|
-
return arr.
|
|
322
|
+
return arr.flat(1);
|
|
323
323
|
}
|
|
324
324
|
isRequestOrTransient(scope) {
|
|
325
325
|
return scope === interfaces_1.Scope.REQUEST || scope === interfaces_1.Scope.TRANSIENT;
|