mol_plot_all 1.2.1429 → 1.2.1431
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/node.mjs
CHANGED
|
@@ -327,7 +327,7 @@ var $;
|
|
|
327
327
|
emit(quant = $mol_wire_cursor.stale) {
|
|
328
328
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
329
329
|
;
|
|
330
|
-
this.data[i].absorb(quant);
|
|
330
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
peer_move(from_pos, to_pos) {
|
|
@@ -578,13 +578,24 @@ var $;
|
|
|
578
578
|
pub?.complete();
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
581
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
582
582
|
if (this.cursor === $mol_wire_cursor.final)
|
|
583
583
|
return;
|
|
584
584
|
if (this.cursor >= quant)
|
|
585
585
|
return;
|
|
586
586
|
this.cursor = quant;
|
|
587
587
|
this.emit($mol_wire_cursor.doubt);
|
|
588
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
589
|
+
const pub = this.data[pos];
|
|
590
|
+
if (pub instanceof $mol_wire_task)
|
|
591
|
+
return;
|
|
592
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
593
|
+
const pub = this.data[cursor];
|
|
594
|
+
if (pub instanceof $mol_wire_task) {
|
|
595
|
+
pub.destructor();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
588
599
|
}
|
|
589
600
|
[$mol_dev_format_head]() {
|
|
590
601
|
return $mol_dev_format_native(this);
|
package/node.test.js
CHANGED
|
@@ -318,7 +318,7 @@ var $;
|
|
|
318
318
|
emit(quant = $mol_wire_cursor.stale) {
|
|
319
319
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
320
320
|
;
|
|
321
|
-
this.data[i].absorb(quant);
|
|
321
|
+
this.data[i].absorb(quant, this.data[i + 1]);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
peer_move(from_pos, to_pos) {
|
|
@@ -569,13 +569,24 @@ var $;
|
|
|
569
569
|
pub?.complete();
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
absorb(quant = $mol_wire_cursor.stale) {
|
|
572
|
+
absorb(quant = $mol_wire_cursor.stale, pos = -1) {
|
|
573
573
|
if (this.cursor === $mol_wire_cursor.final)
|
|
574
574
|
return;
|
|
575
575
|
if (this.cursor >= quant)
|
|
576
576
|
return;
|
|
577
577
|
this.cursor = quant;
|
|
578
578
|
this.emit($mol_wire_cursor.doubt);
|
|
579
|
+
if (pos >= 0 && pos < this.sub_from - 2) {
|
|
580
|
+
const pub = this.data[pos];
|
|
581
|
+
if (pub instanceof $mol_wire_task)
|
|
582
|
+
return;
|
|
583
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
584
|
+
const pub = this.data[cursor];
|
|
585
|
+
if (pub instanceof $mol_wire_task) {
|
|
586
|
+
pub.destructor();
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
579
590
|
}
|
|
580
591
|
[$mol_dev_format_head]() {
|
|
581
592
|
return $mol_dev_format_native(this);
|
|
@@ -8519,8 +8530,6 @@ var $;
|
|
|
8519
8530
|
$mol_wire_sync(this).wait();
|
|
8520
8531
|
return this.value();
|
|
8521
8532
|
}
|
|
8522
|
-
static test() {
|
|
8523
|
-
}
|
|
8524
8533
|
}
|
|
8525
8534
|
__decorate([
|
|
8526
8535
|
$mol_wire_solo
|
|
@@ -8531,9 +8540,6 @@ var $;
|
|
|
8531
8540
|
__decorate([
|
|
8532
8541
|
$mol_wire_solo
|
|
8533
8542
|
], App, "result", null);
|
|
8534
|
-
__decorate([
|
|
8535
|
-
$mol_wire_method
|
|
8536
|
-
], App, "test", null);
|
|
8537
8543
|
$mol_assert_equal(App.result(), 1);
|
|
8538
8544
|
App.resets(null);
|
|
8539
8545
|
$mol_wire_fiber.sync();
|