hyoo_sync_client 0.0.46 → 0.0.48
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 -0
- package/node.deps.json +1 -1
- package/node.js +11 -0
- package/node.js.map +1 -1
- package/node.mjs +11 -0
- package/node.mjs.map +1 -1
- package/node.test.js +11 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -0
- package/web.deps.json +1 -1
- package/web.js +11 -0
- package/web.js.map +1 -1
- package/web.mjs +11 -0
- package/web.mjs.map +1 -1
package/node.test.js
CHANGED
|
@@ -1495,6 +1495,9 @@ var $;
|
|
|
1495
1495
|
}
|
|
1496
1496
|
fresh() { }
|
|
1497
1497
|
complete() { }
|
|
1498
|
+
get incompleted() {
|
|
1499
|
+
return false;
|
|
1500
|
+
}
|
|
1498
1501
|
emit(quant = $mol_wire_cursor.stale) {
|
|
1499
1502
|
for (let i = this.sub_from; i < this.data.length; i += 2) {
|
|
1500
1503
|
;
|
|
@@ -1646,6 +1649,11 @@ var $;
|
|
|
1646
1649
|
complete() { }
|
|
1647
1650
|
complete_pubs() {
|
|
1648
1651
|
const limit = this.cursor < 0 ? this.sub_from : this.cursor;
|
|
1652
|
+
for (let cursor = this.pub_from; cursor < limit; cursor += 2) {
|
|
1653
|
+
const pub = this.data[cursor];
|
|
1654
|
+
if (pub?.incompleted)
|
|
1655
|
+
return;
|
|
1656
|
+
}
|
|
1649
1657
|
for (let cursor = this.pub_from; cursor < limit; cursor += 2) {
|
|
1650
1658
|
const pub = this.data[cursor];
|
|
1651
1659
|
pub?.complete();
|
|
@@ -1771,6 +1779,9 @@ var $;
|
|
|
1771
1779
|
return;
|
|
1772
1780
|
return this.cache;
|
|
1773
1781
|
}
|
|
1782
|
+
get incompleted() {
|
|
1783
|
+
return $mol_promise_like(this.cache);
|
|
1784
|
+
}
|
|
1774
1785
|
field() {
|
|
1775
1786
|
return this.task.name + '()';
|
|
1776
1787
|
}
|