mol_key 0.0.1282 → 0.0.1283
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.test.js +13 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1708,7 +1708,7 @@ var $;
|
|
|
1708
1708
|
emit(quant = $mol_wire_cursor.stale) {
|
|
1709
1709
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
1710
1710
|
;
|
|
1711
|
-
this.data[i].absorb(quant);
|
|
1711
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
peer_move(from_pos, to_pos) {
|
|
@@ -1959,13 +1959,24 @@ var $;
|
|
|
1959
1959
|
pub?.complete();
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
1962
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
1963
1963
|
if (this.cursor === $mol_wire_cursor.final)
|
|
1964
1964
|
return;
|
|
1965
1965
|
if (this.cursor >= quant)
|
|
1966
1966
|
return;
|
|
1967
1967
|
this.cursor = quant;
|
|
1968
1968
|
this.emit($mol_wire_cursor.doubt);
|
|
1969
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
1970
|
+
const pub = this.data[pos];
|
|
1971
|
+
if (pub instanceof $mol_wire_task)
|
|
1972
|
+
return;
|
|
1973
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
1974
|
+
const pub = this.data[cursor];
|
|
1975
|
+
if (pub instanceof $mol_wire_task) {
|
|
1976
|
+
pub.destructor();
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1969
1980
|
}
|
|
1970
1981
|
[$mol_dev_format_head]() {
|
|
1971
1982
|
return $mol_dev_format_native(this);
|