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

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 (83) hide show
  1. package/NOTICE +177 -0
  2. package/esm/_/_arrayAggregator.d.ts +42 -0
  3. package/esm/_/_arrayAggregator.d.ts.map +1 -0
  4. package/esm/_/_arrayAggregator.js +51 -0
  5. package/esm/_/_assignValue.d.ts.map +1 -1
  6. package/esm/_/_assignValue.js +2 -6
  7. package/esm/_/_baseAggregator.d.ts +13 -0
  8. package/esm/_/_baseAggregator.d.ts.map +1 -0
  9. package/esm/_/_baseAggregator.js +50 -0
  10. package/esm/_/_baseAssignValue.d.ts +41 -0
  11. package/esm/_/_baseAssignValue.d.ts.map +1 -0
  12. package/esm/_/_baseAssignValue.js +48 -0
  13. package/esm/_/_baseClone.d.ts.map +1 -1
  14. package/esm/_/_baseClone.js +3 -30
  15. package/esm/_/_baseMerge.d.ts +15 -0
  16. package/esm/_/_baseMerge.d.ts.map +1 -0
  17. package/esm/_/_baseMerge.js +137 -0
  18. package/esm/_/_baseOrderBy.d.ts +11 -0
  19. package/esm/_/_baseOrderBy.d.ts.map +1 -0
  20. package/esm/_/_baseOrderBy.js +70 -0
  21. package/esm/_/_cloneArrayBuffer.d.ts +39 -0
  22. package/esm/_/_cloneArrayBuffer.d.ts.map +1 -0
  23. package/esm/_/_cloneArrayBuffer.js +45 -0
  24. package/esm/_/_cloneTypedArray.d.ts +10 -0
  25. package/esm/_/_cloneTypedArray.d.ts.map +1 -0
  26. package/esm/_/_cloneTypedArray.js +49 -0
  27. package/esm/_/_compareAscending.d.ts +12 -0
  28. package/esm/_/_compareAscending.d.ts.map +1 -0
  29. package/esm/_/_compareAscending.js +78 -0
  30. package/esm/_/_createAggregator.d.ts +10 -0
  31. package/esm/_/_createAggregator.d.ts.map +1 -0
  32. package/esm/_/_createAggregator.js +50 -0
  33. package/esm/_/_initCloneObject.d.ts +10 -0
  34. package/esm/_/_initCloneObject.d.ts.map +1 -0
  35. package/esm/_/_initCloneObject.js +48 -0
  36. package/esm/_/_unicode.d.ts +27 -0
  37. package/esm/_/_unicode.d.ts.map +1 -0
  38. package/esm/_/_unicode.js +120 -0
  39. package/esm/_/camelCase.d.ts +11 -0
  40. package/esm/_/camelCase.d.ts.map +1 -0
  41. package/esm/_/camelCase.js +56 -0
  42. package/esm/_/deburr.d.ts +10 -0
  43. package/esm/_/deburr.d.ts.map +1 -0
  44. package/esm/_/deburr.js +242 -0
  45. package/esm/_/isArray.d.ts +61 -0
  46. package/esm/_/isArray.d.ts.map +1 -0
  47. package/esm/_/isArray.js +62 -0
  48. package/esm/_/keysIn.d.ts +10 -0
  49. package/esm/_/keysIn.d.ts.map +1 -0
  50. package/esm/_/keysIn.js +54 -0
  51. package/esm/_/memoize.d.ts +89 -0
  52. package/esm/_/memoize.d.ts.map +1 -0
  53. package/esm/_/memoize.js +36 -0
  54. package/esm/_/merge.d.ts +32 -0
  55. package/esm/_/merge.d.ts.map +1 -0
  56. package/esm/_/merge.js +45 -0
  57. package/esm/_/omit.d.ts +1 -5
  58. package/esm/_/omit.d.ts.map +1 -1
  59. package/esm/_/partition.d.ts +23 -0
  60. package/esm/_/partition.d.ts.map +1 -0
  61. package/esm/_/partition.js +42 -0
  62. package/esm/_/pick.d.ts +18 -0
  63. package/esm/_/pick.d.ts.map +1 -0
  64. package/esm/_/pick.js +48 -0
  65. package/esm/_/sortBy.d.ts +17 -0
  66. package/esm/_/sortBy.d.ts.map +1 -0
  67. package/esm/_/sortBy.js +46 -0
  68. package/esm/_/throttle.d.ts +76 -0
  69. package/esm/_/throttle.d.ts.map +1 -0
  70. package/esm/_/throttle.js +45 -0
  71. package/esm/_/types.d.ts +26 -0
  72. package/esm/_/types.d.ts.map +1 -1
  73. package/esm/_/uniq.d.ts +12 -0
  74. package/esm/_/uniq.d.ts.map +1 -0
  75. package/esm/_/uniq.js +47 -0
  76. package/esm/_/words.d.ts +9 -0
  77. package/esm/_/words.d.ts.map +1 -0
  78. package/esm/_/words.js +50 -0
  79. package/esm/index.d.ts +10 -2
  80. package/esm/index.d.ts.map +1 -1
  81. package/esm/index.js +8 -0
  82. package/esm/util.d.ts +254 -0
  83. package/package.json +5 -4
