@ls-stack/utils 3.65.0 → 3.66.0

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 (336) hide show
  1. package/dist/{arrayUtils.d.cts → arrayUtils.d.mts} +24 -23
  2. package/dist/arrayUtils.mjs +249 -0
  3. package/dist/assertions-qMxfVhSu.mjs +207 -0
  4. package/dist/{assertions.d.ts → assertions.d.mts} +4 -3
  5. package/dist/assertions.mjs +3 -0
  6. package/dist/asyncQueue.d.mts +497 -0
  7. package/dist/asyncQueue.mjs +757 -0
  8. package/dist/{awaitDebounce.d.cts → awaitDebounce.d.mts} +11 -6
  9. package/dist/awaitDebounce.mjs +54 -0
  10. package/dist/{cache.d.ts → cache.d.mts} +76 -68
  11. package/dist/cache.mjs +355 -0
  12. package/dist/castValues-DfICShCc.mjs +19 -0
  13. package/dist/{castValues.d.cts → castValues.d.mts} +3 -2
  14. package/dist/castValues.mjs +3 -0
  15. package/dist/{concurrentCalls.d.ts → concurrentCalls.d.mts} +74 -65
  16. package/dist/concurrentCalls.mjs +295 -0
  17. package/dist/consoleFmt.d.mts +55 -0
  18. package/dist/consoleFmt.mjs +63 -0
  19. package/dist/conversions-DTmwEMIu.mjs +12 -0
  20. package/dist/conversions.d.mts +4 -0
  21. package/dist/conversions.mjs +3 -0
  22. package/dist/createThrottleController.d.mts +18 -0
  23. package/dist/createThrottleController.mjs +40 -0
  24. package/dist/debounce.d.mts +47 -0
  25. package/dist/debounce.mjs +117 -0
  26. package/dist/dedent.d.mts +74 -0
  27. package/dist/dedent.mjs +80 -0
  28. package/dist/deepEqual-C7EZEixx.mjs +78 -0
  29. package/dist/{deepEqual.d.cts → deepEqual.d.mts} +3 -2
  30. package/dist/deepEqual.mjs +3 -0
  31. package/dist/{deepReplaceValues.d.cts → deepReplaceValues.d.mts} +4 -3
  32. package/dist/deepReplaceValues.mjs +61 -0
  33. package/dist/diffParser.d.mts +63 -0
  34. package/dist/diffParser.mjs +410 -0
  35. package/dist/enhancedMap.d.mts +21 -0
  36. package/dist/enhancedMap.mjs +69 -0
  37. package/dist/exhaustiveMatch.d.mts +10 -0
  38. package/dist/exhaustiveMatch.mjs +48 -0
  39. package/dist/{filterObjectOrArrayKeys.d.cts → filterObjectOrArrayKeys.d.mts} +15 -8
  40. package/dist/filterObjectOrArrayKeys.mjs +497 -0
  41. package/dist/{getAutoIncrementId.d.cts → getAutoIncrementId.d.mts} +9 -5
  42. package/dist/getAutoIncrementId.mjs +53 -0
  43. package/dist/{getCompositeKey.d.cts → getCompositeKey.d.mts} +3 -2
  44. package/dist/getCompositeKey.mjs +50 -0
  45. package/dist/{getValueStableKey.d.cts → getValueStableKey.d.mts} +5 -3
  46. package/dist/getValueStableKey.mjs +17 -0
  47. package/dist/{hash.d.cts → hash.d.mts} +3 -2
  48. package/dist/hash.mjs +28 -0
  49. package/dist/interpolate.d.mts +17 -0
  50. package/dist/interpolate.mjs +28 -0
  51. package/dist/{iteratorUtils.d.cts → iteratorUtils.d.mts} +5 -4
  52. package/dist/iteratorUtils.mjs +39 -0
  53. package/dist/keepPrevIfUnchanged.d.mts +12 -0
  54. package/dist/keepPrevIfUnchanged.mjs +9 -0
  55. package/dist/keyedMap.d.mts +76 -0
  56. package/dist/keyedMap.mjs +139 -0
  57. package/dist/keyedSet.d.mts +77 -0
  58. package/dist/keyedSet.mjs +129 -0
  59. package/dist/{levenshtein.d.cts → levenshtein.d.mts} +3 -2
  60. package/dist/levenshtein.mjs +121 -0
  61. package/dist/main.d.mts +4 -0
  62. package/dist/main.mjs +7 -0
  63. package/dist/matchPath.d.mts +50 -0
  64. package/dist/matchPath.mjs +81 -0
  65. package/dist/mathUtils-BDP1lM_z.mjs +81 -0
  66. package/dist/{mathUtils.d.cts → mathUtils.d.mts} +3 -2
  67. package/dist/mathUtils.mjs +3 -0
  68. package/dist/{mutationUtils.d.cts → mutationUtils.d.mts} +6 -5
  69. package/dist/mutationUtils.mjs +44 -0
  70. package/dist/{objUtils.d.ts → objUtils.d.mts} +8 -6
  71. package/dist/objUtils.mjs +115 -0
  72. package/dist/parallelAsyncCalls.d.mts +83 -0
  73. package/dist/parallelAsyncCalls.mjs +121 -0
  74. package/dist/partialEqual.d.mts +139 -0
  75. package/dist/partialEqual.mjs +1055 -0
  76. package/dist/promiseUtils.d.mts +9 -0
  77. package/dist/promiseUtils.mjs +17 -0
  78. package/dist/regexUtils.d.mts +18 -0
  79. package/dist/regexUtils.mjs +34 -0
  80. package/dist/{retryOnError.d.cts → retryOnError.d.mts} +38 -37
  81. package/dist/retryOnError.mjs +91 -0
  82. package/dist/{runShellCmd.d.ts → runShellCmd.d.mts} +24 -15
  83. package/dist/runShellCmd.mjs +151 -0
  84. package/dist/{safeJson.d.cts → safeJson.d.mts} +3 -2
  85. package/dist/safeJson.mjs +30 -0
  86. package/dist/{saferTyping.d.cts → saferTyping.d.mts} +4 -3
  87. package/dist/saferTyping.mjs +45 -0
  88. package/dist/serializeXML.d.mts +23 -0
  89. package/dist/serializeXML.mjs +74 -0
  90. package/dist/{shallowEqual.d.cts → shallowEqual.d.mts} +3 -2
  91. package/dist/shallowEqual.mjs +54 -0
  92. package/dist/sleep.d.mts +4 -0
  93. package/dist/sleep.mjs +7 -0
  94. package/dist/stringUtils-DjhWOiYn.mjs +113 -0
  95. package/dist/{stringUtils.d.cts → stringUtils.d.mts} +3 -2
  96. package/dist/stringUtils.mjs +3 -0
  97. package/dist/{testUtils.d.ts → testUtils.d.mts} +83 -52
  98. package/dist/testUtils.mjs +310 -0
  99. package/dist/{throttle.d.ts → throttle.d.mts} +18 -17
  100. package/dist/throttle.mjs +102 -0
  101. package/dist/time-sr2lhQRw.mjs +67 -0
  102. package/dist/{time.d.ts → time.d.mts} +8 -7
  103. package/dist/time.mjs +3 -0
  104. package/dist/{timers.d.cts → timers.d.mts} +22 -13
  105. package/dist/timers.mjs +220 -0
  106. package/dist/{tsResult.d.cts → tsResult.d.mts} +52 -48
  107. package/dist/tsResult.mjs +142 -0
  108. package/dist/typeGuards-B1mzA-Rz.mjs +128 -0
  109. package/dist/{typeGuards.d.cts → typeGuards.d.mts} +3 -2
  110. package/dist/typeGuards.mjs +3 -0
  111. package/dist/{typeUtils.d.ts → typeUtils.d.mts} +13 -34
  112. package/dist/typeUtils.mjs +1 -0
  113. package/dist/{typedStrings.d.cts → typedStrings.d.mts} +5 -4
  114. package/dist/typedStrings.mjs +131 -0
  115. package/dist/typingFnUtils-Bb8drgKF.mjs +101 -0
  116. package/dist/{typingFnUtils.d.cts → typingFnUtils.d.mts} +13 -22
  117. package/dist/typingFnUtils.mjs +3 -0
  118. package/dist/{typingTestUtils.d.cts → typingTestUtils.d.mts} +11 -15
  119. package/dist/typingTestUtils.mjs +80 -0
  120. package/dist/typingUtils.d.mts +20 -0
  121. package/dist/typingUtils.mjs +1 -0
  122. package/dist/yamlStringify.d.mts +17 -0
  123. package/dist/yamlStringify.mjs +189 -0
  124. package/package.json +65 -242
  125. package/dist/arrayUtils.cjs +0 -229
  126. package/dist/arrayUtils.d.ts +0 -171
  127. package/dist/arrayUtils.js +0 -42
  128. package/dist/assertions.cjs +0 -107
  129. package/dist/assertions.d.cts +0 -192
  130. package/dist/assertions.js +0 -25
  131. package/dist/asyncQueue.cjs +0 -672
  132. package/dist/asyncQueue.d.cts +0 -488
  133. package/dist/asyncQueue.d.ts +0 -488
  134. package/dist/asyncQueue.js +0 -631
  135. package/dist/awaitDebounce.cjs +0 -106
  136. package/dist/awaitDebounce.d.ts +0 -41
  137. package/dist/awaitDebounce.js +0 -28
  138. package/dist/cache.cjs +0 -367
  139. package/dist/cache.d.cts +0 -228
  140. package/dist/cache.js +0 -19
  141. package/dist/castValues.cjs +0 -50
  142. package/dist/castValues.d.ts +0 -4
  143. package/dist/castValues.js +0 -8
  144. package/dist/chunk-5DZT3Z5Z.js +0 -8
  145. package/dist/chunk-6FBIEPWU.js +0 -96
  146. package/dist/chunk-6FIBVC2P.js +0 -56
  147. package/dist/chunk-7CQPOM5I.js +0 -100
  148. package/dist/chunk-B6DNOZCP.js +0 -369
  149. package/dist/chunk-BM4PYVOX.js +0 -109
  150. package/dist/chunk-C2SVCIWE.js +0 -57
  151. package/dist/chunk-CCUPDGSZ.js +0 -132
  152. package/dist/chunk-DBOWTYR4.js +0 -49
  153. package/dist/chunk-DFXNVEH6.js +0 -14
  154. package/dist/chunk-DX2524CZ.js +0 -314
  155. package/dist/chunk-GMJTLFM6.js +0 -60
  156. package/dist/chunk-IATIXMCE.js +0 -20
  157. package/dist/chunk-II4R3VVX.js +0 -25
  158. package/dist/chunk-JF2MDHOJ.js +0 -40
  159. package/dist/chunk-JQFUKJU5.js +0 -71
  160. package/dist/chunk-MI4UE2PQ.js +0 -561
  161. package/dist/chunk-PUKVXYYL.js +0 -52
  162. package/dist/chunk-QQS7I7ZL.js +0 -16
  163. package/dist/chunk-VAAMRG4K.js +0 -20
  164. package/dist/chunk-WFQJUJTC.js +0 -182
  165. package/dist/chunk-ZXIKIA5B.js +0 -178
  166. package/dist/concurrentCalls.cjs +0 -406
  167. package/dist/concurrentCalls.d.cts +0 -116
  168. package/dist/concurrentCalls.js +0 -346
  169. package/dist/consoleFmt.cjs +0 -85
  170. package/dist/consoleFmt.d.cts +0 -54
  171. package/dist/consoleFmt.d.ts +0 -54
  172. package/dist/consoleFmt.js +0 -60
  173. package/dist/conversions.cjs +0 -44
  174. package/dist/conversions.d.cts +0 -3
  175. package/dist/conversions.d.ts +0 -3
  176. package/dist/conversions.js +0 -6
  177. package/dist/createThrottleController.cjs +0 -193
  178. package/dist/createThrottleController.d.cts +0 -13
  179. package/dist/createThrottleController.d.ts +0 -13
  180. package/dist/createThrottleController.js +0 -61
  181. package/dist/debounce.cjs +0 -157
  182. package/dist/debounce.d.cts +0 -46
  183. package/dist/debounce.d.ts +0 -46
  184. package/dist/debounce.js +0 -8
  185. package/dist/dedent.cjs +0 -104
  186. package/dist/dedent.d.cts +0 -73
  187. package/dist/dedent.d.ts +0 -73
  188. package/dist/dedent.js +0 -79
  189. package/dist/deepEqual.cjs +0 -96
  190. package/dist/deepEqual.d.ts +0 -21
  191. package/dist/deepEqual.js +0 -8
  192. package/dist/deepReplaceValues.cjs +0 -87
  193. package/dist/deepReplaceValues.d.ts +0 -27
  194. package/dist/deepReplaceValues.js +0 -7
  195. package/dist/enhancedMap.cjs +0 -131
  196. package/dist/enhancedMap.d.cts +0 -20
  197. package/dist/enhancedMap.d.ts +0 -20
  198. package/dist/enhancedMap.js +0 -10
  199. package/dist/exhaustiveMatch.cjs +0 -66
  200. package/dist/exhaustiveMatch.d.cts +0 -9
  201. package/dist/exhaustiveMatch.d.ts +0 -9
  202. package/dist/exhaustiveMatch.js +0 -40
  203. package/dist/filterObjectOrArrayKeys.cjs +0 -619
  204. package/dist/filterObjectOrArrayKeys.d.ts +0 -88
  205. package/dist/filterObjectOrArrayKeys.js +0 -9
  206. package/dist/getAutoIncrementId.cjs +0 -44
  207. package/dist/getAutoIncrementId.d.ts +0 -46
  208. package/dist/getAutoIncrementId.js +0 -18
  209. package/dist/getCompositeKey.cjs +0 -86
  210. package/dist/getCompositeKey.d.ts +0 -11
  211. package/dist/getCompositeKey.js +0 -8
  212. package/dist/getValueStableKey.cjs +0 -89
  213. package/dist/getValueStableKey.d.ts +0 -15
  214. package/dist/getValueStableKey.js +0 -11
  215. package/dist/hash.cjs +0 -57
  216. package/dist/hash.d.ts +0 -7
  217. package/dist/hash.js +0 -32
  218. package/dist/interpolate.cjs +0 -88
  219. package/dist/interpolate.d.cts +0 -11
  220. package/dist/interpolate.d.ts +0 -11
  221. package/dist/interpolate.js +0 -46
  222. package/dist/iteratorUtils.cjs +0 -73
  223. package/dist/iteratorUtils.d.ts +0 -10
  224. package/dist/iteratorUtils.js +0 -44
  225. package/dist/keepPrevIfUnchanged.cjs +0 -102
  226. package/dist/keepPrevIfUnchanged.d.cts +0 -7
  227. package/dist/keepPrevIfUnchanged.d.ts +0 -7
  228. package/dist/keepPrevIfUnchanged.js +0 -7
  229. package/dist/keyedMap.cjs +0 -224
  230. package/dist/keyedMap.d.cts +0 -75
  231. package/dist/keyedMap.d.ts +0 -75
  232. package/dist/keyedMap.js +0 -145
  233. package/dist/keyedSet.cjs +0 -205
  234. package/dist/keyedSet.d.cts +0 -76
  235. package/dist/keyedSet.d.ts +0 -76
  236. package/dist/keyedSet.js +0 -126
  237. package/dist/levenshtein.cjs +0 -180
  238. package/dist/levenshtein.d.ts +0 -5
  239. package/dist/levenshtein.js +0 -153
  240. package/dist/main.cjs +0 -32
  241. package/dist/main.d.cts +0 -3
  242. package/dist/main.d.ts +0 -3
  243. package/dist/main.js +0 -7
  244. package/dist/matchPath.cjs +0 -155
  245. package/dist/matchPath.d.cts +0 -53
  246. package/dist/matchPath.d.ts +0 -53
  247. package/dist/matchPath.js +0 -108
  248. package/dist/mathUtils.cjs +0 -81
  249. package/dist/mathUtils.d.ts +0 -54
  250. package/dist/mathUtils.js +0 -22
  251. package/dist/mutationUtils.cjs +0 -153
  252. package/dist/mutationUtils.d.ts +0 -15
  253. package/dist/mutationUtils.js +0 -55
  254. package/dist/objUtils.cjs +0 -242
  255. package/dist/objUtils.d.cts +0 -28
  256. package/dist/objUtils.js +0 -38
  257. package/dist/parallelAsyncCalls.cjs +0 -162
  258. package/dist/parallelAsyncCalls.d.cts +0 -82
  259. package/dist/parallelAsyncCalls.d.ts +0 -82
  260. package/dist/parallelAsyncCalls.js +0 -126
  261. package/dist/partialEqual.cjs +0 -1196
  262. package/dist/partialEqual.d.cts +0 -141
  263. package/dist/partialEqual.d.ts +0 -141
  264. package/dist/partialEqual.js +0 -1168
  265. package/dist/promiseUtils.cjs +0 -38
  266. package/dist/promiseUtils.d.cts +0 -8
  267. package/dist/promiseUtils.d.ts +0 -8
  268. package/dist/promiseUtils.js +0 -6
  269. package/dist/regexUtils.cjs +0 -60
  270. package/dist/regexUtils.d.cts +0 -17
  271. package/dist/regexUtils.d.ts +0 -17
  272. package/dist/regexUtils.js +0 -33
  273. package/dist/retryOnError.cjs +0 -130
  274. package/dist/retryOnError.d.ts +0 -83
  275. package/dist/retryOnError.js +0 -101
  276. package/dist/runShellCmd.cjs +0 -127
  277. package/dist/runShellCmd.d.cts +0 -90
  278. package/dist/runShellCmd.js +0 -98
  279. package/dist/safeJson.cjs +0 -45
  280. package/dist/safeJson.d.ts +0 -16
  281. package/dist/safeJson.js +0 -8
  282. package/dist/saferTyping.cjs +0 -52
  283. package/dist/saferTyping.d.ts +0 -47
  284. package/dist/saferTyping.js +0 -23
  285. package/dist/serializeXML.cjs +0 -154
  286. package/dist/serializeXML.d.cts +0 -22
  287. package/dist/serializeXML.d.ts +0 -22
  288. package/dist/serializeXML.js +0 -116
  289. package/dist/shallowEqual.cjs +0 -88
  290. package/dist/shallowEqual.d.ts +0 -4
  291. package/dist/shallowEqual.js +0 -63
  292. package/dist/sleep.cjs +0 -32
  293. package/dist/sleep.d.cts +0 -3
  294. package/dist/sleep.d.ts +0 -3
  295. package/dist/sleep.js +0 -6
  296. package/dist/stringUtils.cjs +0 -155
  297. package/dist/stringUtils.d.ts +0 -55
  298. package/dist/stringUtils.js +0 -50
  299. package/dist/testUtils.cjs +0 -1490
  300. package/dist/testUtils.d.cts +0 -133
  301. package/dist/testUtils.js +0 -359
  302. package/dist/throttle.cjs +0 -282
  303. package/dist/throttle.d.cts +0 -98
  304. package/dist/throttle.js +0 -38
  305. package/dist/time.cjs +0 -152
  306. package/dist/time.d.cts +0 -25
  307. package/dist/time.js +0 -38
  308. package/dist/timers.cjs +0 -194
  309. package/dist/timers.d.ts +0 -121
  310. package/dist/timers.js +0 -156
  311. package/dist/tsResult.cjs +0 -226
  312. package/dist/tsResult.d.ts +0 -114
  313. package/dist/tsResult.js +0 -180
  314. package/dist/typeGuards.cjs +0 -70
  315. package/dist/typeGuards.d.ts +0 -111
  316. package/dist/typeGuards.js +0 -18
  317. package/dist/typeUtils.cjs +0 -18
  318. package/dist/typeUtils.d.cts +0 -61
  319. package/dist/typeUtils.js +0 -0
  320. package/dist/typedStrings.cjs +0 -90
  321. package/dist/typedStrings.d.ts +0 -163
  322. package/dist/typedStrings.js +0 -57
  323. package/dist/typingFnUtils.cjs +0 -96
  324. package/dist/typingFnUtils.d.ts +0 -100
  325. package/dist/typingFnUtils.js +0 -30
  326. package/dist/typingTestUtils.cjs +0 -52
  327. package/dist/typingTestUtils.d.ts +0 -79
  328. package/dist/typingTestUtils.js +0 -27
  329. package/dist/typingUtils.cjs +0 -18
  330. package/dist/typingUtils.d.cts +0 -35
  331. package/dist/typingUtils.d.ts +0 -35
  332. package/dist/typingUtils.js +0 -0
  333. package/dist/yamlStringify.cjs +0 -423
  334. package/dist/yamlStringify.d.cts +0 -10
  335. package/dist/yamlStringify.d.ts +0 -10
  336. package/dist/yamlStringify.js +0 -9
