hyoo_sync_client 0.0.300 → 0.0.301

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/web.mjs CHANGED
@@ -229,7 +229,7 @@ var $;
229
229
  destructor() { }
230
230
  static destructor() { }
231
231
  toString() {
232
- return this[Symbol.toStringTag] || this.constructor.name + '()';
232
+ return this[Symbol.toStringTag] || this.constructor.name + '<>';
233
233
  }
234
234
  static toJSON() {
235
235
  return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
@@ -1344,7 +1344,7 @@ var $;
1344
1344
  return $mol_promise_like(this.cache);
1345
1345
  }
1346
1346
  field() {
1347
- return this.task.name + '()';
1347
+ return this.task.name + '<>';
1348
1348
  }
1349
1349
  constructor(id, task, host, args) {
1350
1350
  super();
@@ -1783,7 +1783,7 @@ var $;
1783
1783
  break reuse;
1784
1784
  return existen;
1785
1785
  }
1786
- const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1786
+ const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
1787
1787
  if (existen?.temp) {
1788
1788
  $$.$mol_log3_warn({
1789
1789
  place: '$mol_wire_task',
@@ -1895,7 +1895,7 @@ var $;
1895
1895
  (function ($) {
1896
1896
  class $mol_wire_atom extends $mol_wire_fiber {
1897
1897
  static solo(host, task) {
1898
- const field = task.name + '()';
1898
+ const field = task.name + '<>';
1899
1899
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1900
1900
  if (existen)
1901
1901
  return existen;
@@ -1906,7 +1906,7 @@ var $;
1906
1906
  return fiber;
1907
1907
  }
1908
1908
  static plex(host, task, key) {
1909
- const field = task.name + '()';
1909
+ const field = task.name + '<>';
1910
1910
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1911
1911
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1912
1912
  const key_str = $mol_key(key);
@@ -1918,7 +1918,7 @@ var $;
1918
1918
  else {
1919
1919
  dict = (host ?? task)[field] = new Map();
1920
1920
  }
1921
- const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1921
+ const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
1922
1922
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1923
1923
  dict.set(key_str, fiber);
1924
1924
  return fiber;
package/web.test.js CHANGED
@@ -655,6 +655,10 @@ var $;
655
655
  const print = (val) => {
656
656
  if (!val)
657
657
  return val;
658
+ if (typeof val === 'bigint')
659
+ return String(val) + 'n';
660
+ if (typeof val === 'symbol')
661
+ return `Symbol(${val.description})`;
658
662
  if (typeof val !== 'object')
659
663
  return val;
660
664
  if ('outerHTML' in val)
@@ -1831,7 +1835,7 @@ var $;
1831
1835
  __decorate([
1832
1836
  $mol_wire_solo
1833
1837
  ], App, "title", null);
1834
- $mol_assert_equal(`${App.title()}`, 'App.title()');
1838
+ $mol_assert_equal(`${App.title()}`, 'App.title<>');
1835
1839
  },
1836
1840
  'Unsubscribe from temp pubs on complete'($) {
1837
1841
  class Random extends $mol_object2 {
@@ -1950,8 +1954,8 @@ var $;
1950
1954
  __decorate([
1951
1955
  $mol_wire_plex
1952
1956
  ], App, "relation", null);
1953
- $mol_assert_equal(`${App.like(123)}`, 'App.like(123)');
1954
- $mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation([123,[456]])');
1957
+ $mol_assert_equal(`${App.like(123)}`, 'App.like<123>');
1958
+ $mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation<[123,[456]]>');
1955
1959
  },
1956
1960
  'Deep deps'($) {
1957
1961
  class Fib extends $mol_object2 {