@symbo.ls/sync 2.29.49 → 2.29.51

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
@@ -61,14 +61,13 @@ const onChange = (el, s, ctx) => {
61
61
  }
62
62
  if (state) {
63
63
  const route = state.route;
64
- if (route)
65
- (utils.router || import_router.router)(route.replace("/state", "") || "/", el, {});
64
+ if (route) el.call("router", route.replace("/state", "") || "/", el, {});
66
65
  else if (!(snippets && functions && components && pages))
67
66
  s.update(state);
68
67
  }
69
68
  if (snippets || functions || components || pages) {
70
69
  const { pathname, search, hash } = ctx.window.location;
71
- (utils.router || import_router.router)(pathname + search + hash, el, {});
70
+ el.call("router", pathname + search + hash, el, {});
72
71
  }
73
72
  if (designSystem) (0, import_init.init)(designSystem);
74
73
  }
@@ -78,7 +77,6 @@ const onChange = (el, s, ctx) => {
78
77
  };
79
78
  };
80
79
  const connectToSocket = (el, s, ctx) => {
81
- console.log(ctx.key);
82
80
  return (0, import_client.connect)(ctx.key, {
83
81
  source: isLocalhost ? "localhost" : "client",
84
82
  socketUrl: isLocalhost ? "localhost:8080" : "api.symbols.app",
package/dist/esm/index.js CHANGED
@@ -34,14 +34,13 @@ const onChange = (el, s, ctx) => {
34
34
  }
35
35
  if (state) {
36
36
  const route = state.route;
37
- if (route)
38
- (utils.router || router)(route.replace("/state", "") || "/", el, {});
37
+ if (route) el.call("router", route.replace("/state", "") || "/", el, {});
39
38
  else if (!(snippets && functions && components && pages))
40
39
  s.update(state);
41
40
  }
42
41
  if (snippets || functions || components || pages) {
43
42
  const { pathname, search, hash } = ctx.window.location;
44
- (utils.router || router)(pathname + search + hash, el, {});
43
+ el.call("router", pathname + search + hash, el, {});
45
44
  }
46
45
  if (designSystem) init(designSystem);
47
46
  }
@@ -51,7 +50,6 @@ const onChange = (el, s, ctx) => {
51
50
  };
52
51
  };
53
52
  const connectToSocket = (el, s, ctx) => {
54
- console.log(ctx.key);
55
53
  return connect(ctx.key, {
56
54
  source: isLocalhost ? "localhost" : "client",
57
55
  socketUrl: isLocalhost ? "localhost:8080" : "api.symbols.app",
package/index.js CHANGED
@@ -49,15 +49,14 @@ const onChange = (el, s, ctx) => {
49
49
 
50
50
  if (state) {
51
51
  const route = state.route
52
- if (route)
53
- (utils.router || router)(route.replace('/state', '') || '/', el, {})
52
+ if (route) el.call('router', route.replace('/state', '') || '/', el, {})
54
53
  else if (!(snippets && functions && components && pages))
55
54
  s.update(state)
56
55
  }
57
56
 
58
57
  if (snippets || functions || components || pages) {
59
58
  const { pathname, search, hash } = ctx.window.location
60
- ;(utils.router || router)(pathname + search + hash, el, {})
59
+ el.call('router', pathname + search + hash, el, {})
61
60
  }
62
61
 
63
62
  if (designSystem) init(designSystem)
@@ -70,7 +69,6 @@ const onChange = (el, s, ctx) => {
70
69
  }
71
70
 
72
71
  export const connectToSocket = (el, s, ctx) => {
73
- console.log(ctx.key)
74
72
  return connect(ctx.key, {
75
73
  source: isLocalhost ? 'localhost' : 'client',
76
74
  socketUrl: isLocalhost ? 'localhost:8080' : 'api.symbols.app',
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/sync",
3
- "version": "2.29.49",
3
+ "version": "2.29.51",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
- "gitHead": "ebfe2d43195e0283db9fd66131d860751c093711",
6
+ "gitHead": "afbffe9a2317d2d0929447ab49251d83296bf546",
7
7
  "files": [
8
8
  "*.js",
9
9
  "dist"
@@ -29,12 +29,12 @@
29
29
  "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@domql/router": "^2.29.49",
33
- "@domql/utils": "^2.29.49",
34
- "@symbo.ls/init": "^2.29.49",
35
- "@symbo.ls/scratch": "^2.29.49",
36
- "@symbo.ls/socket": "^2.29.49",
37
- "@symbo.ls/uikit": "^2.29.49"
32
+ "@domql/router": "^2.29.51",
33
+ "@domql/utils": "^2.29.51",
34
+ "@symbo.ls/init": "^2.29.51",
35
+ "@symbo.ls/scratch": "^2.29.51",
36
+ "@symbo.ls/socket": "^2.29.51",
37
+ "@symbo.ls/uikit": "^2.29.51"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "^7.27.1"