@@ -1,619 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/filterObjectOrArrayKeys.ts
21
- var filterObjectOrArrayKeys_exports = {};
22
- __export(filterObjectOrArrayKeys_exports, {
23
- filterObjectOrArrayKeys: () => filterObjectOrArrayKeys
24
- });
25
- module.exports = __toCommonJS(filterObjectOrArrayKeys_exports);
26
-
27
- // src/typeGuards.ts
28
- function isPlainObject(value) {
29
- if (!value || typeof value !== "object") return false;
30
- const proto = Object.getPrototypeOf(value);
31
- if (proto === null) {
32
- return true;
33
- }
34
- const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor;
35
- if (Ctor === Object) return true;
36
- const objectCtorString = Object.prototype.constructor.toString();
37
- return typeof Ctor == "function" && Function.toString.call(Ctor) === objectCtorString;
38
- }
39
-
40
- // src/arrayUtils.ts
41
- function sortBy(arr, sortByValue, props = "asc") {
42
- const order = Array.isArray(props) || typeof props === "string" ? props : props.order ?? "asc";
43
- return [...arr].sort((a, b) => {
44
- const _aPriority = sortByValue(a);
45
- const _bPriority = sortByValue(b);
46
- const aPriority = Array.isArray(_aPriority) ? _aPriority : [_aPriority];
47
- const bPriority = Array.isArray(_bPriority) ? _bPriority : [_bPriority];
48
- for (let i = 0; i < aPriority.length; i++) {
49
- const levelOrder = typeof order === "string" ? order : order[i] ?? "asc";
50
- const aP = aPriority[i] ?? 0;
51
- const bP = bPriority[i] ?? 0;
52
- if (aP === bP) {
53
- continue;
54
- }
55
- if (bP === Infinity || aP === -Infinity || aP < bP) {
56
- return levelOrder === "asc" ? -1 : 1;
57
- }
58
- if (aP === Infinity || bP === -Infinity || aP > bP) {
59
- return levelOrder === "asc" ? 1 : -1;
60
- }
61
- }
62
- return 0;
63
- });
64
- }
65
-
66
- // src/filterObjectOrArrayKeys.ts
67
- var ID_PROP_REGEXP = /^(id_|key_|id-|key-)|(_id|_key|-id|-key)$/i;
68
- function filterObjectOrArrayKeys(objOrArray, {
69
- filterKeys,
70
- rejectKeys,
71
- rejectEmptyObjectsInArray = true,
72
- sortKeys = "simpleValuesFirst",
73
- sortPatterns
74
- }) {
75
- function getNestedValue(obj, path) {
76
- const parts = path.split(".");
77
- let current = obj;
78
- for (const part of parts) {
79
- if (current == null || typeof current !== "object") {
80
- return void 0;
81
- }
82
- current = current[part];
83
- }
84
- return current;
85
- }
86
- function evaluateCondition(item, condition) {
87
- const value = getNestedValue(item, condition.property);
88
- let valueStr = String(value);
89
- if (condition.caseInsensitive) {
90
- valueStr = valueStr.toLowerCase();
91
- }
92
- const processValue = (v) => condition.caseInsensitive ? v.toLowerCase() : v;
93
- switch (condition.operator) {
94
- case "=":
95
- return condition.values.some((v) => valueStr === processValue(v));
96
- case "!=":
97
- return condition.values.every((v) => valueStr !== processValue(v));
98
- case "*=":
99
- return condition.values.some((v) => valueStr.includes(processValue(v)));
100
- case "!*=":
101
- return condition.values.every(
102
- (v) => !valueStr.includes(processValue(v))
103
- );
104
- case "^=":
105
- return condition.values.some(
106
- (v) => valueStr.startsWith(processValue(v))
107
- );
108
- case "!^=":
109
- return condition.values.every(
110
- (v) => !valueStr.startsWith(processValue(v))
111
- );
112
- case "$=":
113
- return condition.values.some((v) => valueStr.endsWith(processValue(v)));
114
- case "!$=":
115
- return condition.values.every(
116
- (v) => !valueStr.endsWith(processValue(v))
117
- );
118
- default:
119
- return false;
120
- }
121
- }
122
- const toArray = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v];
123
- const filterPatternsRaw = toArray(filterKeys);
124
- const rejectPatternsRaw = toArray(rejectKeys);
125
- const hasFilters = filterPatternsRaw.length > 0;
126
- const hasRejects = rejectPatternsRaw.length > 0;
127
- const expandedFilterPatterns = filterPatternsRaw.flatMap(expandPatterns);
128
- const expandedRejectPatterns = rejectPatternsRaw.flatMap(expandPatterns);
129
- const { filterOnlyPatterns, combinedPatterns } = separateFilterPatterns(
130
- expandedFilterPatterns
131
- );
132
- const filterPatterns = filterOnlyPatterns.map(parsePattern);
133
- const rejectPatterns = expandedRejectPatterns.map(parsePattern);
134
- const sortPatternsRaw = toArray(sortPatterns);
135
- const expandedSortPatterns = sortPatternsRaw.flatMap(expandPatterns);
136
- const sortPatternsParsed = expandedSortPatterns.map(parsePattern);
137
- let dataToProcess = objOrArray;
138
- if (combinedPatterns.length > 0) {
139
- const groupedByFilter = /* @__PURE__ */ new Map();
140
- for (const { filterPart, fieldPart } of combinedPatterns) {
141
- if (!groupedByFilter.has(filterPart)) {
142
- groupedByFilter.set(filterPart, []);
143
- }
144
- groupedByFilter.get(filterPart).push(fieldPart);
145
- }
146
- const combinedResult = Array.isArray(objOrArray) ? [] : {};
147
- for (const [filterPart, fieldParts] of groupedByFilter) {
148
- const filteredResult = filterObjectOrArrayKeys(objOrArray, {
149
- filterKeys: [filterPart],
150
- rejectKeys,
151
- rejectEmptyObjectsInArray
152
- });
153
- const fieldSelectedResult = filterObjectOrArrayKeys(filteredResult, {
154
- filterKeys: fieldParts,
155
- rejectEmptyObjectsInArray
156
- });
157
- if (Array.isArray(combinedResult) && Array.isArray(fieldSelectedResult)) {
158
- combinedResult.push(...fieldSelectedResult);
159
- } else if (!Array.isArray(combinedResult) && !Array.isArray(fieldSelectedResult)) {
160
- Object.assign(combinedResult, fieldSelectedResult);
161
- }
162
- }
163
- if (filterOnlyPatterns.length === 0) {
164
- return combinedResult;
165
- }
166
- dataToProcess = combinedResult;
167
- }
168
- function matchPath(path, pattern, value) {
169
- function rec(pi, pti) {
170
- if (pti >= pattern.length) return pi === path.length;
171
- const pt = pattern[pti];
172
- if (pt.type === "WILDCARD_ANY") {
173
- if (rec(pi, pti + 1)) return true;
174
- if (pi < path.length) return rec(pi + 1, pti);
175
- return false;
176
- }
177
- if (pt.type === "WILDCARD_ONE") {
178
- let j = pi;
179
- let sawKey = false;
180
- while (j < path.length) {
181
- if (path[j].type === "KEY") sawKey = true;
182
- if (sawKey && rec(j, pti + 1)) return true;
183
- j += 1;
184
- }
185
- return false;
186
- }
187
- if (pi >= path.length) return false;
188
- const ct = path[pi];
189
- switch (pt.type) {
190
- case "KEY":
191
- if (ct.type === "KEY" && ct.name === pt.name)
192
- return rec(pi + 1, pti + 1);
193
- if (ct.type === "INDEX") return rec(pi + 1, pti);
194
- return false;
195
- case "INDEX":
196
- if (ct.type === "INDEX" && ct.index === pt.index)
197
- return rec(pi + 1, pti + 1);
198
- return false;
199
- case "INDEX_ANY":
200
- if (ct.type === "INDEX") return rec(pi + 1, pti + 1);
201
- return false;
202
- case "INDEX_RANGE":
203
- if (ct.type === "INDEX") {
204
- const okLower = ct.index >= pt.start;
205
- const okUpper = pt.end === null ? true : ct.index <= pt.end;
206
- if (okLower && okUpper) return rec(pi + 1, pti + 1);
207
- }
208
- return false;
209
- case "INDEX_FILTER":
210
- if (ct.type === "INDEX" && value !== void 0) {
211
- const results = pt.conditions.map(
212
- (cond) => evaluateCondition(value, cond)
213
- );
214
- const matches = pt.logic === "AND" ? results.every((r) => r) : results.some((r) => r);
215
- if (matches) return rec(pi + 1, pti + 1);
216
- }
217
- return false;
218
- }
219
- }
220
- return rec(0, 0);
221
- }
222
- const matchesAnyFilter = (path, value) => filterPatterns.some((p) => matchPath(path, p, value));
223
- const matchesAnyReject = (path, value) => rejectPatterns.some((p) => matchPath(path, p, value));
224
- function getSortPriority(path) {
225
- for (let i = 0; i < sortPatternsParsed.length; i++) {
226
- if (matchPath(path, sortPatternsParsed[i])) {
227
- return i;
228
- }
229
- }
230
- return sortPatternsParsed.length;
231
- }
232
- function applySortKeys(keys, obj, sortOrder) {
233
- if (sortOrder === "asc") {
234
- return [...keys].sort();
235
- }
236
- if (sortOrder === "desc") {
237
- return [...keys].sort().reverse();
238
- }
239
- return sortBy(
240
- sortBy(keys, (k) => k),
241
- (key) => {
242
- const value = obj[key];
243
- if (value !== void 0 && value !== null) {
244
- if (Array.isArray(value) && value.length === 0) return 0;
245
- if (isPlainObject(value)) {
246
- const objLength = Object.keys(value).length;
247
- return 1.99 + objLength * -1e-3;
248
- }
249
- if (Array.isArray(value)) {
250
- const allItemsArePrimitives = value.every(
251
- (item) => typeof item === "string" || typeof item === "number" || typeof item === "boolean" || item === null || item === void 0
252
- );
253
- if (allItemsArePrimitives) {
254
- return 1.9 + value.length * -1e-3;
255
- } else {
256
- return 1.5 + value.length * -0.01;
257
- }
258
- }
259
- if (key === "id" || key === "key") return 5;
260
- if (ID_PROP_REGEXP.test(key)) return 4.5;
261
- if (typeof value === "boolean") return 4;
262
- if (typeof value === "number") return 3.5;
263
- if (typeof value === "string" && value.length < 20) return 3;
264
- return 2;
265
- }
266
- return 0;
267
- },
268
- "desc"
269
- );
270
- }
271
- function sortKeysWithPatterns(keys_, obj, currentPath) {
272
- if (!sortKeys && sortPatternsParsed.length === 0) {
273
- return keys_;
274
- }
275
- let keysToSort = keys_;
276
- if (sortKeys) {
277
- keysToSort = applySortKeys(keysToSort, obj, sortKeys);
278
- }
279
- const sortedKeys = [...keysToSort].sort((a, b) => {
280
- const pathA = currentPath.concat({ type: "KEY", name: a });
281
- const pathB = currentPath.concat({ type: "KEY", name: b });
282
- const priorityA = getSortPriority(pathA);
283
- const priorityB = getSortPriority(pathB);
284
- if (priorityA !== priorityB) {
285
- return priorityA - priorityB;
286
- }
287
- if (sortKeys === "desc") {
288
- return b.localeCompare(a);
289
- }
290
- if (sortKeys === "asc") {
291
- return a.localeCompare(b);
292
- }
293
- return 0;
294
- });
295
- return sortedKeys;
296
- }
297
- const build = (value, path, allowedByFilter, stack2, isRoot, parentIsArray) => {
298
- if (Array.isArray(value)) {
299
- if (stack2.has(value)) {
300
- throw new TypeError("Circular references are not supported");
301
- }
302
- stack2.add(value);
303
- const out = [];
304
- const includeAllChildren = allowedByFilter || !hasFilters;
305
- for (let index = 0; index < value.length; index += 1) {
306
- const childPath = path.concat({ type: "INDEX", index });
307
- const child = value[index];
308
- if (hasRejects && matchesAnyReject(childPath, child)) continue;
309
- const directInclude = hasFilters ? matchesAnyFilter(childPath, child) : true;
310
- const childAllowed = includeAllChildren || directInclude;
311
- if (isPlainObject(child) || Array.isArray(child)) {
312
- const builtChild = build(
313
- child,
314
- childPath,
315
- childAllowed,
316
- stack2,
317
- false,
318
- true
319
- );
320
- if (builtChild !== void 0) {
321
- out.push(builtChild);
322
- }
323
- } else {
324
- if (childAllowed) {
325
- out.push(child);
326
- }
327
- }
328
- }
329
- stack2.delete(value);
330
- const filteredOut = rejectEmptyObjectsInArray ? out.filter(
331
- (item) => !(isPlainObject(item) && Object.keys(item).length === 0)
332
- ) : out;
333
- if (filteredOut.length === 0 && !allowedByFilter && !isRoot)
334
- return void 0;
335
- return filteredOut;
336
- }
337
- if (isPlainObject(value)) {
338
- if (stack2.has(value)) {
339
- throw new TypeError("Circular references are not supported");
340
- }
341
- stack2.add(value);
342
- const result = {};
343
- const includeAllChildren = allowedByFilter || !hasFilters;
344
- const sortedKeys = sortKeysWithPatterns(Object.keys(value), value, path);
345
- for (const key of sortedKeys) {
346
- const childPath = path.concat({ type: "KEY", name: key });
347
- if (hasRejects && matchesAnyReject(childPath)) continue;
348
- const val = value[key];
349
- const directInclude = hasFilters ? matchesAnyFilter(childPath) : true;
350
- const childAllowed = includeAllChildren || directInclude;
351
- if (isPlainObject(val) || Array.isArray(val)) {
352
- const builtChild = build(
353
- val,
354
- childPath,
355
- childAllowed,
356
- stack2,
357
- false,
358
- false
359
- );
360
- if (builtChild === void 0) {
361
- continue;
362
- }
363
- if (Array.isArray(builtChild) && builtChild.length === 0 && !childAllowed) {
364
- continue;
365
- }
366
- if (isPlainObject(builtChild) && Object.keys(builtChild).length === 0 && !childAllowed) {
367
- continue;
368
- }
369
- result[key] = builtChild;
370
- } else {
371
- if (childAllowed) {
372
- result[key] = val;
373
- }
374
- }
375
- }
376
- stack2.delete(value);
377
- if (Object.keys(result).length === 0 && !allowedByFilter && !isRoot) {
378
- if (parentIsArray && !rejectEmptyObjectsInArray) {
379
- return {};
380
- }
381
- return void 0;
382
- }
383
- return result;
384
- }
385
- return allowedByFilter || !hasFilters ? value : void 0;
386
- };
387
- const startPath = [];
388
- const initialAllowed = !hasFilters;
389
- const stack = /* @__PURE__ */ new WeakSet();
390
- const built = build(
391
- dataToProcess,
392
- startPath,
393
- initialAllowed,
394
- stack,
395
- true,
396
- false
397
- );
398
- if (built === void 0) return Array.isArray(dataToProcess) ? [] : {};
399
- return built;
400
- }
401
- function parseFilterConditions(filterContent) {
402
- const conditions = [];
403
- let logic = "AND";
404
- const caseInsensitive = filterContent.startsWith("i");
405
- const content = caseInsensitive ? filterContent.slice(1) : filterContent;
406
- const hasAnd = content.includes("&&");
407
- const hasOr = content.includes(" || ");
408
- if (hasAnd && hasOr) {
409
- throw new Error(
410
- "Mixing && and || operators in the same filter is not supported. Use separate filter patterns instead."
411
- );
412
- }
413
- const andGroups = content.split("&&").map((s) => s.trim());
414
- for (const andGroup of andGroups) {
415
- if (andGroup.includes(" || ")) {
416
- logic = "OR";
417
- const orConditions = andGroup.split(" || ").map((s) => s.trim());
418
- for (const orCondition of orConditions) {
419
- const parsed = parseSingleCondition(orCondition, caseInsensitive);
420
- if (parsed) {
421
- conditions.push(parsed);
422
- }
423
- }
424
- } else {
425
- const parsed = parseSingleCondition(andGroup, caseInsensitive);
426
- if (parsed) {
427
- conditions.push(parsed);
428
- }
429
- }
430
- }
431
- if (conditions.length === 0) {
432
- return null;
433
- }
434
- return {
435
- type: "INDEX_FILTER",
436
- conditions,
437
- logic
438
- };
439
- }
440
- function parseSingleCondition(condition, caseInsensitive = false) {
441
- const cleanCondition = condition.startsWith("%") ? condition.slice(1) : condition;
442
- let operator = null;
443
- let operatorIndex = -1;
444
- let operatorLength = 0;
445
- const operators = [
446
- ["!*=", "!*="],
447
- ["!^=", "!^="],
448
- ["!$=", "!$="],
449
- ["!=", "!="],
450
- ["*=", "*="],
451
- ["^=", "^="],
452
- ["$=", "$="],
453
- ["=", "="]
454
- ];
455
- for (const [op, opType] of operators) {
456
- const index = cleanCondition.indexOf(op);
457
- if (index !== -1) {
458
- operator = opType;
459
- operatorIndex = index;
460
- operatorLength = op.length;
461
- break;
462
- }
463
- }
464
- if (operator === null || operatorIndex === -1) {
465
- return null;
466
- }
467
- const property = cleanCondition.slice(0, operatorIndex).trim();
468
- const valueStr = cleanCondition.slice(operatorIndex + operatorLength).trim();
469
- const values = [];
470
- if (valueStr.includes(" | ")) {
471
- const parts = valueStr.split(" | ");
472
- for (const part of parts) {
473
- const trimmed = part.trim();
474
- const value = trimmed.startsWith('"') && trimmed.endsWith('"') ? trimmed.slice(1, -1) : trimmed;
475
- values.push(value);
476
- }
477
- } else {
478
- const trimmed = valueStr.trim();
479
- const value = trimmed.startsWith('"') && trimmed.endsWith('"') ? trimmed.slice(1, -1) : trimmed;
480
- values.push(value);
481
- }
482
- return {
483
- property,
484
- operator,
485
- values,
486
- caseInsensitive
487
- };
488
- }
489
- function separateFilterPatterns(patterns) {
490
- const filterOnlyPatterns = [];
491
- const combinedPatterns = [];
492
- for (const pattern of patterns) {
493
- const filterMatch = pattern.match(/^(.+\[[i%][^[\]]*\])\.(.+)$/);
494
- if (filterMatch?.[1] && filterMatch[2]) {
495
- const filterPart = filterMatch[1];
496
- const fieldPart = filterMatch[2];
497
- const baseArrayPath = filterPart.replace(/\[[i%][^[\]]*\]/, "[*]");
498
- combinedPatterns.push({
499
- filterPart,
500
- fieldPart: `${baseArrayPath}.${fieldPart}`
501
- });
502
- } else {
503
- filterOnlyPatterns.push(pattern);
504
- }
505
- }
506
- return { filterOnlyPatterns, combinedPatterns };
507
- }
508
- function expandPatterns(pattern) {
509
- function expandSingle(str) {
510
- const start = str.indexOf("(");
511
- if (start === -1) {
512
- return [str];
513
- }
514
- const end = str.indexOf(")", start);
515
- if (end === -1) {
516
- return [str];
517
- }
518
- const before = str.slice(0, start);
519
- const inside = str.slice(start + 1, end);
520
- const after = str.slice(end + 1);
521
- if (!inside.includes("|")) {
522
- return expandSingle(before + inside + after);
523
- }
524
- const options = inside.split("|").filter((option) => option.trim().length > 0);
525
- const results = [];
526
- for (const option of options) {
527
- const newStr = before + option + after;
528
- results.push(...expandSingle(newStr));
529
- }
530
- return results;
531
- }
532
- return expandSingle(pattern);
533
- }
534
- function parsePattern(pattern) {
535
- const tokens = [];
536
- let i = 0;
537
- const n = pattern.length;
538
- const pushKey = (name) => {
539
- if (name.length === 0) return;
540
- tokens.push({ type: "KEY", name });
541
- };
542
- while (i < n) {
543
- const ch = pattern[i];
544
- if (ch === ".") {
545
- i += 1;
546
- continue;
547
- }
548
- if (ch === "[") {
549
- const end = pattern.indexOf("]", i + 1);
550
- const inside = end === -1 ? pattern.slice(i + 1) : pattern.slice(i + 1, end);
551
- if (inside.startsWith("%") || inside.startsWith("i%")) {
552
- let filterContent;
553
- if (inside.startsWith("i%")) {
554
- filterContent = `i${inside.slice(2)}`;
555
- } else if (inside.startsWith("%")) {
556
- filterContent = inside.slice(1);
557
- } else {
558
- filterContent = inside;
559
- }
560
- const filterToken = parseFilterConditions(filterContent);
561
- if (filterToken) {
562
- tokens.push(filterToken);
563
- }
564
- } else if (inside === "*") {
565
- tokens.push({ type: "INDEX_ANY" });
566
- } else if (inside.includes("-")) {
567
- const parts = inside.split("-");
568
- const startStr = parts[0] ?? "";
569
- const endStr = parts[1] ?? "";
570
- const start = parseInt(startStr, 10);
571
- const endNum = endStr === "*" ? null : parseInt(endStr, 10);
572
- tokens.push({
573
- type: "INDEX_RANGE",
574
- start,
575
- end: endNum === null || Number.isFinite(endNum) ? endNum : null
576
- });
577
- } else if (inside.length > 0) {
578
- const idx = parseInt(inside, 10);
579
- tokens.push({ type: "INDEX", index: idx });
580
- }
581
- i = end === -1 ? n : end + 1;
582
- continue;
583
- }
584
- if (ch === "*") {
585
- if (pattern[i + 1] === "*") {
586
- tokens.push({ type: "WILDCARD_ANY" });
587
- i += 2;
588
- let j2 = i;
589
- while (j2 < n) {
590
- const c = pattern[j2];
591
- if (c === "." || c === "[") break;
592
- j2 += 1;
593
- }
594
- if (j2 > i) {
595
- pushKey(pattern.slice(i, j2));
596
- i = j2;
597
- }
598
- continue;
599
- } else {
600
- tokens.push({ type: "WILDCARD_ONE" });
601
- i += 1;
602
- continue;
603
- }
604
- }
605
- let j = i;
606
- while (j < n) {
607
- const c = pattern[j];
608
- if (c === "." || c === "[") break;
609
- j += 1;
610
- }
611
- pushKey(pattern.slice(i, j));
612
- i = j;
613
- }
614
- return tokens;
615
- }
616
- // Annotate the CommonJS export names for ESM import in node:
617
- 0 && (module.exports = {
618
- filterObjectOrArrayKeys
619
- });
@@ -1,88 +0,0 @@
1
- /**
2
- * Filters the keys of an object based on the provided patterns.
3
- *
4
- * Filtering patterns in `rejectKeys` and `filterKeys`:
5
- *
6
- * - `'prop'` - Only root-level properties named 'prop'
7
- * - `'**prop'` - Any property named exactly 'prop' at any level (root or nested)
8
- * - `'*.prop'` - Any nested property named 'prop' at second level (excludes
9
- * root-level matches)
10
- * - `'test.*.prop'` - Any property named 'prop' at second level of 'test'
11
- * - `'test.*.test.**prop'` - Any property named 'prop' inside of 'test.*.test'
12
- * - `'prop.nested'` - Exact nested property paths like `obj.prop.nested`
13
- * - `'prop.**nested'` - All nested properties inside root `prop` with name
14
- * `nested`
15
- * - `'prop[0]'` - The first item of the `prop` array
16
- * - `'prop[*]'` - All items of the `prop` array
17
- * - `'prop[0].nested'` - `nested` prop of the first item of the `prop` array
18
- * - `'prop[*].nested'` - `nested` prop of all items of the `prop` array
19
- * - `'prop[*]**nested'` - all `nested` props of all items of the `prop` array
20
- * - `'prop[0-2]'` - The first three items of the `prop` array
21
- * - `'prop[4-*]'` - All items of the `prop` array from the fourth index to the
22
- * end
23
- * - `'prop[0-2].nested.**prop'` - Combining multiple nested patterns is supported
24
- * - Root array:
25
- *
26
- * - `'[0]'` - The first item of the root array
27
- * - `'[*]'` - All items of the array
28
- * - `'[0].nested'` - `nested` prop of the first item of the array
29
- * - `'[*].nested'` - `nested` prop of all items of the array
30
- * - `'[*]**nested'` - all `nested` props of all items of the array
31
- * - `'[0-2]'` - The first three items of the array
32
- * - `'[4-*]'` - All items of the array from the fourth index to the end
33
- * - Pattern expansion with parentheses:
34
- *
35
- * - `'prop.test.(prop1|prop2|prop3)'` - Expands to `prop.test.prop1`,
36
- * `prop.test.prop2`, and `prop.test.prop3`
37
- * - `'components[*].(table_id|columns|filters[*].value)'` - Expands to
38
- * `components[*].table_id`, `components[*].columns`, and
39
- * `components[*].filters[*].value`
40
- * - `'(users|admins)[*].name'` - Expands to `users[*].name` and `admins[*].name`
41
- * - Array filtering by value:
42
- *
43
- * - `'users[%name="John"]'` - Filters the `users` with the `name` property equal
44
- * to `John`
45
- * - `'users[%name="John" | "Jane"]'` - Value-level OR using `|` for multiple
46
- * values of same property
47
- * - `'users[%name="Alice" || %age=35]'` - Property-level OR using `||` for
48
- * different properties
49
- * - `'users[%age=30 && %role="admin"]'` - Property-level AND using `&&` for
50
- * different properties
51
- * - Note: Mixing `&&` and `||` in the same filter is not supported - use separate
52
- * filter patterns instead
53
- * - `'users[%config.name="John" | "Jane"]'` - Dot notation is supported
54
- * - `'users[%name*="oh"]'` - Contains operator (*=) - filters users where name
55
- * contains "oh"
56
- * - `'users[%name^="Jo"]'` - Starts with operator (^=) - filters users where name
57
- * starts with "Jo"
58
- * - `'users[%name$="hn"]'` - Ends with operator ($=) - filters users where name
59
- * ends with "hn"
60
- * - `'users[%name!="John"]'` - Not equal operator (!=) - filters users where name
61
- * is not "John"
62
- * - `'users[%name!*="admin"]'` - Not contains operator (!*=) - filters users
63
- * where name doesn't contain "admin"
64
- * - `'users[i%name="john"]'` - Case-insensitive matching (i% prefix) - matches
65
- * "John", "JOHN", "john", etc.
66
- *
67
- * @param objOrArray - The object or array to filter.
68
- * @param options - The options for the filter.
69
- * @param options.filterKeys - The keys to filter.
70
- * @param options.rejectKeys - The keys to reject.
71
- * @param options.rejectEmptyObjectsInArray - Whether to reject empty objects in
72
- * arrays (default: true).
73
- * @param options.sortKeys - Sort all keys by a specific order (optional,
74
- * preserves original order when not specified).
75
- * @param options.sortPatterns - Sort specific keys by pattern. Use to control
76
- * the order of specific properties. The same patterns as `filterKeys` are
77
- * supported.
78
- * @returns The filtered object or array.
79
- */
80
- declare function filterObjectOrArrayKeys(objOrArray: Record<string, any> | Record<string, any>[], { filterKeys, rejectKeys, rejectEmptyObjectsInArray, sortKeys, sortPatterns, }: {
81
- filterKeys?: string[] | string;
82
- rejectKeys?: string[] | string;
83
- rejectEmptyObjectsInArray?: boolean;
84
- sortKeys?: 'asc' | 'desc' | 'simpleValuesFirst' | false;
85
- sortPatterns?: string[];
86
- }): Record<string, any> | Record<string, any>[];
87
-
88
- export { filterObjectOrArrayKeys };