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

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 (163) hide show
  1. package/NOTICE +4 -2
  2. package/esm/_/_baseClone.d.ts +17 -4
  3. package/esm/_/_baseClone.d.ts.map +1 -1
  4. package/esm/_/_baseClone.js +55 -23
  5. package/esm/_/_baseDifference.d.ts +18 -0
  6. package/esm/_/_baseDifference.d.ts.map +1 -0
  7. package/esm/_/_baseDifference.js +79 -0
  8. package/esm/_/_baseExtremum.d.ts +15 -0
  9. package/esm/_/_baseExtremum.d.ts.map +1 -0
  10. package/esm/_/_baseExtremum.js +64 -0
  11. package/esm/_/_baseIntersection.d.ts +19 -0
  12. package/esm/_/_baseIntersection.d.ts.map +1 -0
  13. package/esm/_/_baseIntersection.js +91 -0
  14. package/esm/_/_baseMerge.d.ts +7 -3
  15. package/esm/_/_baseMerge.d.ts.map +1 -1
  16. package/esm/_/_baseMerge.js +20 -11
  17. package/esm/_/_baseSet.d.ts +3 -1
  18. package/esm/_/_baseSet.d.ts.map +1 -1
  19. package/esm/_/_baseSet.js +9 -3
  20. package/esm/_/_baseSlice.d.ts +45 -0
  21. package/esm/_/_baseSlice.d.ts.map +1 -0
  22. package/esm/_/_baseSlice.js +30 -0
  23. package/esm/_/_baseSum.d.ts +42 -0
  24. package/esm/_/_baseSum.d.ts.map +1 -0
  25. package/esm/_/_baseSum.js +21 -0
  26. package/esm/_/_cloneTypedArray.d.ts +1 -1
  27. package/esm/_/_cloneTypedArray.d.ts.map +1 -1
  28. package/esm/_/_cloneTypedArray.js +3 -2
  29. package/esm/_/_flattenArrayLikeObjects.d.ts +11 -0
  30. package/esm/_/_flattenArrayLikeObjects.d.ts.map +1 -0
  31. package/esm/_/_flattenArrayLikeObjects.js +55 -0
  32. package/esm/_/assignIn.d.ts +35 -0
  33. package/esm/_/assignIn.d.ts.map +1 -0
  34. package/esm/_/assignIn.js +50 -0
  35. package/esm/_/bindAll.d.ts +16 -0
  36. package/esm/_/bindAll.d.ts.map +1 -0
  37. package/esm/_/bindAll.js +88 -0
  38. package/esm/_/chunk.d.ts +15 -0
  39. package/esm/_/chunk.d.ts.map +1 -0
  40. package/esm/_/chunk.js +61 -0
  41. package/esm/_/clamp.d.ts +17 -0
  42. package/esm/_/clamp.d.ts.map +1 -0
  43. package/esm/_/clamp.js +56 -0
  44. package/esm/_/clone.d.ts +12 -0
  45. package/esm/_/clone.d.ts.map +1 -0
  46. package/esm/_/clone.js +45 -0
  47. package/esm/_/cloneDeep.js +1 -1
  48. package/esm/_/cloneDeepWith.d.ts +18 -0
  49. package/esm/_/cloneDeepWith.d.ts.map +1 -0
  50. package/esm/_/cloneDeepWith.js +36 -0
  51. package/esm/_/constant.d.ts +39 -0
  52. package/esm/_/constant.d.ts.map +1 -0
  53. package/esm/_/constant.js +43 -0
  54. package/esm/_/defaults.d.ts +36 -0
  55. package/esm/_/defaults.d.ts.map +1 -0
  56. package/esm/_/defaults.js +51 -0
  57. package/esm/_/difference.d.ts.map +1 -1
  58. package/esm/_/difference.js +2 -23
  59. package/esm/_/differenceBy.d.ts +39 -0
  60. package/esm/_/differenceBy.d.ts.map +1 -0
  61. package/esm/_/differenceBy.js +40 -0
  62. package/esm/_/differenceWith.d.ts +27 -0
  63. package/esm/_/differenceWith.d.ts.map +1 -0
  64. package/esm/_/differenceWith.js +39 -0
  65. package/esm/_/dropRightWhile.d.ts +13 -0
  66. package/esm/_/dropRightWhile.d.ts.map +1 -0
  67. package/esm/_/dropRightWhile.js +54 -0
  68. package/esm/_/escapeRegExp.d.ts +12 -0
  69. package/esm/_/escapeRegExp.d.ts.map +1 -0
  70. package/esm/_/escapeRegExp.js +47 -0
  71. package/esm/_/findKey.d.ts +14 -0
  72. package/esm/_/findKey.d.ts.map +1 -0
  73. package/esm/_/findKey.js +58 -0
  74. package/esm/_/findLastIndex.d.ts +16 -0
  75. package/esm/_/findLastIndex.d.ts.map +1 -0
  76. package/esm/_/findLastIndex.js +67 -0
  77. package/esm/_/get.d.ts +78 -0
  78. package/esm/_/get.d.ts.map +1 -0
  79. package/esm/_/get.js +36 -0
  80. package/esm/_/inRange.d.ts +14 -0
  81. package/esm/_/inRange.d.ts.map +1 -0
  82. package/esm/_/inRange.js +51 -0
  83. package/esm/_/initial.d.ts +11 -0
  84. package/esm/_/initial.d.ts.map +1 -0
  85. package/esm/_/initial.js +44 -0
  86. package/esm/_/intersection.d.ts +13 -0
  87. package/esm/_/intersection.d.ts.map +1 -0
  88. package/esm/_/intersection.js +45 -0
  89. package/esm/_/intersectionBy.d.ts +32 -0
  90. package/esm/_/intersectionBy.d.ts.map +1 -0
  91. package/esm/_/intersectionBy.js +41 -0
  92. package/esm/_/intersectionWith.d.ts +28 -0
  93. package/esm/_/intersectionWith.d.ts.map +1 -0
  94. package/esm/_/intersectionWith.js +38 -0
  95. package/esm/_/invert.d.ts +14 -0
  96. package/esm/_/invert.d.ts.map +1 -0
  97. package/esm/_/invert.js +55 -0
  98. package/esm/_/isError.d.ts +11 -0
  99. package/esm/_/isError.d.ts.map +1 -0
  100. package/esm/_/isError.js +57 -0
  101. package/esm/_/keys.d.ts +11 -0
  102. package/esm/_/keys.d.ts.map +1 -0
  103. package/esm/_/keys.js +60 -0
  104. package/esm/_/mapValues.d.ts +63 -0
  105. package/esm/_/mapValues.d.ts.map +1 -0
  106. package/esm/_/mapValues.js +47 -0
  107. package/esm/_/max.d.ts +16 -0
  108. package/esm/_/max.d.ts.map +1 -0
  109. package/esm/_/max.js +37 -0
  110. package/esm/_/mergeWith.d.ts +34 -0
  111. package/esm/_/mergeWith.d.ts.map +1 -0
  112. package/esm/_/mergeWith.js +50 -0
  113. package/esm/_/min.d.ts +16 -0
  114. package/esm/_/min.d.ts.map +1 -0
  115. package/esm/_/min.js +37 -0
  116. package/esm/_/negate.d.ts +41 -0
  117. package/esm/_/negate.d.ts.map +1 -0
  118. package/esm/_/negate.js +48 -0
  119. package/esm/_/reduce.d.ts +37 -0
  120. package/esm/_/reduce.d.ts.map +1 -0
  121. package/esm/_/reduce.js +48 -0
  122. package/esm/_/sumBy.d.ts +14 -0
  123. package/esm/_/sumBy.d.ts.map +1 -0
  124. package/esm/_/sumBy.js +47 -0
  125. package/esm/_/tail.d.ts +15 -0
  126. package/esm/_/tail.d.ts.map +1 -0
  127. package/esm/_/tail.js +36 -0
  128. package/esm/_/times.d.ts +17 -0
  129. package/esm/_/times.d.ts.map +1 -0
  130. package/esm/_/times.js +57 -0
  131. package/esm/_/toFinite.d.ts +0 -30
  132. package/esm/_/toFinite.d.ts.map +1 -1
  133. package/esm/_/toFinite.js +2 -2
  134. package/esm/_/toInteger.d.ts +11 -0
  135. package/esm/_/toInteger.d.ts.map +1 -0
  136. package/esm/_/toInteger.js +46 -0
  137. package/esm/_/toNumber.d.ts +11 -0
  138. package/esm/_/toNumber.d.ts.map +1 -0
  139. package/esm/_/toNumber.js +69 -0
  140. package/esm/_/types.d.ts +47 -0
  141. package/esm/_/types.d.ts.map +1 -1
  142. package/esm/_/unescape.d.ts +13 -0
  143. package/esm/_/unescape.d.ts.map +1 -0
  144. package/esm/_/unescape.js +56 -0
  145. package/esm/_/union.d.ts.map +1 -1
  146. package/esm/_/union.js +2 -13
  147. package/esm/_/unionBy.d.ts +34 -0
  148. package/esm/_/unionBy.d.ts.map +1 -0
  149. package/esm/_/unionBy.js +42 -0
  150. package/esm/_/update.d.ts +17 -0
  151. package/esm/_/update.d.ts.map +1 -0
  152. package/esm/_/update.js +55 -0
  153. package/esm/_/updateWith.d.ts +23 -0
  154. package/esm/_/updateWith.d.ts.map +1 -0
  155. package/esm/_/updateWith.js +41 -0
  156. package/esm/_/without.d.ts +15 -0
  157. package/esm/_/without.d.ts.map +1 -0
  158. package/esm/_/without.js +47 -0
  159. package/esm/index.d.ts +40 -3
  160. package/esm/index.d.ts.map +1 -1
  161. package/esm/index.js +39 -2
  162. package/esm/util.d.ts +918 -1
  163. package/package.json +3 -3
