es-toolkit 1.13.1-dev.320 → 1.13.1-dev.321

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 (202) hide show
  1. package/dist/array/chunk.mjs +1 -1
  2. package/dist/array/compact.mjs +1 -1
  3. package/dist/array/countBy.js +1 -2
  4. package/dist/array/countBy.js.map +1 -1
  5. package/dist/array/countBy.mjs +2 -2
  6. package/dist/array/difference.mjs +1 -1
  7. package/dist/array/differenceBy.mjs +1 -1
  8. package/dist/array/differenceWith.mjs +1 -1
  9. package/dist/array/drop.mjs +1 -1
  10. package/dist/array/dropRight.mjs +1 -1
  11. package/dist/array/dropRightWhile.mjs +1 -1
  12. package/dist/array/dropWhile.mjs +1 -1
  13. package/dist/array/fill.mjs +1 -1
  14. package/dist/array/flatMap.mjs +1 -1
  15. package/dist/array/flatten.mjs +1 -1
  16. package/dist/array/flattenDeep.mjs +1 -1
  17. package/dist/array/forEachRight.mjs +1 -1
  18. package/dist/array/groupBy.mjs +1 -1
  19. package/dist/array/head.mjs +1 -1
  20. package/dist/array/index.js +1 -2
  21. package/dist/array/index.js.map +1 -1
  22. package/dist/array/index.mjs +62 -62
  23. package/dist/array/initial.mjs +1 -1
  24. package/dist/array/intersection.mjs +1 -1
  25. package/dist/array/intersectionBy.mjs +1 -1
  26. package/dist/array/intersectionWith.mjs +1 -1
  27. package/dist/array/keyBy.mjs +1 -1
  28. package/dist/array/last.mjs +1 -1
  29. package/dist/array/maxBy.mjs +1 -1
  30. package/dist/array/minBy.mjs +1 -1
  31. package/dist/array/orderBy.mjs +1 -1
  32. package/dist/array/partition.mjs +1 -1
  33. package/dist/array/sample.mjs +1 -1
  34. package/dist/array/sampleSize.mjs +1 -1
  35. package/dist/array/shuffle.mjs +1 -1
  36. package/dist/array/tail.mjs +1 -1
  37. package/dist/array/take.mjs +1 -1
  38. package/dist/array/takeRight.mjs +1 -1
  39. package/dist/array/takeRightWhile.mjs +1 -1
  40. package/dist/array/takeWhile.mjs +1 -1
  41. package/dist/array/toFilled.mjs +1 -1
  42. package/dist/array/union.mjs +1 -1
  43. package/dist/array/unionBy.mjs +1 -1
  44. package/dist/array/unionWith.mjs +1 -1
  45. package/dist/array/uniq.mjs +1 -1
  46. package/dist/array/uniqBy.mjs +1 -1
  47. package/dist/array/uniqWith.mjs +1 -1
  48. package/dist/array/unzip.mjs +1 -1
  49. package/dist/array/unzipWith.mjs +1 -1
  50. package/dist/array/without.mjs +1 -1
  51. package/dist/array/xor.mjs +1 -1
  52. package/dist/array/xorBy.mjs +1 -1
  53. package/dist/array/xorWith.mjs +1 -1
  54. package/dist/array/zip.mjs +1 -1
  55. package/dist/array/zipObject.mjs +1 -1
  56. package/dist/array/zipWith.mjs +1 -1
  57. package/dist/browser.js +22 -58
  58. package/dist/browser.js.map +1 -1
  59. package/dist/browser.mjs +46 -45
  60. package/dist/browser.mjs.map +1 -1
  61. package/dist/{chunk-QXTNZR7B.mjs → chunk-3SBT6WDU.mjs} +2 -2
  62. package/dist/{chunk-O64NE2P4.mjs → chunk-4DFAGGIM.mjs} +3 -3
  63. package/dist/{chunk-O64NE2P4.mjs.map → chunk-4DFAGGIM.mjs.map} +1 -1
  64. package/dist/{chunk-Y5V7UAZZ.mjs → chunk-4ZES5T6V.mjs} +4 -4
  65. package/dist/{chunk-EYYZQFOP.mjs → chunk-ET33L3MQ.mjs} +2 -2
  66. package/dist/chunk-EZYYB34V.mjs +17 -0
  67. package/dist/{chunk-CVVZHOJX.mjs.map → chunk-EZYYB34V.mjs.map} +1 -1
  68. package/dist/{chunk-YNJH6GEG.mjs → chunk-IGM5IABU.mjs} +90 -87
  69. package/dist/{chunk-YNJH6GEG.mjs.map → chunk-IGM5IABU.mjs.map} +1 -1
  70. package/dist/{chunk-F3WCQQET.mjs → chunk-IWXZI3QT.mjs} +2 -2
  71. package/dist/chunk-J5LGTIGS.mjs +10 -0
  72. package/dist/{chunk-5CPXZFCB.mjs → chunk-K5WL54BY.mjs} +2 -2
  73. package/dist/{chunk-5CPXZFCB.mjs.map → chunk-K5WL54BY.mjs.map} +1 -1
  74. package/dist/{chunk-3IP4JVLL.mjs → chunk-MSHSKENG.mjs} +3 -3
  75. package/dist/{chunk-3IP4JVLL.mjs.map → chunk-MSHSKENG.mjs.map} +1 -1
  76. package/dist/{chunk-WVQ7YVRK.mjs → chunk-OG2RLT5U.mjs} +2 -3
  77. package/dist/{chunk-WVQ7YVRK.mjs.map → chunk-OG2RLT5U.mjs.map} +1 -1
  78. package/dist/chunk-R6GLTTAB.mjs +9 -0
  79. package/dist/chunk-R6GLTTAB.mjs.map +1 -0
  80. package/dist/{chunk-5IKVJGHO.mjs → chunk-RTFTLCF3.mjs} +2 -2
  81. package/dist/{chunk-WFZXCGEG.mjs → chunk-YOPFSFTD.mjs} +2 -6
  82. package/dist/{chunk-WFZXCGEG.mjs.map → chunk-YOPFSFTD.mjs.map} +1 -1
  83. package/dist/chunk-YXD3AQAK.mjs +1 -0
  84. package/dist/{chunk-CRSKT4WW.mjs → chunk-Z7HWEOQX.mjs} +2 -3
  85. package/dist/{chunk-CRSKT4WW.mjs.map → chunk-Z7HWEOQX.mjs.map} +1 -1
  86. package/dist/chunk-ZPNX2QDE.mjs +13 -0
  87. package/dist/{chunk-IIDZ3KAJ.mjs.map → chunk-ZPNX2QDE.mjs.map} +1 -1
  88. package/dist/compat/index.d.mts +1 -0
  89. package/dist/compat/index.d.ts +1 -0
  90. package/dist/compat/index.js +23 -57
  91. package/dist/compat/index.js.map +1 -1
  92. package/dist/compat/index.mjs +90 -86
  93. package/dist/error/AbortError.mjs +1 -1
  94. package/dist/error/TimeoutError.mjs +1 -1
  95. package/dist/error/index.mjs +4 -4
  96. package/dist/function/after.mjs +1 -1
  97. package/dist/function/debounce.js +2 -2
  98. package/dist/function/debounce.js.map +1 -1
  99. package/dist/function/debounce.mjs +2 -2
  100. package/dist/function/index.js +2 -2
  101. package/dist/function/index.js.map +1 -1
  102. package/dist/function/index.mjs +2 -2
  103. package/dist/function/negate.mjs +1 -1
  104. package/dist/function/noop.mjs +1 -1
  105. package/dist/function/once.mjs +1 -1
  106. package/dist/function/throttle.mjs +1 -1
  107. package/dist/index.d.mts +1 -0
  108. package/dist/index.d.ts +1 -0
  109. package/dist/index.js +20 -53
  110. package/dist/index.js.map +1 -1
  111. package/dist/index.mjs +90 -86
  112. package/dist/math/clamp.mjs +1 -1
  113. package/dist/math/inRange.mjs +1 -1
  114. package/dist/math/index.mjs +1 -1
  115. package/dist/math/mean.mjs +1 -1
  116. package/dist/math/meanBy.mjs +1 -1
  117. package/dist/math/random.mjs +1 -1
  118. package/dist/math/randomInt.mjs +1 -1
  119. package/dist/math/range.mjs +1 -1
  120. package/dist/math/round.mjs +1 -1
  121. package/dist/math/sum.mjs +1 -1
  122. package/dist/math/sumBy.mjs +1 -1
  123. package/dist/object/clone.mjs +1 -1
  124. package/dist/object/cloneDeep.js +1 -1
  125. package/dist/object/cloneDeep.js.map +1 -1
  126. package/dist/object/cloneDeep.mjs +2 -2
  127. package/dist/object/flattenObject.mjs +1 -1
  128. package/dist/object/index.js +2 -16
  129. package/dist/object/index.js.map +1 -1
  130. package/dist/object/index.mjs +3 -3
  131. package/dist/object/invert.mjs +1 -1
  132. package/dist/object/omit.js +1 -15
  133. package/dist/object/omit.js.map +1 -1
  134. package/dist/object/omit.mjs +2 -2
  135. package/dist/object/omitBy.mjs +1 -1
  136. package/dist/object/pick.mjs +1 -1
  137. package/dist/object/pickBy.mjs +1 -1
  138. package/dist/predicate/index.d.mts +1 -0
  139. package/dist/predicate/index.d.ts +1 -0
  140. package/dist/predicate/index.js +7 -0
  141. package/dist/predicate/index.js.map +1 -1
  142. package/dist/predicate/index.mjs +9 -5
  143. package/dist/predicate/isArrayLike.mjs +1 -1
  144. package/dist/predicate/isEqual.mjs +1 -1
  145. package/dist/predicate/isFunction.mjs +1 -1
  146. package/dist/predicate/isLength.mjs +1 -1
  147. package/dist/predicate/isNil.mjs +1 -1
  148. package/dist/predicate/isNotNil.mjs +1 -1
  149. package/dist/predicate/isNull.mjs +1 -1
  150. package/dist/predicate/isPlainObject.mjs +1 -1
  151. package/dist/predicate/isPrimitive.d.mts +17 -0
  152. package/dist/predicate/isPrimitive.d.ts +17 -0
  153. package/dist/predicate/isPrimitive.js +33 -0
  154. package/dist/predicate/isPrimitive.js.map +1 -0
  155. package/dist/predicate/isPrimitive.mjs +8 -0
  156. package/dist/predicate/isPrimitive.mjs.map +1 -0
  157. package/dist/predicate/isTypedArray.mjs +1 -1
  158. package/dist/predicate/isUndefined.mjs +1 -1
  159. package/dist/promise/delay.js +2 -2
  160. package/dist/promise/delay.js.map +1 -1
  161. package/dist/promise/delay.mjs +2 -2
  162. package/dist/promise/index.js +7 -31
  163. package/dist/promise/index.js.map +1 -1
  164. package/dist/promise/index.mjs +5 -5
  165. package/dist/promise/timeout.js +5 -27
  166. package/dist/promise/timeout.js.map +1 -1
  167. package/dist/promise/timeout.mjs +4 -4
  168. package/dist/promise/withTimeout.js +7 -31
  169. package/dist/promise/withTimeout.js.map +1 -1
  170. package/dist/promise/withTimeout.mjs +5 -5
  171. package/dist/string/camelCase.js +1 -2
  172. package/dist/string/camelCase.js.map +1 -1
  173. package/dist/string/camelCase.mjs +3 -3
  174. package/dist/string/capitalize.mjs +1 -1
  175. package/dist/string/index.js +1 -2
  176. package/dist/string/index.js.map +1 -1
  177. package/dist/string/index.mjs +9 -9
  178. package/dist/string/kebabCase.js +1 -2
  179. package/dist/string/kebabCase.js.map +1 -1
  180. package/dist/string/kebabCase.mjs +3 -3
  181. package/dist/string/lowerCase.js +1 -2
  182. package/dist/string/lowerCase.js.map +1 -1
  183. package/dist/string/lowerCase.mjs +3 -3
  184. package/dist/string/snakeCase.js +1 -2
  185. package/dist/string/snakeCase.js.map +1 -1
  186. package/dist/string/snakeCase.mjs +3 -3
  187. package/dist/string/startCase.js +1 -2
  188. package/dist/string/startCase.js.map +1 -1
  189. package/dist/string/startCase.mjs +3 -3
  190. package/package.json +1 -1
  191. package/umd/browser.global.js +1 -1
  192. package/dist/chunk-24FKGR6U.mjs +0 -47
  193. package/dist/chunk-CVVZHOJX.mjs +0 -22
  194. package/dist/chunk-IIDZ3KAJ.mjs +0 -18
  195. package/dist/chunk-STL6TD3L.mjs +0 -1
  196. /package/dist/{chunk-QXTNZR7B.mjs.map → chunk-3SBT6WDU.mjs.map} +0 -0
  197. /package/dist/{chunk-Y5V7UAZZ.mjs.map → chunk-4ZES5T6V.mjs.map} +0 -0
  198. /package/dist/{chunk-EYYZQFOP.mjs.map → chunk-ET33L3MQ.mjs.map} +0 -0
  199. /package/dist/{chunk-F3WCQQET.mjs.map → chunk-IWXZI3QT.mjs.map} +0 -0
  200. /package/dist/{chunk-24FKGR6U.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  201. /package/dist/{chunk-5IKVJGHO.mjs.map → chunk-RTFTLCF3.mjs.map} +0 -0
  202. /package/dist/{chunk-STL6TD3L.mjs.map → chunk-YXD3AQAK.mjs.map} +0 -0
package/dist/browser.mjs CHANGED
@@ -1,37 +1,38 @@
1
1
  import {
2
2
  compat_exports
3
- } from "./chunk-YNJH6GEG.mjs";
3
+ } from "./chunk-IGM5IABU.mjs";
4
4
  import "./chunk-NKLIE2OI.mjs";
