@midwayjs/core 3.10.4 → 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.
@@ -23,6 +23,7 @@ const createParamMapping = function (type) {
23
23
  return (0, __1.createCustomParamDecorator)(__1.WEB_ROUTER_PARAM_KEY, {
24
24
  type,
25
25
  propertyData,
26
+ }, {
26
27
  pipes,
27
28
  });
28
29
  };
@@ -86,7 +86,7 @@ let MidwayDecoratorService = class MidwayDecoratorService {
86
86
  propertyName,
87
87
  parameterIndex,
88
88
  target: Clzz,
89
- originArgs: joinPoint.args,
89
+ originArgs: newArgs,
90
90
  originParamType: paramTypes[parameterIndex],
91
91
  });
92
92
  }
@@ -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
- if (method.toUpperCase() === item['requestMethod'].toUpperCase() &&
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.4",
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": "fb3b02bfe884e3477f81d34fc9941f2701e826f3"
45
+ "gitHead": "9d5babd57efe4c24415fcb3511bc4ca7c1bcb1b2"
46
46
  }