@stryke/helpers 0.9.14 → 0.9.22

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 (394) hide show
  1. package/CHANGELOG.md +419 -0
  2. package/README.md +33 -25
  3. package/dist/{arg-identity.d.ts → arg-identity-BIir8uzO.d.mts} +5 -1
  4. package/dist/arg-identity-BIir8uzO.d.mts.map +1 -0
  5. package/dist/arg-identity-BfviduMt.mjs +2 -0
  6. package/dist/arg-identity-BfviduMt.mjs.map +1 -0
  7. package/dist/arg-identity-C-pVjd0u.d.cts +14 -0
  8. package/dist/arg-identity-C-pVjd0u.d.cts.map +1 -0
  9. package/dist/arg-identity-dlKw6BsD.cjs +1 -0
  10. package/dist/arg-identity.cjs +1 -9
  11. package/dist/arg-identity.d.cts +2 -0
  12. package/dist/arg-identity.d.mts +2 -0
  13. package/dist/arg-identity.mjs +1 -1
  14. package/dist/debounce-C5O3IDKy.mjs +2 -0
  15. package/dist/debounce-C5O3IDKy.mjs.map +1 -0
  16. package/dist/{debounce.d.ts → debounce-CIMf8-Yr.d.mts} +10 -4
  17. package/dist/debounce-CIMf8-Yr.d.mts.map +1 -0
  18. package/dist/debounce-CLb-VvJv.d.cts +47 -0
  19. package/dist/debounce-CLb-VvJv.d.cts.map +1 -0
  20. package/dist/debounce-SIYbhEOF.cjs +1 -0
  21. package/dist/debounce.cjs +1 -24
  22. package/dist/debounce.d.cts +2 -0
  23. package/dist/debounce.d.mts +2 -0
  24. package/dist/debounce.mjs +1 -1
  25. package/dist/deep-clone-BlN5QTtW.mjs +2 -0
  26. package/dist/deep-clone-BlN5QTtW.mjs.map +1 -0
  27. package/dist/deep-clone-CoUy-Hrt.cjs +1 -0
  28. package/dist/{deep-clone.d.ts → deep-clone-CpLJcTgz.d.mts} +11 -12
  29. package/dist/deep-clone-CpLJcTgz.d.mts.map +1 -0
  30. package/dist/deep-clone-jRNy1xoj.d.cts +65 -0
  31. package/dist/deep-clone-jRNy1xoj.d.cts.map +1 -0
  32. package/dist/deep-clone.cjs +1 -62
  33. package/dist/deep-clone.d.cts +2 -0
  34. package/dist/deep-clone.d.mts +2 -0
  35. package/dist/deep-clone.mjs +1 -1
  36. package/dist/deep-merge-BDZ6c79O.mjs +2 -0
  37. package/dist/deep-merge-BDZ6c79O.mjs.map +1 -0
  38. package/dist/deep-merge-BpFjvumi.cjs +1 -0
  39. package/dist/deep-merge-C9qDSleg.d.cts +26 -0
  40. package/dist/deep-merge-C9qDSleg.d.cts.map +1 -0
  41. package/dist/deep-merge-eCT712Cv.d.mts +26 -0
  42. package/dist/deep-merge-eCT712Cv.d.mts.map +1 -0
  43. package/dist/deep-merge.cjs +1 -36
  44. package/dist/deep-merge.d.cts +2 -0
  45. package/dist/deep-merge.d.mts +2 -0
  46. package/dist/deep-merge.mjs +1 -1
  47. package/dist/{delay.d.ts → delay-Bd_sGzMj.d.mts} +9 -4
  48. package/dist/delay-Bd_sGzMj.d.mts.map +1 -0
  49. package/dist/delay-UwR_fCwt.cjs +1 -0
  50. package/dist/delay-VkcrQf1l.d.cts +77 -0
  51. package/dist/delay-VkcrQf1l.d.cts.map +1 -0
  52. package/dist/delay-wdNbY6sk.mjs +2 -0
  53. package/dist/delay-wdNbY6sk.mjs.map +1 -0
  54. package/dist/delay.cjs +1 -28
  55. package/dist/delay.d.cts +2 -0
  56. package/dist/delay.d.mts +2 -0
  57. package/dist/delay.mjs +1 -1
  58. package/dist/errors-BXYY8wXj.cjs +1 -0
  59. package/dist/errors-DWX9ET_b.mjs +2 -0
  60. package/dist/errors-DWX9ET_b.mjs.map +1 -0
  61. package/dist/errors.cjs +1 -18
  62. package/dist/errors.d.cts +16 -0
  63. package/dist/errors.d.cts.map +1 -0
  64. package/dist/errors.d.mts +16 -0
  65. package/dist/errors.d.mts.map +1 -0
  66. package/dist/errors.mjs +1 -1
  67. package/dist/filter-empty-5_nMg04e.cjs +1 -0
  68. package/dist/filter-empty-BMtd0K07.d.mts +5 -0
  69. package/dist/filter-empty-BMtd0K07.d.mts.map +1 -0
  70. package/dist/filter-empty-C2fq9M7o.d.cts +5 -0
  71. package/dist/filter-empty-C2fq9M7o.d.cts.map +1 -0
  72. package/dist/filter-empty-Dsc1ymCj.mjs +2 -0
  73. package/dist/filter-empty-Dsc1ymCj.mjs.map +1 -0
  74. package/dist/filter-empty.cjs +1 -9
  75. package/dist/filter-empty.d.cts +2 -0
  76. package/dist/filter-empty.d.mts +2 -0
  77. package/dist/filter-empty.mjs +1 -1
  78. package/dist/{flatten-object.d.ts → flatten-object-Bk2VT-b2.d.mts} +8 -6
  79. package/dist/flatten-object-Bk2VT-b2.d.mts.map +1 -0
  80. package/dist/flatten-object-D-EbEZqR.cjs +1 -0
  81. package/dist/flatten-object-DFCZmly9.mjs +2 -0
  82. package/dist/flatten-object-DFCZmly9.mjs.map +1 -0
  83. package/dist/{unflatten-object.d.ts → flatten-object-DjaJJaY0.d.cts} +8 -6
  84. package/dist/flatten-object-DjaJJaY0.d.cts.map +1 -0
  85. package/dist/flatten-object.cjs +1 -20
  86. package/dist/flatten-object.d.cts +2 -0
  87. package/dist/flatten-object.d.mts +2 -0
  88. package/dist/flatten-object.mjs +1 -1
  89. package/dist/{get-field.d.ts → get-field-5XqtknPs.d.mts} +25 -22
  90. package/dist/get-field-5XqtknPs.d.mts.map +1 -0
  91. package/dist/get-field-D4F_p-Ov.cjs +1 -0
  92. package/dist/get-field-ngQ9O38X.mjs +2 -0
  93. package/dist/get-field-ngQ9O38X.mjs.map +1 -0
  94. package/dist/get-field-oltWWNRO.d.cts +254 -0
  95. package/dist/get-field-oltWWNRO.d.cts.map +1 -0
  96. package/dist/get-field.cjs +1 -43
  97. package/dist/get-field.d.cts +2 -0
  98. package/dist/get-field.d.mts +2 -0
  99. package/dist/get-field.mjs +1 -1
  100. package/dist/get-object-tag-D53RvMgo.cjs +1 -0
  101. package/dist/get-object-tag-oBoWkttN.mjs +2 -0
  102. package/dist/get-object-tag-oBoWkttN.mjs.map +1 -0
  103. package/dist/{get-ordered-by.d.ts → get-ordered-by-C45FfW2T.d.mts} +5 -2
  104. package/dist/get-ordered-by-C45FfW2T.d.mts.map +1 -0
  105. package/dist/get-ordered-by-CBKKJr4R.mjs +2 -0
  106. package/dist/get-ordered-by-CBKKJr4R.mjs.map +1 -0
  107. package/dist/get-ordered-by-D2Sr6vUN.cjs +1 -0
  108. package/dist/get-ordered-by-DuD7QRma.d.cts +39 -0
  109. package/dist/get-ordered-by-DuD7QRma.d.cts.map +1 -0
  110. package/dist/get-ordered-by.cjs +1 -18
  111. package/dist/get-ordered-by.d.cts +2 -0
  112. package/dist/get-ordered-by.d.mts +2 -0
  113. package/dist/get-ordered-by.mjs +1 -1
  114. package/dist/get-unique-BOiakY6A.cjs +1 -0
  115. package/dist/{get-unique.d.ts → get-unique-C0SBPUBv.d.cts} +6 -2
  116. package/dist/get-unique-C0SBPUBv.d.cts.map +1 -0
  117. package/dist/get-unique-DZ6E1Kvc.d.mts +26 -0
  118. package/dist/get-unique-DZ6E1Kvc.d.mts.map +1 -0
  119. package/dist/get-unique-DzZ7Z34U.mjs +2 -0
  120. package/dist/get-unique-DzZ7Z34U.mjs.map +1 -0
  121. package/dist/get-unique.cjs +1 -17
  122. package/dist/get-unique.d.cts +2 -0
  123. package/dist/get-unique.d.mts +2 -0
  124. package/dist/get-unique.mjs +1 -1
  125. package/dist/{identity.d.ts → identity-B_cGeF8o.d.mts} +5 -1
  126. package/dist/identity-B_cGeF8o.d.mts.map +1 -0
  127. package/dist/identity-DBwwvmGU.mjs +2 -0
  128. package/dist/identity-DBwwvmGU.mjs.map +1 -0
  129. package/dist/identity-DRhIvbPG.d.cts +18 -0
  130. package/dist/identity-DRhIvbPG.d.cts.map +1 -0
  131. package/dist/identity-z2xaIqpe.cjs +1 -0
  132. package/dist/identity.cjs +1 -9
  133. package/dist/identity.d.cts +2 -0
  134. package/dist/identity.d.mts +2 -0
  135. package/dist/identity.mjs +1 -1
  136. package/dist/index.cjs +1 -346
  137. package/dist/index.d.cts +32 -0
  138. package/dist/index.d.mts +32 -0
  139. package/dist/index.mjs +1 -1
  140. package/dist/is-empty-C7vlSVFD.mjs +2 -0
  141. package/dist/is-empty-C7vlSVFD.mjs.map +1 -0
  142. package/dist/is-empty-DZZDqzjD.cjs +1 -0
  143. package/dist/is-equal-0Z-K2uIG.mjs +2 -0
  144. package/dist/is-equal-0Z-K2uIG.mjs.map +1 -0
  145. package/dist/is-equal-BJgVhUVS.cjs +1 -0
  146. package/dist/{is-equal.d.ts → is-equal-BMlMHlVi.d.cts} +5 -1
  147. package/dist/is-equal-BMlMHlVi.d.cts.map +1 -0
  148. package/dist/is-equal-Baqurdpn.d.mts +22 -0
  149. package/dist/is-equal-Baqurdpn.d.mts.map +1 -0
  150. package/dist/is-equal.cjs +1 -61
  151. package/dist/is-equal.d.cts +2 -0
  152. package/dist/is-equal.d.mts +2 -0
  153. package/dist/is-equal.mjs +1 -1
  154. package/dist/is-number-BcjxCzDM.cjs +1 -0
  155. package/dist/is-number-bwhfkHlC.mjs +2 -0
  156. package/dist/is-number-bwhfkHlC.mjs.map +1 -0
  157. package/dist/is-plain-object-BQuFhL4M.cjs +1 -0
  158. package/dist/is-plain-object-D8GSMOhY.mjs +2 -0
  159. package/dist/is-plain-object-D8GSMOhY.mjs.map +1 -0
  160. package/dist/is-set-B9o0NIT4.mjs +2 -0
  161. package/dist/is-set-B9o0NIT4.mjs.map +1 -0
  162. package/dist/is-set-ByJOY6h2.cjs +1 -0
  163. package/dist/is-set-string-48_jZFw0.cjs +1 -0
  164. package/dist/is-set-string-Dr1MlMk0.mjs +2 -0
  165. package/dist/is-set-string-Dr1MlMk0.mjs.map +1 -0
  166. package/dist/is-string-CvmuuuDj.mjs +2 -0
  167. package/dist/is-string-CvmuuuDj.mjs.map +1 -0
  168. package/dist/is-string-DPanLeA_.cjs +1 -0
  169. package/dist/lru-cache-CzQ_kKXk.d.mts +103 -0
  170. package/dist/lru-cache-CzQ_kKXk.d.mts.map +1 -0
  171. package/dist/lru-cache-D4VEIgtR.d.cts +103 -0
  172. package/dist/lru-cache-D4VEIgtR.d.cts.map +1 -0
  173. package/dist/lru-cache-DLY_yZRN.mjs +2 -0
  174. package/dist/lru-cache-DLY_yZRN.mjs.map +1 -0
  175. package/dist/lru-cache-DgTSGx5W.cjs +1 -0
  176. package/dist/lru-cache.cjs +1 -82
  177. package/dist/lru-cache.d.cts +2 -0
  178. package/dist/lru-cache.d.mts +2 -0
  179. package/dist/lru-cache.mjs +1 -1
  180. package/dist/match-sorter-B9_7YvTo.mjs +2 -0
  181. package/dist/match-sorter-B9_7YvTo.mjs.map +1 -0
  182. package/dist/match-sorter-BjnWjkKu.cjs +1 -0
  183. package/dist/{match-sorter.d.ts → match-sorter-CMYN3GuY.d.cts} +44 -43
  184. package/dist/match-sorter-CMYN3GuY.d.cts.map +1 -0
  185. package/dist/match-sorter-DCRerxVe.d.mts +78 -0
  186. package/dist/match-sorter-DCRerxVe.d.mts.map +1 -0
  187. package/dist/match-sorter.cjs +1 -184
  188. package/dist/match-sorter.d.cts +2 -0
  189. package/dist/match-sorter.d.mts +2 -0
  190. package/dist/match-sorter.mjs +1 -1
  191. package/dist/memoize-Cr5jFKxi.mjs +2 -0
  192. package/dist/memoize-Cr5jFKxi.mjs.map +1 -0
  193. package/dist/memoize-TyrmWrfR.d.mts +11 -0
  194. package/dist/memoize-TyrmWrfR.d.mts.map +1 -0
  195. package/dist/memoize-qxvbI-0y.cjs +1 -0
  196. package/dist/memoize-tSTYY522.d.cts +11 -0
  197. package/dist/memoize-tSTYY522.d.cts.map +1 -0
  198. package/dist/memoize.cjs +1 -12
  199. package/dist/memoize.d.cts +2 -0
  200. package/dist/memoize.d.mts +2 -0
  201. package/dist/memoize.mjs +1 -1
  202. package/dist/mutex-CnQQBndt.cjs +1 -0
  203. package/dist/mutex-DAZduiSP.d.mts +72 -0
  204. package/dist/mutex-DAZduiSP.d.mts.map +1 -0
  205. package/dist/mutex-DCyX7B66.d.cts +72 -0
  206. package/dist/mutex-DCyX7B66.d.cts.map +1 -0
  207. package/dist/mutex-TqoKHosg.mjs +2 -0
  208. package/dist/mutex-TqoKHosg.mjs.map +1 -0
  209. package/dist/mutex.cjs +1 -20
  210. package/dist/mutex.d.cts +2 -0
  211. package/dist/mutex.d.mts +2 -0
  212. package/dist/mutex.mjs +1 -1
  213. package/dist/noop-B7OetrhD.mjs +2 -0
  214. package/dist/noop-B7OetrhD.mjs.map +1 -0
  215. package/dist/{noop.d.ts → noop-BnXKMH6Z.d.mts} +6 -2
  216. package/dist/noop-BnXKMH6Z.d.mts.map +1 -0
  217. package/dist/noop-CnJXOCpF.d.cts +22 -0
  218. package/dist/noop-CnJXOCpF.d.cts.map +1 -0
  219. package/dist/noop-Dpf7hIui.cjs +1 -0
  220. package/dist/noop.cjs +1 -10
  221. package/dist/noop.d.cts +2 -0
  222. package/dist/noop.d.mts +2 -0
  223. package/dist/noop.mjs +1 -1
  224. package/dist/object-CHmrmQna.d.mts +160 -0
  225. package/dist/object-CHmrmQna.d.mts.map +1 -0
  226. package/dist/object-D8HGAGMr.d.cts +160 -0
  227. package/dist/object-D8HGAGMr.d.cts.map +1 -0
  228. package/dist/omit-A0uVyAS4.cjs +1 -0
  229. package/dist/omit-BROsDK0D.mjs +2 -0
  230. package/dist/omit-BROsDK0D.mjs.map +1 -0
  231. package/dist/{omit.d.ts → omit-D1FKiOYz.d.cts} +5 -1
  232. package/dist/omit-D1FKiOYz.d.cts.map +1 -0
  233. package/dist/omit-DpqOAtKt.d.mts +22 -0
  234. package/dist/omit-DpqOAtKt.d.mts.map +1 -0
  235. package/dist/omit.cjs +1 -16
  236. package/dist/omit.d.cts +2 -0
  237. package/dist/omit.d.mts +2 -0
  238. package/dist/omit.mjs +1 -1
  239. package/dist/once-DNPPQd3P.d.mts +13 -0
  240. package/dist/once-DNPPQd3P.d.mts.map +1 -0
  241. package/dist/once-DZCwmdkv.cjs +1 -0
  242. package/dist/once-DqmxXwEB.d.cts +13 -0
  243. package/dist/once-DqmxXwEB.d.cts.map +1 -0
  244. package/dist/once-txoW63yJ.mjs +2 -0
  245. package/dist/once-txoW63yJ.mjs.map +1 -0
  246. package/dist/once.cjs +1 -17
  247. package/dist/once.d.cts +2 -0
  248. package/dist/once.d.mts +2 -0
  249. package/dist/once.mjs +1 -1
  250. package/dist/pick-CuXTvXaw.mjs +2 -0
  251. package/dist/pick-CuXTvXaw.mjs.map +1 -0
  252. package/dist/{pick.d.ts → pick-DXREvZBr.d.cts} +5 -1
  253. package/dist/pick-DXREvZBr.d.cts.map +1 -0
  254. package/dist/pick-GDOwAh6I.cjs +1 -0
  255. package/dist/pick-ZrWD4de2.d.mts +22 -0
  256. package/dist/pick-ZrWD4de2.d.mts.map +1 -0
  257. package/dist/pick.cjs +1 -14
  258. package/dist/pick.d.cts +2 -0
  259. package/dist/pick.d.mts +2 -0
  260. package/dist/pick.mjs +1 -1
  261. package/dist/remove-accents-BFmyvTRZ.mjs +2 -0
  262. package/dist/remove-accents-BFmyvTRZ.mjs.map +1 -0
  263. package/dist/remove-accents-C4C0A2ex.d.mts +12 -0
  264. package/dist/remove-accents-C4C0A2ex.d.mts.map +1 -0
  265. package/dist/remove-accents-CXBUC-Id.cjs +1 -0
  266. package/dist/remove-accents-Yo3-2jWO.d.cts +12 -0
  267. package/dist/remove-accents-Yo3-2jWO.d.cts.map +1 -0
  268. package/dist/remove-accents.cjs +1 -411
  269. package/dist/remove-accents.d.cts +2 -0
  270. package/dist/remove-accents.d.mts +2 -0
  271. package/dist/remove-accents.mjs +1 -1
  272. package/dist/remove-empty-items-BglsRCyG.d.cts +11 -0
  273. package/dist/remove-empty-items-BglsRCyG.d.cts.map +1 -0
  274. package/dist/remove-empty-items-BzI9Vid9.mjs +2 -0
  275. package/dist/remove-empty-items-BzI9Vid9.mjs.map +1 -0
  276. package/dist/remove-empty-items-COwdCPHC.d.mts +11 -0
  277. package/dist/remove-empty-items-COwdCPHC.d.mts.map +1 -0
  278. package/dist/remove-empty-items-CjTxJuyS.cjs +1 -0
  279. package/dist/remove-empty-items.cjs +1 -8
  280. package/dist/remove-empty-items.d.cts +2 -0
  281. package/dist/remove-empty-items.d.mts +2 -0
  282. package/dist/remove-empty-items.mjs +1 -1
  283. package/dist/semaphore-4zJqtox8.mjs +2 -0
  284. package/dist/semaphore-4zJqtox8.mjs.map +1 -0
  285. package/dist/semaphore-CsGTxqsW.d.cts +86 -0
  286. package/dist/semaphore-CsGTxqsW.d.cts.map +1 -0
  287. package/dist/semaphore-DkHqPlow.cjs +1 -0
  288. package/dist/semaphore-WaZBtCk5.d.mts +86 -0
  289. package/dist/semaphore-WaZBtCk5.d.mts.map +1 -0
  290. package/dist/semaphore.cjs +1 -32
  291. package/dist/semaphore.d.cts +2 -0
  292. package/dist/semaphore.d.mts +2 -0
  293. package/dist/semaphore.mjs +1 -1
  294. package/dist/set-field-CUgbKEjW.mjs +2 -0
  295. package/dist/set-field-CUgbKEjW.mjs.map +1 -0
  296. package/dist/set-field-CcCiXZNl.d.cts +16 -0
  297. package/dist/set-field-CcCiXZNl.d.cts.map +1 -0
  298. package/dist/set-field-DyvXgpNP.d.mts +16 -0
  299. package/dist/set-field-DyvXgpNP.d.mts.map +1 -0
  300. package/dist/set-field-mr4GkhFb.cjs +1 -0
  301. package/dist/set-field.cjs +1 -21
  302. package/dist/set-field.d.cts +2 -0
  303. package/dist/set-field.d.mts +2 -0
  304. package/dist/set-field.mjs +1 -1
  305. package/dist/throttle-BOKOTo3m.cjs +1 -0
  306. package/dist/{throttle.d.ts → throttle-BWPQuZty.d.cts} +5 -1
  307. package/dist/throttle-BWPQuZty.d.cts.map +1 -0
  308. package/dist/throttle-BgU4k6qs.d.mts +32 -0
  309. package/dist/throttle-BgU4k6qs.d.mts.map +1 -0
  310. package/dist/throttle-CYK3F0mZ.mjs +2 -0
  311. package/dist/throttle-CYK3F0mZ.mjs.map +1 -0
  312. package/dist/throttle.cjs +1 -13
  313. package/dist/throttle.d.cts +2 -0
  314. package/dist/throttle.d.mts +2 -0
  315. package/dist/throttle.mjs +1 -1
  316. package/dist/timeout-43rG9ETK.mjs +2 -0
  317. package/dist/timeout-43rG9ETK.mjs.map +1 -0
  318. package/dist/{timeout.d.ts → timeout-CLhwG-oo.d.mts} +5 -1
  319. package/dist/timeout-CLhwG-oo.d.mts.map +1 -0
  320. package/dist/timeout-CoYbhliP.cjs +1 -0
  321. package/dist/timeout-DC38jHR8.d.cts +12 -0
  322. package/dist/timeout-DC38jHR8.d.cts.map +1 -0
  323. package/dist/timeout.cjs +1 -11
  324. package/dist/timeout.d.cts +2 -0
  325. package/dist/timeout.d.mts +2 -0
  326. package/dist/timeout.mjs +1 -1
  327. package/dist/to-deep-key-Cma9aiEz.cjs +1 -0
  328. package/dist/to-deep-key-D8uDBd6T.mjs +2 -0
  329. package/dist/to-deep-key-D8uDBd6T.mjs.map +1 -0
  330. package/dist/{to-deep-key.d.ts → to-deep-key-DO-Z0Zjs.d.mts} +6 -2
  331. package/dist/to-deep-key-DO-Z0Zjs.d.mts.map +1 -0
  332. package/dist/to-deep-key-DlsE4ziE.d.cts +42 -0
  333. package/dist/to-deep-key-DlsE4ziE.d.cts.map +1 -0
  334. package/dist/to-deep-key.cjs +1 -15
  335. package/dist/to-deep-key.d.cts +2 -0
  336. package/dist/to-deep-key.d.mts +2 -0
  337. package/dist/to-deep-key.mjs +1 -1
  338. package/dist/{to-path.d.ts → to-path-BajxeMmo.d.mts} +5 -1
  339. package/dist/to-path-BajxeMmo.d.mts.map +1 -0
  340. package/dist/to-path-CdOFd4od.cjs +1 -0
  341. package/dist/to-path-D2zWXeYc.d.cts +24 -0
  342. package/dist/to-path-D2zWXeYc.d.cts.map +1 -0
  343. package/dist/to-path-Dm1fe-Ix.mjs +2 -0
  344. package/dist/to-path-Dm1fe-Ix.mjs.map +1 -0
  345. package/dist/to-path.cjs +1 -23
  346. package/dist/to-path.d.cts +2 -0
  347. package/dist/to-path.d.mts +2 -0
  348. package/dist/to-path.mjs +1 -1
  349. package/dist/unflatten-object-C7TE8J80.mjs +2 -0
  350. package/dist/unflatten-object-C7TE8J80.mjs.map +1 -0
  351. package/dist/unflatten-object-CPJIUozj.d.mts +35 -0
  352. package/dist/unflatten-object-CPJIUozj.d.mts.map +1 -0
  353. package/dist/unflatten-object-CvZj41LG.cjs +1 -0
  354. package/dist/unflatten-object-Cvbj7Q__.d.cts +35 -0
  355. package/dist/unflatten-object-Cvbj7Q__.d.cts.map +1 -0
  356. package/dist/unflatten-object.cjs +1 -10
  357. package/dist/unflatten-object.d.cts +2 -0
  358. package/dist/unflatten-object.d.mts +2 -0
  359. package/dist/unflatten-object.mjs +1 -1
  360. package/dist/{union.d.ts → union-BMOMEzO-.d.cts} +5 -1
  361. package/dist/union-BMOMEzO-.d.cts.map +1 -0
  362. package/dist/union-C-2CRoFc.mjs +2 -0
  363. package/dist/union-C-2CRoFc.mjs.map +1 -0
  364. package/dist/union-D4bbjM2i.d.mts +24 -0
  365. package/dist/union-D4bbjM2i.d.mts.map +1 -0
  366. package/dist/union-EwdcZzNT.cjs +1 -0
  367. package/dist/union.cjs +1 -10
  368. package/dist/union.d.cts +2 -0
  369. package/dist/union.d.mts +2 -0
  370. package/dist/union.mjs +1 -1
  371. package/dist/{with-timeout.d.ts → with-timeout-BPaAIZtS.d.cts} +5 -1
  372. package/dist/with-timeout-BPaAIZtS.d.cts.map +1 -0
  373. package/dist/with-timeout-BoZYdcOg.d.mts +24 -0
  374. package/dist/with-timeout-BoZYdcOg.d.mts.map +1 -0
  375. package/dist/with-timeout-CAuUr1ck.mjs +2 -0
  376. package/dist/with-timeout-CAuUr1ck.mjs.map +1 -0
  377. package/dist/with-timeout-CPUBGT4X.cjs +1 -0
  378. package/dist/with-timeout.cjs +1 -10
  379. package/dist/with-timeout.d.cts +2 -0
  380. package/dist/with-timeout.d.mts +2 -0
  381. package/dist/with-timeout.mjs +1 -1
  382. package/package.json +91 -440
  383. package/dist/deep-merge.d.ts +0 -22
  384. package/dist/errors.d.ts +0 -12
  385. package/dist/filter-empty.d.ts +0 -1
  386. package/dist/index.d.ts +0 -31
  387. package/dist/lru-cache.d.ts +0 -99
  388. package/dist/memoize.d.ts +0 -7
  389. package/dist/mutex.d.ts +0 -68
  390. package/dist/once.d.ts +0 -9
  391. package/dist/remove-accents.d.ts +0 -8
  392. package/dist/remove-empty-items.d.ts +0 -7
  393. package/dist/semaphore.d.ts +0 -82
  394. package/dist/set-field.d.ts +0 -10