5
5
  import "./chunk-4OIZM4HS.mjs";
6
- import "./chunk-IIDZ3KAJ.mjs";
7
- import "./chunk-CVVZHOJX.mjs";
8
- import "./chunk-O64NE2P4.mjs";
6
+ import "./chunk-ZPNX2QDE.mjs";
7
+ import "./chunk-EZYYB34V.mjs";
8
+ import "./chunk-4DFAGGIM.mjs";
9
9
  import "./chunk-XT74R35S.mjs";
10
- import "./chunk-5IKVJGHO.mjs";
11
- import "./chunk-F3WCQQET.mjs";
12
- import "./chunk-QXTNZR7B.mjs";
13
- import "./chunk-Y5V7UAZZ.mjs";
10
+ import "./chunk-ET33L3MQ.mjs";
11
+ import "./chunk-RTFTLCF3.mjs";
12
+ import "./chunk-IWXZI3QT.mjs";
13
+ import "./chunk-3SBT6WDU.mjs";
14
+ import "./chunk-4ZES5T6V.mjs";
15
+ import "./chunk-OG2RLT5U.mjs";
14
16
  import "./chunk-U56ZOM7L.mjs";
15
- import "./chunk-EYYZQFOP.mjs";
16
- import "./chunk-WVQ7YVRK.mjs";
17
- import "./chunk-STL6TD3L.mjs";
17
+ import "./chunk-YXD3AQAK.mjs";
18
+ import "./chunk-VH2PV426.mjs";
18
19
  import "./chunk-74CREQXW.mjs";
