@gooddata/util 11.68.0-alpha.5 → 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 (125) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +177 -0
  3. package/esm/_/_assignValue.d.ts.map +1 -1
  4. package/esm/_/_assignValue.js +2 -6
  5. package/esm/_/_baseAssignValue.d.ts +41 -0
  6. package/esm/_/_baseAssignValue.d.ts.map +1 -0
  7. package/esm/_/_baseAssignValue.js +48 -0
  8. package/esm/_/_baseClone.d.ts.map +1 -1
  9. package/esm/_/_baseClone.js +3 -30
  10. package/esm/_/_baseMerge.d.ts +15 -0
  11. package/esm/_/_baseMerge.d.ts.map +1 -0
  12. package/esm/_/_baseMerge.js +137 -0
  13. package/esm/_/_baseOrderBy.d.ts +11 -0
  14. package/esm/_/_baseOrderBy.d.ts.map +1 -0
  15. package/esm/_/_baseOrderBy.js +70 -0
  16. package/esm/_/_basePickBy.d.ts +14 -0
  17. package/esm/_/_basePickBy.d.ts.map +1 -0
  18. package/esm/_/_basePickBy.js +57 -0
  19. package/esm/_/_cloneArrayBuffer.d.ts +39 -0
  20. package/esm/_/_cloneArrayBuffer.d.ts.map +1 -0
  21. package/esm/_/_cloneArrayBuffer.js +45 -0
  22. package/esm/_/_cloneTypedArray.d.ts +10 -0
  23. package/esm/_/_cloneTypedArray.d.ts.map +1 -0
  24. package/esm/_/_cloneTypedArray.js +49 -0
  25. package/esm/_/_compareAscending.d.ts +12 -0
  26. package/esm/_/_compareAscending.d.ts.map +1 -0
  27. package/esm/_/_compareAscending.js +78 -0
  28. package/esm/_/_createCompounder.d.ts +11 -0
  29. package/esm/_/_createCompounder.d.ts.map +1 -0
  30. package/esm/_/_createCompounder.js +47 -0
  31. package/esm/_/_initCloneObject.d.ts +10 -0
  32. package/esm/_/_initCloneObject.d.ts.map +1 -0
  33. package/esm/_/_initCloneObject.js +48 -0
  34. package/esm/_/_unicode.d.ts +27 -0
  35. package/esm/_/_unicode.d.ts.map +1 -0
  36. package/esm/_/_unicode.js +120 -0
  37. package/esm/_/camelCase.d.ts +10 -0
  38. package/esm/_/camelCase.d.ts.map +1 -0
  39. package/esm/_/camelCase.js +45 -0
  40. package/esm/_/capitalize.d.ts +9 -0
  41. package/esm/_/capitalize.d.ts.map +1 -0
  42. package/esm/_/capitalize.js +43 -0
  43. package/esm/_/deburr.d.ts +10 -0
  44. package/esm/_/deburr.d.ts.map +1 -0
  45. package/esm/_/deburr.js +243 -0
  46. package/esm/_/difference.d.ts +14 -0
  47. package/esm/_/difference.d.ts.map +1 -0
  48. package/esm/_/difference.js +67 -0
  49. package/esm/_/escape.d.ts +13 -0
  50. package/esm/_/escape.d.ts.map +1 -0
  51. package/esm/_/escape.js +56 -0
  52. package/esm/_/has.d.ts +23 -0
  53. package/esm/_/has.d.ts.map +1 -0
  54. package/esm/_/has.js +35 -0
  55. package/esm/_/isArray.d.ts +61 -0
  56. package/esm/_/isArray.d.ts.map +1 -0
  57. package/esm/_/isArray.js +62 -0
  58. package/esm/_/isPlainObject.d.ts +1 -1
  59. package/esm/_/isPlainObject.d.ts.map +1 -1
  60. package/esm/_/kebabCase.d.ts +9 -0
  61. package/esm/_/kebabCase.d.ts.map +1 -0
  62. package/esm/_/kebabCase.js +40 -0
  63. package/esm/_/keyBy.d.ts +17 -0
  64. package/esm/_/keyBy.d.ts.map +1 -0
  65. package/esm/_/keyBy.js +43 -0
  66. package/esm/_/keysIn.d.ts +10 -0
  67. package/esm/_/keysIn.d.ts.map +1 -0
  68. package/esm/_/keysIn.js +54 -0
  69. package/esm/_/memoize.d.ts +89 -0
  70. package/esm/_/memoize.d.ts.map +1 -0
  71. package/esm/_/memoize.js +36 -0
  72. package/esm/_/merge.d.ts +32 -0
  73. package/esm/_/merge.d.ts.map +1 -0
  74. package/esm/_/merge.js +45 -0
  75. package/esm/_/omit.d.ts +1 -5
  76. package/esm/_/omit.d.ts.map +1 -1
  77. package/esm/_/omitBy.d.ts +21 -0
  78. package/esm/_/omitBy.d.ts.map +1 -0
  79. package/esm/_/omitBy.js +37 -0
  80. package/esm/_/partial.d.ts +87 -0
  81. package/esm/_/partial.d.ts.map +1 -0
  82. package/esm/_/partial.js +30 -0
  83. package/esm/_/partition.d.ts +23 -0
  84. package/esm/_/partition.d.ts.map +1 -0
  85. package/esm/_/partition.js +42 -0
  86. package/esm/_/pick.d.ts +18 -0
  87. package/esm/_/pick.d.ts.map +1 -0
  88. package/esm/_/pick.js +48 -0
  89. package/esm/_/pickBy.d.ts +21 -0
  90. package/esm/_/pickBy.d.ts.map +1 -0
  91. package/esm/_/pickBy.js +36 -0
  92. package/esm/_/sortBy.d.ts +17 -0
  93. package/esm/_/sortBy.d.ts.map +1 -0
  94. package/esm/_/sortBy.js +46 -0
  95. package/esm/_/throttle.d.ts +76 -0
  96. package/esm/_/throttle.d.ts.map +1 -0
  97. package/esm/_/throttle.js +45 -0
  98. package/esm/_/toString.d.ts +11 -0
  99. package/esm/_/toString.d.ts.map +1 -0
  100. package/esm/_/toString.js +57 -0
  101. package/esm/_/types.d.ts +64 -0
  102. package/esm/_/types.d.ts.map +1 -1
  103. package/esm/_/union.d.ts +11 -0
  104. package/esm/_/union.d.ts.map +1 -0
  105. package/esm/_/union.js +55 -0
  106. package/esm/_/uniq.d.ts +12 -0
  107. package/esm/_/uniq.d.ts.map +1 -0
  108. package/esm/_/uniq.js +47 -0
  109. package/esm/_/uniqWith.d.ts +14 -0
  110. package/esm/_/uniqWith.d.ts.map +1 -0
  111. package/esm/_/uniqWith.js +59 -0
  112. package/esm/_/upperFirst.d.ts +10 -0
  113. package/esm/_/upperFirst.d.ts.map +1 -0
  114. package/esm/_/upperFirst.js +46 -0
  115. package/esm/_/words.d.ts +9 -0
  116. package/esm/_/words.d.ts.map +1 -0
  117. package/esm/_/words.js +50 -0
  118. package/esm/_/zip.d.ts +28 -0
  119. package/esm/_/zip.d.ts.map +1 -0
  120. package/esm/_/zip.js +38 -0
  121. package/esm/index.d.ts +23 -2
  122. package/esm/index.d.ts.map +1 -1
  123. package/esm/index.js +21 -0
  124. package/esm/util.d.ts +549 -0
  125. package/package.json +5 -4
