@omegup/msync 0.1.59 → 0.1.60
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 +1 -1
- package/index.esm.js +4 -1
- package/index.js +4 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -632,7 +632,7 @@ type ExprP<P> = Expr<P, unknown, {
|
|
|
632
632
|
}>;
|
|
633
633
|
type Update<P, Out> = (added: ExprP<P>, old: Expr<Out, Out>) => ExprP<P>;
|
|
634
634
|
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>, extExpr: ExprsExact<Omit<SafeE<EEE>, keyof (ND & TS)>, unknown>, update?: Update<Replace<Merge<T, EEE>, {}>, Merge<T, EEE>>) => StreamRunnerParam<D, "out">;
|
|
635
|
-
declare const $simpleInsert: <T extends doc
|
|
635
|
+
declare const $simpleInsert: <T extends doc, EEE extends RORec<string, rawItem>>(out: RWCollection<Merge<T, EEE>>, ext: Exact<Omit<SafeE<EEE>, keyof (ND & TS)>, IdHKT>) => StreamRunnerParam<T, "out">;
|
|
636
636
|
declare const $insertPart: <T extends doc, EEE extends RORec<string, rawItem>>(out: RWCollection<Merge<T, EEE>>, ext: Exact<Omit<SafeE<EEE>, keyof (ND & TS)>, IdHKT>) => StreamRunnerParam<Delta<T>, "out">;
|
|
637
637
|
declare const $insert: <T extends doc>(out: RWCollection<Merge<T, {}>>) => StreamRunnerParam<Delta<T>, "out">;
|
|
638
638
|
|
package/index.esm.js
CHANGED
|
@@ -1724,7 +1724,10 @@ const $insertX = (out, expr, map, ext, extExpr, update = x => x) => {
|
|
|
1724
1724
|
},
|
|
1725
1725
|
};
|
|
1726
1726
|
};
|
|
1727
|
-
const $simpleInsert = (out
|
|
1727
|
+
const $simpleInsert = (out, ext) => {
|
|
1728
|
+
const extExpr = mapExact(ext, (v) => val(v));
|
|
1729
|
+
return $insertX(out, root().expr(), id$1, ext, extExpr);
|
|
1730
|
+
};
|
|
1728
1731
|
const $insertPart = (out, ext) => {
|
|
1729
1732
|
const extExpr = mapExact(ext, (v) => val(v));
|
|
1730
1733
|
return $insertX(out, assertNotNull(root().of('after').expr()), x => ite(eq(root().of('after').expr())(nil), field(mergeExpr(translateOmit().forward(extExpr), {
|
package/index.js
CHANGED
|
@@ -1726,7 +1726,10 @@ const $insertX = (out, expr, map, ext, extExpr, update = x => x) => {
|
|
|
1726
1726
|
},
|
|
1727
1727
|
};
|
|
1728
1728
|
};
|
|
1729
|
-
const $simpleInsert = (out
|
|
1729
|
+
const $simpleInsert = (out, ext) => {
|
|
1730
|
+
const extExpr = mapExact(ext, (v) => val(v));
|
|
1731
|
+
return $insertX(out, root().expr(), id$1, ext, extExpr);
|
|
1732
|
+
};
|
|
1730
1733
|
const $insertPart = (out, ext) => {
|
|
1731
1734
|
const extExpr = mapExact(ext, (v) => val(v));
|
|
1732
1735
|
return $insertX(out, assertNotNull(root().of('after').expr()), x => ite(eq(root().of('after').expr())(nil), field(mergeExpr(translateOmit().forward(extExpr), {
|