@midwayjs/core 3.10.5 → 3.10.6
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.
|
@@ -287,7 +287,9 @@ let MidwayWebRouterService = class MidwayWebRouterService {
|
|
|
287
287
|
let matchedRouterInfo;
|
|
288
288
|
for (const item of routes) {
|
|
289
289
|
if (item.fullUrlCompiledRegexp) {
|
|
290
|
-
|
|
290
|
+
const itemRequestMethod = item['requestMethod'].toUpperCase();
|
|
291
|
+
if (('ALL' === itemRequestMethod ||
|
|
292
|
+
method.toUpperCase() === itemRequestMethod) &&
|
|
291
293
|
item.fullUrlCompiledRegexp.test(routerUrl)) {
|
|
292
294
|
matchedRouterInfo = item;
|
|
293
295
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.6",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=12"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9d5babd57efe4c24415fcb3511bc4ca7c1bcb1b2"
|
|
46
46
|
}
|