19
20
  import "./chunk-WMM7TZLG.mjs";
20
21
  import "./chunk-BMRTZMRE.mjs";
21
22
  import "./chunk-AIRSKN47.mjs";
23
+ import "./chunk-R6GLTTAB.mjs";
22
24
  import "./chunk-SXFMQQ6F.mjs";
23
- import "./chunk-VH2PV426.mjs";
24
25
  import "./chunk-LPZZIY5Z.mjs";
25
26
  import "./chunk-27QMXBLJ.mjs";
26
27
  import "./chunk-JYSV56US.mjs";
27
28
  import "./chunk-YXAOYIRV.mjs";
28
29
  import "./chunk-OLX53VEF.mjs";
29
- import "./chunk-WFZXCGEG.mjs";
30
+ import "./chunk-YOPFSFTD.mjs";
30
31
  import "./chunk-BCTYOXT7.mjs";
31
32
  import "./chunk-HPFDYUGP.mjs";
32
33
  import "./chunk-6CLH5YZ2.mjs";
33
34
  import "./chunk-VRUTBJYS.mjs";
34
- import "./chunk-5CPXZFCB.mjs";
35
+ import "./chunk-K5WL54BY.mjs";
35
36
  import "./chunk-XGQWTHW6.mjs";
36
37
  import "./chunk-MIGAC7F4.mjs";
37
38
  import "./chunk-FUS75PJ7.mjs";
@@ -43,71 +44,71 @@ import "./chunk-BH6HLGBA.mjs";
43
44
  import "./chunk-MY4G7R3I.mjs";
44
45
  import "./chunk-5ASRKEB4.mjs";
45
46
  import "./chunk-2SLTL4KL.mjs";
46
- import "./chunk-F47GLYUU.mjs";
47
- import "./chunk-KIOYQRMQ.mjs";
48
47
  import "./chunk-ZA2XI3OV.mjs";
49
48
  import "./chunk-QOJGMVVR.mjs";
