mol_plot_all 1.2.863 → 1.2.864

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.mjs CHANGED
@@ -414,9 +414,6 @@ var $;
414
414
  function $mol_dev_format_auto(obj) {
415
415
  if (obj == null)
416
416
  return $.$mol_dev_format_shade(String(obj));
417
- if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
418
- return obj[$.$mol_dev_format_head]();
419
- }
420
417
  return [
421
418
  'object',
422
419
  {
@@ -750,7 +747,12 @@ var $;
750
747
  [$mol_wire_cursor.fresh]: '🟢',
751
748
  [$mol_wire_cursor.final]: '🔵',
752
749
  }[this.cursor] ?? this.cursor.toString();
753
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
750
+ return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
751
+ ? $mol_dev_format_auto({
752
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
753
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
754
+ })
755
+ : $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
754
756
  }
755
757
  get $() {
756
758
  return (this.host ?? this.task)['$'];
@@ -1731,17 +1733,18 @@ var $;
1731
1733
  const field = task.name + '()';
1732
1734
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1733
1735
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1734
- const id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
1736
+ const key_str = $mol_key(key);
1735
1737
  if (dict) {
1736
- const existen = dict.get(id);
1738
+ const existen = dict.get(key_str);
1737
1739
  if (existen)
1738
1740
  return existen;
1739
1741
  }
1740
1742
  else {
1741
1743
  dict = (host ?? task)[field] = new Map();
1742
1744
  }
1745
+ const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1743
1746
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1744
- dict.set(id, fiber);
1747
+ dict.set(key_str, fiber);
1745
1748
  return fiber;
1746
1749
  }
1747
1750
  static watching = new Set();
@@ -1796,7 +1799,7 @@ var $;
1796
1799
  }
1797
1800
  else {
1798
1801
  ;
1799
- (this.host ?? this.task)[this.field()].delete(this[Symbol.toStringTag]);
1802
+ (this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
1800
1803
  }
1801
1804
  }
1802
1805
  put(next) {
package/node.test.js CHANGED
@@ -406,9 +406,6 @@ var $;
406
406
  function $mol_dev_format_auto(obj) {
407
407
  if (obj == null)
408
408
  return $.$mol_dev_format_shade(String(obj));
409
- if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
410
- return obj[$.$mol_dev_format_head]();
411
- }
412
409
  return [
413
410
  'object',
414
411
  {
@@ -742,7 +739,12 @@ var $;
742
739
  [$mol_wire_cursor.fresh]: '🟢',
743
740
  [$mol_wire_cursor.final]: '🔵',
744
741
  }[this.cursor] ?? this.cursor.toString();
745
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
742
+ return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
743
+ ? $mol_dev_format_auto({
744
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
745
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
746
+ })
747
+ : $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
746
748
  }
747
749
  get $() {
748
750
  return (this.host ?? this.task)['$'];
@@ -1723,17 +1725,18 @@ var $;
1723
1725
  const field = task.name + '()';
1724
1726
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1725
1727
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1726
- const id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
1728
+ const key_str = $mol_key(key);
1727
1729
  if (dict) {
1728
- const existen = dict.get(id);
1730
+ const existen = dict.get(key_str);
1729
1731
  if (existen)
1730
1732
  return existen;
1731
1733
  }
1732
1734
  else {
1733
1735
  dict = (host ?? task)[field] = new Map();
1734
1736
  }
1737
+ const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1735
1738
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1736
- dict.set(id, fiber);
1739
+ dict.set(key_str, fiber);
1737
1740
  return fiber;
1738
1741
  }
1739
1742
  static watching = new Set();
@@ -1788,7 +1791,7 @@ var $;
1788
1791
  }
1789
1792
  else {
1790
1793
  ;
1791
- (this.host ?? this.task)[this.field()].delete(this[Symbol.toStringTag]);
1794
+ (this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
1792
1795
  }
1793
1796
  }
1794
1797
  put(next) {