@omegup/msync 0.0.88 → 0.0.89

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 CHANGED
@@ -1871,6 +1871,10 @@ const executes$1 = (view, input, streamName) => {
1871
1871
  info: { job: undefined, debug: 'wait for change' },
1872
1872
  cont: withStop(() => l.stream
1873
1873
  .tryNext()
1874
+ .catch((err) => {
1875
+ log('restarting', err);
1876
+ return { ts: null };
1877
+ })
1874
1878
  .then(doc => (doc ? next(step4({ _id: streamName, ts: l.ts }), 'restart') : step8(l)))),
1875
1879
  };
1876
1880
  };
package/index.js CHANGED
@@ -1873,6 +1873,10 @@ const executes$1 = (view, input, streamName) => {
1873
1873
  info: { job: undefined, debug: 'wait for change' },
1874
1874
  cont: withStop(() => l.stream
1875
1875
  .tryNext()
1876
+ .catch((err) => {
1877
+ log('restarting', err);
1878
+ return { ts: null };
1879
+ })
1876
1880
  .then(doc => (doc ? next(step4({ _id: streamName, ts: l.ts }), 'restart') : step8(l)))),
1877
1881
  };
1878
1882
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.esm.js",
4
4
  "typings": "index.d.ts",
5
5
  "name": "@omegup/msync",
6
- "version": "0.0.88",
6
+ "version": "0.0.89",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",