react-cosmos-ui 6.0.0-beta.4 → 6.0.0-beta.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.
@@ -6,7 +6,7 @@ export function initSocket(context) {
6
6
  if (!core.isDevServerOn()) {
7
7
  return;
8
8
  }
9
- socket = new WebSocket(location.origin.replace(/^https?:/, 'ws:'));
9
+ socket = new WebSocket(location.origin.replace(/^https:/, 'wss:').replace(/^http:/, 'ws:'));
10
10
  socket.addEventListener('open', () => {
11
11
  if (socket && pendingMessages.length > 0) {
12
12
  for (const msg of pendingMessages)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos-ui",
3
- "version": "6.0.0-beta.4",
3
+ "version": "6.0.0-beta.6",
4
4
  "description": "React Cosmos UI",
5
5
  "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-ui",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "lodash-es": "^4.17.21",
18
- "react-cosmos-core": "6.0.0-beta.4"
18
+ "react-cosmos-core": "6.0.0-beta.5"
19
19
  },
20
20
  "devDependencies": {
21
21
  "fuzzaldrin-plus": "^0.6.0",
@@ -23,5 +23,5 @@
23
23
  "react-plugin": "^3.0.0-alpha.4",
24
24
  "styled-components": "^5.3.10"
25
25
  },
26
- "gitHead": "e2cf7cc4fdfb1f82715f6848b0b8cbca8397e036"
26
+ "gitHead": "472a60c4d2113cb4ae6777d76fc33b13ce76c0af"
27
27
  }