mol_compare_deep 0.0.1298 → 0.0.1300
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
|
@@ -1785,7 +1785,7 @@ var $;
|
|
|
1785
1785
|
emit(quant = $mol_wire_cursor.stale) {
|
|
1786
1786
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
1787
1787
|
;
|
|
1788
|
-
this.data[i].absorb(quant);
|
|
1788
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
peer_move(from_pos, to_pos) {
|
|
@@ -2036,13 +2036,24 @@ var $;
|
|
|
2036
2036
|
pub?.complete();
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
2039
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
2040
2040
|
if (this.cursor === $mol_wire_cursor.final)
|
|
2041
2041
|
return;
|
|
2042
2042
|
if (this.cursor >= quant)
|
|
2043
2043
|
return;
|
|
2044
2044
|
this.cursor = quant;
|
|
2045
2045
|
this.emit($mol_wire_cursor.doubt);
|
|
2046
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
2047
|
+
const pub = this.data[pos];
|
|
2048
|
+
if (pub instanceof $mol_wire_task)
|
|
2049
|
+
return;
|
|
2050
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
2051
|
+
const pub = this.data[cursor];
|
|
2052
|
+
if (pub instanceof $mol_wire_task) {
|
|
2053
|
+
pub.destructor();
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2046
2057
|
}
|
|
2047
2058
|
[$mol_dev_format_head]() {
|
|
2048
2059
|
return $mol_dev_format_native(this);
|