mol_wire_lib 1.0.865 → 1.0.867

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/node.js CHANGED
@@ -562,7 +562,7 @@ var $;
562
562
  destructor() { }
563
563
  static destructor() { }
564
564
  toString() {
565
- return this[Symbol.toStringTag] || this.constructor.name + '()';
565
+ return this[Symbol.toStringTag] || this.constructor.name + '<>';
566
566
  }
567
567
  static toJSON() {
568
568
  return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
@@ -680,7 +680,7 @@ var $;
680
680
  return $mol_promise_like(this.cache);
681
681
  }
682
682
  field() {
683
- return this.task.name + '()';
683
+ return this.task.name + '<>';
684
684
  }
685
685
  constructor(id, task, host, args) {
686
686
  super();
@@ -1514,7 +1514,7 @@ var $;
1514
1514
  break reuse;
1515
1515
  return existen;
1516
1516
  }
1517
- const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1517
+ const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
1518
1518
  if (existen?.temp) {
1519
1519
  $$.$mol_log3_warn({
1520
1520
  place: '$mol_wire_task',
@@ -1688,7 +1688,7 @@ var $;
1688
1688
  (function ($) {
1689
1689
  class $mol_wire_atom extends $mol_wire_fiber {
1690
1690
  static solo(host, task) {
1691
- const field = task.name + '()';
1691
+ const field = task.name + '<>';
1692
1692
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1693
1693
  if (existen)
1694
1694
  return existen;
@@ -1699,7 +1699,7 @@ var $;
1699
1699
  return fiber;
1700
1700
  }
1701
1701
  static plex(host, task, key) {
1702
- const field = task.name + '()';
1702
+ const field = task.name + '<>';
1703
1703
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1704
1704
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1705
1705
  const key_str = $mol_key(key);
@@ -1711,7 +1711,7 @@ var $;
1711
1711
  else {
1712
1712
  dict = (host ?? task)[field] = new Map();
1713
1713
  }
1714
- const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1714
+ const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
1715
1715
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1716
1716
  dict.set(key_str, fiber);
1717
1717
  return fiber;