mol_crypto_lib 0.1.1551 → 0.1.1553
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
@@ -662,7 +662,7 @@ var $;
|
|
662
662
|
emit(quant = $mol_wire_cursor.stale) {
|
663
663
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
664
664
|
;
|
665
|
-
this.data[i].absorb(quant);
|
665
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
666
666
|
}
|
667
667
|
}
|
668
668
|
peer_move(from_pos, to_pos) {
|
@@ -913,13 +913,24 @@ var $;
|
|
913
913
|
pub?.complete();
|
914
914
|
}
|
915
915
|
}
|
916
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
916
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
917
917
|
if (this.cursor === $mol_wire_cursor.final)
|
918
918
|
return;
|
919
919
|
if (this.cursor >= quant)
|
920
920
|
return;
|
921
921
|
this.cursor = quant;
|
922
922
|
this.emit($mol_wire_cursor.doubt);
|
923
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
924
|
+
const pub = this.data[pos];
|
925
|
+
if (pub instanceof $mol_wire_task)
|
926
|
+
return;
|
927
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
928
|
+
const pub = this.data[cursor];
|
929
|
+
if (pub instanceof $mol_wire_task) {
|
930
|
+
pub.destructor();
|
931
|
+
}
|
932
|
+
}
|
933
|
+
}
|
923
934
|
}
|
924
935
|
[$mol_dev_format_head]() {
|
925
936
|
return $mol_dev_format_native(this);
|
package/node.test.js
CHANGED
@@ -653,7 +653,7 @@ var $;
|
|
653
653
|
emit(quant = $mol_wire_cursor.stale) {
|
654
654
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
655
655
|
;
|
656
|
-
this.data[i].absorb(quant);
|
656
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
657
657
|
}
|
658
658
|
}
|
659
659
|
peer_move(from_pos, to_pos) {
|
@@ -904,13 +904,24 @@ var $;
|
|
904
904
|
pub?.complete();
|
905
905
|
}
|
906
906
|
}
|
907
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
907
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
908
908
|
if (this.cursor === $mol_wire_cursor.final)
|
909
909
|
return;
|
910
910
|
if (this.cursor >= quant)
|
911
911
|
return;
|
912
912
|
this.cursor = quant;
|
913
913
|
this.emit($mol_wire_cursor.doubt);
|
914
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
915
|
+
const pub = this.data[pos];
|
916
|
+
if (pub instanceof $mol_wire_task)
|
917
|
+
return;
|
918
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
919
|
+
const pub = this.data[cursor];
|
920
|
+
if (pub instanceof $mol_wire_task) {
|
921
|
+
pub.destructor();
|
922
|
+
}
|
923
|
+
}
|
924
|
+
}
|
914
925
|
}
|
915
926
|
[$mol_dev_format_head]() {
|
916
927
|
return $mol_dev_format_native(this);
|