@gooddata/util 11.68.0-alpha.2 → 11.68.0-alpha.3

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 (152) hide show
  1. package/esm/_/_assignValue.d.ts +12 -0
  2. package/esm/_/_assignValue.d.ts.map +1 -0
  3. package/esm/_/_assignValue.js +53 -0
  4. package/esm/_/_baseClone.d.ts +15 -0
  5. package/esm/_/_baseClone.d.ts.map +1 -0
  6. package/esm/_/_baseClone.js +224 -0
  7. package/esm/_/_baseEach.d.ts +11 -0
  8. package/esm/_/_baseEach.d.ts.map +1 -0
  9. package/esm/_/_baseEach.js +62 -0
  10. package/esm/_/_baseGet.d.ts +10 -0
  11. package/esm/_/_baseGet.d.ts.map +1 -0
  12. package/esm/_/_baseGet.js +50 -0
  13. package/esm/_/_baseGetTag.d.ts +9 -0
  14. package/esm/_/_baseGetTag.d.ts.map +1 -0
  15. package/esm/_/_baseGetTag.js +48 -0
  16. package/esm/_/_baseIsEqual.d.ts +34 -0
  17. package/esm/_/_baseIsEqual.d.ts.map +1 -0
  18. package/esm/_/_baseIsEqual.js +278 -0
  19. package/esm/_/_baseIsMatch.d.ts +13 -0
  20. package/esm/_/_baseIsMatch.d.ts.map +1 -0
  21. package/esm/_/_baseIsMatch.js +67 -0
  22. package/esm/_/_baseIteratee.d.ts +15 -0
  23. package/esm/_/_baseIteratee.d.ts.map +1 -0
  24. package/esm/_/_baseIteratee.js +65 -0
  25. package/esm/_/_baseKeys.d.ts +12 -0
  26. package/esm/_/_baseKeys.d.ts.map +1 -0
  27. package/esm/_/_baseKeys.js +46 -0
  28. package/esm/_/_baseMatches.d.ts +10 -0
  29. package/esm/_/_baseMatches.d.ts.map +1 -0
  30. package/esm/_/_baseMatches.js +50 -0
  31. package/esm/_/_baseMatchesProperty.d.ts +11 -0
  32. package/esm/_/_baseMatchesProperty.d.ts.map +1 -0
  33. package/esm/_/_baseMatchesProperty.js +59 -0
  34. package/esm/_/_baseSet.d.ts +11 -0
  35. package/esm/_/_baseSet.d.ts.map +1 -0
  36. package/esm/_/_baseSet.js +68 -0
  37. package/esm/_/_baseUniq.d.ts +43 -0
  38. package/esm/_/_baseUniq.d.ts.map +1 -0
  39. package/esm/_/_baseUniq.js +57 -0
  40. package/esm/_/_baseUnset.d.ts +13 -0
  41. package/esm/_/_baseUnset.d.ts.map +1 -0
  42. package/esm/_/_baseUnset.js +62 -0
  43. package/esm/_/_castPath.d.ts +10 -0
  44. package/esm/_/_castPath.d.ts.map +1 -0
  45. package/esm/_/_castPath.js +48 -0
  46. package/esm/_/_getAllKeys.d.ts +9 -0
  47. package/esm/_/_getAllKeys.d.ts.map +1 -0
  48. package/esm/_/_getAllKeys.js +43 -0
  49. package/esm/_/_getAllKeysIn.d.ts +12 -0
  50. package/esm/_/_getAllKeysIn.d.ts.map +1 -0
  51. package/esm/_/_getAllKeysIn.js +59 -0
  52. package/esm/_/_getMatchData.d.ts +16 -0
  53. package/esm/_/_getMatchData.d.ts.map +1 -0
  54. package/esm/_/_getMatchData.js +46 -0
  55. package/esm/_/_getRawTag.d.ts +43 -0
  56. package/esm/_/_getRawTag.d.ts.map +1 -0
  57. package/esm/_/_getRawTag.js +65 -0
  58. package/esm/_/_hasPath.d.ts +13 -0
  59. package/esm/_/_hasPath.d.ts.map +1 -0
  60. package/esm/_/_hasPath.js +70 -0
  61. package/esm/_/_isIndex.d.ts +11 -0
  62. package/esm/_/_isIndex.d.ts.map +1 -0
  63. package/esm/_/_isIndex.js +51 -0
  64. package/esm/_/_isIterateeCall.d.ts +13 -0
  65. package/esm/_/_isIterateeCall.d.ts.map +1 -0
  66. package/esm/_/_isIterateeCall.js +55 -0
  67. package/esm/_/_isKey.d.ts +12 -0
  68. package/esm/_/_isKey.d.ts.map +1 -0
  69. package/esm/_/_isKey.js +58 -0
  70. package/esm/_/_isPrototype.d.ts +39 -0
  71. package/esm/_/_isPrototype.d.ts.map +1 -0
  72. package/esm/_/_isPrototype.js +43 -0
  73. package/esm/_/_isStrictComparable.d.ts +9 -0
  74. package/esm/_/_isStrictComparable.d.ts.map +1 -0
  75. package/esm/_/_isStrictComparable.js +42 -0
  76. package/esm/_/_matchesStrictComparable.d.ts +41 -0
  77. package/esm/_/_matchesStrictComparable.d.ts.map +1 -0
  78. package/esm/_/_matchesStrictComparable.js +50 -0
  79. package/esm/_/_stringToPath.d.ts +10 -0
  80. package/esm/_/_stringToPath.d.ts.map +1 -0
  81. package/esm/_/_stringToPath.js +64 -0
  82. package/esm/_/_toKey.d.ts +9 -0
  83. package/esm/_/_toKey.d.ts.map +1 -0
  84. package/esm/_/_toKey.js +46 -0
  85. package/esm/_/cloneDeep.d.ts +14 -0
  86. package/esm/_/cloneDeep.d.ts.map +1 -0
  87. package/esm/_/cloneDeep.js +47 -0
  88. package/esm/_/compact.d.ts +46 -0
  89. package/esm/_/compact.d.ts.map +1 -0
  90. package/esm/_/compact.js +23 -0
  91. package/esm/_/debounce.d.ts +70 -0
  92. package/esm/_/debounce.d.ts.map +1 -0
  93. package/esm/_/debounce.js +136 -0
  94. package/esm/_/eq.d.ts +41 -0
  95. package/esm/_/eq.d.ts.map +1 -0
  96. package/esm/_/eq.js +43 -0
  97. package/esm/_/groupBy.d.ts +19 -0
  98. package/esm/_/groupBy.d.ts.map +1 -0
  99. package/esm/_/groupBy.js +49 -0
  100. package/esm/_/isArguments.d.ts +9 -0
  101. package/esm/_/isArguments.d.ts.map +1 -0
  102. package/esm/_/isArguments.js +45 -0
  103. package/esm/_/isArrayLike.d.ts +25 -0
  104. package/esm/_/isArrayLike.d.ts.map +1 -0
  105. package/esm/_/isArrayLike.js +35 -0
  106. package/esm/_/isEmpty.d.ts +49 -0
  107. package/esm/_/isEmpty.d.ts.map +1 -0
  108. package/esm/_/isEmpty.js +57 -0
  109. package/esm/_/isEqual.d.ts +15 -0
  110. package/esm/_/isEqual.d.ts.map +1 -0
  111. package/esm/_/isEqual.js +48 -0
  112. package/esm/_/isLength.d.ts +41 -0
  113. package/esm/_/isLength.d.ts.map +1 -0
  114. package/esm/_/isLength.js +43 -0
  115. package/esm/_/isObject.d.ts +40 -0
  116. package/esm/_/isObject.d.ts.map +1 -0
  117. package/esm/_/isObject.js +42 -0
  118. package/esm/_/isObjectLike.d.ts +40 -0
  119. package/esm/_/isObjectLike.d.ts.map +1 -0
  120. package/esm/_/isObjectLike.js +42 -0
  121. package/esm/_/isPlainObject.d.ts +10 -0
  122. package/esm/_/isPlainObject.d.ts.map +1 -0
  123. package/esm/_/isPlainObject.js +58 -0
  124. package/esm/_/isSymbol.d.ts +9 -0
  125. package/esm/_/isSymbol.d.ts.map +1 -0
  126. package/esm/_/isSymbol.js +45 -0
  127. package/esm/_/isTypedArray.d.ts +43 -0
  128. package/esm/_/isTypedArray.d.ts.map +1 -0
  129. package/esm/_/isTypedArray.js +45 -0
  130. package/esm/_/omit.d.ts +31 -0
  131. package/esm/_/omit.d.ts.map +1 -0
  132. package/esm/_/omit.js +76 -0
  133. package/esm/_/range.d.ts +24 -0
  134. package/esm/_/range.d.ts.map +1 -0
  135. package/esm/_/range.js +56 -0
  136. package/esm/_/set.d.ts +25 -0
  137. package/esm/_/set.d.ts.map +1 -0
  138. package/esm/_/set.js +35 -0
  139. package/esm/_/toFinite.d.ts +40 -0
  140. package/esm/_/toFinite.d.ts.map +1 -0
  141. package/esm/_/toFinite.js +50 -0
  142. package/esm/_/types.d.ts +70 -0
  143. package/esm/_/types.d.ts.map +1 -0
  144. package/esm/_/types.js +2 -0
  145. package/esm/_/uniqBy.d.ts +13 -0
  146. package/esm/_/uniqBy.d.ts.map +1 -0
  147. package/esm/_/uniqBy.js +49 -0
  148. package/esm/index.d.ts +11 -0
  149. package/esm/index.d.ts.map +1 -1
  150. package/esm/index.js +11 -0
  151. package/esm/util.d.ts +337 -0
  152. package/package.json +3 -3