50
49
  import "./chunk-OGZMEWPR.mjs";
51
- import "./chunk-3IP4JVLL.mjs";
50
+ import "./chunk-MSHSKENG.mjs";
52
51
  import "./chunk-BOOQBJN2.mjs";
53
52
  import "./chunk-LKXCOLNY.mjs";
54
53
  import "./chunk-CMBC4MXG.mjs";
55
- import "./chunk-DXB7EZUQ.mjs";
56
54
  import "./chunk-DDH7K4QM.mjs";
57
- import "./chunk-L7FQX5MN.mjs";
58
- import "./chunk-Q47NGNXT.mjs";
59
- import "./chunk-QRSJBBFY.mjs";
60
- import "./chunk-OLORW442.mjs";
61
55
  import "./chunk-6GWEY5EL.mjs";
62
56
  import "./chunk-4KYXHZ4R.mjs";
63
- import "./chunk-NFS7RWWE.mjs";
64
- import "./chunk-2ZCITDMK.mjs";
65
- import "./chunk-B4COTK4K.mjs";
66
- import "./chunk-237HGSZS.mjs";
67
57
  import "./chunk-UYZKMBDO.mjs";
68
58
  import "./chunk-IFNXROZR.mjs";
69
59
  import "./chunk-PYEYV7BY.mjs";
70
- import "./chunk-G7UQ5PUR.mjs";
71
- import "./chunk-TJ4Z5I7M.mjs";
72
- import "./chunk-ME352XO7.mjs";
73
- import "./chunk-N3QYJX4T.mjs";
60
+ import "./chunk-L7FQX5MN.mjs";
61
+ import "./chunk-Q47NGNXT.mjs";
62
+ import "./chunk-QRSJBBFY.mjs";
63
+ import "./chunk-OLORW442.mjs";
74
64
  import "./chunk-NTLX2MPV.mjs";
75
65
  import "./chunk-2IXFGSUA.mjs";
76
66
  import "./chunk-OP4OAKQJ.mjs";
77
67
  import "./chunk-R6QA7PLZ.mjs";
68
+ import "./chunk-NFS7RWWE.mjs";
69
+ import "./chunk-2ZCITDMK.mjs";
70
+ import "./chunk-237HGSZS.mjs";
78
71
  import "./chunk-DVK2N4KC.mjs";
79
- import "./chunk-AJKZMN2V.mjs";
80
- import "./chunk-KPBQ7OUY.mjs";
81
- import "./chunk-OOKNBU4V.mjs";
82
- import "./chunk-IJD7FE2Z.mjs";
72
+ import "./chunk-B4COTK4K.mjs";
83
73
  import "./chunk-7B7W36UP.mjs";
84
74
  import "./chunk-DN3NOZ3H.mjs";
85
75
  import "./chunk-2KNLZB7V.mjs";
86
76
  import "./chunk-EHSKB6DF.mjs";
87
77
  import "./chunk-GIWAOOFY.mjs";
88
78
  import "./chunk-SYWMYQYJ.mjs";
89
- import "./chunk-IEA53J7P.mjs";
90
- import "./chunk-E6E4RZLN.mjs";
91
- import "./chunk-HM2JT2RX.mjs";
79
+ import "./chunk-G7UQ5PUR.mjs";
80
+ import "./chunk-TJ4Z5I7M.mjs";
81
+ import "./chunk-ME352XO7.mjs";
82
+ import "./chunk-N3QYJX4T.mjs";
92
83
  import "./chunk-XPSOKBRZ.mjs";
93
84
  import "./chunk-FVVSE2F2.mjs";
94
85
  import "./chunk-O6UXZR3U.mjs";
95
86
  import "./chunk-XI7KRD2C.mjs";
96
- import "./chunk-3EZAFZG3.mjs";
97
- import "./chunk-OXZCMC5I.mjs";
98
- import "./chunk-M7SBBYV2.mjs";
99
- import "./chunk-LJ2C6MVP.mjs";
87
+ import "./chunk-AJKZMN2V.mjs";
88
+ import "./chunk-KPBQ7OUY.mjs";
89
+ import "./chunk-OOKNBU4V.mjs";
90
+ import "./chunk-IJD7FE2Z.mjs";
100
91
  import "./chunk-YFN6KOC4.mjs";
101
92
  import "./chunk-UY76KTPE.mjs";
102
93
  import "./chunk-ML727RRJ.mjs";
103
94
  import "./chunk-33MSBDC6.mjs";
104
- import "./chunk-E6C5EZQA.mjs";
105
- import "./chunk-DTJJIMKJ.mjs";
106
- import "./chunk-CRSKT4WW.mjs";
95
+ import "./chunk-IEA53J7P.mjs";
96
+ import "./chunk-E6E4RZLN.mjs";
97
+ import "./chunk-HM2JT2RX.mjs";
98
+ import "./chunk-Z7HWEOQX.mjs";
107
99
  import "./chunk-JPUKH67K.mjs";
108
100
  import "./chunk-LVWX5B43.mjs";
109
101
  import "./chunk-6NVQAHXP.mjs";
110
- import "./chunk-24FKGR6U.mjs";
102
+ import "./chunk-3EZAFZG3.mjs";
103
+ import "./chunk-OXZCMC5I.mjs";
104
+ import "./chunk-M7SBBYV2.mjs";
105
+ import "./chunk-LJ2C6MVP.mjs";
106
+ import "./chunk-F47GLYUU.mjs";
107
+ import "./chunk-DXB7EZUQ.mjs";
108
+ import "./chunk-KIOYQRMQ.mjs";
109
+ import "./chunk-E6C5EZQA.mjs";
110
+ import "./chunk-DTJJIMKJ.mjs";
111
+ import "./chunk-J5LGTIGS.mjs";
111
112
 
112
113
  // src/browser.ts
