@midwayjs/express 3.15.10 → 3.15.11
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 +6 -6
- package/package.json +3 -3
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 (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "3.15.11",
|
|
4
4
|
"description": "Midway Web Framework for Express",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@midwayjs/core": "^3.15.8",
|
|
34
|
-
"@midwayjs/express-session": "^3.15.
|
|
34
|
+
"@midwayjs/express-session": "^3.15.11",
|
|
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": "
|
|
47
|
+
"gitHead": "5bf318ca3f6d27e46db173fe4af3a859a40a6c88"
|
|
48
48
|
}
|