@omegup/msync 0.0.84 → 0.0.85
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.d.ts +2 -2
- package/index.esm.js +2 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -497,9 +497,9 @@ type ND = {
|
|
|
497
497
|
};
|
|
498
498
|
type SafeE<E> = Omit<E, `$${string}` | keyof ID>;
|
|
499
499
|
type Merge<T extends doc, E> = Omit<SafeE<E>, keyof (ND & TS)> & ((T & ND & TS) | Del);
|
|
500
|
-
declare const $insertX: <T extends doc, D extends O, EEE
|
|
500
|
+
declare const $insertX: <T extends doc, D extends O, EEE extends RORec<string, rawItem>>(out: RWCollection<Merge<T, EEE>>, expr: Expr<T, D>, map: (x: Expr<T & ND & TS & Omit<SafeE<EEE>, keyof (ND & TS)>, D>) => Expr<Merge<T, EEE>, D>, ext: Exact<Omit<SafeE<EEE>, keyof (ND & TS)>, IdHKT>) => StreamRunnerParam<D, "out">;
|
|
501
501
|
declare const $simpleInsert: <T extends doc>(out: RWCollection<Merge<T, {}>>) => StreamRunnerParam<T, "out">;
|
|
502
|
-
declare const $insertPart: <T extends doc, EEE
|
|
502
|
+
declare const $insertPart: <T extends doc, EEE extends RORec<string, rawItem>>(out: RWCollection<Merge<T, EEE>>, ext: ExprsExact<Omit<SafeE<EEE>, keyof (ND & TS)>, unknown>) => StreamRunnerParam<Delta<T>, "out">;
|
|
503
503
|
declare const $insert: <T extends doc>(out: RWCollection<Merge<T, {}>>) => StreamRunnerParam<Delta<T>, "out">;
|
|
504
504
|
|
|
505
505
|
declare const $group_: <V extends O>() => <ID, T extends O, C = unknown>(id: Expr<ID, T, C>, args: Accumulators<T, V, C>) => RawStages<O, T, Rec<"_id", ID> & V, C, 1>;
|
package/index.esm.js
CHANGED
|
@@ -1404,6 +1404,7 @@ const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root()
|
|
|
1404
1404
|
const assertNotNull$1 = (expr) => expr;
|
|
1405
1405
|
|
|
1406
1406
|
const $insertX = (out, expr, map, ext) => {
|
|
1407
|
+
const extExpr = mapExact(ext, (v) => val(v));
|
|
1407
1408
|
const filter = mapExactToObject(ext, v => ({ $eq: v }));
|
|
1408
1409
|
return {
|
|
1409
1410
|
teardown: c => c({
|
|
@@ -1415,7 +1416,7 @@ const $insertX = (out, expr, map, ext) => {
|
|
|
1415
1416
|
],
|
|
1416
1417
|
}),
|
|
1417
1418
|
raw: () => {
|
|
1418
|
-
const replacer = map(mergeObjects(expr, field(mergeExpr(
|
|
1419
|
+
const replacer = map(mergeObjects(expr, field(mergeExpr(extExpr, {
|
|
1419
1420
|
deletedAt: ['deletedAt', nil],
|
|
1420
1421
|
touchedAt: ['touchedAt', current],
|
|
1421
1422
|
}))));
|
package/index.js
CHANGED
|
@@ -1406,6 +1406,7 @@ const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root()
|
|
|
1406
1406
|
const assertNotNull$1 = (expr) => expr;
|
|
1407
1407
|
|
|
1408
1408
|
const $insertX = (out, expr, map, ext) => {
|
|
1409
|
+
const extExpr = mapExact(ext, (v) => val(v));
|
|
1409
1410
|
const filter = mapExactToObject(ext, v => ({ $eq: v }));
|
|
1410
1411
|
return {
|
|
1411
1412
|
teardown: c => c({
|
|
@@ -1417,7 +1418,7 @@ const $insertX = (out, expr, map, ext) => {
|
|
|
1417
1418
|
],
|
|
1418
1419
|
}),
|
|
1419
1420
|
raw: () => {
|
|
1420
|
-
const replacer = map(mergeObjects(expr, field(mergeExpr(
|
|
1421
|
+
const replacer = map(mergeObjects(expr, field(mergeExpr(extExpr, {
|
|
1421
1422
|
deletedAt: ['deletedAt', nil],
|
|
1422
1423
|
touchedAt: ['touchedAt', current],
|
|
1423
1424
|
}))));
|