package/NOTICE ADDED
@@ -0,0 +1,177 @@
1
+ Copyright (c) 2017-2026 GoodData Corporation
2
+
3
+ This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
4
+
5
+ --------------------------------------------------------------------------------
6
+ Attribution Notice for @gooddata/util (11.68.0-alpha.6)
7
+ Package License: MIT
8
+ Own License File: LICENSE
9
+
10
+ This notice lists the components that @gooddata/util depends on, directly or through other
11
+ packages, with the license and copyright information reported for each of them.
12
+ The license of @gooddata/util itself is stated in its LICENSE file. Each component below is
13
+ subject to its own license terms, given in its entry; the license of @gooddata/util does not
14
+ change those terms.
15
+ --------------------------------------------------------------------------------
16
+
17
+ Dependencies
18
+
19
+ Local GoodData SDK components
20
+ No local SDK dependencies selected.
21
+
22
+ External components
23
+ - lodash-es (4.18.1) [CC0-1.0, MIT] — Direct
24
+ - ts-invariant (0.10.3) [MIT] — Direct
25
+ - tslib (2.8.1) [ISC] — Direct
26
+
27
+ ================================================================================
28
+ External components
29
+ ================================================================================
30
+
31
+ --------------------------------------------------------------------------------
32
+ Package Title: lodash-es (4.18.1)
33
+ Package Locator: npm+lodash-es$4.18.1
34
+ Package Depth: Direct
35
+ --------------------------------------------------------------------------------
36
+
37
+ * Declared Licenses *
38
+ CC0-1.0, MIT
39
+
40
+ * CC0-1.0 *
41
+
42
+ * License Header *
43
+ Creative Commons Legal Code
44
+ CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
45
+ Statement of Purpose
46
+ The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
47
+ Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
48
+ For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
49
+ 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
50
+ i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
51
+ ii. moral rights retained by the original author(s) and/or performer(s);
52
+ iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
53
+ iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
54
+ v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
55
+ vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
56
+ vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
57
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
58
+ 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
59
+ 4. Limitations and Disclaimers.
60
+ a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
61
+ b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
62
+ c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
63
+ d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
64
+
65
+ * MIT *
66
+
67
+ * License Header *
68
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
69
+
70
+ Based on Underscore.js, copyright Jeremy Ashkenas,
71
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
72
+
73
+ This software consists of voluntary contributions made by many
74
+ individuals. For exact contribution history, see the revision history
75
+ available at https://github.com/lodash/lodash
76
+
77
+ The following license applies to all parts of this software except as
78
+ documented below:
79
+
80
+ ====
81
+
82
+ Permission is hereby granted, free of charge, to any person obtaining
83
+ a copy of this software and associated documentation files (the
84
+ "Software"), to deal in the Software without restriction, including
85
+ without limitation the rights to use, copy, modify, merge, publish,
86
+ distribute, sublicense, and/or sell copies of the Software, and to
87
+ permit persons to whom the Software is furnished to do so, subject to
88
+ the following conditions:
89
+
90
+ The above copyright notice and this permission notice shall be
91
+ included in all copies or substantial portions of the Software.
92
+
93
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
96
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
97
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
98
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
99
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
100
+
101
+ ====
102
+
103
+ Copyright and related rights for sample code are waived via CC0. Sample
104
+ code is defined as all source code displayed within the prose of the
105
+ documentation.
106
+
107
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
108
+
109
+ ====
110
+
111
+ Files located in the node_modules and vendor directories are externally
112
+ maintained libraries used by this software which have their own
113
+ licenses; we recommend you read them, as their terms may differ from the
114
+ terms above.
115
+
116
+ * Copyrights *
117
+ MIT
118
+ - Copyright (c) OpenJS Foundation and other contributors <https://openjsf.org/>
119
+
120
+ --------------------------------------------------------------------------------
121
+ Package Title: ts-invariant (0.10.3)
122
+ Package Locator: npm+ts-invariant$0.10.3
123
+ Package Depth: Direct
124
+ --------------------------------------------------------------------------------
125
+
126
+ * Declared Licenses *
127
+ MIT
128
+
129
+ * License Header *
130
+ MIT License
131
+
132
+ Copyright (c) 2019 Apollo GraphQL
133
+
134
+ Permission is hereby granted, free of charge, to any person obtaining a copy
135
+ of this software and associated documentation files (the "Software"), to deal
136
+ in the Software without restriction, including without limitation the rights
137
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
138
+ copies of the Software, and to permit persons to whom the Software is
139
+ furnished to do so, subject to the following conditions:
140
+
141
+ The above copyright notice and this permission notice shall be included in all
142
+ copies or substantial portions of the Software.
143
+
144
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
145
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
146
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
147
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
148
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
149
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
150
+ SOFTWARE.
151
+
152
+ * Copyrights *
153
+ MIT
154
+ - Copyright (c) 2019 Apollo GraphQL
155
+
156
+ --------------------------------------------------------------------------------
157
+ Package Title: tslib (2.8.1)
158
+ Package Locator: npm+tslib$2.8.1
159
+ Package Depth: Direct
160
+ --------------------------------------------------------------------------------
161
+
162
+ * Declared Licenses *
163
+ ISC
164
+
165
+ * License Header *
166
+ Copyright (c) Microsoft Corporation.
167
+
168
+ Permission to use, copy, modify, and/or distribute this software for any
169
+ purpose with or without fee is hereby granted.
170
+
171
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
172
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
173
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
174
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
175
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
176
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
177
+ PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,42 @@
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 `baseAggregator` for arrays.
33
+ *
34
+ * @private
35
+ * @param {Array} [array] The array to iterate over.
36
+ * @param {Function} setter The function to set `accumulator` values.
37
+ * @param {Function} iteratee The iteratee to transform keys.
38
+ * @param {Object} accumulator The initial aggregated object.
39
+ * @returns {Function} Returns `accumulator`.
40
+ */
41
+ export declare function _arrayAggregator(array: any, setter: any, iteratee: any, accumulator: any): any;
42
+ //# sourceMappingURL=_arrayAggregator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_arrayAggregator.d.ts","sourceRoot":"","sources":["../../src/_/_arrayAggregator.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,GAAG,CAU9F"}
@@ -0,0 +1,51 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /* eslint-disable */
3
+ /*!
4
+ * Portions of this file are derived from Lodash.
5
+ * https://github.com/lodash/lodash
6
+ *
7
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
8
+ *
9
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
10
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
11
+ *
12
+ * Modifications Copyright (c) 2026 GoodData Corporation
13
+ *
14
+ * Permission is hereby granted, free of charge, to any person obtaining
15
+ * a copy of this software and associated documentation files (the
16
+ * "Software"), to deal in the Software without restriction, including
17
+ * without limitation the rights to use, copy, modify, merge, publish,
18
+ * distribute, sublicense, and/or sell copies of the Software, and to
19
+ * permit persons to whom the Software is furnished to do so, subject to
20
+ * the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be
23
+ * included in all copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
+ */
33
+ /**
34
+ * A specialized version of `baseAggregator` for arrays.
35
+ *
36
+ * @private
37
+ * @param {Array} [array] The array to iterate over.
38
+ * @param {Function} setter The function to set `accumulator` values.
39
+ * @param {Function} iteratee The iteratee to transform keys.
40
+ * @param {Object} accumulator The initial aggregated object.
41
+ * @returns {Function} Returns `accumulator`.
42
+ */
43
+ export function _arrayAggregator(array, setter, iteratee, accumulator) {
44
+ let index = -1;
45
+ const length = array == null ? 0 : array.length;
46
+ while (++index < length) {
47
+ const value = array[index];
48
+ setter(accumulator, value, iteratee(value), array);
49
+ }
50
+ return accumulator;
51
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"_assignValue.d.ts","sourceRoot":"","sources":["../../src/_/_assignValue.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAUzG"}
1
+ {"version":3,"file":"_assignValue.d.ts","sourceRoot":"","sources":["../../src/_/_assignValue.ts"],"names":[],"mappings":"AAoCA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAMzG"}
@@ -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 { _baseAssignValue } from "./_baseAssignValue.js";
32
33
  import { _eq } from "./eq.js";
33
34
  /**
34
35
  * Assigns `value` to `key` of `object` unless an own property with an equivalent value already exists.
@@ -44,10 +45,5 @@ export function _assignValue(object, key, value) {
44
45
  if (Object.hasOwn(object, key) && _eq(object[key], value) && !(value === undefined && !(key in object))) {
45
46
  return;
46
47
  }
47
- if (key === "__proto__") {
48
- Object.defineProperty(object, key, { configurable: true, enumerable: true, value, writable: true });
49
- }
50
- else {
51
- object[key] = value;
52
- }
48
+ _baseAssignValue(object, key, value);
53
49
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Aggregates elements of `collection` on `accumulator` with keys transformed
3
+ * by `iteratee` and values set by `setter`.
4
+ *
5
+ * @private
6
+ * @param {Array|Object} collection The collection to iterate over.
7
+ * @param {Function} setter The function to set `accumulator` values.
8
+ * @param {Function} iteratee The iteratee to transform keys.
9
+ * @param {Object} accumulator The initial aggregated object.
10
+ * @returns {Function} Returns `accumulator`.
11
+ */
12
+ export declare function _baseAggregator(collection: any, setter: any, iteratee: any, accumulator: any): any;
13
+ //# sourceMappingURL=_baseAggregator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseAggregator.d.ts","sourceRoot":"","sources":["../../src/_/_baseAggregator.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,GAAG,CAMlG"}
@@ -0,0 +1,50 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /* eslint-disable */
3
+ /*!
4
+ * Portions of this file are derived from Lodash.
5
+ * https://github.com/lodash/lodash
6
+ *
7
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
8
+ *
9
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
10
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
11
+ *
12
+ * Modifications Copyright (c) 2026 GoodData Corporation
13
+ *
14
+ * Permission is hereby granted, free of charge, to any person obtaining
15
+ * a copy of this software and associated documentation files (the
16
+ * "Software"), to deal in the Software without restriction, including
17
+ * without limitation the rights to use, copy, modify, merge, publish,
18
+ * distribute, sublicense, and/or sell copies of the Software, and to
19
+ * permit persons to whom the Software is furnished to do so, subject to
20
+ * the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be
23
+ * included in all copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
+ */
33
+ import { _baseEach } from "./_baseEach.js";
34
+ /**
35
+ * Aggregates elements of `collection` on `accumulator` with keys transformed
36
+ * by `iteratee` and values set by `setter`.
37
+ *
38
+ * @private
39
+ * @param {Array|Object} collection The collection to iterate over.
40
+ * @param {Function} setter The function to set `accumulator` values.
41
+ * @param {Function} iteratee The iteratee to transform keys.
42
+ * @param {Object} accumulator The initial aggregated object.
43
+ * @returns {Function} Returns `accumulator`.
44
+ */
45
+ export function _baseAggregator(collection, setter, iteratee, accumulator) {
46
+ _baseEach(collection, function (value, _key, collection) {
47
+ setter(accumulator, value, iteratee(value), collection);
48
+ });
49
+ return accumulator;
50
+ }
@@ -0,0 +1,41 @@
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 `_assignValue` without value checks. A `__proto__` key is defined as an own
33
+ * property, so it never changes the prototype of `object`.
34
+ *
35
+ * @param object - The object to modify.
36
+ * @param key - The key of the property to assign.
37
+ * @param value - The value to assign.
38
+ * @internal
39
+ */
40
+ export declare function _baseAssignValue(object: Record<PropertyKey, unknown>, key: PropertyKey, value: unknown): void;
41
+ //# sourceMappingURL=_baseAssignValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseAssignValue.d.ts","sourceRoot":"","sources":["../../src/_/_baseAssignValue.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACpC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,OAAO,GACf,IAAI,CAMN"}
@@ -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
+ * The base implementation of `_assignValue` without value checks. A `__proto__` key is defined as an own
34
+ * property, so it never changes the prototype of `object`.
35
+ *
36
+ * @param object - The object to modify.
37
+ * @param key - The key of the property to assign.
38
+ * @param value - The value to assign.
39
+ * @internal
40
+ */
41
+ export function _baseAssignValue(object, key, value) {
42
+ if (key === "__proto__") {
43
+ Object.defineProperty(object, key, { configurable: true, enumerable: true, value, writable: true });
44
+ }
45
+ else {
46
+ object[key] = value;
47
+ }
48
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"_baseClone.d.ts","sourceRoot":"","sources":["../../src/_/_baseClone.ts"],"names":[],"mappings":"AA0EA,kGAAkG;AAClG,KAAK,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAWnC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAE,MAAkB,EAAE,MAAM,UAAQ,GAAG,OAAO,CAiE7F"}
1
+ {"version":3,"file":"_baseClone.d.ts","sourceRoot":"","sources":["../../src/_/_baseClone.ts"],"names":[],"mappings":"AA4EA,kGAAkG;AAClG,KAAK,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAMnC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAE,MAAkB,EAAE,MAAM,UAAQ,GAAG,OAAO,CAiE7F"}
@@ -31,9 +31,11 @@
31
31
  */
32
32
  import { _assignValue } from "./_assignValue.js";
33
33
  import { _baseGetTag } from "./_baseGetTag.js";
34
+ import { _cloneArrayBuffer } from "./_cloneArrayBuffer.js";
35
+ import { _cloneTypedArray } from "./_cloneTypedArray.js";
34
36
  import { _getAllKeys } from "./_getAllKeys.js";
37
+ import { _initCloneObject } from "./_initCloneObject.js";
35
38
  import { _isIndex } from "./_isIndex.js";
36
- import { _isPrototype } from "./_isPrototype.js";
37
39
  import { _isObject } from "./isObject.js";
38
40
  import { _isTypedArray } from "./isTypedArray.js";
39
41
  /** `Object#toString` result references. */
@@ -66,8 +68,6 @@ const CLONEABLE_TAGS = new Set([
66
68
  ]);
67
69
  /** Used to match `RegExp` flags from their coerced string values. */
68
70
  const RE_FLAGS = /\w*$/;
69
- /** Node's `Buffer`, when present; typed structurally because this package has no Node typings. */
70
- const NodeBuffer = globalThis.Buffer;
71
71
  /**
72
72
  * The base implementation of `_cloneDeep` which tracks traversed objects.
73
73
  *
@@ -162,17 +162,6 @@ function _initCloneArray(array) {
162
162
  }
163
163
  return result;
164
164
  }
165
- /**
166
- * Initializes a plain-object clone with the same prototype. Prototype objects and objects without a
167
- * constructor function, such as null-prototype objects, clone into ordinary `Object` instances.
168
- */
169
- function _initCloneObject(object) {
170
- if (typeof object.constructor !== "function" || _isPrototype(object)) {
171
- return {};
172
- }
173
- const proto = Object.getPrototypeOf(object);
174
- return _isObject(proto) ? Object.create(proto) : {};
175
- }
176
165
  /**
177
166
  * Initializes a clone of a value by its `toStringTag`. Collections come back empty and are filled by
178
167
  * the caller; everything else is complete on return.
@@ -206,19 +195,3 @@ function _initCloneByTag(object, tag) {
206
195
  }
207
196
  return _cloneTypedArray(object);
208
197
  }
209
- function _cloneArrayBuffer(arrayBuffer) {
210
- const result = new arrayBuffer.constructor(arrayBuffer.byteLength);
211
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
212
- return result;
213
- }
214
- /**
215
- * Clones a typed array of any class, keeping its view offset and length over a copy of the whole buffer.
216
- * A Node `Buffer` is copied through `Buffer.from`, since constructing one directly is deprecated.
217
- */
218
- function _cloneTypedArray(typedArray) {
219
- if (NodeBuffer?.isBuffer(typedArray)) {
220
- return NodeBuffer.from(typedArray);
221
- }
222
- const Ctor = typedArray.constructor;
223
- return new Ctor(_cloneArrayBuffer(typedArray.buffer), typedArray.byteOffset, typedArray.length);
224
- }
@@ -0,0 +1,15 @@
1
+ type _AnyRecord = Record<PropertyKey, unknown>;
2
+ /** Tracks each traversed source value and its merged counterpart, so cycles and shared references are kept. */
3
+ type _Stack = Map<unknown, unknown>;
4
+ /**
5
+ * The base implementation of `_merge` for a single source: merges the own and inherited enumerable string
6
+ * keyed properties of `source` into `object`.
7
+ *
8
+ * @param object - The destination object.
9
+ * @param source - The source object.
10
+ * @param stack - Tracks traversed source values and their merged counterparts.
11
+ * @internal
12
+ */
13
+ export declare function _baseMerge(object: _AnyRecord, source: _AnyRecord, stack: _Stack): void;
14
+ export {};
15
+ //# sourceMappingURL=_baseMerge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseMerge.d.ts","sourceRoot":"","sources":["../../src/_/_baseMerge.ts"],"names":[],"mappings":"AA6CA,KAAK,UAAU,GAAG,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE/C,+GAA+G;AAC/G,KAAK,MAAM,GAAG,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAEpC;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CActF"}