@xylabs/array 4.13.14 → 4.13.15

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.
@@ -0,0 +1,2 @@
1
+ export declare const containsAll: <T>(source: T[], target: T[]) => boolean;
2
+ //# sourceMappingURL=containsAll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containsAll.d.ts","sourceRoot":"","sources":["../../src/containsAll.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,YAA0C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const distinct: <T>(value: T, index: number, array: T[]) => boolean;
2
+ //# sourceMappingURL=distinct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distinct.d.ts","sourceRoot":"","sources":["../../src/distinct.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,EAAE,KAAG,OASjE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const filterAs: <In, Out>(x: In[], predicate: (a: In) => Out) => NonNullable<Out>[];
2
+ //# sourceMappingURL=filterAs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterAs.d.ts","sourceRoot":"","sources":["../../src/filterAs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,EAAE,KAAK,GAAG,uBAEnE,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the elements of an array that meet the condition specified in a callback function.
3
+ * @param array The array to filter.
4
+ * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
5
+ * @returns The elements of an array that meet the condition specified in a callback function.
6
+ */
7
+ export declare const filterAsync: <T>(array: T[], predicate: (value: T, index: number, array: T[]) => Promise<boolean>) => Promise<T[]>;
8
+ //# sourceMappingURL=filterAsync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterAsync.d.ts","sourceRoot":"","sources":["../../src/filterAsync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAU,CAAC,EACjC,OAAO,CAAC,EAAE,EACV,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,KACnE,OAAO,CAAC,CAAC,EAAE,CAGb,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const findAs: <In, Out>(x: In[], predicate: (a: In) => Out) => NonNullable<Out> | undefined;
2
+ export declare const findLastAs: <In, Out>(x: In[], predicate: (a: In) => Out) => NonNullable<Out> | undefined;
3
+ //# sourceMappingURL=findAs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findAs.d.ts","sourceRoot":"","sources":["../../src/findAs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,GAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,EAAE,KAAK,GAAG,iCAEjE,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,EAAE,KAAK,GAAG,iCAErE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const flatten: <T>(a?: T | ConcatArray<T>, b?: T | ConcatArray<T>) => T[];
2
+ //# sourceMappingURL=flatten.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../src/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAG,CAAC,EAG5E,CAAA"}
@@ -0,0 +1,8 @@
1
+ export * from './containsAll.ts';
2
+ export * from './distinct.ts';
3
+ export * from './filterAs.ts';
4
+ export * from './filterAsync.ts';
5
+ export * from './findAs.ts';
6
+ export * from './flatten.ts';
7
+ export * from './uniq.ts';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const uniq: <T>(arr: T[]) => T[];
2
+ export declare const uniqBy: <T, I>(arr: T[], iteratee: (item: T) => I) => T[];
3
+ //# sourceMappingURL=uniq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniq.d.ts","sourceRoot":"","sources":["../../src/uniq.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,KAAK,CAAC,EAAE,KAAG,CAAC,EAEnC,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAG,CAAC,EAUlE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/array",
3
- "version": "4.13.14",
3
+ "version": "4.13.15",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -35,12 +35,12 @@
35
35
  "module": "./dist/neutral/index.mjs",
36
36
  "types": "./dist/neutral/index.d.ts",
37
37
  "dependencies": {
38
- "@xylabs/exists": "^4.13.14"
38
+ "@xylabs/exists": "^4.13.15"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.12",
42
- "@xylabs/tsconfig": "^7.0.0-rc.12",
43
- "@xylabs/vitest-extended": "^4.13.14",
41
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
42
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
43
+ "@xylabs/vitest-extended": "^4.13.15",
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4"
46
46
  },