@@ -1,3 +1,4 @@
1
+ //#region src/to-path.d.ts
1
2
  /**
2
3
  * Converts a deep key string into an array of path segments.
3
4
  *
@@ -17,4 +18,7 @@
17
18
  * @param deepKey - The deep key string to convert.
18
19
  * @returns An array of strings, each representing a segment of the path.
19
20
  */
20
- export declare function toPath(deepKey: string): string[];
21
+ declare function toPath(deepKey: string): string[];
22
+ //#endregion
23
+ export { toPath as t };
24
+ //# sourceMappingURL=to-path-BajxeMmo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-path-BajxeMmo.d.mts","names":[],"sources":["../src/to-path.ts"],"sourcesContent":[],"mappings":";;AAyDA;;;;;;;;;;;;;;;;;;iBAAgB,MAAA"}
@@ -0,0 +1 @@
1
+ const e=/^[\w.]+$/g,t=/\\(?<temp1>\\)?/g,n=RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`,`g`);function r(r){if(e.test(r))return r.split(`.`);let i=[];r[0]===`.`&&i.push(``);let a=r.matchAll(n);for(let e of a){let n=e[0],r=e[1],a=e[2],o=e[3];a&&o?n=o.replace(t,`$1`):r&&(n=r),i.push(n)}return i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,24 @@
1
+ //#region src/to-path.d.ts
2
+ /**
3
+ * Converts a deep key string into an array of path segments.
4
+ *
5
+ * @remarks
6
+ * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * toPath('a.b.c') // Returns ['a', 'b', 'c']
11
+ * toPath('a[b][c]') // Returns ['a', 'b', 'c']
12
+ * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']
13
+ * toPath('a["b.c"].d') // Returns ['a', 'b.c', 'd']
14
+ * toPath('') // Returns []
15
+ * toPath('.a[b].c.d[e]["f.g"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']
16
+ * ```
17
+ *
18
+ * @param deepKey - The deep key string to convert.
19
+ * @returns An array of strings, each representing a segment of the path.
20
+ */
21
+ declare function toPath(deepKey: string): string[];
22
+ //#endregion
23
+ export { toPath as t };
24
+ //# sourceMappingURL=to-path-D2zWXeYc.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-path-D2zWXeYc.d.cts","names":[],"sources":["../src/to-path.ts"],"sourcesContent":[],"mappings":";;AAyDA;;;;;;;;;;;;;;;;;;iBAAgB,MAAA"}
@@ -0,0 +1,2 @@
1
+ const e=/^[\w.]+$/g,t=/\\(?<temp1>\\)?/g,n=RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`,`g`);function r(r){if(e.test(r))return r.split(`.`);let i=[];r[0]===`.`&&i.push(``);let a=r.matchAll(n);for(let e of a){let n=e[0],r=e[1],a=e[2],o=e[3];a&&o?n=o.replace(t,`$1`):r&&(n=r),i.push(n)}return i}export{r as t};
2
+ //# sourceMappingURL=to-path-Dm1fe-Ix.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-path-Dm1fe-Ix.mjs","names":["result: string[]"],"sources":["../src/to-path.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst DOTS_KEY = /^[\\w.]+$/g;\n\nconst ESCAPE_REGEXP = /\\\\(?<temp1>\\\\)?/g;\nconst PROPERTY_REGEXP = new RegExp(\n // Match anything that isn't a dot or bracket.\n `${String.raw`[^.[\\]]+`}|${\n // Or match property names within brackets.\n String.raw`\\[(?:`\n // Match a non-string expression.\n }([^\"'][^[]*)` +\n `|${\n // Or match strings (supports escaping characters).\n String.raw`([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2`\n }${String.raw`)\\]`}|${\n // Or match \"\" as the space between consecutive dots or empty brackets.\n String.raw`(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`\n }`,\n \"g\"\n);\n\n/**\n * Converts a deep key string into an array of path segments.\n *\n * @remarks\n * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n *\n * @example\n * ```ts\n * toPath('a.b.c') // Returns ['a', 'b', 'c']\n * toPath('a[b][c]') // Returns ['a', 'b', 'c']\n * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n * toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n * toPath('') // Returns []\n * toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n * ```\n *\n * @param deepKey - The deep key string to convert.\n * @returns An array of strings, each representing a segment of the path.\n */\nexport function toPath(deepKey: string): string[] {\n if (DOTS_KEY.test(deepKey)) {\n return deepKey.split(\".\");\n }\n\n const result: string[] = [];\n\n if (deepKey[0] === \".\") {\n result.push(\"\");\n }\n\n const matches = deepKey.matchAll(PROPERTY_REGEXP);\n\n for (const match of matches) {\n let key = match[0];\n const expr = match[1];\n const quote = match[2];\n const substr = match[3];\n\n if (quote && substr) {\n key = substr.replace(ESCAPE_REGEXP, \"$1\");\n } else if (expr) {\n key = expr;\n }\n\n result.push(key);\n }\n\n return result;\n}\n"],"mappings":"AAkBA,MAAM,EAAW,YAEX,EAAgB,mBAChB,EAAsB,OAE1B,GAAG,OAAO,GAAG,WAAW,GAEtB,OAAO,GAAG,QAEX,eAGG,OAAO,GAAG,oCACT,OAAO,GAAG,MAAM,GAEjB,OAAO,GAAG,iCAEd,IACD,CAqBD,SAAgB,EAAO,EAA2B,CAChD,GAAI,EAAS,KAAK,EAAQ,CACxB,OAAO,EAAQ,MAAM,IAAI,CAG3B,IAAMA,EAAmB,EAAE,CAEvB,EAAQ,KAAO,KACjB,EAAO,KAAK,GAAG,CAGjB,IAAM,EAAU,EAAQ,SAAS,EAAgB,CAEjD,IAAK,IAAM,KAAS,EAAS,CAC3B,IAAI,EAAM,EAAM,GACV,EAAO,EAAM,GACb,EAAQ,EAAM,GACd,EAAS,EAAM,GAEjB,GAAS,EACX,EAAM,EAAO,QAAQ,EAAe,KAAK,CAChC,IACT,EAAM,GAGR,EAAO,KAAK,EAAI,CAGlB,OAAO"}
package/dist/to-path.cjs CHANGED
@@ -1,23 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.toPath = toPath;
7
- const a = /^[\w.]+$/g,
8
- E = /\\(?<temp1>\\)?/g,
9
- e = new RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`, "g");
10
- function toPath(t) {
11
- if (a.test(t)) return t.split(".");
12
- const n = [];
13
- t[0] === "." && n.push("");
14
- const i = t.matchAll(e);
15
- for (const r of i) {
16
- let s = r[0];
17
- const o = r[1],
18
- g = r[2],
19
- c = r[3];
20
- g && c ? s = c.replace(E, "$1") : o && (s = o), n.push(s);
21
- }
22
- return n;
23
- }
1
+ const e=require(`./to-path-CdOFd4od.cjs`);exports.toPath=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as toPath } from "./to-path-D2zWXeYc.cjs";
2
+ export { toPath };
@@ -0,0 +1,2 @@
1
+ import { t as toPath } from "./to-path-BajxeMmo.mjs";
2
+ export { toPath };
package/dist/to-path.mjs CHANGED
@@ -1 +1 @@
1
- const a=/^[\w.]+$/g,E=/\\(?<temp1>\\)?/g,e=new RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`,"g");export function toPath(t){if(a.test(t))return t.split(".");const n=[];t[0]==="."&&n.push("");const i=t.matchAll(e);for(const r of i){let s=r[0];const o=r[1],g=r[2],c=r[3];g&&c?s=c.replace(E,"$1"):o&&(s=o),n.push(s)}return n}
1
+ import{t as e}from"./to-path-Dm1fe-Ix.mjs";export{e as toPath};
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./set-field-CUgbKEjW.mjs";function t(t){return Object.entries(t).reduce((t,[n,r])=>e(t,n,r),{})}export{t};
2
+ //# sourceMappingURL=unflatten-object-C7TE8J80.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unflatten-object-C7TE8J80.mjs","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport type { DeepKey, DeepValue } from \"@stryke/types/object\";\nimport { setField } from \"./set-field\";\n\n/**\n * Flattens a nested object into a single level object with dot-separated keys.\n *\n * @example\n * ```typescript\n * const nestedObject = {\n * a: {\n * b: {\n * c: 1\n * }\n * },\n * d: [2, 3]\n * };\n *\n * const flattened = flattenObject(nestedObject);\n * console.log(flattened);\n * // Output:\n * // {\n * // 'a.b.c': 1,\n * // 'd.0': 2,\n * // 'd.1': 3\n * // }\n * ```\n *\n * @param object - The object to flatten.\n * @returns - The flattened object.\n */\nexport function unflattenObject<\n TObject extends Record<string, any> = Record<string, any>,\n TDeepKeyObject extends {\n [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey>;\n } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }\n>(deepKeyObject: TDeepKeyObject): TObject {\n return Object.entries(deepKeyObject).reduce(\n (ret: TObject, [key, value]: [string, any]) => {\n return setField<TObject>(ret, key as DeepKey<TObject>, value);\n },\n {} as TObject\n );\n}\n"],"mappings":"6CA+CA,SAAgB,EAKd,EAAwC,CACxC,OAAO,OAAO,QAAQ,EAAc,CAAC,QAClC,EAAc,CAAC,EAAK,KACZ,EAAkB,EAAK,EAAyB,EAAM,CAE/D,EAAE,CACH"}
@@ -0,0 +1,35 @@
1
+ import { n as DeepValue, t as DeepKey } from "./object-CHmrmQna.mjs";
2
+
3
+ //#region src/unflatten-object.d.ts
4
+
5
+ /**
6
+ * Flattens a nested object into a single level object with dot-separated keys.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nestedObject = {
11
+ * a: {
12
+ * b: {
13
+ * c: 1
14
+ * }
15
+ * },
16
+ * d: [2, 3]
17
+ * };
18
+ *
19
+ * const flattened = flattenObject(nestedObject);
20
+ * console.log(flattened);
21
+ * // Output:
22
+ * // {
23
+ * // 'a.b.c': 1,
24
+ * // 'd.0': 2,
25
+ * // 'd.1': 3
26
+ * // }
27
+ * ```
28
+ *
29
+ * @param object - The object to flatten.
30
+ * @returns - The flattened object.
31
+ */
32
+ declare function unflattenObject<TObject extends Record<string, any> = Record<string, any>, TDeepKeyObject extends { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }>(deepKeyObject: TDeepKeyObject): TObject;
33
+ //#endregion
34
+ export { unflattenObject as t };
35
+ //# sourceMappingURL=unflatten-object-CPJIUozj.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unflatten-object-CPJIUozj.d.mts","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":[],"mappings":";;;;;;AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,gCACE,sBAAsB,uDAE3B,QAAQ,WAAW,UAAU,SAAS,qBAClC,QAAQ,WAAW,UAAU,SAAS,wBACtC,iBAAiB"}
@@ -0,0 +1 @@
1
+ const e=require(`./set-field-mr4GkhFb.cjs`);function t(t){return Object.entries(t).reduce((t,[n,r])=>e.t(t,n,r),{})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -0,0 +1,35 @@
1
+ import { n as DeepValue, t as DeepKey } from "./object-D8HGAGMr.cjs";
2
+
3
+ //#region src/unflatten-object.d.ts
4
+
5
+ /**
6
+ * Flattens a nested object into a single level object with dot-separated keys.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nestedObject = {
11
+ * a: {
12
+ * b: {
13
+ * c: 1
14
+ * }
15
+ * },
16
+ * d: [2, 3]
17
+ * };
18
+ *
19
+ * const flattened = flattenObject(nestedObject);
20
+ * console.log(flattened);
21
+ * // Output:
22
+ * // {
23
+ * // 'a.b.c': 1,
24
+ * // 'd.0': 2,
25
+ * // 'd.1': 3
26
+ * // }
27
+ * ```
28
+ *
29
+ * @param object - The object to flatten.
30
+ * @returns - The flattened object.
31
+ */
32
+ declare function unflattenObject<TObject extends Record<string, any> = Record<string, any>, TDeepKeyObject extends { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }>(deepKeyObject: TDeepKeyObject): TObject;
33
+ //#endregion
34
+ export { unflattenObject as t };
35
+ //# sourceMappingURL=unflatten-object-Cvbj7Q__.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unflatten-object-Cvbj7Q__.d.cts","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":[],"mappings":";;;;;;AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,gCACE,sBAAsB,uDAE3B,QAAQ,WAAW,UAAU,SAAS,qBAClC,QAAQ,WAAW,UAAU,SAAS,wBACtC,iBAAiB"}
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.unflattenObject = unflattenObject;
7
- var _setField = require("./set-field.cjs");
8
- function unflattenObject(e) {
9
- return Object.entries(e).reduce((t, [c, n]) => (0, _setField.setField)(t, c, n), {});
10
- }
1
+ require(`./to-path-CdOFd4od.cjs`),require(`./set-field-mr4GkhFb.cjs`);const e=require(`./unflatten-object-CvZj41LG.cjs`);exports.unflattenObject=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as unflattenObject } from "./unflatten-object-Cvbj7Q__.cjs";
2
+ export { unflattenObject };
@@ -0,0 +1,2 @@
1
+ import { t as unflattenObject } from "./unflatten-object-CPJIUozj.mjs";
2
+ export { unflattenObject };
@@ -1 +1 @@
1
- import{setField as r}from"./set-field";export function unflattenObject(e){return Object.entries(e).reduce((t,[c,n])=>r(t,c,n),{})}
1
+ import"./to-path-Dm1fe-Ix.mjs";import"./set-field-CUgbKEjW.mjs";import{t as e}from"./unflatten-object-C7TE8J80.mjs";export{e as unflattenObject};
@@ -1,3 +1,4 @@
1
+ //#region src/union.d.ts
1
2
  /**
2
3
  * Creates an array of unique values from all given arrays.
3
4
  *
@@ -17,4 +18,7 @@
17
18
  * @param arr2 - The second array to merge and filter for unique values.
18
19
  * @returns A new array of unique values.
19
20
  */
