@midwayjs/koa 3.4.0-beta.8 → 3.4.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/dist/framework.js +5 -1
- package/package.json +8 -8
package/dist/framework.js
CHANGED
|
@@ -155,7 +155,11 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
async beforeStop() {
|
|
158
|
-
this.server
|
|
158
|
+
if (this.server) {
|
|
159
|
+
new Promise(resolve => {
|
|
160
|
+
this.server.close(resolve);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
159
163
|
}
|
|
160
164
|
getFrameworkType() {
|
|
161
165
|
return core_1.MidwayFrameworkType.WEB_KOA;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/koa",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Midway Web Framework for KOA",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/decorator": "^3.4.
|
|
27
|
+
"@midwayjs/decorator": "^3.4.1",
|
|
28
28
|
"@midwayjs/logger": "^2.15.0",
|
|
29
|
-
"@midwayjs/mock": "^3.4.
|
|
30
|
-
"@types/koa": "2.13.
|
|
29
|
+
"@midwayjs/mock": "^3.4.1",
|
|
30
|
+
"@types/koa": "2.13.5",
|
|
31
31
|
"@types/koa-router": "7.4.4",
|
|
32
32
|
"fs-extra": "10.0.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@koa/router": "^
|
|
35
|
+
"@koa/router": "^11.0.0",
|
|
36
36
|
"@midwayjs/cookies": "^1.0.2",
|
|
37
|
-
"@midwayjs/core": "^3.4.
|
|
38
|
-
"@midwayjs/session": "^3.4.
|
|
37
|
+
"@midwayjs/core": "^3.4.1",
|
|
38
|
+
"@midwayjs/session": "^3.4.1",
|
|
39
39
|
"koa": "2.13.4",
|
|
40
40
|
"koa-bodyparser": "4.3.0"
|
|
41
41
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=12"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c7b47267c80f93407537677d8366f68bc6dfc462"
|
|
51
51
|
}
|