mol_dump_lib 0.0.745 → 0.0.747

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
@@ -312,7 +312,7 @@ var $;
312
312
  emit(quant = $mol_wire_cursor.stale) {
313
313
  for (let i = this.sub_from; i < this.data.length; i += 2) {
314
314
  ;
315
- this.data[i].absorb(quant);
315
+ this.data[i].absorb(quant, this.data[i + 1]);
316
316
  }
317
317
  }
318
318
  peer_move(from_pos, to_pos) {
@@ -563,13 +563,24 @@ var $;
563
563
  pub?.complete();
564
564
  }
565
565
  }
566
- absorb(quant = $mol_wire_cursor.stale) {
566
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
567
567
  if (this.cursor === $mol_wire_cursor.final)
568
568
  return;
569
569
  if (this.cursor >= quant)
570
570
  return;
571
571
  this.cursor = quant;
572
572
  this.emit($mol_wire_cursor.doubt);
573
+ if (pos >= 0 && pos < this.sub_from - 2) {
574
+ const pub = this.data[pos];
575
+ if (pub instanceof $mol_wire_task)
576
+ return;
577
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
578
+ const pub = this.data[cursor];
579
+ if (pub instanceof $mol_wire_task) {
580
+ pub.destructor();
581
+ }
582
+ }
583
+ }
573
584
  }
574
585
  [$mol_dev_format_head]() {
575
586
  return $mol_dev_format_native(this);
package/web.test.js CHANGED
@@ -1807,8 +1807,6 @@ var $;
1807
1807
  $mol_wire_sync(this).wait();
1808
1808
  return this.value();
1809
1809
  }
1810
- static test() {
1811
- }
1812
1810
  }
1813
1811
  __decorate([
1814
1812
  $mol_wire_solo
@@ -1819,9 +1817,6 @@ var $;
1819
1817
  __decorate([
1820
1818
  $mol_wire_solo
1821
1819
  ], App, "result", null);
1822
- __decorate([
1823
- $mol_wire_method
1824
- ], App, "test", null);
1825
1820
  $mol_assert_equal(App.result(), 1);
1826
1821
  App.resets(null);
1827
1822
  $mol_wire_fiber.sync();