mol_wire_lib 1.0.860 → 1.0.862

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
@@ -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
  {
@@ -721,7 +718,12 @@ var $;
721
718
  [$mol_wire_cursor.fresh]: '🟢',
722
719
  [$mol_wire_cursor.final]: '🔵',
723
720
  }[this.cursor] ?? this.cursor.toString();
724
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
721
+ return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
722
+ ? $mol_dev_format_auto({
723
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
724
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
725
+ })
726
+ : $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
725
727
  }
726
728
  get $() {
727
729
  return (this.host ?? this.task)['$'];