@omegup/msync 0.0.22 → 0.0.24
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 +4 -4
- package/index.esm.js +1 -4
- package/index.js +1 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -478,10 +478,10 @@ type s = string;
|
|
|
478
478
|
declare const $unwind: <T extends doc, K extends s, U extends doc>(k: AsLiteral<K>, dict: RORec<K, "key">) => DeltaStages<O, T & Rec<K, Arr<U>>, T & Rec<K, U>>;
|
|
479
479
|
|
|
480
480
|
type Allowed$2<K extends string> = Exclude<K, keyof (TS & ID)>;
|
|
481
|
-
type Patch<V, KK extends StrKey<V>> = ((OPick<V, Allowed$2<KK>> & ID) | (Rec<Allowed$2<KK>, N> & ID)) & TS;
|
|
482
|
-
type TakeDoc<V, KK extends StrKey<V>> = OPick<V, Allowed$2<KK>> &
|
|
483
|
-
declare const $simpleMerge: <V extends O>() => <
|
|
484
|
-
declare const $merge: <V extends O>() => <
|
|
481
|
+
type Patch<V, KK extends StrKey<V> = StrKey<V>> = ((OPick<V, Allowed$2<KK>> & ID) | (Rec<Allowed$2<KK>, N> & ID)) & TS;
|
|
482
|
+
type TakeDoc<V, E = ID, KK extends StrKey<V> = StrKey<V>> = OPick<V, Allowed$2<KK>> & E;
|
|
483
|
+
declare const $simpleMerge: <V extends O>() => <Source extends doc, Out extends doc>(out: RWCollection<Out | Replace<Out, Patch<V>>, Out>, keys: ExprsExact<TakeDoc<V, unknown>, Source>) => StreamRunnerParam<Source, "out">;
|
|
484
|
+
declare const $merge: <V extends O>() => <Out extends doc, SourcePart extends doc>(out: RWCollection<Out | Replace<Out, Patch<V>>, Out>, keys: ExprsExact<TakeDoc<V, unknown>, SourcePart>) => StreamRunnerParam<Delta<SourcePart>, "out">;
|
|
485
485
|
|
|
486
486
|
type ND = {
|
|
487
487
|
readonly deletedAt?: null;
|
package/index.esm.js
CHANGED
|
@@ -1073,10 +1073,7 @@ const $mergeId = () => (out, keys, id) => {
|
|
|
1073
1073
|
});
|
|
1074
1074
|
};
|
|
1075
1075
|
const $simpleMerge = () => (out, keys) => $mergeX(out, keys, root(), id$1);
|
|
1076
|
-
const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root()
|
|
1077
|
-
.of('before')
|
|
1078
|
-
.of('_id')
|
|
1079
|
-
.expr()));
|
|
1076
|
+
const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root().of('before').of('_id').expr()));
|
|
1080
1077
|
const assertNotNull$1 = (expr) => expr;
|
|
1081
1078
|
|
|
1082
1079
|
const $insertX = (out, expr, map) => ({
|
package/index.js
CHANGED
|
@@ -1075,10 +1075,7 @@ const $mergeId = () => (out, keys, id) => {
|
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
1077
|
const $simpleMerge = () => (out, keys) => $mergeX(out, keys, root(), id$1);
|
|
1078
|
-
const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root()
|
|
1079
|
-
.of('before')
|
|
1080
|
-
.of('_id')
|
|
1081
|
-
.expr()));
|
|
1078
|
+
const $merge = () => (out, keys) => $mergeId()(out, keys, assertNotNull$1(root().of('before').of('_id').expr()));
|
|
1082
1079
|
const assertNotNull$1 = (expr) => expr;
|
|
1083
1080
|
|
|
1084
1081
|
const $insertX = (out, expr, map) => ({
|