@gooddata/util 11.68.0-alpha.6 → 11.68.0-alpha.7

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.
Files changed (69) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +1 -1
  3. package/esm/_/_basePickBy.d.ts +14 -0
  4. package/esm/_/_basePickBy.d.ts.map +1 -0
  5. package/esm/_/_basePickBy.js +57 -0
  6. package/esm/_/_createCompounder.d.ts +11 -0
  7. package/esm/_/_createCompounder.d.ts.map +1 -0
  8. package/esm/_/{_arrayAggregator.js → _createCompounder.js} +12 -16
  9. package/esm/_/camelCase.d.ts +3 -4
  10. package/esm/_/camelCase.d.ts.map +1 -1
  11. package/esm/_/camelCase.js +8 -19
  12. package/esm/_/capitalize.d.ts +9 -0
  13. package/esm/_/capitalize.d.ts.map +1 -0
  14. package/esm/_/{_arrayAggregator.d.ts → capitalize.js} +10 -9
  15. package/esm/_/deburr.d.ts.map +1 -1
  16. package/esm/_/deburr.js +2 -1
  17. package/esm/_/difference.d.ts +14 -0
  18. package/esm/_/difference.d.ts.map +1 -0
  19. package/esm/_/difference.js +67 -0
  20. package/esm/_/escape.d.ts +13 -0
  21. package/esm/_/escape.d.ts.map +1 -0
  22. package/esm/_/escape.js +56 -0
  23. package/esm/_/has.d.ts +23 -0
  24. package/esm/_/has.d.ts.map +1 -0
  25. package/esm/_/has.js +35 -0
  26. package/esm/_/isPlainObject.d.ts +1 -1
  27. package/esm/_/isPlainObject.d.ts.map +1 -1
  28. package/esm/_/kebabCase.d.ts +9 -0
  29. package/esm/_/kebabCase.d.ts.map +1 -0
  30. package/esm/_/kebabCase.js +40 -0
  31. package/esm/_/keyBy.d.ts +17 -0
  32. package/esm/_/keyBy.d.ts.map +1 -0
  33. package/esm/_/{_baseAggregator.js → keyBy.js} +9 -16
  34. package/esm/_/omitBy.d.ts +21 -0
  35. package/esm/_/omitBy.d.ts.map +1 -0
  36. package/esm/_/{_createAggregator.js → omitBy.js} +4 -17
  37. package/esm/_/partial.d.ts +87 -0
  38. package/esm/_/partial.d.ts.map +1 -0
  39. package/esm/_/partial.js +30 -0
  40. package/esm/_/pickBy.d.ts +21 -0
  41. package/esm/_/pickBy.d.ts.map +1 -0
  42. package/esm/_/pickBy.js +36 -0
  43. package/esm/_/toString.d.ts +11 -0
  44. package/esm/_/toString.d.ts.map +1 -0
  45. package/esm/_/toString.js +57 -0
  46. package/esm/_/types.d.ts +38 -0
  47. package/esm/_/types.d.ts.map +1 -1
  48. package/esm/_/union.d.ts +11 -0
  49. package/esm/_/union.d.ts.map +1 -0
  50. package/esm/_/union.js +55 -0
  51. package/esm/_/uniqWith.d.ts +14 -0
  52. package/esm/_/uniqWith.d.ts.map +1 -0
  53. package/esm/_/uniqWith.js +59 -0
  54. package/esm/_/upperFirst.d.ts +10 -0
  55. package/esm/_/upperFirst.d.ts.map +1 -0
  56. package/esm/_/upperFirst.js +46 -0
  57. package/esm/_/zip.d.ts +28 -0
  58. package/esm/_/zip.d.ts.map +1 -0
  59. package/esm/_/zip.js +38 -0
  60. package/esm/index.d.ts +14 -1
  61. package/esm/index.d.ts.map +1 -1
  62. package/esm/index.js +13 -0
  63. package/esm/util.d.ts +299 -4
  64. package/package.json +3 -3
  65. package/esm/_/_arrayAggregator.d.ts.map +0 -1
  66. package/esm/_/_baseAggregator.d.ts +0 -13
  67. package/esm/_/_baseAggregator.d.ts.map +0 -1
  68. package/esm/_/_createAggregator.d.ts +0 -10
  69. package/esm/_/_createAggregator.d.ts.map +0 -1
