hyoo_sync_client 0.0.45 → 0.0.47

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.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
  }