mol_wire_lib 1.0.859 → 1.0.861

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
@@ -182,9 +182,6 @@ var $;
182
182
  function $mol_dev_format_auto(obj) {
183
183
  if (obj == null)
184
184
  return $.$mol_dev_format_shade(String(obj));
185
- if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
186
- return obj[$.$mol_dev_format_head]();
187
- }
188
185
  return [
189
186
  'object',
190
187
  {
@@ -715,7 +712,10 @@ var $;
715
712
  [$mol_wire_cursor.fresh]: '🟢',
716
713
  [$mol_wire_cursor.final]: '🔵',
717
714
  }[this.cursor] ?? this.cursor.toString();
718
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
715
+ return $mol_dev_format_div({}, $mol_dev_format_auto({
716
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
717
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
718
+ }), $mol_dev_format_auto(this.cache));
719
719
  }
720
720
  get $() {
721
721
  return (this.host ?? this.task)['$'];
@@ -1762,7 +1762,7 @@ var $;
1762
1762
  }
1763
1763
  else {
1764
1764
  ;
1765
- (this.host ?? this.task)[this.field()].delete(this[Symbol.toStringTag]);
1765
+ (this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
1766
1766
  }
1767
1767
  }
1768
1768
  put(next) {
package/node.test.js CHANGED
@@ -174,9 +174,6 @@ var $;
174
174
  function $mol_dev_format_auto(obj) {
175
175
  if (obj == null)
176
176
  return $.$mol_dev_format_shade(String(obj));
177
- if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
178
- return obj[$.$mol_dev_format_head]();
179
- }
180
177
  return [
181
178
  'object',
182
179
  {
@@ -707,7 +704,10 @@ var $;
707
704
  [$mol_wire_cursor.fresh]: '🟢',
708
705
  [$mol_wire_cursor.final]: '🔵',
709
706
  }[this.cursor] ?? this.cursor.toString();
710
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
707
+ return $mol_dev_format_div({}, $mol_dev_format_auto({
708
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
709
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
710
+ }), $mol_dev_format_auto(this.cache));
711
711
  }
712
712
  get $() {
713
713
  return (this.host ?? this.task)['$'];
@@ -1754,7 +1754,7 @@ var $;
1754
1754
  }
1755
1755
  else {
1756
1756
  ;
1757
- (this.host ?? this.task)[this.field()].delete(this[Symbol.toStringTag]);
1757
+ (this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
1758
1758
  }
1759
1759
  }
1760
1760
  put(next) {