mol_plot_all 1.2.1429 → 1.2.1430
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 -7
- package/node.test.js.map +1 -1
- package/package.json +12 -12
- package/web.d.ts +2 -2
- package/web.deps.json +1 -1
- package/web.js +13 -2
- package/web.js.map +1 -1
- package/web.mjs +13 -2
- package/web.test.js +0 -5
- package/web.test.js.map +1 -1
package/web.js
CHANGED
|
@@ -312,7 +312,7 @@ var $;
|
|
|
312
312
|
emit(quant = $mol_wire_cursor.stale) {
|
|
313
313
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
314
314
|
;
|
|
315
|
-
this.data[i].absorb(quant);
|
|
315
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
peer_move(from_pos, to_pos) {
|
|
@@ -563,13 +563,24 @@ var $;
|
|
|
563
563
|
pub?.complete();
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
566
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
567
567
|
if (this.cursor === $mol_wire_cursor.final)
|
|
568
568
|
return;
|
|
569
569
|
if (this.cursor >= quant)
|
|
570
570
|
return;
|
|
571
571
|
this.cursor = quant;
|
|
572
572
|
this.emit($mol_wire_cursor.doubt);
|
|
573
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
574
|
+
const pub = this.data[pos];
|
|
575
|
+
if (pub instanceof $mol_wire_task)
|
|
576
|
+
return;
|
|
577
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
578
|
+
const pub = this.data[cursor];
|
|
579
|
+
if (pub instanceof $mol_wire_task) {
|
|
580
|
+
pub.destructor();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
573
584
|
}
|
|
574
585
|
[$mol_dev_format_head]() {
|
|
575
586
|
return $mol_dev_format_native(this);
|