@@ -0,0 +1,48 @@
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
+ /**
33
+ * Creates a function that negates the result of the predicate `predicate`. The predicate is invoked with
34
+ * the `this` binding and arguments of the created function, and its result is coerced to a boolean.
35
+ *
36
+ * @param predicate - The predicate to negate.
37
+ * @returns Returns the new negated function.
38
+ * @throws TypeError when `predicate` is not a function.
39
+ * @internal
40
+ */
41
+ export function _negate(predicate) {
42
+ if (typeof predicate !== "function") {
43
+ throw new TypeError("Expected a function");
44
+ }
45
+ return function (...args) {
46
+ return !predicate.apply(this, args);
47
+ };
48
+ }
@@ -0,0 +1,37 @@
1
+ import type { _List, _MemoListIterator, _MemoObjectIterator } from "./types.js";
2
+ /**
3
+ * Reduces `collection` to a value which is the accumulated result of running each element in `collection`
4
+ * thru `iteratee`, where each successive invocation is supplied the return value of the previous. If
5
+ * `accumulator` is not given, the first element of `collection` is used as the initial value; whether it
6
+ * was given is decided by the argument count, as in lodash. The iteratee is invoked with four arguments:
7
+ * (accumulator, value, index|key, collection). Arrays and array-likes are iterated by index, strings by
8
+ * character, other objects by their own enumerable string keys.
9
+ *
10
+ * @param collection - The collection to iterate over.
11
+ * @param iteratee - The function invoked per iteration, or an iteratee shorthand.
12
+ * @param accumulator - The initial value.
13
+ * @returns Returns the accumulated value.
14
+ * @internal
15
+ */
16
+ export declare function _reduce<T, TResult>(collection: T[] | null | undefined, iteratee: _MemoListIterator<T, TResult, T[]>, accumulator: TResult): TResult;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _reduce<T, TResult>(collection: _List<T> | null | undefined, iteratee: _MemoListIterator<T, TResult, _List<T>>, accumulator: TResult): TResult;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare function _reduce<T extends object, TResult>(collection: T | null | undefined, iteratee: _MemoObjectIterator<T[keyof T], TResult, T>, accumulator: TResult): TResult;
25
+ /**
26
+ * @internal
27
+ */
28
+ export declare function _reduce<T>(collection: T[] | null | undefined, iteratee: _MemoListIterator<T, T, T[]>): T | undefined;
29
+ /**
30
+ * @internal
31
+ */
32
+ export declare function _reduce<T>(collection: _List<T> | null | undefined, iteratee: _MemoListIterator<T, T, _List<T>>): T | undefined;
33
+ /**
34
+ * @internal
35
+ */
36
+ export declare function _reduce<T extends object>(collection: T | null | undefined, iteratee: _MemoObjectIterator<T[keyof T], T[keyof T], T>): T[keyof T] | undefined;
37
+ //# sourceMappingURL=reduce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version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,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAC5C,CAAC,GAAG,SAAS,CAAC;AACjB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,UAAU,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAChC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACzD,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC"}
@@ -0,0 +1,48 @@
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 { _baseEach } from "./_baseEach.js";
33
+ import { _baseIteratee } from "./_baseIteratee.js";
34
+ export function _reduce(collection, iteratee, ...accumulator) {
35
+ const callback = _baseIteratee(iteratee);
36
+ let initial = accumulator.length === 0;
37
+ let result = accumulator[0];
38
+ _baseEach(collection, (value, key, iterable) => {
39
+ if (initial) {
40
+ initial = false;
41
+ result = value;
42
+ }
43
+ else {
44
+ result = callback(result, value, key, iterable);
45
+ }
46
+ });
47
+ return result;
48
+ }
@@ -0,0 +1,14 @@
1
+ import type { _List } from "./types.js";
2
+ /**
3
+ * This method is like `_sum` except that it accepts `iteratee` which is invoked for each element in `array`
4
+ * to generate the value to be summed. The iteratee is invoked with one argument: (value). Values are added
5
+ * with the `+` operator, `undefined` results are skipped, and, as in lodash, an empty or nullish array
6
+ * yields `0` while an array without any defined result yields `undefined`.
7
+ *
8
+ * @param array - The array to iterate over.
9
+ * @param iteratee - The iteratee invoked per element, or a property shorthand.
10
+ * @returns Returns the sum.
11
+ * @internal
12
+ */
13
+ export declare function _sumBy<T>(array: _List<T> | null | undefined, iteratee?: ((value: T) => number) | string): number;
14
+ //# sourceMappingURL=sumBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sumBy.d.ts","sourceRoot":"","sources":["../../src/_/sumBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,EACpB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAClC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,MAAM,GAC3C,MAAM,CAER"}
package/esm/_/sumBy.js ADDED
@@ -0,0 +1,47 @@
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 { _baseSum } from "./_baseSum.js";
34
+ /**
35
+ * This method is like `_sum` except that it accepts `iteratee` which is invoked for each element in `array`
36
+ * to generate the value to be summed. The iteratee is invoked with one argument: (value). Values are added
37
+ * with the `+` operator, `undefined` results are skipped, and, as in lodash, an empty or nullish array
38
+ * yields `0` while an array without any defined result yields `undefined`.
39
+ *
40
+ * @param array - The array to iterate over.
41
+ * @param iteratee - The iteratee invoked per element, or a property shorthand.
42
+ * @returns Returns the sum.
43
+ * @internal
44
+ */
45
+ export function _sumBy(array, iteratee) {
46
+ return array?.length ? _baseSum(array, _baseIteratee(iteratee)) : 0;
47
+ }
@@ -0,0 +1,15 @@
1
+ import type { _List } from "./types.js";
2
+ /**
3
+ * Gets all but the first element of `array` as a new dense array. Nullish input and anything without a
4
+ * truthy `length` yield an empty array.
5
+ *
6
+ * @param array - The array to query.
7
+ * @returns Returns the slice of `array`.
8
+ * @internal
9
+ */
10
+ export declare function _tail<T extends unknown[]>(array: readonly [unknown, ...T]): T;
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare function _tail<T>(array?: _List<T> | null): T[];
15
+ //# sourceMappingURL=tail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tail.d.ts","sourceRoot":"","sources":["../../src/_/tail.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/E;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC"}
package/esm/_/tail.js ADDED
@@ -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 { _baseSlice } from "./_baseSlice.js";
33
+ export function _tail(array) {
34
+ const length = array == null ? 0 : array.length;
35
+ return length ? _baseSlice(array, 1, length) : [];
36
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Invokes the iteratee `n` times, returning an array of the results of each invocation. The iteratee is
3
+ * invoked with one argument, the index, and anything but a function is replaced by the identity, so the
4
+ * indices are returned. The count is coerced to an integer the way lodash does it; a count below 1 or above
5
+ * the safe integer range yields an empty array.
6
+ *
7
+ * @param n - The number of times to invoke `iteratee`.
8
+ * @param iteratee - The function invoked per iteration.
9
+ * @returns Returns the array of results.
10
+ * @internal
11
+ */
12
+ export declare function _times<TResult>(n: number, iteratee: (index: number) => TResult): TResult[];
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _times(n: number): number[];
17
+ //# sourceMappingURL=times.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../src/_/times.ts"],"names":[],"mappings":"AAsCA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,EAAE,CAAC;AAC5F;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC"}
package/esm/_/times.js ADDED
@@ -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 { _toInteger } from "./toInteger.js";
33
+ /** Used as the maximum length of an array. */
34
+ const MAX_ARRAY_LENGTH = 4294967295;
35
+ export function _times(n, iteratee) {
36
+ const count = _toInteger(n);
37
+ if (count < 1 || count > Number.MAX_SAFE_INTEGER) {
38
+ return [];
39
+ }
40
+ const invoke = typeof iteratee === "function" ? iteratee : identity;
41
+ const length = Math.min(count, MAX_ARRAY_LENGTH);
42
+ const result = Array(length);
43
+ for (let index = 0; index < length; index++) {
44
+ result[index] = invoke(index);
45
+ }
46
+ // beyond the maximum array length lodash keeps invoking the iteratee without storing the results, with
47
+ // exactly this arithmetic
48
+ let index = MAX_ARRAY_LENGTH;
49
+ const remaining = count - MAX_ARRAY_LENGTH;
50
+ while (++index < remaining) {
51
+ invoke(index);
52
+ }
53
+ return result;
54
+ }
55
+ function identity(index) {
56
+ return index;
57
+ }
@@ -1,33 +1,3 @@
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
1
  /**
32
2
  * Converts `value` to a finite number: `NaN` and anything that does not convert become `0`, infinities
33
3
  * become the largest finite number of their sign, and the sign of `-0` is kept.
@@ -1 +1 @@
1
- {"version":3,"file":"toFinite.d.ts","sourceRoot":"","sources":["../../src/_/toFinite.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAahD"}
1
+ {"version":3,"file":"toFinite.d.ts","sourceRoot":"","sources":["../../src/_/toFinite.ts"],"names":[],"mappings":"AAmCA;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAYhD"}
package/esm/_/toFinite.js CHANGED
@@ -29,6 +29,7 @@
29
29
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
30
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
31
  */
32
+ import { _toNumber } from "./toNumber.js";
32
33
  /**
33
34
  * Converts `value` to a finite number: `NaN` and anything that does not convert become `0`, infinities
34
35
  * become the largest finite number of their sign, and the sign of `-0` is kept.
@@ -41,8 +42,7 @@ export function _toFinite(value) {
41
42
  if (!value) {
42
43
  return value === 0 ? value : 0;
43
44
  }
44
- // a symbol cannot be converted; lodash maps it to NaN, which becomes 0 below
45
- const number = typeof value === "symbol" ? NaN : Number(value);
45
+ const number = _toNumber(value);
46
46
  if (number === Infinity || number === -Infinity) {
47
47
  return Math.sign(number) * Number.MAX_VALUE;
48
48
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to an integer, truncating towards zero after the lodash numeric coercion of `_toFinite`:
3
+ * `NaN` and unconvertible values become `0` and infinities become the largest finite integer of their
4
+ * sign.
5
+ *
6
+ * @param value - The value to convert.
7
+ * @returns Returns the converted integer.
8
+ * @internal
9
+ */
10
+ export declare function _toInteger(value: unknown): number;
11
+ //# sourceMappingURL=toInteger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toInteger.d.ts","sourceRoot":"","sources":["../../src/_/toInteger.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKjD"}
@@ -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 { _toFinite } from "./toFinite.js";
33
+ /**
34
+ * Converts `value` to an integer, truncating towards zero after the lodash numeric coercion of `_toFinite`:
35
+ * `NaN` and unconvertible values become `0` and infinities become the largest finite integer of their
36
+ * sign.
37
+ *
38
+ * @param value - The value to convert.
39
+ * @returns Returns the converted integer.
40
+ * @internal
41
+ */
42
+ export function _toInteger(value) {
43
+ const result = _toFinite(value);
44
+ const remainder = result % 1;
45
+ return remainder ? result - remainder : result;
46
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to a number. Symbols become `NaN`, objects are converted through `valueOf`, and strings
3
+ * are trimmed and may use the `0b`, `0o` and `0x` prefixes; a signed hexadecimal string becomes `NaN`.
4
+ * A bigint throws, as the numeric coercion does.
5
+ *
6
+ * @param value - The value to process.
7
+ * @returns Returns the number.
8
+ * @internal
9
+ */
10
+ export declare function _toNumber(value: unknown): number;
11
+ //# sourceMappingURL=toNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../src/_/toNumber.ts"],"names":[],"mappings":"AA6CA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CA2BhD"}
@@ -0,0 +1,69 @@
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 { _isObject } from "./isObject.js";
33
+ import { _isSymbol } from "./isSymbol.js";
34
+ /** Used to detect bad signed hexadecimal string values. */
35
+ const RE_IS_BAD_HEX = /^[-+]0x[0-9a-f]+$/i;
36
+ /** Used to detect binary string values. */
37
+ const RE_IS_BINARY = /^0b[01]+$/i;
38
+ /** Used to detect octal string values. */
39
+ const RE_IS_OCTAL = /^0o[0-7]+$/i;
40
+ /**
41
+ * Converts `value` to a number. Symbols become `NaN`, objects are converted through `valueOf`, and strings
42
+ * are trimmed and may use the `0b`, `0o` and `0x` prefixes; a signed hexadecimal string becomes `NaN`.
43
+ * A bigint throws, as the numeric coercion does.
44
+ *
45
+ * @param value - The value to process.
46
+ * @returns Returns the number.
47
+ * @internal
48
+ */
49
+ export function _toNumber(value) {
50
+ if (typeof value === "number") {
51
+ return value;
52
+ }
53
+ if (_isSymbol(value)) {
54
+ return NaN;
55
+ }
56
+ if (_isObject(value)) {
57
+ const other = typeof value.valueOf === "function" ? value.valueOf() : value;
58
+ value = _isObject(other) ? String(other) : other;
59
+ }
60
+ if (typeof value !== "string") {
61
+ return value === 0 ? value : +value;
62
+ }
63
+ const trimmed = value.trim();
64
+ const isBinary = RE_IS_BINARY.test(trimmed);
65
+ if (isBinary || RE_IS_OCTAL.test(trimmed)) {
66
+ return parseInt(trimmed.slice(2), isBinary ? 2 : 8);
67
+ }
68
+ return RE_IS_BAD_HEX.test(trimmed) ? NaN : +trimmed;
69
+ }
package/esm/_/types.d.ts CHANGED
@@ -81,6 +81,10 @@ export type _ListIterator<T, TResult> = (value: T, index: number, collection: _L
81
81
  * @internal
82
82
  */
83
83
  export type _ListIteratee<T> = _ListIterator<T, _NotVoid> | _IterateeShorthand<T>;
84
+ /**
85
+ * @internal
86
+ */
87
+ export type _ListIterateeCustom<T, TResult> = _ListIterator<T, TResult> | _IterateeShorthand<T>;
84
88
  /**
85
89
  * @internal
86
90
  */
@@ -131,4 +135,47 @@ export type _Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) =>
131
135
  * @internal
132
136
  */
133
137
  export type _Comparator<T> = (a: T, b: T) => boolean;
138
+ /**
139
+ * @internal
140
+ */
141
+ export type _Comparator2<T1, T2> = (a: T1, b: T2) => boolean;
142
+ /**
143
+ * @internal
144
+ */
145
+ export type _ArrayIterator<T, TResult> = (value: T, index: number, collection: T[]) => TResult;
146
+ /**
147
+ * @internal
148
+ */
149
+ export type _StringIterator<TResult> = (char: string, index: number, string: string) => TResult;
150
+ /**
151
+ * The customizer of `_mergeWith`: invoked per property with the destination value, the source value, the
152
+ * key, the destination and source objects being merged, and the stack of traversed source values. A result
153
+ * other than `undefined` is used as the merged value.
154
+ *
155
+ * @internal
156
+ */
157
+ export type _MergeWithCustomizer = (value: any, srcValue: any, key: string, object: any, source: any, stack: any) => any;
158
+ /**
159
+ * The customizer of `_cloneDeepWith`: invoked with the value alone at the top level and with the value,
160
+ * its key, the containing object and the stack of objects being cloned below. A result other than
161
+ * `undefined` is used as the cloned value.
162
+ *
163
+ * @internal
164
+ */
165
+ export type _CloneDeepWithCustomizer<TObject> = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any;
166
+ /**
167
+ * @internal
168
+ */
169
+ export type _MemoListIterator<T, TResult, TList> = (prev: TResult, curr: T, index: number, list: TList) => TResult;
170
+ /**
171
+ * @internal
172
+ */
173
+ export type _MemoObjectIterator<T, TResult, TList> = (prev: TResult, curr: T, key: string, list: TList) => TResult;
174
+ /**
175
+ * The customizer of `_updateWith`: invoked for every intermediate path segment with the current value, the
176
+ * key and the object holding it. A result other than `undefined` is used as the container for that segment.
177
+ *
178
+ * @internal
179
+ */
180
+ export type _SetWithCustomizer<T> = (nsValue: any, key: string, nsObject: T) => any;
134
181
  //# 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,CAAC,CAAC,CAAC,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IACzB,CAAC,KAAK,EAAE,MAAM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,MAAM,EACX,QAAQ,EAAE,CAAC,KAEV,GAAG,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The inverse of `_escape`; this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;` and
3
+ * `&#39;` in `string` to their corresponding characters.
4
+ *
5
+ * **Note:** No other HTML entities are unescaped. To unescape additional HTML entities use a third-party
6
+ * library like [he](https://mths.be/he).
7
+ *
8
+ * @param string - The string to unescape.
9
+ * @returns Returns the unescaped string.
10
+ * @internal
11
+ */
12
+ export declare function _unescape(string?: string): string;
13
+ //# sourceMappingURL=unescape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unescape.d.ts","sourceRoot":"","sources":["../../src/_/unescape.ts"],"names":[],"mappings":"AA+CA;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjD"}