113
114
  window._ = compat_exports;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/browser.ts"],"sourcesContent":["import * as toolkit from './compat/index.ts';\n\ninterface Window {\n _: typeof toolkit;\n}\n\ndeclare let window: Window;\nwindow._ = toolkit;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,OAAO,IAAI;","names":[]}
1
+ {"version":3,"sources":["../src/browser.ts"],"sourcesContent":["import * as toolkit from './compat/index.ts';\n\ninterface Window {\n _: typeof toolkit;\n}\n\ndeclare let window: Window;\nwindow._ = toolkit;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,OAAO,IAAI;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getWords
3
- } from "./chunk-WVQ7YVRK.mjs";
3
+ } from "./chunk-OG2RLT5U.mjs";
4
4
 
5
5
  // src/string/startCase.ts
6
6
  function startCase(str) {
@@ -22,4 +22,4 @@ function startCase(str) {
22
22
  export {
23
23
  startCase
24
24
  };
25
- //# sourceMappingURL=chunk-QXTNZR7B.mjs.map
25
+ //# sourceMappingURL=chunk-3SBT6WDU.mjs.map
@@ -12,15 +12,15 @@ function delay(ms, { signal } = {}) {
12
12
  clearTimeout(timeoutId);
13
13
  abortError();
14
14
  };
15
- if (signal == null ? void 0 : signal.aborted) {
15
+ if (signal?.aborted) {
16
16
  return abortError();
17
17
  }
18
18
  const timeoutId = setTimeout(resolve, ms);
19
- signal == null ? void 0 : signal.addEventListener("abort", abortHandler, { once: true });
19
+ signal?.addEventListener("abort", abortHandler, { once: true });
20
20
  });
21
21
  }
22
22
 
23
23
  export {
24
24
  delay
25
25
  };
26
- //# sourceMappingURL=chunk-O64NE2P4.mjs.map
26
+ //# sourceMappingURL=chunk-4DFAGGIM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/promise/delay.ts"],"sourcesContent":["import { AbortError } from '../error/AbortError.ts';\n\ninterface DelayOptions {\n signal?: AbortSignal;\n}\n\n/**\n * Delays the execution of code for a specified number of milliseconds.\n *\n * This function returns a Promise that resolves after the specified delay, allowing you to use it\n * with async/await to pause execution.\n *\n * @param {number} ms - The number of milliseconds to delay.\n * @param {DelayOptions} options - The options object.\n * @param {AbortSignal} options.signal - An optional AbortSignal to cancel the delay.\n * @returns {Promise<void>} A Promise that resolves after the specified delay.\n *\n * @example\n * async function foo() {\n * console.log('Start');\n * await delay(1000); // Delays execution for 1 second\n * console.log('End');\n * }\n *\n * foo();\n *\n * // With AbortSignal\n * const controller = new AbortController();\n * const { signal } = controller;\n *\n * setTimeout(() => controller.abort(), 50); // Will cancel the delay after 50ms\n * try {\n * await delay(100, { signal });\n * } catch (error) {\n * console.error(error); // Will log 'AbortError'\n * }\n * }\n */\nexport function delay(ms: number, { signal }: DelayOptions = {}): Promise<void> {\n return new Promise((resolve, reject) => {\n const abortError = () => {\n reject(new AbortError());\n };\n\n const abortHandler = () => {\n clearTimeout(timeoutId);\n abortError();\n };\n\n if (signal?.aborted) {\n return abortError();\n }\n\n const timeoutId = setTimeout(resolve, ms);\n\n signal?.addEventListener('abort', abortHandler, { once: true });\n });\n}\n"],"mappings":";;;;;AAsCO,SAAS,MAAM,IAAY,EAAE,OAAO,IAAkB,CAAC,GAAkB;AAC9E,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,aAAa,MAAM;AACvB,aAAO,IAAI,WAAW,CAAC;AAAA,IACzB;AAEA,UAAM,eAAe,MAAM;AACzB,mBAAa,SAAS;AACtB,iBAAW;AAAA,IACb;AAEA,QAAI,iCAAQ,SAAS;AACnB,aAAO,WAAW;AAAA,IACpB;AAEA,UAAM,YAAY,WAAW,SAAS,EAAE;AAExC,qCAAQ,iBAAiB,SAAS,cAAc,EAAE,MAAM,KAAK;AAAA,EAC/D,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../src/promise/delay.ts"],"sourcesContent":["import { AbortError } from '../error/AbortError.ts';\n\ninterface DelayOptions {\n signal?: AbortSignal;\n}\n\n/**\n * Delays the execution of code for a specified number of milliseconds.\n *\n * This function returns a Promise that resolves after the specified delay, allowing you to use it\n * with async/await to pause execution.\n *\n * @param {number} ms - The number of milliseconds to delay.\n * @param {DelayOptions} options - The options object.\n * @param {AbortSignal} options.signal - An optional AbortSignal to cancel the delay.\n * @returns {Promise<void>} A Promise that resolves after the specified delay.\n *\n * @example\n * async function foo() {\n * console.log('Start');\n * await delay(1000); // Delays execution for 1 second\n * console.log('End');\n * }\n *\n * foo();\n *\n * // With AbortSignal\n * const controller = new AbortController();\n * const { signal } = controller;\n *\n * setTimeout(() => controller.abort(), 50); // Will cancel the delay after 50ms\n * try {\n * await delay(100, { signal });\n * } catch (error) {\n * console.error(error); // Will log 'AbortError'\n * }\n * }\n */\nexport function delay(ms: number, { signal }: DelayOptions = {}): Promise<void> {\n return new Promise((resolve, reject) => {\n const abortError = () => {\n reject(new AbortError());\n };\n\n const abortHandler = () => {\n clearTimeout(timeoutId);\n abortError();\n };\n\n if (signal?.aborted) {\n return abortError();\n }\n\n const timeoutId = setTimeout(resolve, ms);\n\n signal?.addEventListener('abort', abortHandler, { once: true });\n });\n}\n"],"mappings":";;;;;AAsCO,SAAS,MAAM,IAAY,EAAE,OAAO,IAAkB,CAAC,GAAkB;AAC9E,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,aAAa,MAAM;AACvB,aAAO,IAAI,WAAW,CAAC;AAAA,IACzB;AAEA,UAAM,eAAe,MAAM;AACzB,mBAAa,SAAS;AACtB,iBAAW;AAAA,IACb;AAEA,QAAI,QAAQ,SAAS;AACnB,aAAO,WAAW;AAAA,IACpB;AAEA,UAAM,YAAY,WAAW,SAAS,EAAE;AAExC,YAAQ,iBAAiB,SAAS,cAAc,EAAE,MAAM,KAAK,CAAC;AAAA,EAChE,CAAC;AACH;","names":[]}
@@ -1,9 +1,9 @@
1
+ import {
2
+ getWords
3
+ } from "./chunk-OG2RLT5U.mjs";
1
4
  import {
2
5
  capitalize
3
6
  } from "./chunk-U56ZOM7L.mjs";
