@modern-js/server 1.22.5 → 1.22.6

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,18 @@
1
1
  # @modern-js/server
2
2
 
3
+ ## 1.22.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 9c27f06: fix(server): hmr protocol set error
8
+
9
+ fix(server): 修复 hmr protocol 配置错误问题
10
+
11
+ - @modern-js/prod-server@1.22.6
12
+ - @modern-js/server-utils@1.22.6
13
+ - @modern-js/types@1.22.6
14
+ - @modern-js/utils@1.22.6
15
+
3
16
  ## 1.22.5
4
17
 
5
18
  ### Patch Changes
@@ -41,7 +41,7 @@ function getSocketUrl(urlParts, location) {
41
41
  protocol
42
42
  } = urlParts;
43
43
  return formatURL({
44
- protocol: protocol || location.protocol === 'https:' ? 'wss' : 'ws',
44
+ protocol: protocol || (location.protocol === 'https:' ? 'wss' : 'ws'),
45
45
  hostname: host || location.hostname,
46
46
  port: port || location.port,
47
47
  pathname: path || HMR_SOCK_PATH
@@ -51,7 +51,7 @@ function getSocketUrl(urlParts, location) {
51
51
  protocol
52
52
  } = urlParts;
53
53
  return formatURL({
54
- protocol: protocol || location.protocol === 'https:' ? 'wss' : 'ws',
54
+ protocol: protocol || (location.protocol === 'https:' ? 'wss' : 'ws'),
55
55
  hostname: host || location.hostname,
56
56
  port: port || location.port,
57
57
  pathname: path || _constants.HMR_SOCK_PATH
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.22.5",
14
+ "version": "1.22.6",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -35,10 +35,10 @@
35
35
  "minimatch": "^3.0.4",
36
36
  "path-to-regexp": "^6.2.0",
37
37
  "ws": "^8.2.0",
38
- "@modern-js/prod-server": "1.22.5",
39
- "@modern-js/server-utils": "1.22.5",
40
- "@modern-js/types": "1.22.5",
41
- "@modern-js/utils": "1.22.5"
38
+ "@modern-js/prod-server": "1.22.6",
39
+ "@modern-js/server-utils": "1.22.6",
40
+ "@modern-js/types": "1.22.6",
41
+ "@modern-js/utils": "1.22.6"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/connect-history-api-fallback": "^1.3.5",
@@ -53,10 +53,10 @@
53
53
  "typescript": "^4",
54
54
  "webpack": "^5.74.0",
55
55
  "websocket": "^1",
56
- "@modern-js/core": "1.22.5",
57
- "@modern-js/server-core": "1.22.5",
58
- "@scripts/build": "1.22.5",
59
- "@scripts/jest-config": "1.22.5"
56
+ "@modern-js/core": "1.22.6",
57
+ "@modern-js/server-core": "1.22.6",
58
+ "@scripts/build": "1.22.6",
59
+ "@scripts/jest-config": "1.22.6"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "ts-node": "^10.1.0",