egg 2.36.0 → 2.37.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/lib/application.js +3 -0
- package/package.json +5 -2
package/lib/application.js
CHANGED
|
@@ -158,6 +158,8 @@ class Application extends EggApplication {
|
|
|
158
158
|
onServer(server) {
|
|
159
159
|
// expose app.server
|
|
160
160
|
this.server = server;
|
|
161
|
+
// set ignore code
|
|
162
|
+
const serverGracefulIgnoreCode = this.config.serverGracefulIgnoreCode || [];
|
|
161
163
|
|
|
162
164
|
/* istanbul ignore next */
|
|
163
165
|
graceful({
|
|
@@ -177,6 +179,7 @@ class Application extends EggApplication {
|
|
|
177
179
|
}
|
|
178
180
|
this.coreLogger.error(err);
|
|
179
181
|
},
|
|
182
|
+
ignoreCode: serverGracefulIgnoreCode,
|
|
180
183
|
});
|
|
181
184
|
|
|
182
185
|
server.on('clientError', (err, socket) => this.onClientError(err, socket));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "A web framework's framework for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"egg-view": "^2.1.2",
|
|
42
42
|
"egg-watcher": "^3.1.0",
|
|
43
43
|
"extend2": "^1.0.0",
|
|
44
|
-
"graceful": "^1.0
|
|
44
|
+
"graceful": "^1.1.0",
|
|
45
45
|
"humanize-ms": "^1.2.1",
|
|
46
46
|
"is-type-of": "^1.2.1",
|
|
47
47
|
"koa-bodyparser": "^4.2.1",
|
|
@@ -125,5 +125,8 @@
|
|
|
125
125
|
"engines": {
|
|
126
126
|
"node": ">= 8.5.0"
|
|
127
127
|
},
|
|
128
|
+
"publishConfig": {
|
|
129
|
+
"tag": "latest-2"
|
|
130
|
+
},
|
|
128
131
|
"license": "MIT"
|
|
129
132
|
}
|