@midwayjs/core 3.10.9 → 3.10.10
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.
|
@@ -52,7 +52,7 @@ let MidwayServerlessFunctionService = class MidwayServerlessFunctionService exte
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
collectFunctionRoute(module) {
|
|
55
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
55
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
56
56
|
// serverlessTrigger metadata
|
|
57
57
|
const webRouterInfo = (0, decorator_1.getClassMetadata)(decorator_1.FUNC_KEY, module);
|
|
58
58
|
const controllerId = (0, decorator_1.getProviderName)(module);
|
|
@@ -105,7 +105,7 @@ let MidwayServerlessFunctionService = class MidwayServerlessFunctionService exte
|
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
const functionMeta = (0, decorator_1.getPropertyMetadata)(decorator_1.SERVERLESS_FUNC_KEY, module, webRouter['methodName']) || {};
|
|
108
|
-
const functionName = (
|
|
108
|
+
const functionName = (_k = (_h = functionMeta['functionName']) !== null && _h !== void 0 ? _h : (_j = webRouter === null || webRouter === void 0 ? void 0 : webRouter['metadata']) === null || _j === void 0 ? void 0 : _j['functionName']) !== null && _k !== void 0 ? _k : createFunctionName(module, webRouter['methodName']);
|
|
109
109
|
// 其他类型的函数
|
|
110
110
|
this.checkDuplicateAndPush(prefix, {
|
|
111
111
|
id,
|
|
@@ -119,7 +119,7 @@ let MidwayServerlessFunctionService = class MidwayServerlessFunctionService exte
|
|
|
119
119
|
handlerName: `${controllerId}.${webRouter['methodName']}`,
|
|
120
120
|
funcHandlerName: `${controllerId}.${webRouter['methodName']}`,
|
|
121
121
|
controllerId,
|
|
122
|
-
middleware: ((
|
|
122
|
+
middleware: ((_l = webRouter['metadata']) === null || _l === void 0 ? void 0 : _l['middleware']) || [],
|
|
123
123
|
controllerMiddleware: [],
|
|
124
124
|
requestMetadata: [],
|
|
125
125
|
responseMetadata: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.10",
|
|
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": "93d333e82e75b6eb44ab83f74a378172508730d6"
|
|
46
46
|
}
|