@rails/actioncable 7.2.101 → 8.0.0-rc1
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/package.json +3 -3
- package/src/consumer.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rails/actioncable",
|
3
|
-
"version": "
|
3
|
+
"version": "8.0.0-rc1",
|
4
4
|
"description": "WebSocket framework for Ruby on Rails.",
|
5
5
|
"module": "app/assets/javascripts/actioncable.esm.js",
|
6
6
|
"main": "app/assets/javascripts/actioncable.js",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
"devDependencies": {
|
27
27
|
"@rollup/plugin-commonjs": "^19.0.1",
|
28
28
|
"@rollup/plugin-node-resolve": "^11.0.1",
|
29
|
-
"eslint": "^
|
30
|
-
"eslint-plugin-import": "^2.
|
29
|
+
"eslint": "^8.40.0",
|
30
|
+
"eslint-plugin-import": "^2.29.0",
|
31
31
|
"karma": "^6.4.2",
|
32
32
|
"karma-chrome-launcher": "^2.2.0",
|
33
33
|
"karma-qunit": "^2.1.0",
|
package/src/consumer.js
CHANGED
@@ -71,7 +71,7 @@ export function createWebSocketURL(url) {
|
|
71
71
|
const a = document.createElement("a")
|
72
72
|
a.href = url
|
73
73
|
// Fix populating Location properties in IE. Otherwise, protocol will be blank.
|
74
|
-
a.href = a.href
|
74
|
+
a.href = a.href // eslint-disable-line
|
75
75
|
a.protocol = a.protocol.replace("http", "ws")
|
76
76
|
return a.href
|
77
77
|
} else {
|