@@ -0,0 +1,68 @@
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 { _assignValue } from "./_assignValue.js";
33
+ import { _castPath } from "./_castPath.js";
34
+ import { _isIndex } from "./_isIndex.js";
35
+ import { _toKey } from "./_toKey.js";
36
+ import { _isObject } from "./isObject.js";
37
+ /**
38
+ * The base implementation of `set`.
39
+ *
40
+ * @param object - The object to modify.
41
+ * @param path - The path of the property to set.
42
+ * @param value - The value to set.
43
+ * @returns Returns `object`.
44
+ * @internal
45
+ */
46
+ export function _baseSet(object, path, value) {
47
+ if (!_isObject(object)) {
48
+ return object;
49
+ }
50
+ const keys = _castPath(path, object);
51
+ const lastIndex = keys.length - 1;
52
+ let nested = object;
53
+ for (let index = 0; nested != null && index < keys.length; index++) {
54
+ const key = _toKey(keys[index]);
55
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
56
+ return object;
57
+ }
58
+ let newValue = value;
59
+ if (index !== lastIndex) {
60
+ const objValue = nested[key];
61
+ // keep an existing container, otherwise create an array for an index segment and an object otherwise
62
+ newValue = _isObject(objValue) ? objValue : _isIndex(keys[index + 1]) ? [] : {};
63
+ }
64
+ _assignValue(nested, key, newValue);
65
+ nested = nested[key];
66
+ }
67
+ return object;
68
+ }
@@ -0,0 +1,43 @@
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
+ /**
32
+ * The base implementation of `uniqBy` without support for iteratee shorthands.
33
+ *
34
+ * Computed keys are compared by SameValueZero, which is what a `Set` uses: `NaN` equals `NaN`, `0`
35
+ * equals `-0`, and objects compare by reference.
36
+ *
37
+ * @param array - The array to inspect.
38
+ * @param iteratee - The iteratee invoked per element to compute its key.
39
+ * @returns Returns the new duplicate free array.
40
+ * @internal
41
+ */
42
+ export declare function _baseUniq<T>(array: ArrayLike<T>, iteratee?: (value: T) => unknown): T[];
43
+ //# sourceMappingURL=_baseUniq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseUniq.d.ts","sourceRoot":"","sources":["../../src/_/_baseUniq.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAmBvF"}
@@ -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
+ /**
33
+ * The base implementation of `uniqBy` without support for iteratee shorthands.
34
+ *
35
+ * Computed keys are compared by SameValueZero, which is what a `Set` uses: `NaN` equals `NaN`, `0`
36
+ * equals `-0`, and objects compare by reference.
37
+ *
38
+ * @param array - The array to inspect.
39
+ * @param iteratee - The iteratee invoked per element to compute its key.
40
+ * @returns Returns the new duplicate free array.
41
+ * @internal
42
+ */
43
+ export function _baseUniq(array, iteratee) {
44
+ const seen = new Set();
45
+ const result = [];
46
+ for (let index = 0; index < array.length; index++) {
47
+ const value = array[index];
48
+ const computed = iteratee ? iteratee(value) : value;
49
+ if (seen.has(computed)) {
50
+ continue;
51
+ }
52
+ seen.add(computed);
53
+ // lodash normalises `-0` to `+0` in the result
54
+ result.push(value === 0 ? 0 : value);
55
+ }
56
+ return result;
57
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The base implementation of `unset`.
3
+ *
4
+ * Refuses `__proto__` anywhere in the path unless it is an own key, and `constructor` or `prototype`
5
+ * as intermediate segments, so a path can never escape the object graph into built-ins.
6
+ *
7
+ * @param object - The object to modify.
8
+ * @param path - The property path to unset.
9
+ * @returns Returns `true` if the property is deleted or absent, else `false`.
10
+ * @internal
11
+ */
12
+ export declare function _baseUnset(object: object, path: unknown): boolean;
13
+ //# sourceMappingURL=_baseUnset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseUnset.d.ts","sourceRoot":"","sources":["../../src/_/_baseUnset.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAsBjE"}
@@ -0,0 +1,62 @@
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 { _baseGet } from "./_baseGet.js";
33
+ import { _castPath } from "./_castPath.js";
34
+ import { _toKey } from "./_toKey.js";
35
+ /**
36
+ * The base implementation of `unset`.
37
+ *
38
+ * Refuses `__proto__` anywhere in the path unless it is an own key, and `constructor` or `prototype`
39
+ * as intermediate segments, so a path can never escape the object graph into built-ins.
40
+ *
41
+ * @param object - The object to modify.
42
+ * @param path - The property path to unset.
43
+ * @returns Returns `true` if the property is deleted or absent, else `false`.
44
+ * @internal
45
+ */
46
+ export function _baseUnset(object, path) {
47
+ const keys = _castPath(path, object);
48
+ if (keys.length === 0) {
49
+ return true;
50
+ }
51
+ for (let index = 0; index < keys.length; index++) {
52
+ const key = _toKey(keys[index]);
53
+ if (key === "__proto__" && !Object.hasOwn(object, "__proto__")) {
54
+ return false;
55
+ }
56
+ if ((key === "constructor" || key === "prototype") && index < keys.length - 1) {
57
+ return false;
58
+ }
59
+ }
60
+ const parent = keys.length < 2 ? object : _baseGet(object, keys.slice(0, -1));
61
+ return parent == null || delete parent[_toKey(keys[keys.length - 1])];
62
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Casts `value` to a path array if it's not one.
3
+ *
4
+ * @param value - The value to inspect.
5
+ * @param object - The object to query keys on.
6
+ * @returns Returns the cast property path array.
7
+ * @internal
8
+ */
9
+ export declare function _castPath(value: unknown, object?: object): unknown[];
10
+ //# sourceMappingURL=_castPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_castPath.d.ts","sourceRoot":"","sources":["../../src/_/_castPath.ts"],"names":[],"mappings":"AAoCA;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAOpE"}
@@ -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 { _isKey } from "./_isKey.js";
33
+ import { _stringToPath } from "./_stringToPath.js";
34
+ /**
35
+ * Casts `value` to a path array if it's not one.
36
+ *
37
+ * @param value - The value to inspect.
38
+ * @param object - The object to query keys on.
39
+ * @returns Returns the cast property path array.
40
+ * @internal
41
+ */
42
+ export function _castPath(value, object) {
43
+ if (Array.isArray(value)) {
44
+ return value;
45
+ }
46
+ // a non-key is either a path string or an object whose string form is the path
47
+ return _isKey(value, object) ? [value] : _stringToPath(String(value));
48
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Creates an array of own enumerable property names and symbols of `object`.
3
+ *
4
+ * @param object - The object to query.
5
+ * @returns Returns the array of property names and symbols.
6
+ * @internal
7
+ */
8
+ export declare function _getAllKeys(object: object): (string | symbol)[];
9
+ //# sourceMappingURL=_getAllKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_getAllKeys.d.ts","sourceRoot":"","sources":["../../src/_/_getAllKeys.ts"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAM/D"}
@@ -0,0 +1,43 @@
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 { _baseKeys } from "./_baseKeys.js";
33
+ /**
34
+ * Creates an array of own enumerable property names and symbols of `object`.
35
+ *
36
+ * @param object - The object to query.
37
+ * @returns Returns the array of property names and symbols.
38
+ * @internal
39
+ */
40
+ export function _getAllKeys(object) {
41
+ const symbols = Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
42
+ return [..._baseKeys(object), ...symbols];
43
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Creates an array of the own and inherited enumerable property names and symbols of `object`.
3
+ *
4
+ * An inherited enumerable `constructor` key is skipped, as is one on a prototype object, since it
5
+ * only exists because a prototype was replaced wholesale.
6
+ *
7
+ * @param object - The object to query.
8
+ * @returns Returns the array of property names and symbols.
9
+ * @internal
10
+ */
11
+ export declare function _getAllKeysIn(object: object): (string | symbol)[];
12
+ //# sourceMappingURL=_getAllKeysIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_getAllKeysIn.d.ts","sourceRoot":"","sources":["../../src/_/_getAllKeysIn.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAmBjE"}
@@ -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 { _isPrototype } from "./_isPrototype.js";
33
+ /**
34
+ * Creates an array of the own and inherited enumerable property names and symbols of `object`.
35
+ *
36
+ * An inherited enumerable `constructor` key is skipped, as is one on a prototype object, since it
37
+ * only exists because a prototype was replaced wholesale.
38
+ *
39
+ * @param object - The object to query.
40
+ * @returns Returns the array of property names and symbols.
41
+ * @internal
42
+ */
43
+ export function _getAllKeysIn(object) {
44
+ const skipConstructor = _isPrototype(object) || !Object.hasOwn(object, "constructor");
45
+ const keys = [];
46
+ for (const key in object) {
47
+ if (!(key === "constructor" && skipConstructor)) {
48
+ keys.push(key);
49
+ }
50
+ }
51
+ for (let current = object; current !== null; current = Object.getPrototypeOf(current)) {
52
+ for (const symbol of Object.getOwnPropertySymbols(current)) {
53
+ if (Object.prototype.propertyIsEnumerable.call(current, symbol)) {
54
+ keys.push(symbol);
55
+ }
56
+ }
57
+ }
58
+ return keys;
59
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * One own enumerable property of a match source: its key, its value, and whether that value can be
3
+ * compared with `===` instead of a deep comparison.
4
+ *
5
+ * @internal
6
+ */
7
+ export type _MatchData = [key: string, srcValue: unknown, isStrict: boolean];
8
+ /**
9
+ * Gets the property names, values, and compare flags of `source`.
10
+ *
11
+ * @param source - The object to query.
12
+ * @returns Returns the match data of `source`.
13
+ * @internal
14
+ */
15
+ export declare function _getMatchData(source: object): _MatchData[];
16
+ //# sourceMappingURL=_getMatchData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_getMatchData.d.ts","sourceRoot":"","sources":["../../src/_/_getMatchData.ts"],"names":[],"mappings":"AAoCA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE7E;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,CAM1D"}
@@ -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 { _baseKeys } from "./_baseKeys.js";
33
+ import { _isStrictComparable } from "./_isStrictComparable.js";
34
+ /**
35
+ * Gets the property names, values, and compare flags of `source`.
36
+ *
37
+ * @param source - The object to query.
38
+ * @returns Returns the match data of `source`.
39
+ * @internal
40
+ */
41
+ export function _getMatchData(source) {
42
+ return _baseKeys(source).map((key) => {
43
+ const value = source[key];
44
+ return [key, value, _isStrictComparable(value)];
45
+ });
46
+ }
@@ -0,0 +1,43 @@
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
+ /**
32
+ * A specialized version of `_baseGetTag` which ignores `Symbol.toStringTag` values.
33
+ *
34
+ * The tag is temporarily masked on the value itself so that `Object#toString` reports the real class.
35
+ * The original state is restored afterwards. Frozen objects and primitives reject the mask, in which case
36
+ * the tag is read as-is.
37
+ *
38
+ * @param value - The value to query.
39
+ * @returns Returns the raw `toStringTag`.
40
+ * @internal
41
+ */
42
+ export declare function _getRawTag(value: unknown): string;
43
+ //# sourceMappingURL=_getRawTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_getRawTag.d.ts","sourceRoot":"","sources":["../../src/_/_getRawTag.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAyBjD"}
@@ -0,0 +1,65 @@
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
+ * A specialized version of `_baseGetTag` which ignores `Symbol.toStringTag` values.
34
+ *
35
+ * The tag is temporarily masked on the value itself so that `Object#toString` reports the real class.
36
+ * The original state is restored afterwards. Frozen objects and primitives reject the mask, in which case
37
+ * the tag is read as-is.
38
+ *
39
+ * @param value - The value to query.
40
+ * @returns Returns the raw `toStringTag`.
41
+ * @internal
42
+ */
43
+ export function _getRawTag(value) {
44
+ const target = value;
45
+ const isOwn = Object.hasOwn(Object(value), Symbol.toStringTag);
46
+ const tag = target[Symbol.toStringTag];
47
+ let unmasked = false;
48
+ try {
49
+ target[Symbol.toStringTag] = undefined;
50
+ unmasked = true;
51
+ }
52
+ catch {
53
+ // frozen object or primitive: the tag cannot be masked, read it as-is
54
+ }
55
+ const result = Object.prototype.toString.call(value);
56
+ if (unmasked) {
57
+ if (isOwn) {
58
+ target[Symbol.toStringTag] = tag;
59
+ }
60
+ else {
61
+ delete target[Symbol.toStringTag];
62
+ }
63
+ }
64
+ return result;
65
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Checks if `path` exists on `object`, testing each segment with `hasFunc`. A missing last segment
3
+ * still counts as present when it is a valid index of a sparse array or an arguments object, since
4
+ * a hole is a slot that exists.
5
+ *
6
+ * @param object - The object to query.
7
+ * @param path - The path to check.
8
+ * @param hasFunc - The function to check a single key on an object.
9
+ * @returns Returns `true` if `path` exists, else `false`.
10
+ * @internal
11
+ */
12
+ export declare function _hasPath(object: unknown, path: unknown, hasFunc: (object: object, key: string | symbol) => boolean): boolean;
13
+ //# sourceMappingURL=_hasPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_hasPath.d.ts","sourceRoot":"","sources":["../../src/_/_hasPath.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CACpB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,GAC3D,OAAO,CA8BT"}