4
- import {
5
- getWords
6
- } from "./chunk-WVQ7YVRK.mjs";
7
7
 
8
8
  // src/string/camelCase.ts
9
9
  function camelCase(str) {
@@ -18,4 +18,4 @@ function camelCase(str) {
18
18
  export {
19
19
  camelCase
20
20
  };
21
- //# sourceMappingURL=chunk-Y5V7UAZZ.mjs.map
21
+ //# sourceMappingURL=chunk-4ZES5T6V.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getWords
3
- } from "./chunk-WVQ7YVRK.mjs";
3
+ } from "./chunk-OG2RLT5U.mjs";
4
4
 
5
5
  // src/string/kebabCase.ts
6
6
  var kebabCase = (str) => {
@@ -11,4 +11,4 @@ var kebabCase = (str) => {
11
11
  export {
12
12
  kebabCase
13
13
  };
14
- //# sourceMappingURL=chunk-EYYZQFOP.mjs.map
14
+ //# sourceMappingURL=chunk-ET33L3MQ.mjs.map
@@ -0,0 +1,17 @@
1
+ import {
2
+ delay
3
+ } from "./chunk-4DFAGGIM.mjs";
4
+ import {
5
+ TimeoutError
6
+ } from "./chunk-KIOYQRMQ.mjs";
7
+
8
+ // src/promise/timeout.ts
9
+ async function timeout(ms) {
10
+ await delay(ms);
11
+ throw new TimeoutError();
12
+ }
13
+
14
+ export {
15
+ timeout
16
+ };
17
+ //# sourceMappingURL=chunk-EZYYB34V.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/promise/timeout.ts"],"sourcesContent":["import { delay } from './delay.ts';\nimport { TimeoutError } from '../error/TimeoutError.ts';\n\n/**\n * Returns a promise that rejects with a `TimeoutError` after a specified delay.\n *\n * @param {number} ms - The delay duration in milliseconds.\n * @returns {Promise<void>} A promise that rejects with a `TimeoutError` after the specified delay.\n * @throws {TimeoutError} Throws a `TimeoutError` after the specified delay.\n */\nexport async function timeout(ms: number): Promise<never> {\n await delay(ms);\n throw new TimeoutError();\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAsB,QAAQ,IAA4B;AAAA;AACxD,UAAM,MAAM,EAAE;AACd,UAAM,IAAI,aAAa;AAAA,EACzB;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/promise/timeout.ts"],"sourcesContent":["import { delay } from './delay.ts';\nimport { TimeoutError } from '../error/TimeoutError.ts';\n\n/**\n * Returns a promise that rejects with a `TimeoutError` after a specified delay.\n *\n * @param {number} ms - The delay duration in milliseconds.\n * @returns {Promise<void>} A promise that rejects with a `TimeoutError` after the specified delay.\n * @throws {TimeoutError} Throws a `TimeoutError` after the specified delay.\n */\nexport async function timeout(ms: number): Promise<never> {\n await delay(ms);\n throw new TimeoutError();\n}\n"],"mappings":";;;;;;;;AAUA,eAAsB,QAAQ,IAA4B;AACxD,QAAM,MAAM,EAAE;AACd,QAAM,IAAI,aAAa;AACzB;","names":[]}
@@ -1,27 +1,30 @@
1
1
  import {
2
2
  withTimeout
3
- } from "./chunk-IIDZ3KAJ.mjs";
3
+ } from "./chunk-ZPNX2QDE.mjs";
4
4
  import {
5
5
  delay
6
- } from "./chunk-O64NE2P4.mjs";
6
+ } from "./chunk-4DFAGGIM.mjs";
7
+ import {
8
+ kebabCase
9
+ } from "./chunk-ET33L3MQ.mjs";
7
10
  import {
8
11
  lowerCase
9
- } from "./chunk-5IKVJGHO.mjs";
12
+ } from "./chunk-RTFTLCF3.mjs";
10
13
  import {
11
14
  snakeCase
12
- } from "./chunk-F3WCQQET.mjs";
15
+ } from "./chunk-IWXZI3QT.mjs";
13
16
  import {
14
17
  startCase
15
- } from "./chunk-QXTNZR7B.mjs";
18
+ } from "./chunk-3SBT6WDU.mjs";
16
19
  import {
17
20
  camelCase
18
- } from "./chunk-Y5V7UAZZ.mjs";
21
+ } from "./chunk-4ZES5T6V.mjs";
19
22
  import {
20
23
  capitalize
21
24
  } from "./chunk-U56ZOM7L.mjs";
22
25
  import {
23
- kebabCase
24
- } from "./chunk-EYYZQFOP.mjs";
26
+ isUndefined
27
+ } from "./chunk-VH2PV426.mjs";
25
28
  import {
26
29
  isFunction
27
30
  } from "./chunk-74CREQXW.mjs";
