@midwayjs/faas 3.4.0-beta.6 → 3.4.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/dist/framework.js CHANGED
@@ -191,6 +191,10 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
191
191
  const isHttpFunction = options.isHttpFunction;
192
192
  if (!funOptions && isHttpFunction) {
193
193
  funOptions = await this.serverlessFunctionService.getMatchedRouterInfo(context.path, context.method);
194
+ if (funOptions) {
195
+ const matchRes = core_1.PathToRegexpUtil.match(funOptions.fullUrlFlattenString)(context.path);
196
+ context.req.pathParameters = matchRes['params'] || {};
197
+ }
194
198
  }
195
199
  if (!funOptions) {
196
200
  throw new Error(`function handler = ${handlerMapping} not found`);
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.4.0-beta.6",
3
+ "version": "3.4.0-beta.7",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/core": "^3.4.0-beta.6",
7
+ "@midwayjs/core": "^3.4.0-beta.7",
8
8
  "@midwayjs/faas-typings": "^3.3.5",
9
9
  "@midwayjs/logger": "^2.15.0",
10
- "@midwayjs/serverless-http-parser": "^3.4.0-beta.6",
10
+ "@midwayjs/serverless-http-parser": "^3.4.0-beta.7",
11
11
  "@midwayjs/simple-lock": "^1.1.4"
12
12
  },
13
13
  "devDependencies": {
14
- "@midwayjs/decorator": "^3.4.0-beta.6",
15
- "@midwayjs/mock": "^3.4.0-beta.6",
16
- "@midwayjs/serverless-fc-starter": "^3.4.0-beta.6",
17
- "@midwayjs/serverless-scf-starter": "^3.4.0-beta.6",
14
+ "@midwayjs/decorator": "^3.4.0-beta.7",
15
+ "@midwayjs/mock": "^3.4.0-beta.7",
16
+ "@midwayjs/serverless-fc-starter": "^3.4.0-beta.7",
17
+ "@midwayjs/serverless-scf-starter": "^3.4.0-beta.7",
18
18
  "mm": "3.2.0"
19
19
  },
20
20
  "engines": {
@@ -46,5 +46,5 @@
46
46
  "url": "git@github.com:midwayjs/midway.git"
47
47
  },
48
48
  "license": "MIT",
49
- "gitHead": "8e187c4593d4832de32b6745af3e195f6b90816c"
49
+ "gitHead": "4d5cc59a7a33e49beeaf20fcfaf766438649959c"
50
50
  }