@omegup/msync 0.0.94 → 0.0.95

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
@@ -1559,6 +1559,11 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1559
1559
  ],
1560
1560
  },
1561
1561
  });
1562
+ pipeline.push({
1563
+ $project: {
1564
+ _id: 1,
1565
+ },
1566
+ });
1562
1567
  const stream = db.collection(collection.collectionName).watch(pipeline, {
1563
1568
  fullDocument: 'required',
1564
1569
  fullDocumentBeforeChange: 'required',
@@ -1695,7 +1700,6 @@ const executes$2 = (view, input, streamName, skip = false, after) => {
1695
1700
  log('teardown done', `db['${snapshotCollection.collectionName}'].drop()`, ...out);
1696
1701
  };
1697
1702
  if (!same) {
1698
- log('not same, new data', data);
1699
1703
  await handleTeardown(exists ?? { data });
1700
1704
  }
1701
1705
  await after?.();
package/index.js CHANGED
@@ -1561,6 +1561,11 @@ const makeWatchStream = (db, { collection, projection: p, hardMatch: m }, startA
1561
1561
  ],
1562
1562
  },
1563
1563
  });
1564
+ pipeline.push({
1565
+ $project: {
1566
+ _id: 1,
1567
+ },
1568
+ });
1564
1569
  const stream = db.collection(collection.collectionName).watch(pipeline, {
1565
1570
  fullDocument: 'required',
1566
1571
  fullDocumentBeforeChange: 'required',
@@ -1697,7 +1702,6 @@ const executes$2 = (view, input, streamName, skip = false, after) => {
1697
1702
  log('teardown done', `db['${snapshotCollection.collectionName}'].drop()`, ...out);
1698
1703
  };
1699
1704
  if (!same) {
1700
- log('not same, new data', data);
1701
1705
  await handleTeardown(exists ?? { data });
1702
1706
  }
1703
1707
  await after?.();
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.94",
6
+ "version": "0.0.95",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",