@nestjs/core 11.1.2 → 11.1.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/nest-application.js +5 -3
- package/package.json +2 -2
- package/repl/repl.js +3 -0
package/nest-application.js
CHANGED
|
@@ -126,9 +126,11 @@ class NestApplication extends nest_application_context_1.NestApplicationContext
|
|
|
126
126
|
? this.config
|
|
127
127
|
: new application_config_1.ApplicationConfig();
|
|
128
128
|
const instance = new NestMicroservice(this.container, microserviceOptions, this.graphInspector, applicationConfig);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
if (!hybridAppOptions.deferInitialization) {
|
|
130
|
+
instance.registerListeners();
|
|
131
|
+
instance.setIsInitialized(true);
|
|
132
|
+
instance.setIsInitHookCalled(true);
|
|
133
|
+
}
|
|
132
134
|
this.microservices.push(instance);
|
|
133
135
|
return instance;
|
|
134
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.3",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"uid": "2.0.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@nestjs/common": "11.1.
|
|
42
|
+
"@nestjs/common": "11.1.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@nestjs/common": "^11.0.0",
|
package/repl/repl.js
CHANGED
|
@@ -25,5 +25,8 @@ async function repl(module, replOptions = {}) {
|
|
|
25
25
|
});
|
|
26
26
|
(0, assign_to_object_util_1.assignToObject)(replServer.context, replContext.globalScope);
|
|
27
27
|
(0, repl_native_commands_1.defineDefaultCommandsOnRepl)(replServer);
|
|
28
|
+
replServer.on('exit', async () => {
|
|
29
|
+
await app.close();
|
|
30
|
+
});
|
|
28
31
|
return replServer;
|
|
29
32
|
}
|