@midwayjs/faas 3.0.1 → 3.0.5

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
@@ -25,12 +25,14 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
25
25
  this.developmentRun = false;
26
26
  }
27
27
  configure(options) {
28
- if (options) {
28
+ var _a;
29
+ const faasConfig = (_a = this.configService.getConfiguration('faas')) !== null && _a !== void 0 ? _a : {};
30
+ if (options || faasConfig['developmentRun']) {
29
31
  this.developmentRun = true;
30
32
  this.configurationOptions = options;
31
33
  }
32
34
  else {
33
- return this.configService.getConfiguration('faas');
35
+ return faasConfig;
34
36
  }
35
37
  }
36
38
  isEnable() {
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.0.1",
3
+ "version": "3.0.5",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/core": "^3.0.1",
7
+ "@midwayjs/core": "^3.0.4",
8
8
  "@midwayjs/faas-typings": "^3.0.0",
9
- "@midwayjs/logger": "^2.14.0",
9
+ "@midwayjs/logger": "^2.15.0",
10
10
  "@midwayjs/simple-lock": "^1.1.4"
11
11
  },
12
12
  "devDependencies": {
13
- "@midwayjs/decorator": "^3.0.0",
14
- "@midwayjs/mock": "^3.0.1",
15
- "@midwayjs/serverless-fc-starter": "^3.0.1",
16
- "@midwayjs/serverless-scf-starter": "^3.0.0",
13
+ "@midwayjs/decorator": "^3.0.4",
14
+ "@midwayjs/mock": "^3.0.5",
15
+ "@midwayjs/serverless-fc-starter": "^3.0.4",
16
+ "@midwayjs/serverless-scf-starter": "^3.0.4",
17
17
  "mm": "3.2.0"
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": "f345b4ed0392e5c3b9e815438ef0a377ad6da076"
48
+ "gitHead": "9b17898f10faeef2e7f1011eaea67f1d0b085261"
49
49
  }