@nestjs/core 8.1.1 → 8.1.2
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 +4 -5
- package/nest-application.js +3 -0
- package/package.json +2 -2
package/injector/injector.js
CHANGED
|
@@ -290,11 +290,10 @@ class Injector {
|
|
|
290
290
|
const { metatype, inject } = wrapper;
|
|
291
291
|
const inquirerId = this.getInquirerId(inquirer);
|
|
292
292
|
const instanceHost = targetMetatype.getInstanceByContextId(contextId, inquirerId);
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const isInContext = isStatic || isInRequestScope || isLazyTransient || isExplicitlyRequested;
|
|
293
|
+
const isInContext = wrapper.isStatic(contextId, inquirer) ||
|
|
294
|
+
wrapper.isInRequestScope(contextId, inquirer) ||
|
|
295
|
+
wrapper.isLazyTransient(contextId, inquirer) ||
|
|
296
|
+
wrapper.isExplicitlyRequested(contextId, inquirer);
|
|
298
297
|
if (shared_utils_1.isNil(inject) && isInContext) {
|
|
299
298
|
instanceHost.instance = wrapper.forwardRef
|
|
300
299
|
? Object.assign(instanceHost.instance, new metatype(...instances))
|
package/nest-application.js
CHANGED
|
@@ -170,6 +170,9 @@ class NestApplication extends nest_application_context_1.NestApplicationContext
|
|
|
170
170
|
if ((_b = (_a = this.appOptions) === null || _a === void 0 ? void 0 : _a.autoFlushLogs) !== null && _b !== void 0 ? _b : true) {
|
|
171
171
|
this.flushLogs();
|
|
172
172
|
}
|
|
173
|
+
if (originalCallbackArgs[0] instanceof Error) {
|
|
174
|
+
return reject(originalCallbackArgs[0]);
|
|
175
|
+
}
|
|
173
176
|
const address = this.httpServer.address();
|
|
174
177
|
if (address) {
|
|
175
178
|
this.httpServer.removeListener('error', errorHandler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
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": "8.1.
|
|
39
|
+
"@nestjs/common": "8.1.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^8.0.0",
|