@omegup/msync 0.0.38 → 0.0.39
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/index.esm.js +4 -1
- package/index.js +4 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1624,7 +1624,10 @@ const executes$1 = (view, input, streamName) => {
|
|
|
1624
1624
|
return step8(l);
|
|
1625
1625
|
};
|
|
1626
1626
|
const step8 = (l) => {
|
|
1627
|
-
return nextData(l.aggResult.cursor.firstBatch)(() => l.stream
|
|
1627
|
+
return nextData(l.aggResult.cursor.firstBatch)(() => l.stream
|
|
1628
|
+
.tryNext()
|
|
1629
|
+
.catch(_ => 1)
|
|
1630
|
+
.then(doc => (doc ? next(step2, 'restart') : step8(l))), 'wait for change');
|
|
1628
1631
|
};
|
|
1629
1632
|
return stop;
|
|
1630
1633
|
};
|
package/index.js
CHANGED
|
@@ -1626,7 +1626,10 @@ const executes$1 = (view, input, streamName) => {
|
|
|
1626
1626
|
return step8(l);
|
|
1627
1627
|
};
|
|
1628
1628
|
const step8 = (l) => {
|
|
1629
|
-
return nextData(l.aggResult.cursor.firstBatch)(() => l.stream
|
|
1629
|
+
return nextData(l.aggResult.cursor.firstBatch)(() => l.stream
|
|
1630
|
+
.tryNext()
|
|
1631
|
+
.catch(_ => 1)
|
|
1632
|
+
.then(doc => (doc ? next(step2, 'restart') : step8(l))), 'wait for change');
|
|
1630
1633
|
};
|
|
1631
1634
|
return stop;
|
|
1632
1635
|
};
|