@umijs/bundler-utils 4.6.28 → 4.6.30
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/https.js +2 -1
- package/package.json +2 -2
package/dist/https.js
CHANGED
|
@@ -108,7 +108,8 @@ async function createHttpsServer(app, httpsConfig) {
|
|
|
108
108
|
import_utils.logger.wait("[HTTPS] Starting service in https mode...");
|
|
109
109
|
const { key, cert } = await resolveHttpsConfig(httpsConfig);
|
|
110
110
|
let createServer;
|
|
111
|
-
|
|
111
|
+
const nodeMajor = parseInt(process.versions.node.split(".")[0], 10);
|
|
112
|
+
if (httpsConfig.http2 === false || nodeMajor >= 24) {
|
|
112
113
|
createServer = import_https.default.createServer;
|
|
113
114
|
} else {
|
|
114
115
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utils",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.30",
|
|
4
4
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-utils#readme",
|
|
5
5
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"regenerate": "^1.4.2",
|
|
20
20
|
"regenerate-unicode-properties": "10.1.1",
|
|
21
21
|
"spdy": "^4.0.2",
|
|
22
|
-
"@umijs/utils": "4.6.
|
|
22
|
+
"@umijs/utils": "4.6.30"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/code-frame": "7.23.5",
|