@omegup/msync 0.0.49 → 0.0.50
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 +5 -1
- package/index.js +5 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1591,7 +1591,11 @@ const executes$1 = (view, input, streamName) => {
|
|
|
1591
1591
|
.with($merge_({
|
|
1592
1592
|
into: snapshotCollection,
|
|
1593
1593
|
on: root().of('_id'),
|
|
1594
|
-
|
|
1594
|
+
stages: 'ctx',
|
|
1595
|
+
vars: {
|
|
1596
|
+
new: ['new', root().expr()],
|
|
1597
|
+
},
|
|
1598
|
+
whenMatched: link().with($replaceWith_(ite(eq(root().of('before').expr())(ctx()('new').of('after').expr()), root().expr(), mergeObjects(root().expr(), ctx()('new').expr())))).stages,
|
|
1595
1599
|
whenNotMatched: 'insert',
|
|
1596
1600
|
})).stages;
|
|
1597
1601
|
const r = await aggregate(streamName, c => c({ coll: collection, input: cloneIntoNew }));
|
package/index.js
CHANGED
|
@@ -1593,7 +1593,11 @@ const executes$1 = (view, input, streamName) => {
|
|
|
1593
1593
|
.with($merge_({
|
|
1594
1594
|
into: snapshotCollection,
|
|
1595
1595
|
on: root().of('_id'),
|
|
1596
|
-
|
|
1596
|
+
stages: 'ctx',
|
|
1597
|
+
vars: {
|
|
1598
|
+
new: ['new', root().expr()],
|
|
1599
|
+
},
|
|
1600
|
+
whenMatched: link().with($replaceWith_(ite(eq(root().of('before').expr())(ctx()('new').of('after').expr()), root().expr(), mergeObjects(root().expr(), ctx()('new').expr())))).stages,
|
|
1597
1601
|
whenNotMatched: 'insert',
|
|
1598
1602
|
})).stages;
|
|
1599
1603
|
const r = await aggregate(streamName, c => c({ coll: collection, input: cloneIntoNew }));
|