@midwayjs/express 3.0.4 → 3.0.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 +1 -1
- package/package.json +8 -8
package/dist/framework.js
CHANGED
|
@@ -56,7 +56,7 @@ let MidwayExpressFramework = class MidwayExpressFramework extends core_1.BaseFra
|
|
|
56
56
|
debug('[express]: use 404 not found middleware');
|
|
57
57
|
// eslint-disable-next-line
|
|
58
58
|
this.app.use(function notFound(req, res, next) {
|
|
59
|
-
next(new core_1.httpError.NotFoundError());
|
|
59
|
+
next(new core_1.httpError.NotFoundError(`${req.path} Not Found`));
|
|
60
60
|
});
|
|
61
61
|
debug('[express]: use global error handler middleware');
|
|
62
62
|
// use global error handler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/express",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Midway Web Framework for Express",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
],
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@midwayjs/decorator": "^3.0.
|
|
26
|
+
"@midwayjs/decorator": "^3.0.7",
|
|
27
27
|
"@midwayjs/logger": "^2.15.0",
|
|
28
|
-
"@midwayjs/mock": "^3.0.
|
|
28
|
+
"@midwayjs/mock": "^3.0.9",
|
|
29
29
|
"@types/body-parser": "1.19.2",
|
|
30
30
|
"@types/express": "4.17.13",
|
|
31
31
|
"fs-extra": "10.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@midwayjs/core": "^3.0.
|
|
35
|
-
"@midwayjs/express-session": "^3.0.
|
|
36
|
-
"body-parser": "1.19.
|
|
34
|
+
"@midwayjs/core": "^3.0.9",
|
|
35
|
+
"@midwayjs/express-session": "^3.0.9",
|
|
36
|
+
"body-parser": "1.19.2",
|
|
37
37
|
"cookie-parser": "^1.4.6",
|
|
38
|
-
"express": "4.17.
|
|
38
|
+
"express": "4.17.3"
|
|
39
39
|
},
|
|
40
40
|
"author": "Harry Chen <czy88840616@gmail.com>",
|
|
41
41
|
"repository": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=12"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6fbf54fb8840844c229d2cf11b30128c67cbeaf1"
|
|
49
49
|
}
|