@omegup/msync 0.1.16 → 0.1.17

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
@@ -1769,9 +1769,6 @@ const executes$2 = (view, input, streamName, skip = false, after, needs = {}) =>
1769
1769
  })).stages;
1770
1770
  const r = await aggregate(streamName, c => c({ coll: collection, input: cloneIntoNew }));
1771
1771
  await snapshotCollection.deleteMany({ updated: true, after: null, before: null });
1772
- const start = Date.now();
1773
- const count = await snapshotCollection.countDocuments({ updated: true });
1774
- log(streamName, `documents to update ${snapshotCollection.collectionName}`, count, 'took', Date.now() - start);
1775
1772
  return next(step4({ result: r, ts: lastTS?.ts }), 'run the aggregation');
1776
1773
  };
1777
1774
  const makeStream = (startAt) => makeWatchStream(db, view, startAt, streamName);
@@ -1951,10 +1948,6 @@ const executes$1 = (view, input, streamName, needs) => {
1951
1948
  }));
1952
1949
  const stream = makeStream(aggResult.cursor.atClusterTime);
1953
1950
  const nextRes = stream.tryNext();
1954
- const intoColl = raw.at(-1).$merge.into.coll;
1955
- db.collection(intoColl)
1956
- .countDocuments({ touchedAt: { $gte: aggResult.cursor.atClusterTime } })
1957
- .then(count => log(`documents updated ${intoColl}`, count));
1958
1951
  return next(step7({ aggResult, ts: aggResult.cursor.atClusterTime, stream, nextRes }), 'update __last', () => stream.close());
1959
1952
  };
1960
1953
  const step7 = (l) => async () => {
package/index.js CHANGED
@@ -1771,9 +1771,6 @@ const executes$2 = (view, input, streamName, skip = false, after, needs = {}) =>
1771
1771
  })).stages;
1772
1772
  const r = await aggregate(streamName, c => c({ coll: collection, input: cloneIntoNew }));
1773
1773
  await snapshotCollection.deleteMany({ updated: true, after: null, before: null });
1774
- const start = Date.now();
1775
- const count = await snapshotCollection.countDocuments({ updated: true });
1776
- log(streamName, `documents to update ${snapshotCollection.collectionName}`, count, 'took', Date.now() - start);
1777
1774
  return next(step4({ result: r, ts: lastTS?.ts }), 'run the aggregation');
1778
1775
  };
1779
1776
  const makeStream = (startAt) => makeWatchStream(db, view, startAt, streamName);
@@ -1953,10 +1950,6 @@ const executes$1 = (view, input, streamName, needs) => {
1953
1950
  }));
1954
1951
  const stream = makeStream(aggResult.cursor.atClusterTime);
1955
1952
  const nextRes = stream.tryNext();
1956
- const intoColl = raw.at(-1).$merge.into.coll;
1957
- db.collection(intoColl)
1958
- .countDocuments({ touchedAt: { $gte: aggResult.cursor.atClusterTime } })
1959
- .then(count => log(`documents updated ${intoColl}`, count));
1960
1953
  return next(step7({ aggResult, ts: aggResult.cursor.atClusterTime, stream, nextRes }), 'update __last', () => stream.close());
1961
1954
  };
1962
1955
  const step7 = (l) => async () => {
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.1.16",
6
+ "version": "0.1.17",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",