@midwayjs/web 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/web.js +6 -6
- package/package.json +2 -2
package/dist/framework/web.js
CHANGED
|
@@ -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 (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
if (
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "3.15.11",
|
|
4
4
|
"description": "Midway Web Framework for Egg.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=12"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "5bf318ca3f6d27e46db173fe4af3a859a40a6c88"
|
|
64
64
|
}
|