@midwayjs/express 3.4.0-beta.8 → 3.4.0-beta.9
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/dist/framework.js +5 -1
- package/package.json +6 -6
package/dist/framework.js
CHANGED
|
@@ -262,7 +262,11 @@ let MidwayExpressFramework = class MidwayExpressFramework extends core_1.BaseFra
|
|
|
262
262
|
return this.composeMiddleware;
|
|
263
263
|
}
|
|
264
264
|
async beforeStop() {
|
|
265
|
-
this.server
|
|
265
|
+
if (this.server) {
|
|
266
|
+
new Promise(resolve => {
|
|
267
|
+
this.server.close(resolve);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
266
270
|
}
|
|
267
271
|
getServer() {
|
|
268
272
|
return this.server;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/express",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.9",
|
|
4
4
|
"description": "Midway Web Framework for Express",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/decorator": "^3.4.0-beta.
|
|
27
|
+
"@midwayjs/decorator": "^3.4.0-beta.9",
|
|
28
28
|
"@midwayjs/logger": "^2.15.0",
|
|
29
|
-
"@midwayjs/mock": "^3.4.0-beta.
|
|
29
|
+
"@midwayjs/mock": "^3.4.0-beta.9",
|
|
30
30
|
"@types/body-parser": "1.19.2",
|
|
31
31
|
"@types/express": "4.17.13",
|
|
32
32
|
"fs-extra": "10.0.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@midwayjs/core": "^3.4.0-beta.
|
|
36
|
-
"@midwayjs/express-session": "^3.4.0-beta.
|
|
35
|
+
"@midwayjs/core": "^3.4.0-beta.9",
|
|
36
|
+
"@midwayjs/express-session": "^3.4.0-beta.9",
|
|
37
37
|
"body-parser": "1.20.0",
|
|
38
38
|
"cookie-parser": "^1.4.6",
|
|
39
39
|
"express": "4.18.1"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=12"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "41e82a0fba386c6ec42c2eefd1dff4795a81b389"
|
|
50
50
|
}
|