@symbo.ls/socket 2.11.524 → 2.11.525
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/client.js +2 -2
- package/package.json +3 -3
package/client.js
CHANGED
|
@@ -16,7 +16,7 @@ const CONNECT_ATTEPT_MAX_ALLOWED = 1
|
|
|
16
16
|
const getIsDev = (options) => {
|
|
17
17
|
return options.development ||
|
|
18
18
|
(window && window.location && window.location.host.includes('local')) ||
|
|
19
|
-
(ENV === '
|
|
19
|
+
(ENV === 'testing' || ENV === 'development')
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const getSocketUrl = (options, isDev) => {
|
|
@@ -76,7 +76,7 @@ export const connect = (key, options = {}) => {
|
|
|
76
76
|
|
|
77
77
|
socket.disconnect()
|
|
78
78
|
|
|
79
|
-
if (ENV === '
|
|
79
|
+
if (ENV === 'testing' || ENV === 'development') {
|
|
80
80
|
console.log(
|
|
81
81
|
'Could not connect to %c' + primaryUrl + '%c, reconnecting to %c' + secondaryUrl,
|
|
82
82
|
'font-weight: bold; color: red;',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/socket",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.525",
|
|
4
4
|
"description": "Connect your app to Symbols editor",
|
|
5
5
|
"main": "server.js",
|
|
6
6
|
"author": "symbo.ls",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@domql/globals": "latest",
|
|
14
14
|
"@domql/utils": "^2.5.0",
|
|
15
|
-
"@symbo.ls/init": "^2.11.
|
|
15
|
+
"@symbo.ls/init": "^2.11.525",
|
|
16
16
|
"chalk": "^5.0.0",
|
|
17
17
|
"express": "^4.18.1",
|
|
18
18
|
"http": "^0.0.1-security",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"socket.io": "^4.5.2",
|
|
21
21
|
"socket.io-client": "^4.5.2"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "bb2c3e1bde158c44d3104c787eaa8b2b88ffa2d7"
|
|
24
24
|
}
|