@midwayjs/faas 3.3.6-beta.4 → 3.3.6-beta.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
@@ -44,13 +44,13 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
44
44
  return !this.developmentRun;
45
45
  }
46
46
  async applicationInitialize(options) {
47
- var _a, _b;
47
+ var _a, _b, _c;
48
48
  if (!this.logger) {
49
49
  this.logger = options.logger || logger_1.loggers.getLogger('appLogger');
50
50
  }
51
51
  this.applicationAdapter = this.configurationOptions.applicationAdapter;
52
52
  this.app =
53
- ((_a = this.applicationAdapter) === null || _a === void 0 ? void 0 : _a.getApplication()) ||
53
+ ((_b = (_a = this.applicationAdapter).getApplication) === null || _b === void 0 ? void 0 : _b.call(_a)) ||
54
54
  new serverless_http_parser_1.Application();
55
55
  this.defineApplicationProperties({
56
56
  /**
@@ -79,7 +79,7 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
79
79
  // hack use method
80
80
  this.app.originUse = this.app.use;
81
81
  this.app.use = this.app.useMiddleware;
82
- if ((_b = this.configurationOptions.applicationAdapter) === null || _b === void 0 ? void 0 : _b.runAppHook) {
82
+ if ((_c = this.configurationOptions.applicationAdapter) === null || _c === void 0 ? void 0 : _c.runAppHook) {
83
83
  this.configurationOptions.applicationAdapter.runAppHook(this.app);
84
84
  }
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.3.6-beta.4",
3
+ "version": "3.3.6-beta.5",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {