mol_plot_all 1.2.1428 → 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.mjs
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);
|
package/web.test.js
CHANGED
|
@@ -1875,8 +1875,6 @@ var $;
|
|
|
1875
1875
|
$mol_wire_sync(this).wait();
|
|
1876
1876
|
return this.value();
|
|
1877
1877
|
}
|
|
1878
|
-
static test() {
|
|
1879
|
-
}
|
|
1880
1878
|
}
|
|
1881
1879
|
__decorate([
|
|
1882
1880
|
$mol_wire_solo
|
|
@@ -1887,9 +1885,6 @@ var $;
|
|
|
1887
1885
|
__decorate([
|
|
1888
1886
|
$mol_wire_solo
|
|
1889
1887
|
], App, "result", null);
|
|
1890
|
-
__decorate([
|
|
1891
|
-
$mol_wire_method
|
|
1892
|
-
], App, "test", null);
|
|
1893
1888
|
$mol_assert_equal(App.result(), 1);
|
|
1894
1889
|
App.resets(null);
|
|
1895
1890
|
$mol_wire_fiber.sync();
|