@midwayjs/faas 3.4.0-beta.3 → 3.4.0-beta.4

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.
@@ -15,7 +15,7 @@ export declare class MidwayFaaSFramework extends BaseFramework<Application, Cont
15
15
  private server;
16
16
  private respond;
17
17
  private applicationAdapter;
18
- private webRouterService;
18
+ private serverlessFunctionService;
19
19
  protected httpMiddlewareManager: ContextMiddlewareManager<Context, unknown, unknown>;
20
20
  protected eventMiddlewareManager: ContextMiddlewareManager<Context, unknown, unknown>;
21
21
  environmentService: MidwayEnvironmentService;
package/dist/framework.js CHANGED
@@ -111,12 +111,8 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
111
111
  // set app keys
112
112
  this.app['keys'] = (_a = this.configService.getConfiguration('keys')) !== null && _a !== void 0 ? _a : '';
113
113
  // store all http function entry
114
- this.webRouterService = await this.applicationContext.getAsync(core_1.MidwayWebRouterService, [
115
- {
116
- includeFunctionRouter: true,
117
- },
118
- ]);
119
- const functionList = await this.webRouterService.getFlattenRouterTable();
114
+ this.serverlessFunctionService = await this.applicationContext.getAsync(core_1.MidwayServerlessFunctionService);
115
+ const functionList = await this.serverlessFunctionService.getFunctionList();
120
116
  for (const funcInfo of functionList) {
121
117
  // store handler
122
118
  this.funMappingStore.set(funcInfo.funcHandlerName, funcInfo);
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.4.0-beta.3",
3
+ "version": "3.4.0-beta.4",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/core": "^3.4.0-beta.3",
7
+ "@midwayjs/core": "^3.4.0-beta.4",
8
8
  "@midwayjs/faas-typings": "^3.3.5",
9
9
  "@midwayjs/logger": "^2.15.0",
10
- "@midwayjs/serverless-http-parser": "^3.4.0-beta.3",
10
+ "@midwayjs/serverless-http-parser": "^3.4.0-beta.4",
11
11
  "@midwayjs/simple-lock": "^1.1.4"
12
12
  },
13
13
  "devDependencies": {
14
- "@midwayjs/decorator": "^3.4.0-beta.3",
15
- "@midwayjs/mock": "^3.4.0-beta.3",
16
- "@midwayjs/serverless-fc-starter": "^3.4.0-beta.3",
17
- "@midwayjs/serverless-scf-starter": "^3.4.0-beta.3",
14
+ "@midwayjs/decorator": "^3.4.0-beta.4",
15
+ "@midwayjs/mock": "^3.4.0-beta.4",
16
+ "@midwayjs/serverless-fc-starter": "^3.4.0-beta.4",
17
+ "@midwayjs/serverless-scf-starter": "^3.4.0-beta.4",
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": "ddbff5c3da5d908953cc691a8e5de4f0197de365"
49
+ "gitHead": "3b686101f7802f87d47b8c9d25561339d556e573"
50
50
  }