@omegup/msync 0.0.68 → 0.0.69
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 +3 -3
- package/index.js +3 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1515,10 +1515,10 @@ const getFirstStages = (view) => {
|
|
|
1515
1515
|
}));
|
|
1516
1516
|
const removeNotYetSynchronizedFields = Object.values(mapExactToObject(projection, (_, k) => k.startsWith('_') ? root().of(k).has($exists(true)) : null));
|
|
1517
1517
|
const hardMatch = $and(pre, ...removeNotYetSynchronizedFields);
|
|
1518
|
-
const firstStages = (lastTS) => {
|
|
1518
|
+
const firstStages = (lastTS, keepNulls = false) => {
|
|
1519
1519
|
const hardQuery = $and(lastTS
|
|
1520
1520
|
? root().of('touchedAt').has($gtTs(lastTS.ts))
|
|
1521
|
-
: root().of('deletedAt').has($eq(null)), lastTS ? null : match && $expr(match), hardMatch);
|
|
1521
|
+
: root().of('deletedAt').has($eq(null)), lastTS ? null : match && $expr(match), keepNulls ? pre : hardMatch);
|
|
1522
1522
|
return link()
|
|
1523
1523
|
.with($match_(hardQuery))
|
|
1524
1524
|
.with(projectInput);
|
|
@@ -1842,7 +1842,7 @@ const executes = (view, input) => {
|
|
|
1842
1842
|
const { collection } = view;
|
|
1843
1843
|
return (finalInput) => {
|
|
1844
1844
|
const start = input.raw(root);
|
|
1845
|
-
const stages = firstStages(null).with(start).with(finalInput).stages;
|
|
1845
|
+
const stages = firstStages(null, true).with(start).with(finalInput).stages;
|
|
1846
1846
|
return c => c({
|
|
1847
1847
|
coll: collection,
|
|
1848
1848
|
input: link().stages,
|
package/index.js
CHANGED
|
@@ -1517,10 +1517,10 @@ const getFirstStages = (view) => {
|
|
|
1517
1517
|
}));
|
|
1518
1518
|
const removeNotYetSynchronizedFields = Object.values(mapExactToObject(projection, (_, k) => k.startsWith('_') ? root().of(k).has($exists(true)) : null));
|
|
1519
1519
|
const hardMatch = $and(pre, ...removeNotYetSynchronizedFields);
|
|
1520
|
-
const firstStages = (lastTS) => {
|
|
1520
|
+
const firstStages = (lastTS, keepNulls = false) => {
|
|
1521
1521
|
const hardQuery = $and(lastTS
|
|
1522
1522
|
? root().of('touchedAt').has($gtTs(lastTS.ts))
|
|
1523
|
-
: root().of('deletedAt').has($eq(null)), lastTS ? null : match && $expr(match), hardMatch);
|
|
1523
|
+
: root().of('deletedAt').has($eq(null)), lastTS ? null : match && $expr(match), keepNulls ? pre : hardMatch);
|
|
1524
1524
|
return link()
|
|
1525
1525
|
.with($match_(hardQuery))
|
|
1526
1526
|
.with(projectInput);
|
|
@@ -1844,7 +1844,7 @@ const executes = (view, input) => {
|
|
|
1844
1844
|
const { collection } = view;
|
|
1845
1845
|
return (finalInput) => {
|
|
1846
1846
|
const start = input.raw(root);
|
|
1847
|
-
const stages = firstStages(null).with(start).with(finalInput).stages;
|
|
1847
|
+
const stages = firstStages(null, true).with(start).with(finalInput).stages;
|
|
1848
1848
|
return c => c({
|
|
1849
1849
|
coll: collection,
|
|
1850
1850
|
input: link().stages,
|