egg 3.2.0 → 3.3.1
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 +4 -7
- package/History.md +0 -2036
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": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "A web framework's framework for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"egg-jsonp": "^2.0.0",
|
|
33
33
|
"egg-logger": "^2.9.0",
|
|
34
34
|
"egg-logrotator": "^3.1.0",
|
|
35
|
-
"egg-multipart": "^
|
|
35
|
+
"egg-multipart": "^2.13.1",
|
|
36
36
|
"egg-onerror": "^2.1.1",
|
|
37
37
|
"egg-schedule": "^3.7.0",
|
|
38
38
|
"egg-security": "^2.11.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"egg-view": "^2.1.3",
|
|
42
42
|
"egg-watcher": "^3.1.1",
|
|
43
43
|
"extend2": "^1.0.1",
|
|
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.3.0",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"dumi-theme-egg": "^1.2.2",
|
|
71
71
|
"egg-alinode": "^2.0.1",
|
|
72
72
|
"egg-bin": "^5",
|
|
73
|
-
"egg-doctools": "^2.9.1",
|
|
74
73
|
"egg-mock": "^4.2.1",
|
|
75
74
|
"egg-plugin-puml": "^2.4.0",
|
|
76
75
|
"egg-tracer": "^1.1.0",
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
"eslint-config-egg": "^12.0.0",
|
|
80
79
|
"findlinks": "^2.1.0",
|
|
81
80
|
"formstream": "^1.1.1",
|
|
82
|
-
"glob": "^8",
|
|
83
81
|
"jsdoc": "^3.6.11",
|
|
84
82
|
"koa": "^2.13.4",
|
|
85
83
|
"koa-static": "^5.0.0",
|
|
@@ -110,9 +108,8 @@
|
|
|
110
108
|
"test-local-changed": "egg-bin test --changed",
|
|
111
109
|
"cov": "egg-bin cov --timeout 100000",
|
|
112
110
|
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov",
|
|
113
|
-
"site:jsdoc": "node ./scripts/jsdoc.js",
|
|
114
111
|
"site:dev": "APP_ROOT=./site dumi dev",
|
|
115
|
-
"site:build": "APP_ROOT=./site dumi build
|
|
112
|
+
"site:build": "APP_ROOT=./site dumi build",
|
|
116
113
|
"site:prettier": "prettier --config site/.prettierrc --ignore-path site/.prettierignore --write \"site/**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
117
114
|
"autod": "autod",
|
|
118
115
|
"puml": "puml . --dest ./site",
|