mol_db 0.0.1465 → 0.0.1467
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.d.ts +2 -2
- package/node.deps.json +1 -1
- package/node.js +13 -2
- package/node.js.map +1 -1
- package/node.mjs +13 -2
- package/node.test.js +13 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
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);
|