@symbo.ls/socket 2.10.253 → 2.10.259

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 (2) hide show
  1. package/package.json +2 -2
  2. package/server.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/socket",
3
- "version": "2.10.253",
3
+ "version": "2.10.259",
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": "a941c4b0f1e909f33428ac7f5dedcd90d0365c6b"
20
+ "gitHead": "c454826279438617c85a5f8d8e7b3a6938d94dea"
21
21
  }
package/server.js CHANGED
@@ -6,12 +6,13 @@ import http from 'http'
6
6
  import { Server } from 'socket.io'
7
7
  import { createRequire } from 'module'
8
8
  import * as utils from '@domql/utils'
9
- const { deepMerge, overwriteDeep } = utils
9
+ const { overwriteDeep } = utils
10
10
 
11
11
  const require = createRequire(import.meta.url) // construct the require method
12
12
  const DES_SYS_DEFAULT_FILE = require('@symbo.ls/init/dynamic.json') // Bring in the ability to create the 'require' method
13
13
 
14
14
  const app = express()
15
+ let io
15
16
 
16
17
  export const updateDynamycFile = (changes, options = {}) => {
17
18
  const { key, live } = options
@@ -32,9 +33,9 @@ export const updateDynamycFile = (changes, options = {}) => {
32
33
 
33
34
  export const sync = (desSysFile = DES_SYS_DEFAULT_FILE, options = {}) => {
34
35
  const server = http.createServer(app)
35
- const { key, live } = options
36
+ const { key } = options
36
37
 
37
- const io = new Server(server, {
38
+ io = new Server(server, {
38
39
  transports: ['websocket', 'polling', 'flashsocket'],
39
40
  cors: {
40
41
  origin: '*'