@symbo.ls/sync 3.0.100 → 3.1.2

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/dist/cjs/index.js CHANGED
@@ -28,11 +28,10 @@ module.exports = __toCommonJS(index_exports);
28
28
  var import_router = require("@domql/router");
29
29
  var import_init = require("@symbo.ls/init");
30
30
  var import_client = require("@symbo.ls/socket/client");
31
- var import_globals = require("@domql/globals");
32
31
  var import_utils = require("@domql/utils");
33
32
  var import_SyncNotifications = require("./SyncNotifications");
34
33
  var import_Inspect = require("./Inspect");
35
- const isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
34
+ const isLocalhost = import_utils.window && import_utils.window.location && import_utils.window.location.host.includes("local");
36
35
  const onConnect = (element, state) => {
37
36
  return (socketId, socket) => {
38
37
  };
@@ -80,7 +79,7 @@ const connectToSocket = (el, s, ctx) => {
80
79
  return (0, import_client.connect)(ctx.key, {
81
80
  source: isLocalhost ? "localhost" : "client",
82
81
  socketUrl: isLocalhost ? "localhost:13336" : "socket.symbols.app",
83
- location: import_globals.window.location.host,
82
+ location: import_utils.window.location.host,
84
83
  onConnect: onConnect(el, s, ctx),
85
84
  onDisconnect: onDisconnect(el, s, ctx),
86
85
  onChange: onChange(el, s, ctx)
package/dist/esm/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { router } from "@domql/router";
2
2
  import { init } from "@symbo.ls/init";
3
3
  import { connect } from "@symbo.ls/socket/client";
4
- import { window } from "@domql/globals";
5
- import { overwriteShallow } from "@domql/utils";
4
+ import { window, overwriteShallow } from "@domql/utils";
6
5
  import { connectedToSymbols, Notifications } from "./SyncNotifications";
7
6
  import { Inspect } from "./Inspect";
8
7
  const isLocalhost = window && window.location && window.location.host.includes("local");
package/index.js CHANGED
@@ -3,8 +3,7 @@
3
3
  import { router } from '@domql/router'
4
4
  import { init } from '@symbo.ls/init'
5
5
  import { connect } from '@symbo.ls/socket/client'
6
- import { window } from '@domql/globals'
7
- import { overwriteShallow } from '@domql/utils'
6
+ import { window, overwriteShallow } from '@domql/utils'
8
7
  import { connectedToSymbols, Notifications } from './SyncNotifications'
9
8
  import { Inspect } from './Inspect'
10
9
  export { Inspect, Notifications }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/sync",
3
- "version": "3.0.100",
3
+ "version": "3.1.2",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
- "gitHead": "1302a0674cc4d420f304737973a7f7bece86f359",
6
+ "gitHead": "429b36616aa04c8587a26ce3c129815115e35897",
7
7
  "files": [
8
8
  "*.js",
9
9
  "dist"
@@ -29,15 +29,14 @@
29
29
  "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@domql/globals": "latest",
33
- "@domql/router": "^3.0.0",
34
- "@domql/utils": "^3.0.0",
35
- "@symbo.ls/init": "^3.0.2",
36
- "@symbo.ls/scratch": "^3.0.2",
37
- "@symbo.ls/socket": "^3.0.2",
38
- "@symbo.ls/uikit": "^3.0.100"
32
+ "@domql/router": "^3.1.2",
33
+ "@domql/utils": "^3.1.2",
34
+ "@symbo.ls/init": "^3.1.2",
35
+ "@symbo.ls/scratch": "^3.1.2",
36
+ "@symbo.ls/socket": "^3.1.2",
37
+ "@symbo.ls/uikit": "^3.1.2"
39
38
  },
40
39
  "devDependencies": {
41
- "@babel/core": "^7.12.0"
40
+ "@babel/core": "^7.26.0"
42
41
  }
43
42
  }