mol_jsx_lib 0.0.727 → 0.0.729

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
@@ -588,9 +588,6 @@ var $;
588
588
  function $mol_dev_format_auto(obj) {
589
589
  if (obj == null)
590
590
  return $.$mol_dev_format_shade(String(obj));
591
- if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
592
- return obj[$.$mol_dev_format_head]();
593
- }
594
591
  return [
595
592
  'object',
596
593
  {
@@ -944,7 +941,12 @@ var $;
944
941
  [$mol_wire_cursor.fresh]: '🟢',
945
942
  [$mol_wire_cursor.final]: '🔵',
946
943
  }[this.cursor] ?? this.cursor.toString();
947
- return $mol_dev_format_div({}, $mol_dev_format_native(this), $mol_dev_format_shade(cursor + ' '), $mol_dev_format_auto(this.cache));
944
+ return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
945
+ ? $mol_dev_format_auto({
946
+ [$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
947
+ [$mol_dev_format_body]: () => $mol_dev_format_native(this),
948
+ })
949
+ : $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
948
950
  }
949
951
  get $() {
950
952
  return (this.host ?? this.task)['$'];