20
- export declare function union<T>(arr1: readonly T[], arr2: readonly T[]): T[];
21
+ declare function union<T>(arr1: readonly T[], arr2: readonly T[]): T[];
22
+ //#endregion
23
+ export { union as t };
24
+ //# sourceMappingURL=union-BMOMEzO-.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union-BMOMEzO-.d.cts","names":[],"sources":["../src/union.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAgB,wBAAwB,oBAAoB,MAAM"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./get-unique-DzZ7Z34U.mjs";function t(t,n){return e([...t,...n])}export{t};
2
+ //# sourceMappingURL=union-C-2CRoFc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union-C-2CRoFc.mjs","names":[],"sources":["../src/union.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport { getUnique } from \"./get-unique\";\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * @remarks\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @example\n * ```ts\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n * ```\n *\n * @param arr1 - The first array to merge and filter for unique values.\n * @param arr2 - The second array to merge and filter for unique values.\n * @returns A new array of unique values.\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return getUnique([...arr1, ...arr2]);\n}\n"],"mappings":"8CAsCA,SAAgB,EAAS,EAAoB,EAAyB,CACpE,OAAO,EAAU,CAAC,GAAG,EAAM,GAAG,EAAK,CAAC"}
@@ -0,0 +1,24 @@
1
+ //#region src/union.d.ts
2
+ /**
3
+ * Creates an array of unique values from all given arrays.
4
+ *
5
+ * @remarks
6
+ * This function takes two arrays, merges them into a single array, and returns a new array
7
+ * containing only the unique values from the merged array.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const array1 = [1, 2, 3];
12
+ * const array2 = [3, 4, 5];
13
+ * const result = union(array1, array2);
14
+ * // result will be [1, 2, 3, 4, 5]
15
+ * ```
16
+ *
17
+ * @param arr1 - The first array to merge and filter for unique values.
18
+ * @param arr2 - The second array to merge and filter for unique values.
19
+ * @returns A new array of unique values.
20
+ */
21
+ declare function union<T>(arr1: readonly T[], arr2: readonly T[]): T[];
22
+ //#endregion
23
+ export { union as t };
24
+ //# sourceMappingURL=union-D4bbjM2i.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union-D4bbjM2i.d.mts","names":[],"sources":["../src/union.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAgB,wBAAwB,oBAAoB,MAAM"}
@@ -0,0 +1 @@
1
+ const e=require(`./get-unique-BOiakY6A.cjs`);function t(t,n){return e.t([...t,...n])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
package/dist/union.cjs CHANGED
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.union = union;
7
- var _getUnique = require("./get-unique.cjs");
8
- function union(n, o) {
9
- return (0, _getUnique.getUnique)([...n, ...o]);
10
- }
1
+ const e=require(`./union-EwdcZzNT.cjs`);exports.union=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as union } from "./union-BMOMEzO-.cjs";
2
+ export { union };
@@ -0,0 +1,2 @@
1
+ import { t as union } from "./union-D4bbjM2i.mjs";
2
+ export { union };
package/dist/union.mjs CHANGED
@@ -1 +1 @@
1
- import{getUnique as r}from"./get-unique";export function union(n,o){return r([...n,...o])}
1
+ import{t as e}from"./union-C-2CRoFc.mjs";export{e as union};
@@ -1,3 +1,4 @@
1
+ //#region src/with-timeout.d.ts
1
2
  /**
2
3
  * Executes an async function and enforces a timeout.
3
4
  *
@@ -17,4 +18,7 @@
17
18
  * @param ms - The timeout duration in milliseconds.
18
19
  * @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.
19
20
  */
