@midwayjs/faas 3.0.0-beta.4 → 3.0.0-beta.8

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
7
+
8
+ **Note:** Version bump only for package @midwayjs/faas
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * middleware with ctx.body ([#1389](https://github.com/midwayjs/midway/issues/1389)) ([77af5c0](https://github.com/midwayjs/midway/commit/77af5c0b456f1843f4dcfd3dbfd2c0aa244c51bd))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
26
+
27
+ **Note:** Version bump only for package @midwayjs/faas
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
34
+
35
+ **Note:** Version bump only for package @midwayjs/faas
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
7
42
 
8
43
 
package/dist/framework.js CHANGED
@@ -24,7 +24,13 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
24
24
  this.isReplaceLogger = process.env['MIDWAY_SERVERLESS_REPLACE_LOGGER'] === 'true';
25
25
  }
26
26
  configure(options) {
27
- this.configurationOptions = options;
27
+ const faasConfig = this.configService.getConfiguration('faas');
28
+ if (faasConfig) {
29
+ this.configurationOptions = faasConfig;
30
+ }
31
+ else {
32
+ this.configurationOptions = options;
33
+ }
28
34
  }
29
35
  isEnable() {
30
36
  return false;
@@ -110,11 +116,7 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
110
116
  return await fn(ctx, next);
111
117
  });
112
118
  const composeMiddleware = await this.middlewareService.compose(middlewareManager);
113
- const { error, result } = await composeMiddleware(context);
114
- if (error) {
115
- throw error;
116
- }
117
- return result;
119
+ return await composeMiddleware(context);
118
120
  };
119
121
  }
120
122
  /**
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.8",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/core": "^3.0.0-beta.4",
8
- "@midwayjs/faas-typings": "^3.0.0-beta.4",
9
- "@midwayjs/logger": "^3.0.0-beta.4",
7
+ "@midwayjs/core": "^3.0.0-beta.8",
8
+ "@midwayjs/faas-typings": "^3.0.0-beta.8",
9
+ "@midwayjs/logger": "^3.0.0-beta.8",
10
10
  "@midwayjs/simple-lock": "^1.1.4"
11
11
  },
12
12
  "devDependencies": {
13
- "@midwayjs/decorator": "^3.0.0-beta.4",
14
- "@midwayjs/mock": "^3.0.0-beta.4",
15
- "@midwayjs/serverless-fc-starter": "^3.0.0-beta.4",
16
- "@midwayjs/serverless-scf-starter": "^3.0.0-beta.4",
13
+ "@midwayjs/decorator": "^3.0.0-beta.8",
14
+ "@midwayjs/mock": "^3.0.0-beta.8",
15
+ "@midwayjs/serverless-fc-starter": "^3.0.0-beta.8",
16
+ "@midwayjs/serverless-scf-starter": "^3.0.0-beta.8",
17
17
  "mm": "3"
18
18
  },
19
19
  "engines": {
@@ -45,5 +45,5 @@
45
45
  "url": "git@github.com:midwayjs/midway.git"
46
46
  },
47
47
  "license": "MIT",
48
- "gitHead": "02e2144e302f807770b512b0d89da3145b1cbf2e"
48
+ "gitHead": "bfafbdf8798f48d4daac5dd88ad53c6b2f33c110"
49
49
  }