@@ -34,12 +37,12 @@ import {
34
37
  import {
35
38
  isNull
36
39
  } from "./chunk-AIRSKN47.mjs";
40
+ import {
41
+ isPrimitive
42
+ } from "./chunk-R6GLTTAB.mjs";
37
43
  import {
38
44
  isTypedArray
39
45
  } from "./chunk-SXFMQQ6F.mjs";
40
- import {
41
- isUndefined
42
- } from "./chunk-VH2PV426.mjs";
43
46
  import {
44
47
  isArrayLike
45
48
  } from "./chunk-LPZZIY5Z.mjs";
@@ -54,7 +57,7 @@ import {
54
57
  } from "./chunk-OLX53VEF.mjs";
55
58
  import {
56
59
  omit
57
- } from "./chunk-WFZXCGEG.mjs";
60
+ } from "./chunk-YOPFSFTD.mjs";
58
61
  import {
59
62
  omitBy
60
63
  } from "./chunk-BCTYOXT7.mjs";
@@ -69,7 +72,7 @@ import {
69
72
  } from "./chunk-VRUTBJYS.mjs";
70
73
  import {
71
74
  cloneDeep
72
- } from "./chunk-5CPXZFCB.mjs";
75
+ } from "./chunk-K5WL54BY.mjs";
73
76
  import {
74
77
  flattenObject
75
78
  } from "./chunk-XGQWTHW6.mjs";
@@ -97,9 +100,6 @@ import {
97
100
  import {
98
101
  sum
99
102
  } from "./chunk-2SLTL4KL.mjs";
100
- import {
101
- TimeoutError
102
- } from "./chunk-KIOYQRMQ.mjs";
103
103
  import {
104
104
  throttle
105
105
  } from "./chunk-QOJGMVVR.mjs";
@@ -108,7 +108,7 @@ import {
108
108
  } from "./chunk-OGZMEWPR.mjs";
109
109
  import {
110
110
  debounce
111
- } from "./chunk-3IP4JVLL.mjs";
111
+ } from "./chunk-MSHSKENG.mjs";
112
112
  import {
113
113
  negate
114
114
  } from "./chunk-BOOQBJN2.mjs";
@@ -118,39 +118,12 @@ import {
118
118
  import {
119
119
  once
120
120
  } from "./chunk-CMBC4MXG.mjs";
121
- import {
122
- AbortError
123
- } from "./chunk-DXB7EZUQ.mjs";
124
- import {
125
- xor
126
- } from "./chunk-L7FQX5MN.mjs";
127
- import {
128
- xorBy
129
- } from "./chunk-Q47NGNXT.mjs";
130
- import {
131
- xorWith
132
- } from "./chunk-QRSJBBFY.mjs";
133
- import {
134
- zip
135
- } from "./chunk-OLORW442.mjs";
136
121
  import {
137
122
  zipObject
138
123
  } from "./chunk-6GWEY5EL.mjs";
139
124
  import {
140
125
  zipWith
141
126
  } from "./chunk-4KYXHZ4R.mjs";
142
- import {
143
- unionBy
144
- } from "./chunk-NFS7RWWE.mjs";
145
- import {
146
- unionWith
147
- } from "./chunk-2ZCITDMK.mjs";
148
- import {
149
- uniqBy
150
- } from "./chunk-B4COTK4K.mjs";
151
- import {
152
- uniqWith
153
- } from "./chunk-237HGSZS.mjs";
154
127
  import {
155
128
  unzip
156
129
  } from "./chunk-UYZKMBDO.mjs";
@@ -161,17 +134,17 @@ import {
161
134
  without
162
135
  } from "./chunk-PYEYV7BY.mjs";
163
136
  import {
164
- shuffle
165
- } from "./chunk-G7UQ5PUR.mjs";
137
+ xor
138
+ } from "./chunk-L7FQX5MN.mjs";
166
139
  import {
167
- tail
168
- } from "./chunk-TJ4Z5I7M.mjs";
140
+ xorBy
141
+ } from "./chunk-Q47NGNXT.mjs";
169
142
  import {
170
- take
171
- } from "./chunk-ME352XO7.mjs";
143
+ xorWith
144
+ } from "./chunk-QRSJBBFY.mjs";
172
145
  import {
173
- takeRight
174
- } from "./chunk-N3QYJX4T.mjs";
146
+ zip
147
+ } from "./chunk-OLORW442.mjs";
175
148
  import {
176
149
  takeRightWhile
177
150
  } from "./chunk-NTLX2MPV.mjs";
@@ -185,20 +158,20 @@ import {
185
158
  union
186
159
  } from "./chunk-R6QA7PLZ.mjs";
187
160
  import {
188
- uniq
189
- } from "./chunk-DVK2N4KC.mjs";
161
+ unionBy
162
+ } from "./chunk-NFS7RWWE.mjs";
190
163
  import {
191
- keyBy
192
- } from "./chunk-AJKZMN2V.mjs";
164
+ unionWith
165
+ } from "./chunk-2ZCITDMK.mjs";
193
166
  import {
194
- last
195
- } from "./chunk-KPBQ7OUY.mjs";
167
+ uniqWith
168
+ } from "./chunk-237HGSZS.mjs";
196
169
  import {
197
- maxBy
198
- } from "./chunk-OOKNBU4V.mjs";
170
+ uniq
171
+ } from "./chunk-DVK2N4KC.mjs";
199
172
  import {
200
- minBy
201
- } from "./chunk-IJD7FE2Z.mjs";
173
+ uniqBy
174
+ } from "./chunk-B4COTK4K.mjs";
202
175
  import {
203
176
  orderBy
204
177
  } from "./chunk-7B7W36UP.mjs";
@@ -218,14 +191,17 @@ import {
218
191
  random
219
192
  } from "./chunk-SYWMYQYJ.mjs";
