@midwayjs/web 3.15.10 → 3.16.0

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.
@@ -177,11 +177,11 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
177
177
  ...this.configurationOptions.serverOptions,
178
178
  };
179
179
  // https config
180
- if (this.configurationOptions.key && this.configurationOptions.cert) {
181
- this.configurationOptions.key = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.key);
182
- this.configurationOptions.cert = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.cert);
183
- this.configurationOptions.ca = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.ca);
184
- if (this.configurationOptions.http2) {
180
+ if (serverOptions.key && serverOptions.cert) {
181
+ serverOptions.key = core_1.PathFileUtil.getFileContentSync(serverOptions.key);
182
+ serverOptions.cert = core_1.PathFileUtil.getFileContentSync(serverOptions.cert);
183
+ serverOptions.ca = core_1.PathFileUtil.getFileContentSync(serverOptions.ca);
184
+ if (serverOptions.http2) {
185
185
  this.server = require('http2').createSecureServer(serverOptions, this.app.callback());
186
186
  }
187
187
  else {
@@ -189,7 +189,7 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
189
189
  }
190
190
  }
191
191
  else {
192
- if (this.configurationOptions.http2) {
192
+ if (serverOptions.http2) {
193
193
  this.server = require('http2').createServer(serverOptions, this.app.callback());
194
194
  }
195
195
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/web",
3
- "version": "3.15.10",
3
+ "version": "3.16.0",
4
4
  "description": "Midway Web Framework for Egg.js",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "@midwayjs/logger": "^3.0.0",
32
- "@midwayjs/mock": "^3.15.8",
33
- "dayjs": "1.11.10",
32
+ "@midwayjs/mock": "^3.16.0",
33
+ "dayjs": "1.11.11",
34
34
  "egg-logger": "3.4.2",
35
35
  "egg-mock": "4.2.1",
36
36
  "egg-scripts": "2.17.0",
@@ -45,12 +45,12 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@eggjs/router": "^2.0.0",
48
- "@midwayjs/core": "^3.15.8",
48
+ "@midwayjs/core": "^3.16.0",
49
49
  "egg": "^2.28.0",
50
50
  "egg-cluster": "^1.27.1",
51
51
  "find-up": "5.0.0",
52
52
  "mkdirp": "1.0.4",
53
- "qs": "6.12.0"
53
+ "qs": "6.12.1"
54
54
  },
55
55
  "author": "Harry Chen <czy88840616@gmail.com>",
56
56
  "repository": {
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=12"
62
62
  },
63
- "gitHead": "11f56659d35b95d5abebceab40bf4e9ac7b67b99"
63
+ "gitHead": "7e75fe1bdc9a6df2956f9c22e704063aaa022d76"
64
64
  }