mocody 0.2.17 → 0.2.18

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.
@@ -4,7 +4,8 @@ declare type RequireAtLeastOneBase<T, Keys extends keyof T = keyof T> = Pick<T,
4
4
  declare type RequireAtLeastOne<T> = RequireAtLeastOneBase<T, keyof T>;
5
5
  declare type TypeFallBackStringOnly<T> = Extract<T, string>;
6
6
  declare type TypeFallBack<T> = undefined extends T ? Exclude<T, undefined> : T;
7
- declare type TypeFallBackArray<T> = number extends T ? number[] : string extends T ? string[] : Extract<T, string>[] | Extract<T, number>[];
7
+ declare type TypeFallBackArray<T> = number extends T ? number[] : string extends T ? string[] : T;
8
+ declare type TypeFallBackArrayAdvanced<T> = number extends T ? number[] : string extends T ? string[] : Extract<T, string>[] | Extract<T, number>[];
8
9
  export declare type IMocodyKeyConditionParams<T = string> = {
9
10
  $eq?: TypeFallBack<T> | null;
10
11
  $gt?: TypeFallBack<T>;
@@ -16,8 +17,8 @@ export declare type IMocodyKeyConditionParams<T = string> = {
16
17
  };
17
18
  export declare type IMocodyQueryConditionParams<T = any> = IMocodyKeyConditionParams<T> & {
18
19
  $ne?: TypeFallBack<T> | null;
19
- $in?: TypeFallBackArray<T>;
20
- $nin?: TypeFallBackArray<T>;
20
+ $in?: TypeFallBackArrayAdvanced<T>;
21
+ $nin?: TypeFallBackArrayAdvanced<T>;
21
22
  $exists?: boolean;
22
23
  $not?: IMocodyKeyConditionParams<T>;
23
24
  $elemMatch?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocody",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Implementation of single table design, and unified query access for MongoDB, CouchDB, and dynamoDB",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",