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.mjs CHANGED
@@ -1503,6 +1503,9 @@ var $;
1503
1503
  }
1504
1504
  fresh() { }
1505
1505
  complete() { }
1506
+ get incompleted() {
1507
+ return false;
1508
+ }
1506
1509
  emit(quant = $mol_wire_cursor.stale) {
1507
1510
  for (let i = this.sub_from; i < this.data.length; i += 2) {
1508
1511
  ;
@@ -1654,6 +1657,11 @@ var $;
1654
1657
  complete() { }
1655
1658
  complete_pubs() {
1656
1659
  const limit = this.cursor < 0 ? this.sub_from : this.cursor;
1660
+ for (let cursor = this.pub_from; cursor < limit; cursor += 2) {
1661
+ const pub = this.data[cursor];
1662
+ if (pub?.incompleted)
1663
+ return;
1664
+ }
1657
1665
  for (let cursor = this.pub_from; cursor < limit; cursor += 2) {
1658
1666
  const pub = this.data[cursor];
1659
1667
  pub?.complete();
@@ -1779,6 +1787,9 @@ var $;
1779
1787
  return;
1780
1788
  return this.cache;
1781
1789
  }
1790
+ get incompleted() {
1791
+ return $mol_promise_like(this.cache);
1792
+ }
1782
1793
  field() {
1783
1794
  return this.task.name + '()';
1784
1795
  }