@@ -0,0 +1,21 @@
1
+ import type { _Dictionary, _NumericDictionary, _PartialObject, _ValueKeyIteratee } from "./types.js";
2
+ /**
3
+ * The opposite of `pickBy`; this method creates an object composed of the own and inherited enumerable
4
+ * string and symbol keyed properties of `object` that `predicate` doesn't return truthy for. The predicate
5
+ * is invoked with two arguments: (value, key). Picked values are kept by reference.
6
+ *
7
+ * @param object - The source object.
8
+ * @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
9
+ * @returns Returns the new object.
10
+ * @internal
11
+ */
12
+ export declare function _omitBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _omitBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _omitBy<T extends object>(object: T | null | undefined, predicate: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
21
+ //# sourceMappingURL=omitBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omitBy.d.ts","sourceRoot":"","sources":["../../src/_/omitBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAErG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAChD,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACzB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5B,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  // (C) 2026 GoodData Corporation
2
- /* eslint-disable */
3
2
  /*!
4
3
  * Portions of this file are derived from Lodash.
5
4
  * https://github.com/lodash/lodash
@@ -30,21 +29,9 @@
30
29
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31
30
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
31
  */
33
- import { _arrayAggregator } from "./_arrayAggregator.js";
34
- import { _baseAggregator } from "./_baseAggregator.js";
35
32
  import { _baseIteratee } from "./_baseIteratee.js";
36
- import { _isArray } from "./isArray.js";
37
- /**
38
- * Creates a function like `_.groupBy`.
39
- *
40
- * @private
41
- * @param {Function} setter The function to set accumulator values.
42
- * @param {Function} [initializer] The accumulator object initializer.
43
- * @returns {Function} Returns the new aggregator function.
44
- */
45
- export function _createAggregator(setter, initializer) {
46
- return function (collection, iteratee) {
47
- const func = _isArray(collection) ? _arrayAggregator : _baseAggregator, accumulator = initializer ? initializer() : {};
48
- return func(collection, setter, _baseIteratee(iteratee), accumulator);
49
- };
33
+ import { _basePickBy } from "./_basePickBy.js";
34
+ export function _omitBy(object, predicate) {
35
+ const matches = _baseIteratee(predicate);
36
+ return _basePickBy(object, (value, key) => !matches(value, key));
50
37
  }
@@ -0,0 +1,87 @@
1
+ /*!
2
+ * Portions of this file are derived from Lodash.
3
+ * https://github.com/lodash/lodash
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ *
7
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
8
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
9
+ *
10
+ * Modifications Copyright (c) 2026 GoodData Corporation
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining
13
+ * a copy of this software and associated documentation files (the
14
+ * "Software"), to deal in the Software without restriction, including
15
+ * without limitation the rights to use, copy, modify, merge, publish,
16
+ * distribute, sublicense, and/or sell copies of the Software, and to
17
+ * permit persons to whom the Software is furnished to do so, subject to
18
+ * the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be
21
+ * included in all copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+ */
31
+ import type { _Function1, _Function2, _Function3, _Function4 } from "./types.js";
32
+ declare const placeholderBrand: unique symbol;
33
+ /**
34
+ * The type of `_partial.placeholder`, which stands in for lodash's `_` placeholder.
35
+ *
36
+ * @internal
37
+ */
38
+ export type _Placeholder = {
39
+ readonly [placeholderBrand]: true;
40
+ };
41
+ /**
42
+ * The call signatures of `_partial`: each applied parameter is dropped from the resulting function, a
43
+ * placeholder keeps its parameter in place.
44
+ *
45
+ * @internal
46
+ */
47
+ export type _Partial = {
48
+ <T1, T2, R>(func: _Function2<T1, T2, R>, plc1: _Placeholder, arg2: T2): _Function1<T1, R>;
49
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2): _Function2<T1, T3, R>;
50
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function2<T1, T2, R>;
51
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function1<T2, R>;
52
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function1<T1, R>;
53
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2): _Function3<T1, T3, T4, R>;
54
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function3<T1, T2, T4, R>;
55
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function2<T2, T4, R>;
56
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function2<T1, T4, R>;
57
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, plc3: _Placeholder, arg4: T4): _Function3<T1, T2, T3, R>;
58
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, plc3: _Placeholder, arg4: T4): _Function2<T2, T3, R>;
59
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, plc3: _Placeholder, arg4: T4): _Function2<T1, T3, R>;
60
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: _Placeholder, arg4: T4): _Function1<T3, R>;
61
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3, arg4: T4): _Function2<T1, T2, R>;
62
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3, arg4: T4): _Function1<T2, R>;
63
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3, arg4: T4): _Function1<T1, R>;
64
+ <TS extends any[], R>(func: (...ts: TS) => R): (...ts: TS) => R;
65
+ <TS extends any[], T1, R>(func: (t1: T1, ...ts: TS) => R, arg1: T1): (...ts: TS) => R;
66
+ <TS extends any[], T1, T2, R>(func: (t1: T1, t2: T2, ...ts: TS) => R, t1: T1, t2: T2): (...ts: TS) => R;
67
+ <TS extends any[], T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3, ...ts: TS) => R, t1: T1, t2: T2, t3: T3): (...ts: TS) => R;
68
+ <TS extends any[], T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, ...ts: TS) => R, t1: T1, t2: T2, t3: T3, t4: T4): (...ts: TS) => R;
69
+ /** Marks a parameter of the function that is left open; `_partial.placeholder` is its only value. */
70
+ placeholder: _Placeholder;
71
+ };
72
+ /**
73
+ * Creates a function that invokes `func` with `partials` prepended to the arguments it receives. This method
74
+ * is like `bind` except it does **not** alter the `this` binding. The `_partial.placeholder` value may be
75
+ * used as a placeholder for partially applied arguments: each placeholder takes the next argument of the
76
+ * call, the remaining call arguments are appended. Calling the result with `new` constructs `func`.
77
+ *
78
+ * **Note:** This method doesn't set the "length" property of partially applied functions.
79
+ *
80
+ * @param func - The function to partially apply arguments to.
81
+ * @param partials - The arguments to be partially applied.
82
+ * @returns Returns the new partially applied function.
83
+ * @internal
84
+ */
85
+ export declare const _partial: _Partial;
86
+ export {};
87
+ //# sourceMappingURL=partial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../../src/_/partial.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEjF,OAAO,CAAC,MAAM,gBAAgB,EAAE,OAAO,MAAM,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,CAAC,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAA;CAAE,CAA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with `partials` prepended to the arguments it receives. This method
4
+ * is like `bind` except it does **not** alter the `this` binding. The `_partial.placeholder` value may be
5
+ * used as a placeholder for partially applied arguments: each placeholder takes the next argument of the
6
+ * call, the remaining call arguments are appended. Calling the result with `new` constructs `func`.
7
+ *
8
+ * **Note:** This method doesn't set the "length" property of partially applied functions.
9
+ *
10
+ * @param func - The function to partially apply arguments to.
11
+ * @param partials - The arguments to be partially applied.
12
+ * @returns Returns the new partially applied function.
13
+ * @internal
14
+ */
15
+ export const _partial = Object.assign(function partial(func, ...partials) {
16
+ if (typeof func !== "function") {
17
+ throw new TypeError("Expected a function");
18
+ }
19
+ // placeholders are resolved when the function is created, as lodash does
20
+ const holders = partials.map((value) => value === _partial.placeholder);
21
+ return function wrapper(...args) {
22
+ let index = 0;
23
+ const composed = partials.map((value, position) => (holders[position] ? args[index++] : value));
24
+ composed.push(...args.slice(index));
25
+ if (new.target) {
26
+ return Reflect.construct(func, composed);
27
+ }
28
+ return func.apply(this, composed);
29
+ };
30
+ }, { placeholder: {} });
@@ -0,0 +1,21 @@
1
+ import type { _Dictionary, _NumericDictionary, _PartialObject, _ValueKeyIteratee } from "./types.js";
2
+ /**
3
+ * Creates an object composed of the own and inherited enumerable string and symbol keyed properties of
4
+ * `object` that `predicate` returns truthy for. The predicate is invoked with two arguments: (value, key).
5
+ * Picked values are kept by reference.
6
+ *
7
+ * @param object - The source object.
8
+ * @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
9
+ * @returns Returns the new object.
10
+ * @internal
11
+ */
12
+ export declare function _pickBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _pickBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _pickBy<T extends object>(object: T | null | undefined, predicate?: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
21
+ //# sourceMappingURL=pickBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickBy.d.ts","sourceRoot":"","sources":["../../src/_/pickBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAErG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAChD,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACzB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5B,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAC1C,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseIteratee } from "./_baseIteratee.js";
33
+ import { _basePickBy } from "./_basePickBy.js";
34
+ export function _pickBy(object, predicate) {
35
+ return _basePickBy(object, _baseIteratee(predicate));
36
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of
3
+ * `-0` is preserved, symbols are converted through their `toString`, and arrays are converted element by
4
+ * element and joined with commas.
5
+ *
6
+ * @param value - The value to convert.
7
+ * @returns Returns the converted string.
8
+ * @internal
9
+ */
10
+ export declare function _toString(value: unknown): string;
11
+ //# sourceMappingURL=toString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../src/_/toString.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,57 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _isSymbol } from "./isSymbol.js";
33
+ /**
34
+ * Converts `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of
35
+ * `-0` is preserved, symbols are converted through their `toString`, and arrays are converted element by
36
+ * element and joined with commas.
37
+ *
38
+ * @param value - The value to convert.
39
+ * @returns Returns the converted string.
40
+ * @internal
41
+ */
42
+ export function _toString(value) {
43
+ return value == null ? "" : _baseToString(value);
44
+ }
45
+ function _baseToString(value) {
46
+ if (typeof value === "string") {
47
+ return value;
48
+ }
49
+ if (Array.isArray(value)) {
50
+ return value.map(_baseToString).join(",");
51
+ }
52
+ if (_isSymbol(value)) {
53
+ return Symbol.prototype.toString.call(value);
54
+ }
55
+ const result = String(value);
56
+ return result === "0" && 1 / value === -Infinity ? "-0" : result;
57
+ }
package/esm/_/types.d.ts CHANGED
@@ -93,4 +93,42 @@ export type _ObjectIteratee<TObject> = _ObjectIterator<TObject, _NotVoid> | _Ite
93
93
  * @internal
94
94
  */
95
95
  export type _PartialObject<T> = Partial<T>;
96
+ /**
97
+ * @internal
98
+ */
99
+ export type _ValueKeyIteratee<T> = ((value: T, key: string) => _NotVoid) | _IterateeShorthand<T>;
100
+ /**
101
+ * @internal
102
+ */
103
+ export type _NumericDictionary<T> = {
104
+ [index: number]: T;
105
+ };
106
+ /**
107
+ * @internal
108
+ */
109
+ export type _ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | _IterateeShorthand<T>;
110
+ /**
111
+ * @internal
112
+ */
113
+ export type _Function0<R> = () => R;
114
+ /**
115
+ * @internal
116
+ */
117
+ export type _Function1<T1, R> = (t1: T1) => R;
118
+ /**
119
+ * @internal
120
+ */
121
+ export type _Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
122
+ /**
123
+ * @internal
124
+ */
125
+ export type _Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
126
+ /**
127
+ * @internal
128
+ */
129
+ export type _Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
130
+ /**
131
+ * @internal
132
+ */
133
+ export type _Comparator<T> = (a: T, b: T) => boolean;
96
134
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/_/types.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;GAEG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,SAAS,CA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
+ /**
3
+ * Creates an array of unique values, in order, from all given arrays using SameValueZero for equality
4
+ * comparisons. Only array-like objects are inspected; other arguments, strings included, are skipped.
5
+ *
6
+ * @param arrays - The arrays to inspect.
7
+ * @returns Returns the new array of combined values.
8
+ * @internal
9
+ */
10
+ export declare function _union<T>(...arrays: (_List<T> | null | undefined)[]): T[];
11
+ //# sourceMappingURL=union.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/_/union.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAezE"}
package/esm/_/union.js ADDED
@@ -0,0 +1,55 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseUniq } from "./_baseUniq.js";
33
+ import { _isArrayLike } from "./isArrayLike.js";
34
+ import { _isObjectLike } from "./isObjectLike.js";
35
+ /**
36
+ * Creates an array of unique values, in order, from all given arrays using SameValueZero for equality
37
+ * comparisons. Only array-like objects are inspected; other arguments, strings included, are skipped.
38
+ *
39
+ * @param arrays - The arrays to inspect.
40
+ * @returns Returns the new array of combined values.
41
+ * @internal
42
+ */
43
+ export function _union(...arrays) {
44
+ const values = [];
45
+ for (const array of arrays) {
46
+ if (!_isObjectLike(array) || !_isArrayLike(array)) {
47
+ continue;
48
+ }
49
+ // visited by index, so holes become `undefined` entries
50
+ for (let index = 0; index < array.length; index++) {
51
+ values.push(array[index]);
52
+ }
53
+ }
54
+ return _baseUniq(values);
55
+ }
@@ -0,0 +1,14 @@
1
+ import type { _Comparator, _List } from "./types.js";
2
+ /**
3
+ * This method is like `_uniq` except that it accepts `comparator` which is invoked to compare elements of
4
+ * `array`. The order of result values is determined by the order they occur in the array. The comparator
5
+ * is invoked with two arguments: (arrVal, othVal), the candidate first and then each kept element in order.
6
+ * Without a function comparator, elements are compared with SameValueZero.
7
+ *
8
+ * @param array - The array to inspect.
9
+ * @param comparator - The comparator invoked per element.
10
+ * @returns Returns the new duplicate free array.
11
+ * @internal
12
+ */
13
+ export declare function _uniqWith<T>(array: _List<T> | null | undefined, comparator?: _Comparator<T>): T[];
14
+ //# sourceMappingURL=uniqWith.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniqWith.d.ts","sourceRoot":"","sources":["../../src/_/uniqWith.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAoBjG"}
@@ -0,0 +1,59 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseUniq } from "./_baseUniq.js";
33
+ /**
34
+ * This method is like `_uniq` except that it accepts `comparator` which is invoked to compare elements of
35
+ * `array`. The order of result values is determined by the order they occur in the array. The comparator
36
+ * is invoked with two arguments: (arrVal, othVal), the candidate first and then each kept element in order.
37
+ * Without a function comparator, elements are compared with SameValueZero.
38
+ *
39
+ * @param array - The array to inspect.
40
+ * @param comparator - The comparator invoked per element.
41
+ * @returns Returns the new duplicate free array.
42
+ * @internal
43
+ */
44
+ export function _uniqWith(array, comparator) {
45
+ if (!array?.length) {
46
+ return [];
47
+ }
48
+ if (typeof comparator !== "function") {
49
+ return _baseUniq(array);
50
+ }
51
+ const result = [];
52
+ for (let index = 0; index < array.length; index++) {
53
+ const value = array[index];
54
+ if (!result.some((kept) => comparator(value, kept))) {
55
+ result.push(value);
56
+ }
57
+ }
58
+ return result;
59
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Converts the first character of `string` to upper case. A surrogate pair, a character with combining
3
+ * marks or a joined emoji sequence counts as one character and is kept whole.
4
+ *
5
+ * @param string - The string to convert.
6
+ * @returns Returns the converted string.
7
+ * @internal
8
+ */
9
+ export declare function _upperFirst(string?: string): string;
10
+ //# sourceMappingURL=upperFirst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upperFirst.d.ts","sourceRoot":"","sources":["../../src/_/upperFirst.ts"],"names":[],"mappings":"AAoCA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAKnD"}
@@ -0,0 +1,46 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _hasUnicode, _unicodeToArray } from "./_unicode.js";
33
+ import { _toString } from "./toString.js";
34
+ /**
35
+ * Converts the first character of `string` to upper case. A surrogate pair, a character with combining
36
+ * marks or a joined emoji sequence counts as one character and is kept whole.
37
+ *
38
+ * @param string - The string to convert.
39
+ * @returns Returns the converted string.
40
+ * @internal
41
+ */
42
+ export function _upperFirst(string) {
43
+ const text = _toString(string);
44
+ const first = (_hasUnicode(text) ? _unicodeToArray(text)[0] : text.charAt(0)) ?? "";
45
+ return first.toUpperCase() + text.slice(first.length);
46
+ }
package/esm/_/zip.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ import type { _List } from "./types.js";
2
+ /**
3
+ * Creates an array of grouped elements, the first of which contains the first elements of the given arrays,
4
+ * the second of which contains the second elements of the given arrays, and so on. Shorter arrays are padded
5
+ * with `undefined` up to the longest one. Only array-like objects take part; other arguments are skipped.
6
+ *
7
+ * @param arrays - The arrays to process.
8
+ * @returns Returns the new array of grouped elements.
9
+ * @internal
10
+ */
11
+ export declare function _zip<T1, T2>(arrays1: _List<T1>, arrays2: _List<T2>): [T1 | undefined, T2 | undefined][];
12
+ /**
13
+ * @internal
14
+ */
15
+ export declare function _zip<T1, T2, T3>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>): [T1 | undefined, T2 | undefined, T3 | undefined][];
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare function _zip<T1, T2, T3, T4>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>, arrays4: _List<T4>): [T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined][];
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare function _zip<T1, T2, T3, T4, T5>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>, arrays4: _List<T4>, arrays5: _List<T5>): [T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined][];
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare function _zip<T>(...arrays: (_List<T> | null | undefined)[]): (T | undefined)[][];
28
+ //# sourceMappingURL=zip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../src/_/zip.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,SAAS,CA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