220
193
  import {
221
- forEachRight
222
- } from "./chunk-IEA53J7P.mjs";
194
+ shuffle
195
+ } from "./chunk-G7UQ5PUR.mjs";
223
196
  import {
224
- groupBy
225
- } from "./chunk-E6E4RZLN.mjs";
197
+ tail
198
+ } from "./chunk-TJ4Z5I7M.mjs";
226
199
  import {
227
- head
228
- } from "./chunk-HM2JT2RX.mjs";
200
+ take
201
+ } from "./chunk-ME352XO7.mjs";
202
+ import {
203
+ takeRight
204
+ } from "./chunk-N3QYJX4T.mjs";
229
205
  import {
230
206
  initial
231
207
  } from "./chunk-XPSOKBRZ.mjs";
@@ -239,17 +215,17 @@ import {
239
215
  intersectionWith
240
216
  } from "./chunk-XI7KRD2C.mjs";
241
217
  import {
242
- drop
243
- } from "./chunk-3EZAFZG3.mjs";
218
+ keyBy
219
+ } from "./chunk-AJKZMN2V.mjs";
244
220
  import {
245
- dropRight
246
- } from "./chunk-OXZCMC5I.mjs";
221
+ last
222
+ } from "./chunk-KPBQ7OUY.mjs";
247
223
  import {
248
- dropRightWhile
249
- } from "./chunk-M7SBBYV2.mjs";
224
+ maxBy
225
+ } from "./chunk-OOKNBU4V.mjs";
250
226
  import {
251
- dropWhile
252
- } from "./chunk-LJ2C6MVP.mjs";
227
+ minBy
228
+ } from "./chunk-IJD7FE2Z.mjs";
253
229
  import {
254
230
  fill
255
231
  } from "./chunk-YFN6KOC4.mjs";
@@ -263,14 +239,17 @@ import {
263
239
  flatten
264
240
  } from "./chunk-33MSBDC6.mjs";
265
241
  import {
266
- chunk
267
- } from "./chunk-E6C5EZQA.mjs";
242
+ forEachRight
243
+ } from "./chunk-IEA53J7P.mjs";
268
244
  import {
269
- compact
270
- } from "./chunk-DTJJIMKJ.mjs";
245
+ groupBy
246
+ } from "./chunk-E6E4RZLN.mjs";
247
+ import {
248
+ head
249
+ } from "./chunk-HM2JT2RX.mjs";
271
250
  import {
272
251
  countBy
273
- } from "./chunk-CRSKT4WW.mjs";
252
+ } from "./chunk-Z7HWEOQX.mjs";
274
253
  import {
275
254
  difference
276
255
  } from "./chunk-JPUKH67K.mjs";
@@ -280,9 +259,33 @@ import {
280
259
  import {
281
260
  differenceWith
282
261
  } from "./chunk-6NVQAHXP.mjs";
262
+ import {
263
+ drop
264
+ } from "./chunk-3EZAFZG3.mjs";
265
+ import {
266
+ dropRight
267
+ } from "./chunk-OXZCMC5I.mjs";
268
+ import {
269
+ dropRightWhile
270
+ } from "./chunk-M7SBBYV2.mjs";
271
+ import {
272
+ dropWhile
273
+ } from "./chunk-LJ2C6MVP.mjs";
274
+ import {
275
+ AbortError
276
+ } from "./chunk-DXB7EZUQ.mjs";
277
+ import {
278
+ TimeoutError
279
+ } from "./chunk-KIOYQRMQ.mjs";
280
+ import {
281
+ chunk
282
+ } from "./chunk-E6C5EZQA.mjs";
283
+ import {
284
+ compact
285
+ } from "./chunk-DTJJIMKJ.mjs";
283
286
  import {
284
287
  __export
285
- } from "./chunk-24FKGR6U.mjs";
288
+ } from "./chunk-J5LGTIGS.mjs";
286
289
 
287
290
  // src/compat/index.ts
288
291
  var compat_exports = {};
@@ -334,6 +337,7 @@ __export(compat_exports, {
334
337
  isNotNil: () => isNotNil,
335
338
  isNull: () => isNull,
336
339
  isPlainObject: () => isPlainObject,
340
+ isPrimitive: () => isPrimitive,
337
341
  isTypedArray: () => isTypedArray2,
338
342
  isUndefined: () => isUndefined,
339
343
  kebabCase: () => kebabCase,
@@ -528,7 +532,7 @@ function get(object, path, defaultValue) {
528
532
  let resolvedPath;
529
533
  if (Array.isArray(path)) {
530
534
  resolvedPath = path;
531
- } else if (typeof path === "string" && isDeepKey(path) && (object == null ? void 0 : object[path]) == null) {
535
+ } else if (typeof path === "string" && isDeepKey(path) && object?.[path] == null) {
532
536
  resolvedPath = toPath(path);
533
537
  } else {
534
538
  resolvedPath = [path];
@@ -548,12 +552,11 @@ function get(object, path, defaultValue) {
548
552
  if (current === null && index === resolvedPath.length) {
549
553
  return current;
550
554
  }
551
- return current != null ? current : defaultValue;
555
+ return current ?? defaultValue;
552
556
  }
553
557
 
554
558
  // src/compat/predicate/isPlainObject.ts
555
559
  function isPlainObject(object) {
556
- var _a;
557
560
  if (typeof object !== "object") {
558
561
  return false;
559
562
  }
@@ -568,7 +571,7 @@ function isPlainObject(object) {
568
571
  if (tag == null) {
569
572
  return false;
570
573
  }
571
- const isTagReadonly = !((_a = Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)) == null ? void 0 : _a.writable);
574
+ const isTagReadonly = !Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable;
572
575
  if (isTagReadonly) {
573
576
  return false;
574
577
  }
@@ -644,4 +647,4 @@ export {
644
647
  min,
645
648
  compat_exports
646
649
  };
647
- //# sourceMappingURL=chunk-YNJH6GEG.mjs.map
650
+ //# sourceMappingURL=chunk-IGM5IABU.mjs.map