mixlea-utils-js 0.1.47 → 0.1.49

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.
@@ -15,6 +15,8 @@ export declare function alwaysResolveUndefined(): Promise<unknown>;
15
15
 
16
16
  export declare function alwaysReturn<T>(returnValue: T): () => T;
17
17
 
18
+ export declare function alwaysReturnEmptyRecord(): {};
19
+
18
20
  export declare function alwaysReturnFalse(): boolean;
19
21
 
20
22
  export declare function alwaysReturnNullish(): null;
@@ -1104,6 +1106,8 @@ export declare function objectShallowMap(obj: Record<any, any>, keyFn: (key: any
1104
1106
  */
1105
1107
  export declare function objectSome(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[] | null, defaultValue?: boolean): boolean;
1106
1108
 
1109
+ export declare function objectSomeFields(input: any, fields: string[], func: (fieldValue: any, field: string) => boolean): boolean;
1110
+
1107
1111
  export declare function objectStringify(obj: Record<string, any>, allowDots?: boolean): string;
1108
1112
 
1109
1113
  export declare function objectToArray<T extends Record<string, any>>(obj: Record<string, any>, callback: (key: string, value: any) => T): T[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.47",
4
+ "version": "0.1.49",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {