mol_dump_lib 0.0.746 → 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/node.mjs CHANGED
@@ -327,7 +327,7 @@ var $;
327
327
  emit(quant = $mol_wire_cursor.stale) {
328
328
  for (let i = this.sub_from; i < this.data.length; i += 2) {
329
329
  ;
330
- this.data[i].absorb(quant);
330
+ this.data[i].absorb(quant, this.data[i + 1]);
331
331
  }
332
332
  }
333
333
  peer_move(from_pos, to_pos) {
@@ -578,13 +578,24 @@ var $;
578
578
  pub?.complete();
579
579
  }
580
580
  }
581
- absorb(quant = $mol_wire_cursor.stale) {
581
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
582
582
  if (this.cursor === $mol_wire_cursor.final)
583
583
  return;
584
584
  if (this.cursor >= quant)
585
585
  return;
586
586
  this.cursor = quant;
587
587
  this.emit($mol_wire_cursor.doubt);
588
+ if (pos >= 0 && pos < this.sub_from - 2) {
589
+ const pub = this.data[pos];
590
+ if (pub instanceof $mol_wire_task)
591
+ return;
592
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
593
+ const pub = this.data[cursor];
594
+ if (pub instanceof $mol_wire_task) {
595
+ pub.destructor();
596
+ }
597
+ }
598
+ }
588
599
  }
589
600
  [$mol_dev_format_head]() {
590
601
  return $mol_dev_format_native(this);
package/node.test.js CHANGED
@@ -318,7 +318,7 @@ var $;
318
318
  emit(quant = $mol_wire_cursor.stale) {
319
319
  for (let i = this.sub_from; i < this.data.length; i += 2) {
320
320
  ;
321
- this.data[i].absorb(quant);
321
+ this.data[i].absorb(quant, this.data[i + 1]);
322
322
  }
323
323
  }
324
324
  peer_move(from_pos, to_pos) {
@@ -569,13 +569,24 @@ var $;
569
569
  pub?.complete();
570
570
  }
571
571
  }
572
- absorb(quant = $mol_wire_cursor.stale) {
572
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
573
573
  if (this.cursor === $mol_wire_cursor.final)
574
574
  return;
575
575
  if (this.cursor >= quant)
576
576
  return;
577
577
  this.cursor = quant;
578
578
  this.emit($mol_wire_cursor.doubt);
579
+ if (pos >= 0 && pos < this.sub_from - 2) {
580
+ const pub = this.data[pos];
581
+ if (pub instanceof $mol_wire_task)
582
+ return;
583
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
584
+ const pub = this.data[cursor];
585
+ if (pub instanceof $mol_wire_task) {
586
+ pub.destructor();
587
+ }
588
+ }
589
+ }
579
590
  }
580
591
  [$mol_dev_format_head]() {
581
592
  return $mol_dev_format_native(this);
@@ -9245,8 +9256,6 @@ var $;
9245
9256
  $mol_wire_sync(this).wait();
9246
9257
  return this.value();
9247
9258
  }
9248
- static test() {
9249
- }
9250
9259
  }
9251
9260
  __decorate([
9252
9261
  $mol_wire_solo
@@ -9257,9 +9266,6 @@ var $;
9257
9266
  __decorate([
9258
9267
  $mol_wire_solo
9259
9268
  ], App, "result", null);
9260
- __decorate([
9261
- $mol_wire_method
9262
- ], App, "test", null);
9263
9269
  $mol_assert_equal(App.result(), 1);
9264
9270
  App.resets(null);
9265
9271
  $mol_wire_fiber.sync();