mol_jsx_lib 0.0.1314 → 0.0.1316

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
@@ -489,7 +489,7 @@ var $;
489
489
  emit(quant = $mol_wire_cursor.stale) {
490
490
  for (let i = this.sub_from; i < this.data.length; i += 2) {
491
491
  ;
492
- this.data[i].absorb(quant);
492
+ this.data[i].absorb(quant, this.data[i + 1]);
493
493
  }
494
494
  }
495
495
  peer_move(from_pos, to_pos) {
@@ -740,13 +740,24 @@ var $;
740
740
  pub?.complete();
741
741
  }
742
742
  }
743
- absorb(quant = $mol_wire_cursor.stale) {
743
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
744
744
  if (this.cursor === $mol_wire_cursor.final)
745
745
  return;
746
746
  if (this.cursor >= quant)
747
747
  return;
748
748
  this.cursor = quant;
749
749
  this.emit($mol_wire_cursor.doubt);
750
+ if (pos >= 0 && pos < this.sub_from - 2) {
751
+ const pub = this.data[pos];
752
+ if (pub instanceof $mol_wire_task)
753
+ return;
754
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
755
+ const pub = this.data[cursor];
756
+ if (pub instanceof $mol_wire_task) {
757
+ pub.destructor();
758
+ }
759
+ }
760
+ }
750
761
  }
751
762
  [$mol_dev_format_head]() {
752
763
  return $mol_dev_format_native(this);
package/node.test.js CHANGED
@@ -480,7 +480,7 @@ var $;
480
480
  emit(quant = $mol_wire_cursor.stale) {
481
481
  for (let i = this.sub_from; i < this.data.length; i += 2) {
482
482
  ;
483
- this.data[i].absorb(quant);
483
+ this.data[i].absorb(quant, this.data[i + 1]);
484
484
  }
485
485
  }
486
486
  peer_move(from_pos, to_pos) {
@@ -731,13 +731,24 @@ var $;
731
731
  pub?.complete();
732
732
  }
733
733
  }
734
- absorb(quant = $mol_wire_cursor.stale) {
734
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
735
735
  if (this.cursor === $mol_wire_cursor.final)
736
736
  return;
737
737
  if (this.cursor >= quant)
738
738
  return;
739
739
  this.cursor = quant;
740
740
  this.emit($mol_wire_cursor.doubt);
741
+ if (pos >= 0 && pos < this.sub_from - 2) {
742
+ const pub = this.data[pos];
743
+ if (pub instanceof $mol_wire_task)
744
+ return;
745
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
746
+ const pub = this.data[cursor];
747
+ if (pub instanceof $mol_wire_task) {
748
+ pub.destructor();
749
+ }
750
+ }
751
+ }
741
752
  }
742
753
  [$mol_dev_format_head]() {
743
754
  return $mol_dev_format_native(this);
@@ -5176,8 +5187,6 @@ var $;
5176
5187
  $mol_wire_sync(this).wait();
5177
5188
  return this.value();
5178
5189
  }
5179
- static test() {
5180
- }
5181
5190
  }
5182
5191
  __decorate([
5183
5192
  $mol_wire_solo
@@ -5188,9 +5197,6 @@ var $;
5188
5197
  __decorate([
5189
5198
  $mol_wire_solo
5190
5199
  ], App, "result", null);
5191
- __decorate([
5192
- $mol_wire_method
5193
- ], App, "test", null);
5194
5200
  $mol_assert_equal(App.result(), 1);
5195
5201
  App.resets(null);
5196
5202
  $mol_wire_fiber.sync();