@nestjs/core 7.6.14 → 7.6.18
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/Readme.md +7 -1
- package/injector/container.js +1 -1
- package/nest-factory.js +10 -6
- package/package.json +3 -3
- package/router/router-execution-context.js +2 -0
package/Readme.md
CHANGED
|
@@ -38,6 +38,7 @@ Nest is a framework for building efficient, scalable <a href="http://nodejs.org"
|
|
|
38
38
|
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
|
|
39
39
|
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
|
|
40
40
|
* [가이드](readme_kr.md)를 확인하려면, [docs.nestjs.com](https://docs.nestjs.com)를 방문하세요.:books:
|
|
41
|
+
* チェックするには [ガイド](readme_jp.md), 詳しくは [docs.nestjs.com](https://docs.nestjs.com). :books:
|
|
41
42
|
|
|
42
43
|
## Questions
|
|
43
44
|
|
|
@@ -65,6 +66,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
65
66
|
#### Gold Sponsors
|
|
66
67
|
|
|
67
68
|
<table style="text-align:center;"><tr><td>
|
|
69
|
+
<a href="https://careers.labster.com/departments/platform" target="_blank"><img src="https://nestjs.com/img/labster-logo.png" width="170" valign="middle" /></a></td><td>
|
|
70
|
+
<a href="https://weld.so/" target="_blank"><img src="https://nestjs.com/img/weld-logo.svg" width="150" valign="middle" /></a></td><td>
|
|
68
71
|
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td></tr></table>
|
|
69
72
|
|
|
70
73
|
#### Silver Sponsors
|
|
@@ -73,7 +76,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
73
76
|
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
|
|
74
77
|
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
|
|
75
78
|
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
|
|
76
|
-
<a href="http://www.meetdandy.com" target="_blank"><img src="https://nestjs.com/img/dandy-wide-logo.png" width="150" valign="middle" /></td
|
|
79
|
+
<a href="http://www.meetdandy.com" target="_blank"><img src="https://nestjs.com/img/dandy-wide-logo.png" width="150" valign="middle" /></td><td>
|
|
80
|
+
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td></tr></table>
|
|
77
81
|
|
|
78
82
|
#### Sponsors
|
|
79
83
|
|
|
@@ -101,6 +105,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
101
105
|
<td align="center" valign="middle"><a href="https://thestandarddaily.com/" target="_blank"><img src="https://nestjs.com/img/the-standard-daily-logo.png" width="180" valign="middle" /></a></td>
|
|
102
106
|
<td align="center" valign="middle"><a href="https://houseofangular.io/" target="_blank"><img src="https://nestjs.com/img/house-of-angular.png" width="100" valign="middle" /></a></td>
|
|
103
107
|
<td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/rocketech-logo.svg" width="110" valign="middle" /></a></td>
|
|
108
|
+
<td align="center" valign="middle"><a href="https://www.bystored.com/" target="_blank"><img src="https://nestjs.com/img/stored-logo.svg" width="110" valign="middle" /></a></td>
|
|
109
|
+
<td align="center" valign="middle"><a href="https://studyclerk.com/pay-for-research-paper" target="_blank"><img src="https://nestjs.com/img/studyclerk-logo.png" width="125" valign="middle" /></a></td><td align="center" valign="middle"><a href="https://xyndata.com" target="_blank"><img src="https://nestjs.com/img/xyndata-logo.png" width="125" valign="middle" /></a></td>
|
|
104
110
|
</tr></table>
|
|
105
111
|
|
|
106
112
|
## Backers
|
package/injector/container.js
CHANGED
|
@@ -40,7 +40,7 @@ class NestContainer {
|
|
|
40
40
|
}
|
|
41
41
|
async addModule(metatype, scope) {
|
|
42
42
|
// In DependenciesScanner#scanForModules we already check for undefined or invalid modules
|
|
43
|
-
// We
|
|
43
|
+
// We still need to catch the edge-case of `forwardRef(() => undefined)`
|
|
44
44
|
if (!metatype) {
|
|
45
45
|
throw new undefined_forwardref_exception_1.UndefinedForwardRefException(scope);
|
|
46
46
|
}
|
package/nest-factory.js
CHANGED
|
@@ -150,19 +150,23 @@ class NestFactoryStatic {
|
|
|
150
150
|
createAdapterProxy(app, adapter) {
|
|
151
151
|
const proxy = new Proxy(app, {
|
|
152
152
|
get: (receiver, prop) => {
|
|
153
|
+
const mapToProxy = (result) => {
|
|
154
|
+
return result instanceof Promise
|
|
155
|
+
? result.then(mapToProxy)
|
|
156
|
+
: result instanceof nest_application_1.NestApplication
|
|
157
|
+
? proxy
|
|
158
|
+
: result;
|
|
159
|
+
};
|
|
153
160
|
if (!(prop in receiver) && prop in adapter) {
|
|
154
161
|
return (...args) => {
|
|
155
|
-
this.createExceptionZone(adapter, prop)(...args);
|
|
156
|
-
return
|
|
162
|
+
const result = this.createExceptionZone(adapter, prop)(...args);
|
|
163
|
+
return mapToProxy(result);
|
|
157
164
|
};
|
|
158
165
|
}
|
|
159
166
|
if (shared_utils_1.isFunction(receiver[prop])) {
|
|
160
|
-
const mapToProxy = (result) => result instanceof nest_application_1.NestApplication ? proxy : result;
|
|
161
167
|
return (...args) => {
|
|
162
168
|
const result = receiver[prop](...args);
|
|
163
|
-
return result
|
|
164
|
-
? result.then(mapToProxy)
|
|
165
|
-
: mapToProxy(result);
|
|
169
|
+
return mapToProxy(result);
|
|
166
170
|
};
|
|
167
171
|
}
|
|
168
172
|
return receiver[prop];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.18",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"iterare": "1.2.1",
|
|
33
33
|
"object-hash": "2.1.1",
|
|
34
34
|
"path-to-regexp": "3.2.0",
|
|
35
|
-
"tslib": "2.
|
|
35
|
+
"tslib": "2.2.0",
|
|
36
36
|
"uuid": "8.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nestjs/common": "7.6.
|
|
39
|
+
"@nestjs/common": "7.6.18"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@nestjs/common": "^7.0.0",
|
|
@@ -125,6 +125,8 @@ class RouterExecutionContext {
|
|
|
125
125
|
return (type === route_paramtypes_enum_1.RouteParamtypes.BODY ||
|
|
126
126
|
type === route_paramtypes_enum_1.RouteParamtypes.QUERY ||
|
|
127
127
|
type === route_paramtypes_enum_1.RouteParamtypes.PARAM ||
|
|
128
|
+
type === route_paramtypes_enum_1.RouteParamtypes.FILE ||
|
|
129
|
+
type === route_paramtypes_enum_1.RouteParamtypes.FILES ||
|
|
128
130
|
shared_utils_1.isString(type));
|
|
129
131
|
}
|
|
130
132
|
createGuardsFn(guards, instance, callback, contextType) {
|