@midwayjs/express 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.
package/dist/framework.js CHANGED
@@ -119,11 +119,11 @@ let MidwayExpressFramework = class MidwayExpressFramework extends core_1.BaseFra
119
119
  ...this.configurationOptions.serverOptions,
120
120
  };
121
121
  // https config
122
- if (this.configurationOptions.key && this.configurationOptions.cert) {
123
- this.configurationOptions.key = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.key);
124
- this.configurationOptions.cert = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.cert);
125
- this.configurationOptions.ca = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.ca);
126
- if (this.configurationOptions.http2) {
122
+ if (serverOptions.key && serverOptions.cert) {
123
+ serverOptions.key = core_1.PathFileUtil.getFileContentSync(serverOptions.key);
124
+ serverOptions.cert = core_1.PathFileUtil.getFileContentSync(serverOptions.cert);
125
+ serverOptions.ca = core_1.PathFileUtil.getFileContentSync(serverOptions.ca);
126
+ if (serverOptions.http2) {
127
127
  this.server = require('http2').createSecureServer(serverOptions, this.app);
128
128
  }
129
129
  else {
@@ -131,7 +131,7 @@ let MidwayExpressFramework = class MidwayExpressFramework extends core_1.BaseFra
131
131
  }
132
132
  }
133
133
  else {
134
- if (this.configurationOptions.http2) {
134
+ if (serverOptions.http2) {
135
135
  this.server = require('http2').createServer(serverOptions, this.app);
136
136
  }
137
137
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/express",
3
- "version": "3.15.10",
3
+ "version": "3.16.0",
4
4
  "description": "Midway Web Framework for Express",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -24,14 +24,14 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@midwayjs/mock": "^3.15.8",
27
+ "@midwayjs/mock": "^3.16.0",
28
28
  "@types/body-parser": "1.19.5",
29
29
  "@types/express": "4.17.21",
30
30
  "fs-extra": "11.2.0"
31
31
  },
32
32
  "dependencies": {
33
- "@midwayjs/core": "^3.15.8",
34
- "@midwayjs/express-session": "^3.15.8",
33
+ "@midwayjs/core": "^3.16.0",
34
+ "@midwayjs/express-session": "^3.16.0",
35
35
  "body-parser": "1.20.2",
36
36
  "cookie-parser": "^1.4.6",
37
37
  "express": "4.19.2"
@@ -44,5 +44,5 @@
44
44
  "engines": {
45
45
  "node": ">=12"
46
46
  },
47
- "gitHead": "11f56659d35b95d5abebceab40bf4e9ac7b67b99"
47
+ "gitHead": "7e75fe1bdc9a6df2956f9c22e704063aaa022d76"
48
48
  }