20
- export declare function withTimeout<T>(run: () => Promise<T>, ms: number): Promise<T>;
21
+ declare function withTimeout<T>(run: () => Promise<T>, ms: number): Promise<T>;
22
+ //#endregion
23
+ export { withTimeout as t };
24
+ //# sourceMappingURL=with-timeout-BPaAIZtS.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-timeout-BPaAIZtS.d.cts","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAsB,0BACT,QAAQ,iBAElB,QAAQ"}
@@ -0,0 +1,24 @@
1
+ //#region src/with-timeout.d.ts
2
+ /**
3
+ * Executes an async function and enforces a timeout.
4
+ *
5
+ * If the promise does not resolve within the specified time,
6
+ * the timeout will trigger and the returned promise will be rejected.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * try {
11
+ * await withTimeout(() => {}, 1000); // Timeout exception after 1 second
12
+ * } catch (error) {
13
+ * console.error(error); // Will log 'TimeoutError'
14
+ * }
15
+ * ```
16
+ *
17
+ * @param run - A function that returns a promise to be executed.
18
+ * @param ms - The timeout duration in milliseconds.
19
+ * @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.
20
+ */
21
+ declare function withTimeout<T>(run: () => Promise<T>, ms: number): Promise<T>;
22
+ //#endregion
23
+ export { withTimeout as t };
24
+ //# sourceMappingURL=with-timeout-BoZYdcOg.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-timeout-BoZYdcOg.d.mts","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAsB,0BACT,QAAQ,iBAElB,QAAQ"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./timeout-43rG9ETK.mjs";async function t(t,n){return Promise.race([t(),e(n)])}export{t};
2
+ //# sourceMappingURL=with-timeout-CAuUr1ck.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-timeout-CAuUr1ck.mjs","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport { timeout } from \"./timeout\";\n\n/**\n * Executes an async function and enforces a timeout.\n *\n * If the promise does not resolve within the specified time,\n * the timeout will trigger and the returned promise will be rejected.\n *\n * @example\n * ```typescript\n * try {\n * await withTimeout(() => {}, 1000); // Timeout exception after 1 second\n * } catch (error) {\n * console.error(error); // Will log 'TimeoutError'\n * }\n * ```\n *\n * @param run - A function that returns a promise to be executed.\n * @param ms - The timeout duration in milliseconds.\n * @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.\n */\nexport async function withTimeout<T>(\n run: () => Promise<T>,\n ms: number\n): Promise<T> {\n return Promise.race([run(), timeout(ms) as T]);\n}\n"],"mappings":"2CAsCA,eAAsB,EACpB,EACA,EACY,CACZ,OAAO,QAAQ,KAAK,CAAC,GAAK,CAAE,EAAQ,EAAG,CAAM,CAAC"}
@@ -0,0 +1 @@
1
+ const e=require(`./timeout-CoYbhliP.cjs`);async function t(t,n){return Promise.race([t(),e.t(n)])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,10 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.withTimeout = withTimeout;
7
- var _timeout = require("./timeout.cjs");
8
- async function withTimeout(r, e) {
9
- return Promise.race([r(), (0, _timeout.timeout)(e)]);
10
- }
1
+ const e=require(`./with-timeout-CPUBGT4X.cjs`);exports.withTimeout=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as withTimeout } from "./with-timeout-BPaAIZtS.cjs";
2
+ export { withTimeout };
@@ -0,0 +1,2 @@
1
+ import { t as withTimeout } from "./with-timeout-BoZYdcOg.mjs";
2
+ export { withTimeout };
@@ -1 +1 @@
1
- import{timeout as o}from"./timeout";export async function withTimeout(r,e){return Promise.race([r(),o(e)])}
1
+ import{t as e}from"./with-timeout-CAuUr1ck.mjs";export{e as withTimeout};