package/esm/_/uniq.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 { _baseUniq } from "./_baseUniq.js";
33
+ /**
34
+ * Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which
35
+ * only the first occurrence of each element is kept. The order of result values is determined by the
36
+ * order they occur in the array.
37
+ *
38
+ * @param array - The array to inspect.
39
+ * @returns Returns the new duplicate free array.
40
+ * @internal
41
+ */
42
+ export function _uniq(array) {
43
+ if (!array?.length) {
44
+ return [];
45
+ }
46
+ return _baseUniq(array);
47
+ }
@@ -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
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Splits `string` into an array of its words.
3
+ *
4
+ * @param string - The string to inspect.
5
+ * @returns Returns the words of `string`.
6
+ * @internal
7
+ */
8
+ export declare function _words(string: string): string[];
9
+ //# sourceMappingURL=words.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../../src/_/words.ts"],"names":[],"mappings":"AA0CA;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAM/C"}
package/esm/_/words.js ADDED
@@ -0,0 +1,50 @@
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 { _unicodeWords } from "./_unicode.js";
33
+ /** Used to match words composed of alphanumeric characters. */
34
+ // oxlint-disable-next-line no-control-regex -- the word class deliberately excludes the control characters
35
+ const RE_ASCII_WORD = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
36
+ /** Used to detect strings that need a more robust regexp to match words. */
37
+ const RE_HAS_UNICODE_WORD = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
38
+ /**
39
+ * Splits `string` into an array of its words.
40
+ *
41
+ * @param string - The string to inspect.
42
+ * @returns Returns the words of `string`.
43
+ * @internal
44
+ */
45
+ export function _words(string) {
46
+ if (RE_HAS_UNICODE_WORD.test(string)) {
47
+ return _unicodeWords(string);
48
+ }
49
+ return string.match(RE_ASCII_WORD) ?? [];
50
+ }
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,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,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC"}
package/esm/_/zip.js ADDED
@@ -0,0 +1,38 @@
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 { _isArrayLike } from "./isArrayLike.js";
33
+ import { _isObjectLike } from "./isObjectLike.js";
34
+ export function _zip(...arrays) {
35
+ const groups = arrays.filter((array) => _isObjectLike(array) && _isArrayLike(array));
36
+ const length = groups.reduce((longest, group) => Math.max(longest, group.length), 0);
37
+ return Array.from({ length }, (_, index) => groups.map((group) => group[index]));
38
+ }
package/esm/index.d.ts CHANGED
@@ -12,15 +12,36 @@ export { type IShortenTextOptions, hashCodeString, randomString, shortenText, es
12
12
  export { removeMetadata, sanitizeLocaleForMoment } from "./translationUtils.js";
13
13
  export { type GuardType, type EmptyObject, combineGuards } from "./typesUtils.js";
14
14
  export { type MatcherFunction, type ConsoleFunction, type Matcher, type SpecificMatcherFunction, type ConsoleType, type WaitForFn, delay, strictBarrel, suppressConsole, createTightWaitFor, } from "./testUtils.js";
15
+ export { _camelCase } from "./_/camelCase.js";
16
+ export { _capitalize } from "./_/capitalize.js";
15
17
  export { _cloneDeep } from "./_/cloneDeep.js";
16
18
  export { type _Falsey, _compact } from "./_/compact.js";
17
19
  export { type _DebouncedFunc, type _DebouncedFuncLeading, type _DebounceSettings, type _DebounceSettingsLeading, _debounce, } from "./_/debounce.js";
20
+ export { _difference } from "./_/difference.js";
21
+ export { _escape } from "./_/escape.js";
18
22
  export { _groupBy } from "./_/groupBy.js";
23
+ export { _has } from "./_/has.js";
19
24
  export { _isEqual } from "./_/isEqual.js";
20
25
  export { type _EmptyObject, type _EmptyObjectOf, _isEmpty } from "./_/isEmpty.js";
21
- export { type _PartialObject, _omit } from "./_/omit.js";
26
+ export { _kebabCase } from "./_/kebabCase.js";
27
+ export { _keyBy } from "./_/keyBy.js";
28
+ export { _isPlainObject } from "./_/isPlainObject.js";
29
+ export { type _MapCache, type _MapCacheConstructor, type _Memoize, type _MemoizedFunction, _memoize, } from "./_/memoize.js";
30
+ export { _merge } from "./_/merge.js";
31
+ export { _omit } from "./_/omit.js";
32
+ export { _omitBy } from "./_/omitBy.js";
33
+ export { type _Partial, type _Placeholder, _partial } from "./_/partial.js";
34
+ export { _partition } from "./_/partition.js";
35
+ export { _pick } from "./_/pick.js";
36
+ export { _pickBy } from "./_/pickBy.js";
22
37
  export { _range } from "./_/range.js";
23
38
  export { type _PropertyPath, _set } from "./_/set.js";
39
+ export { _sortBy } from "./_/sortBy.js";
40
+ export { type _ThrottleSettings, type _ThrottleSettingsLeading, _throttle } from "./_/throttle.js";
41
+ export { _union } from "./_/union.js";
42
+ export { _uniq } from "./_/uniq.js";
24
43
  export { _uniqBy } from "./_/uniqBy.js";
25
- export type { _Dictionary, _IterateeShorthand, _List, _Many, _NotVoid, _PartialShallow, _PropertyName, _ValueIteratee, } from "./_/types.js";
44
+ export { _uniqWith } from "./_/uniqWith.js";
45
+ export { _zip } from "./_/zip.js";
46
+ export type { _Comparator, _Dictionary, _Function0, _Function1, _Function2, _Function3, _Function4, _IterateeShorthand, _List, _ListIteratee, _ListIterator, _Many, _NotVoid, _NumericDictionary, _ObjectIteratee, _ObjectIterator, _PartialObject, _PartialShallow, _PropertyName, _ValueIteratee, _ValueIterateeCustom, _ValueIteratorTypeGuard, _ValueKeyIteratee, } from "./_/types.js";
26
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACH,KAAK,mBAAmB,EACxB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,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AAiB,GACpB,MAAM,cAAc,CAAC"}
package/esm/index.js CHANGED
@@ -15,13 +15,34 @@ export { removeMetadata, sanitizeLocaleForMoment } from "./translationUtils.js";
15
15
  export { combineGuards } from "./typesUtils.js";
16
16
  export { delay, strictBarrel, suppressConsole, createTightWaitFor, } from "./testUtils.js";
17
17
  // local functions from lodash-es
18
+ export { _camelCase } from "./_/camelCase.js";
19
+ export { _capitalize } from "./_/capitalize.js";
18
20
  export { _cloneDeep } from "./_/cloneDeep.js";
19
21
  export { _compact } from "./_/compact.js";
20
22
  export { _debounce, } from "./_/debounce.js";
23
+ export { _difference } from "./_/difference.js";
24
+ export { _escape } from "./_/escape.js";
21
25
  export { _groupBy } from "./_/groupBy.js";
26
+ export { _has } from "./_/has.js";
22
27
  export { _isEqual } from "./_/isEqual.js";
23
28
  export { _isEmpty } from "./_/isEmpty.js";
29
+ export { _kebabCase } from "./_/kebabCase.js";
30
+ export { _keyBy } from "./_/keyBy.js";
31
+ export { _isPlainObject } from "./_/isPlainObject.js";
32
+ export { _memoize, } from "./_/memoize.js";
33
+ export { _merge } from "./_/merge.js";
24
34
  export { _omit } from "./_/omit.js";
35
+ export { _omitBy } from "./_/omitBy.js";
36
+ export { _partial } from "./_/partial.js";
37
+ export { _partition } from "./_/partition.js";
38
+ export { _pick } from "./_/pick.js";
39
+ export { _pickBy } from "./_/pickBy.js";
25
40
  export { _range } from "./_/range.js";
26
41
  export { _set } from "./_/set.js";
42
+ export { _sortBy } from "./_/sortBy.js";
43
+ export { _throttle } from "./_/throttle.js";
44
+ export { _union } from "./_/union.js";
45
+ export { _uniq } from "./_/uniq.js";
27
46
  export { _uniqBy } from "./_/uniqBy.js";
47
+ export { _uniqWith } from "./_/uniqWith.js";
48
+ export { _zip } from "./_/zip.js";