mol_dump_lib 0.0.745 → 0.0.747
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
|
@@ -1807,8 +1807,6 @@ var $;
|
|
|
1807
1807
|
$mol_wire_sync(this).wait();
|
|
1808
1808
|
return this.value();
|
|
1809
1809
|
}
|
|
1810
|
-
static test() {
|
|
1811
|
-
}
|
|
1812
1810
|
}
|
|
1813
1811
|
__decorate([
|
|
1814
1812
|
$mol_wire_solo
|
|
@@ -1819,9 +1817,6 @@ var $;
|
|
|
1819
1817
|
__decorate([
|
|
1820
1818
|
$mol_wire_solo
|
|
1821
1819
|
], App, "result", null);
|
|
1822
|
-
__decorate([
|
|
1823
|
-
$mol_wire_method
|
|
1824
|
-
], App, "test", null);
|
|
1825
1820
|
$mol_assert_equal(App.result(), 1);
|
|
1826
1821
|
App.resets(null);
|
|
1827
1822
|
$mol_wire_fiber.sync();
|