@modern-js/server 2.22.0 → 2.22.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @modern-js/server
|
|
2
2
|
|
|
3
|
+
## 2.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d4045ed: fix(builder): print https URLs when devServer.https is true
|
|
8
|
+
|
|
9
|
+
fix(builder): 当 devServer.https 为 true 时,输出 https 的 URLs
|
|
10
|
+
|
|
11
|
+
- 1f02cd2: chore: fix some eslint issues
|
|
12
|
+
|
|
13
|
+
chore: 修复一些 eslint issues
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [25b490a]
|
|
16
|
+
- Updated dependencies [e2848a2]
|
|
17
|
+
- Updated dependencies [4be1da5]
|
|
18
|
+
- Updated dependencies [d4045ed]
|
|
19
|
+
- Updated dependencies [1f02cd2]
|
|
20
|
+
- @modern-js/types@2.22.1
|
|
21
|
+
- @modern-js/utils@2.22.1
|
|
22
|
+
- @modern-js/server-utils@2.22.1
|
|
23
|
+
- @modern-js/prod-server@2.22.1
|
|
24
|
+
|
|
3
25
|
## 2.22.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ const genHttpsOptions = async (userOptions, pwd) => {
|
|
|
22
22
|
});
|
|
23
23
|
} catch (err) {
|
|
24
24
|
const packageManager = await (0, _utils.getPackageManager)(pwd);
|
|
25
|
-
const command = _utils.chalk.yellow.bold(`${packageManager}
|
|
25
|
+
const command = _utils.chalk.yellow.bold(`${packageManager} add devcert@1.2.2 -D`);
|
|
26
26
|
_utils.logger.error(`You have enabled "dev.https" option, but the "devcert" package is not installed.`);
|
|
27
27
|
_utils.logger.error(`Please run ${command} to install manually, otherwise the https can not work.`);
|
|
28
28
|
throw new Error('[https] "devcert" is not found.');
|
|
@@ -39,7 +39,7 @@ export var genHttpsOptions = function() {
|
|
|
39
39
|
];
|
|
40
40
|
case 3:
|
|
41
41
|
packageManager = _state.sent();
|
|
42
|
-
command = chalk.yellow.bold("".concat(packageManager, "
|
|
42
|
+
command = chalk.yellow.bold("".concat(packageManager, " add devcert@1.2.2 -D"));
|
|
43
43
|
logger.error('You have enabled "dev.https" option, but the "devcert" package is not installed.');
|
|
44
44
|
logger.error("Please run ".concat(command, " to install manually, otherwise the https can not work."));
|
|
45
45
|
throw new Error('[https] "devcert" is not found.');
|
|
@@ -12,7 +12,7 @@ export const genHttpsOptions = async (userOptions, pwd) => {
|
|
|
12
12
|
});
|
|
13
13
|
} catch (err) {
|
|
14
14
|
const packageManager = await getPackageManager(pwd);
|
|
15
|
-
const command = chalk.yellow.bold(`${packageManager}
|
|
15
|
+
const command = chalk.yellow.bold(`${packageManager} add devcert@1.2.2 -D`);
|
|
16
16
|
logger.error(`You have enabled "dev.https" option, but the "devcert" package is not installed.`);
|
|
17
17
|
logger.error(`Please run ${command} to install manually, otherwise the https can not work.`);
|
|
18
18
|
throw new Error('[https] "devcert" is not found.');
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.22.
|
|
18
|
+
"version": "2.22.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"minimatch": "^3.0.4",
|
|
48
48
|
"path-to-regexp": "^6.2.0",
|
|
49
49
|
"ws": "^8.2.0",
|
|
50
|
-
"@modern-js/prod-server": "2.22.
|
|
51
|
-
"@modern-js/
|
|
52
|
-
"@modern-js/
|
|
53
|
-
"@modern-js/utils": "2.22.
|
|
50
|
+
"@modern-js/prod-server": "2.22.1",
|
|
51
|
+
"@modern-js/types": "2.22.1",
|
|
52
|
+
"@modern-js/server-utils": "2.22.1",
|
|
53
|
+
"@modern-js/utils": "2.22.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"typescript": "^5",
|
|
66
66
|
"webpack": "^5.82.1",
|
|
67
67
|
"websocket": "^1",
|
|
68
|
-
"@modern-js/server-core": "2.22.
|
|
69
|
-
"@scripts/
|
|
70
|
-
"@scripts/
|
|
68
|
+
"@modern-js/server-core": "2.22.1",
|
|
69
|
+
"@scripts/build": "2.22.1",
|
|
70
|
+
"@scripts/jest-config": "2.22.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"devcert": "^1.0.0",
|