@midwayjs/web 3.0.0-beta.6 → 3.0.0-beta.7
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/CHANGELOG.md +11 -0
- package/dist/framework/web.js +1 -7
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* middleware with ctx.body ([#1389](https://github.com/midwayjs/midway/issues/1389)) ([77af5c0](https://github.com/midwayjs/midway/commit/77af5c0b456f1843f4dcfd3dbfd2c0aa244c51bd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
|
|
7
18
|
|
|
8
19
|
|
package/dist/framework/web.js
CHANGED
|
@@ -74,13 +74,7 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
|
|
|
74
74
|
// insert error handler
|
|
75
75
|
this.app.use(async (ctx, next) => {
|
|
76
76
|
// this.app.createAnonymousContext(ctx);
|
|
77
|
-
|
|
78
|
-
if (error) {
|
|
79
|
-
throw error;
|
|
80
|
-
}
|
|
81
|
-
if (result) {
|
|
82
|
-
ctx.body = result;
|
|
83
|
-
}
|
|
77
|
+
await (await this.getMiddleware())(ctx, next);
|
|
84
78
|
});
|
|
85
79
|
this.generator = new EggControllerGenerator(this.app, this.applicationContext, this.appLogger);
|
|
86
80
|
this.overwriteApplication('app');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/web",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "Midway Web Framework for Egg.js",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@midwayjs/decorator": "^3.0.0-beta.
|
|
31
|
-
"@midwayjs/mock": "^3.0.0-beta.
|
|
30
|
+
"@midwayjs/decorator": "^3.0.0-beta.7",
|
|
31
|
+
"@midwayjs/mock": "^3.0.0-beta.7",
|
|
32
32
|
"dayjs": "^1.10.7",
|
|
33
33
|
"egg-logger": "^2.4.2",
|
|
34
34
|
"egg-mock": "^3.26.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@eggjs/router": "^2.0.0",
|
|
46
|
-
"@midwayjs/core": "^3.0.0-beta.
|
|
47
|
-
"@midwayjs/logger": "^3.0.0-beta.
|
|
46
|
+
"@midwayjs/core": "^3.0.0-beta.7",
|
|
47
|
+
"@midwayjs/logger": "^3.0.0-beta.7",
|
|
48
48
|
"egg": "^2.28.0",
|
|
49
49
|
"extend2": "^1.0.0",
|
|
50
50
|
"find-up": "^5.0.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=12"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "24590729121d9110e2d960db5b5e587cf55a1efc"
|
|
62
62
|
}
|