mol_dump_lib 0.0.648 → 0.0.650

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
@@ -700,7 +700,7 @@ var $;
700
700
  return $mol_promise_like(this.cache);
701
701
  }
702
702
  field() {
703
- return this.task.name + '<>';
703
+ return this.task.name + '()';
704
704
  }
705
705
  constructor(id, task, host, args) {
706
706
  super();
@@ -1791,18 +1791,18 @@ var $;
1791
1791
  (function ($) {
1792
1792
  class $mol_wire_atom extends $mol_wire_fiber {
1793
1793
  static solo(host, task) {
1794
- const field = task.name + '<>';
1794
+ const field = task.name + '()';
1795
1795
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1796
1796
  if (existen)
1797
1797
  return existen;
1798
1798
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1799
- const key = prefix + ('.' + field);
1799
+ const key = prefix + ('.' + task.name + '<>');
1800
1800
  const fiber = new $mol_wire_atom(key, task, host, []);
1801
1801
  (host ?? task)[field] = fiber;
1802
1802
  return fiber;
1803
1803
  }
1804
1804
  static plex(host, task, key) {
1805
- const field = task.name + '<>';
1805
+ const field = task.name + '()';
1806
1806
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1807
1807
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1808
1808
  const key_str = $mol_key(key);
@@ -4607,7 +4607,7 @@ var $;
4607
4607
  min = 0;
4608
4608
  top = Math.ceil(rect?.top ?? 0);
4609
4609
  while (min < (kids.length - 1)) {
4610
- const height = kids[min].minimal_height();
4610
+ const height = kids[min]?.minimal_height() ?? 0;
4611
4611
  if (top + height >= limit_top)
4612
4612
  break;
4613
4613
  top += height;
@@ -4629,21 +4629,21 @@ var $;
4629
4629
  }
4630
4630
  while (anchoring && ((top2 > limit_top) && (min2 > 0))) {
4631
4631
  --min2;
4632
- top2 -= kids[min2].minimal_height();
4632
+ top2 -= kids[min2]?.minimal_height() ?? 0;
4633
4633
  }
4634
4634
  while (bottom2 < limit_bottom && max2 < kids.length) {
4635
- bottom2 += kids[max2].minimal_height();
4635
+ bottom2 += kids[max2]?.minimal_height() ?? 0;
4636
4636
  ++max2;
4637
4637
  }
4638
4638
  return [min2, max2];
4639
4639
  }
4640
4640
  gap_before() {
4641
4641
  const skipped = this.sub().slice(0, this.view_window()[0]);
4642
- return Math.max(0, skipped.reduce((sum, view) => sum + view.minimal_height(), 0));
4642
+ return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
4643
4643
  }
4644
4644
  gap_after() {
4645
4645
  const skipped = this.sub().slice(this.view_window()[1]);
4646
- return Math.max(0, skipped.reduce((sum, view) => sum + view.minimal_height(), 0));
4646
+ return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
4647
4647
  }
4648
4648
  sub_visible() {
4649
4649
  return [
@@ -4655,7 +4655,7 @@ var $;
4655
4655
  minimal_height() {
4656
4656
  return this.sub().reduce((sum, view) => {
4657
4657
  try {
4658
- return sum + view.minimal_height();
4658
+ return sum + (view?.minimal_height() ?? 0);
4659
4659
  }
4660
4660
  catch (error) {
4661
4661
  $mol_fail_log(error);