@symbo.ls/socket 2.10.134 → 2.10.135

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.
Files changed (3) hide show
  1. package/client.js +1 -1
  2. package/package.json +2 -2
  3. package/server.js +2 -1
package/client.js CHANGED
@@ -9,7 +9,7 @@ const { window } = globals
9
9
 
10
10
  const ENV = process.env.NODE_ENV
11
11
 
12
- const SOCKET_BACKEND_URL = window.location &&
12
+ const SOCKET_BACKEND_URL = window && window.location &&
13
13
  window.location.host.includes('local')
14
14
  ? 'localhost:13335'
15
15
  : 'https://socket.symbols.app' ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/socket",
3
- "version": "2.10.134",
3
+ "version": "2.10.135",
4
4
  "description": "Connect your app to Symbols editor",
5
5
  "main": "server.js",
6
6
  "author": "symbo.ls",
@@ -17,5 +17,5 @@
17
17
  "socket.io": "^4.5.2",
18
18
  "socket.io-client": "^4.5.2"
19
19
  },
20
- "gitHead": "ca88f67b0c989938a8118a539f75608bcbacc26a"
20
+ "gitHead": "babcdc69829c0cff99804ea15312b8ae564729d8"
21
21
  }
package/server.js CHANGED
@@ -5,7 +5,8 @@ import express from 'express'
5
5
  import http from 'http'
6
6
  import { Server } from 'socket.io'
7
7
  import { createRequire } from 'module'
8
- import { deepMerge, overwriteDeep } from '@domql/utils'
8
+ import * as utils from '@domql/utils'
9
+ const { deepMerge, overwriteDeep } = utils
9
10
 
10
11
  const require = createRequire(import.meta.url) // construct the require method
11
12
  const DES_SYS_DEFAULT_FILE = require('@symbo.ls/init/dynamic.json') // Bring in the ability to create the 'require' method