@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
@@ -0,0 +1,2 @@
1
+ import { t as identity } from "./identity-DRhIvbPG.cjs";
2
+ export { identity };
@@ -0,0 +1,2 @@
1
+ import { t as identity } from "./identity-B_cGeF8o.mjs";
2
+ export { identity };
package/dist/identity.mjs CHANGED
@@ -1 +1 @@
1
- export function identity(t){return t}
1
+ import{t as e}from"./identity-DBwwvmGU.mjs";export{e as identity};
package/dist/index.cjs CHANGED
@@ -1,346 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _argIdentity = require("./arg-identity.cjs");
7
- Object.keys(_argIdentity).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _argIdentity[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _argIdentity[key];
14
- }
15
- });
16
- });
17
- var _debounce = require("./debounce.cjs");
18
- Object.keys(_debounce).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _debounce[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _debounce[key];
25
- }
26
- });
27
- });
28
- var _deepClone = require("./deep-clone.cjs");
29
- Object.keys(_deepClone).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _deepClone[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _deepClone[key];
36
- }
37
- });
38
- });
39
- var _deepMerge = require("./deep-merge.cjs");
40
- Object.keys(_deepMerge).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _deepMerge[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _deepMerge[key];
47
- }
48
- });
49
- });
50
- var _delay = require("./delay.cjs");
51
- Object.keys(_delay).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _delay[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _delay[key];
58
- }
59
- });
60
- });
61
- var _filterEmpty = require("./filter-empty.cjs");
62
- Object.keys(_filterEmpty).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _filterEmpty[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function () {
68
- return _filterEmpty[key];
69
- }
70
- });
71
- });
72
- var _flattenObject = require("./flatten-object.cjs");
73
- Object.keys(_flattenObject).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _flattenObject[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _flattenObject[key];
80
- }
81
- });
82
- });
83
- var _getField = require("./get-field.cjs");
84
- Object.keys(_getField).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _getField[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function () {
90
- return _getField[key];
91
- }
92
- });
93
- });
94
- var _getOrderedBy = require("./get-ordered-by.cjs");
95
- Object.keys(_getOrderedBy).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _getOrderedBy[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function () {
101
- return _getOrderedBy[key];
102
- }
103
- });
104
- });
105
- var _getUnique = require("./get-unique.cjs");
106
- Object.keys(_getUnique).forEach(function (key) {
107
- if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _getUnique[key]) return;
109
- Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: function () {
112
- return _getUnique[key];
113
- }
114
- });
115
- });
116
- var _identity = require("./identity.cjs");
117
- Object.keys(_identity).forEach(function (key) {
118
- if (key === "default" || key === "__esModule") return;
119
- if (key in exports && exports[key] === _identity[key]) return;
120
- Object.defineProperty(exports, key, {
121
- enumerable: true,
122
- get: function () {
123
- return _identity[key];
124
- }
125
- });
126
- });
127
- var _isEqual = require("./is-equal.cjs");
128
- Object.keys(_isEqual).forEach(function (key) {
129
- if (key === "default" || key === "__esModule") return;
130
- if (key in exports && exports[key] === _isEqual[key]) return;
131
- Object.defineProperty(exports, key, {
132
- enumerable: true,
133
- get: function () {
134
- return _isEqual[key];
135
- }
136
- });
137
- });
138
- var _lruCache = require("./lru-cache.cjs");
139
- Object.keys(_lruCache).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _lruCache[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function () {
145
- return _lruCache[key];
146
- }
147
- });
148
- });
149
- var _matchSorter = require("./match-sorter.cjs");
150
- Object.keys(_matchSorter).forEach(function (key) {
151
- if (key === "default" || key === "__esModule") return;
152
- if (key in exports && exports[key] === _matchSorter[key]) return;
153
- Object.defineProperty(exports, key, {
154
- enumerable: true,
155
- get: function () {
156
- return _matchSorter[key];
157
- }
158
- });
159
- });
160
- var _memoize = require("./memoize.cjs");
161
- Object.keys(_memoize).forEach(function (key) {
162
- if (key === "default" || key === "__esModule") return;
163
- if (key in exports && exports[key] === _memoize[key]) return;
164
- Object.defineProperty(exports, key, {
165
- enumerable: true,
166
- get: function () {
167
- return _memoize[key];
168
- }
169
- });
170
- });
171
- var _mutex = require("./mutex.cjs");
172
- Object.keys(_mutex).forEach(function (key) {
173
- if (key === "default" || key === "__esModule") return;
174
- if (key in exports && exports[key] === _mutex[key]) return;
175
- Object.defineProperty(exports, key, {
176
- enumerable: true,
177
- get: function () {
178
- return _mutex[key];
179
- }
180
- });
181
- });
182
- var _noop = require("./noop.cjs");
183
- Object.keys(_noop).forEach(function (key) {
184
- if (key === "default" || key === "__esModule") return;
185
- if (key in exports && exports[key] === _noop[key]) return;
186
- Object.defineProperty(exports, key, {
187
- enumerable: true,
188
- get: function () {
189
- return _noop[key];
190
- }
191
- });
192
- });
193
- var _omit = require("./omit.cjs");
194
- Object.keys(_omit).forEach(function (key) {
195
- if (key === "default" || key === "__esModule") return;
196
- if (key in exports && exports[key] === _omit[key]) return;
197
- Object.defineProperty(exports, key, {
198
- enumerable: true,
199
- get: function () {
200
- return _omit[key];
201
- }
202
- });
203
- });
204
- var _once = require("./once.cjs");
205
- Object.keys(_once).forEach(function (key) {
206
- if (key === "default" || key === "__esModule") return;
207
- if (key in exports && exports[key] === _once[key]) return;
208
- Object.defineProperty(exports, key, {
209
- enumerable: true,
210
- get: function () {
211
- return _once[key];
212
- }
213
- });
214
- });
215
- var _pick = require("./pick.cjs");
216
- Object.keys(_pick).forEach(function (key) {
217
- if (key === "default" || key === "__esModule") return;
218
- if (key in exports && exports[key] === _pick[key]) return;
219
- Object.defineProperty(exports, key, {
220
- enumerable: true,
221
- get: function () {
222
- return _pick[key];
223
- }
224
- });
225
- });
226
- var _removeAccents = require("./remove-accents.cjs");
227
- Object.keys(_removeAccents).forEach(function (key) {
228
- if (key === "default" || key === "__esModule") return;
229
- if (key in exports && exports[key] === _removeAccents[key]) return;
230
- Object.defineProperty(exports, key, {
231
- enumerable: true,
232
- get: function () {
233
- return _removeAccents[key];
234
- }
235
- });
236
- });
237
- var _removeEmptyItems = require("./remove-empty-items.cjs");
238
- Object.keys(_removeEmptyItems).forEach(function (key) {
239
- if (key === "default" || key === "__esModule") return;
240
- if (key in exports && exports[key] === _removeEmptyItems[key]) return;
241
- Object.defineProperty(exports, key, {
242
- enumerable: true,
243
- get: function () {
244
- return _removeEmptyItems[key];
245
- }
246
- });
247
- });
248
- var _semaphore = require("./semaphore.cjs");
249
- Object.keys(_semaphore).forEach(function (key) {
250
- if (key === "default" || key === "__esModule") return;
251
- if (key in exports && exports[key] === _semaphore[key]) return;
252
- Object.defineProperty(exports, key, {
253
- enumerable: true,
254
- get: function () {
255
- return _semaphore[key];
256
- }
257
- });
258
- });
259
- var _setField = require("./set-field.cjs");
260
- Object.keys(_setField).forEach(function (key) {
261
- if (key === "default" || key === "__esModule") return;
262
- if (key in exports && exports[key] === _setField[key]) return;
263
- Object.defineProperty(exports, key, {
264
- enumerable: true,
265
- get: function () {
266
- return _setField[key];
267
- }
268
- });
269
- });
270
- var _throttle = require("./throttle.cjs");
271
- Object.keys(_throttle).forEach(function (key) {
272
- if (key === "default" || key === "__esModule") return;
273
- if (key in exports && exports[key] === _throttle[key]) return;
274
- Object.defineProperty(exports, key, {
275
- enumerable: true,
276
- get: function () {
277
- return _throttle[key];
278
- }
279
- });
280
- });
281
- var _timeout = require("./timeout.cjs");
282
- Object.keys(_timeout).forEach(function (key) {
283
- if (key === "default" || key === "__esModule") return;
284
- if (key in exports && exports[key] === _timeout[key]) return;
285
- Object.defineProperty(exports, key, {
286
- enumerable: true,
287
- get: function () {
288
- return _timeout[key];
289
- }
290
- });
291
- });
292
- var _toDeepKey = require("./to-deep-key.cjs");
293
- Object.keys(_toDeepKey).forEach(function (key) {
294
- if (key === "default" || key === "__esModule") return;
295
- if (key in exports && exports[key] === _toDeepKey[key]) return;
296
- Object.defineProperty(exports, key, {
297
- enumerable: true,
298
- get: function () {
299
- return _toDeepKey[key];
300
- }
301
- });
302
- });
303
- var _toPath = require("./to-path.cjs");
304
- Object.keys(_toPath).forEach(function (key) {
305
- if (key === "default" || key === "__esModule") return;
306
- if (key in exports && exports[key] === _toPath[key]) return;
307
- Object.defineProperty(exports, key, {
308
- enumerable: true,
309
- get: function () {
310
- return _toPath[key];
311
- }
312
- });
313
- });
314
- var _unflattenObject = require("./unflatten-object.cjs");
315
- Object.keys(_unflattenObject).forEach(function (key) {
316
- if (key === "default" || key === "__esModule") return;
317
- if (key in exports && exports[key] === _unflattenObject[key]) return;
318
- Object.defineProperty(exports, key, {
319
- enumerable: true,
320
- get: function () {
321
- return _unflattenObject[key];
322
- }
323
- });
324
- });
325
- var _union = require("./union.cjs");
326
- Object.keys(_union).forEach(function (key) {
327
- if (key === "default" || key === "__esModule") return;
328
- if (key in exports && exports[key] === _union[key]) return;
329
- Object.defineProperty(exports, key, {
330
- enumerable: true,
331
- get: function () {
332
- return _union[key];
333
- }
334
- });
335
- });
336
- var _withTimeout = require("./with-timeout.cjs");
337
- Object.keys(_withTimeout).forEach(function (key) {
338
- if (key === "default" || key === "__esModule") return;
339
- if (key in exports && exports[key] === _withTimeout[key]) return;
340
- Object.defineProperty(exports, key, {
341
- enumerable: true,
342
- get: function () {
343
- return _withTimeout[key];
344
- }
345
- });
346
- });
1
+ const e=require(`./arg-identity-dlKw6BsD.cjs`),t=require(`./debounce-SIYbhEOF.cjs`),n=require(`./deep-clone-CoUy-Hrt.cjs`),r=require(`./deep-merge-BpFjvumi.cjs`),i=require(`./delay-UwR_fCwt.cjs`),a=require(`./filter-empty-5_nMg04e.cjs`),o=require(`./flatten-object-D-EbEZqR.cjs`),s=require(`./get-field-D4F_p-Ov.cjs`),c=require(`./to-path-CdOFd4od.cjs`),l=require(`./get-ordered-by-D2Sr6vUN.cjs`),u=require(`./get-unique-BOiakY6A.cjs`),d=require(`./identity-z2xaIqpe.cjs`),f=require(`./is-equal-BJgVhUVS.cjs`),p=require(`./lru-cache-DgTSGx5W.cjs`),m=require(`./remove-accents-CXBUC-Id.cjs`),h=require(`./match-sorter-BjnWjkKu.cjs`),g=require(`./memoize-qxvbI-0y.cjs`),_=require(`./semaphore-DkHqPlow.cjs`),v=require(`./mutex-CnQQBndt.cjs`),y=require(`./noop-Dpf7hIui.cjs`),b=require(`./omit-A0uVyAS4.cjs`),x=require(`./once-DZCwmdkv.cjs`),S=require(`./pick-GDOwAh6I.cjs`),C=require(`./remove-empty-items-CjTxJuyS.cjs`),w=require(`./set-field-mr4GkhFb.cjs`),T=require(`./throttle-BOKOTo3m.cjs`),E=require(`./timeout-CoYbhliP.cjs`),D=require(`./to-deep-key-Cma9aiEz.cjs`),O=require(`./unflatten-object-CvZj41LG.cjs`),k=require(`./union-EwdcZzNT.cjs`),A=require(`./with-timeout-CPUBGT4X.cjs`);exports.LRUCache=p.t,exports.Mutex=v.t,exports.Semaphore=_.t,exports.addPathToDeepKey=D.t,exports.argIdentity=e.t,exports.asyncNoop=y.t,exports.characterMap=m.t,exports.debounce=t.t,exports.deepClone=n.t,exports.deepMerge=r.t,exports.defaultBaseSortFn=h.t,exports.delay=i.t,exports.filterEmpty=a.t,exports.flattenObject=o.t,exports.getField=s.t,exports.getOrderedBy=l.t,exports.getUnique=u.t,exports.getUniqueBy=u.n,exports.identity=d.t,exports.isEqual=f.t,exports.matchSorter=h.n,exports.memoizeOnId=g.t,exports.noop=y.n,exports.omit=b.t,exports.once=x.t,exports.pick=S.t,exports.rankings=h.r,exports.removeAccents=m.n,exports.removeEmptyItems=C.t,exports.safeFunctionCast=x.n,exports.setField=w.t,exports.sleep=i.n,exports.throttle=T.t,exports.timeout=E.t,exports.toDeepKey=D.n,exports.toPath=c.t,exports.unflattenObject=O.t,exports.union=k.t,exports.withTimeout=A.t;
@@ -0,0 +1,32 @@
1
+ import { t as argIdentity } from "./arg-identity-C-pVjd0u.cjs";
2
+ import { n as debounce, t as DebounceOptions } from "./debounce-CLb-VvJv.cjs";
3
+ import { n as deepClone, t as Resolved } from "./deep-clone-jRNy1xoj.cjs";
4
+ import { n as deepMerge, t as DeepMergeOptions } from "./deep-merge-C9qDSleg.cjs";
5
+ import { n as sleep, t as delay } from "./delay-VkcrQf1l.cjs";
6
+ import { t as filterEmpty } from "./filter-empty-C2fq9M7o.cjs";
7
+ import { t as flattenObject } from "./flatten-object-DjaJJaY0.cjs";
8
+ import { n as getField, t as GetField } from "./get-field-oltWWNRO.cjs";
9
+ import { t as getOrderedBy } from "./get-ordered-by-DuD7QRma.cjs";
10
+ import { n as getUniqueBy, t as getUnique } from "./get-unique-C0SBPUBv.cjs";
11
+ import { t as identity } from "./identity-DRhIvbPG.cjs";
12
+ import { t as isEqual } from "./is-equal-BMlMHlVi.cjs";
13
+ import { t as LRUCache } from "./lru-cache-D4VEIgtR.cjs";
14
+ import { a as RankingInfo, c as matchSorter, i as MatchSorterOptions, l as rankings, n as KeyAttributesOptions, o as ValueGetterKey, r as KeyOption, s as defaultBaseSortFn, t as KeyAttributes } from "./match-sorter-CMYN3GuY.cjs";
15
+ import { t as memoizeOnId } from "./memoize-tSTYY522.cjs";
16
+ import { t as Mutex } from "./mutex-DCyX7B66.cjs";
17
+ import { n as noop, t as asyncNoop } from "./noop-CnJXOCpF.cjs";
18
+ import { t as omit } from "./omit-D1FKiOYz.cjs";
19
+ import { n as safeFunctionCast, t as once } from "./once-DqmxXwEB.cjs";
20
+ import { t as pick } from "./pick-DXREvZBr.cjs";
21
+ import { n as removeAccents, t as characterMap } from "./remove-accents-Yo3-2jWO.cjs";
22
+ import { t as removeEmptyItems } from "./remove-empty-items-BglsRCyG.cjs";
23
+ import { t as Semaphore } from "./semaphore-CsGTxqsW.cjs";
24
+ import { t as setField } from "./set-field-CcCiXZNl.cjs";
25
+ import { t as throttle } from "./throttle-BWPQuZty.cjs";
26
+ import { t as timeout } from "./timeout-DC38jHR8.cjs";
27
+ import { n as toDeepKey, t as addPathToDeepKey } from "./to-deep-key-DlsE4ziE.cjs";
28
+ import { t as toPath } from "./to-path-D2zWXeYc.cjs";
29
+ import { t as unflattenObject } from "./unflatten-object-Cvbj7Q__.cjs";
30
+ import { t as union } from "./union-BMOMEzO-.cjs";
31
+ import { t as withTimeout } from "./with-timeout-BPaAIZtS.cjs";
32
+ export { DebounceOptions, DeepMergeOptions, GetField, KeyAttributes, KeyAttributesOptions, KeyOption, LRUCache, MatchSorterOptions, Mutex, RankingInfo, Resolved, Semaphore, ValueGetterKey, addPathToDeepKey, argIdentity, asyncNoop, characterMap, debounce, deepClone, deepMerge, defaultBaseSortFn, delay, filterEmpty, flattenObject, getField, getOrderedBy, getUnique, getUniqueBy, identity, isEqual, matchSorter, memoizeOnId, noop, omit, once, pick, rankings, removeAccents, removeEmptyItems, safeFunctionCast, setField, sleep, throttle, timeout, toDeepKey, toPath, unflattenObject, union, withTimeout };
@@ -0,0 +1,32 @@
1
+ import { t as argIdentity } from "./arg-identity-BIir8uzO.mjs";
2
+ import { n as debounce, t as DebounceOptions } from "./debounce-CIMf8-Yr.mjs";
3
+ import { n as deepClone, t as Resolved } from "./deep-clone-CpLJcTgz.mjs";
4
+ import { n as deepMerge, t as DeepMergeOptions } from "./deep-merge-eCT712Cv.mjs";
5
+ import { n as sleep, t as delay } from "./delay-Bd_sGzMj.mjs";
6
+ import { t as filterEmpty } from "./filter-empty-BMtd0K07.mjs";
7
+ import { t as flattenObject } from "./flatten-object-Bk2VT-b2.mjs";
8
+ import { n as getField, t as GetField } from "./get-field-5XqtknPs.mjs";
9
+ import { t as getOrderedBy } from "./get-ordered-by-C45FfW2T.mjs";
10
+ import { n as getUniqueBy, t as getUnique } from "./get-unique-DZ6E1Kvc.mjs";
11
+ import { t as identity } from "./identity-B_cGeF8o.mjs";
12
+ import { t as isEqual } from "./is-equal-Baqurdpn.mjs";
13
+ import { t as LRUCache } from "./lru-cache-CzQ_kKXk.mjs";
14
+ import { a as RankingInfo, c as matchSorter, i as MatchSorterOptions, l as rankings, n as KeyAttributesOptions, o as ValueGetterKey, r as KeyOption, s as defaultBaseSortFn, t as KeyAttributes } from "./match-sorter-DCRerxVe.mjs";
15
+ import { t as memoizeOnId } from "./memoize-TyrmWrfR.mjs";
16
+ import { t as Mutex } from "./mutex-DAZduiSP.mjs";
17
+ import { n as noop, t as asyncNoop } from "./noop-BnXKMH6Z.mjs";
18
+ import { t as omit } from "./omit-DpqOAtKt.mjs";
19
+ import { n as safeFunctionCast, t as once } from "./once-DNPPQd3P.mjs";
20
+ import { t as pick } from "./pick-ZrWD4de2.mjs";
21
+ import { n as removeAccents, t as characterMap } from "./remove-accents-C4C0A2ex.mjs";
22
+ import { t as removeEmptyItems } from "./remove-empty-items-COwdCPHC.mjs";
23
+ import { t as Semaphore } from "./semaphore-WaZBtCk5.mjs";
24
+ import { t as setField } from "./set-field-DyvXgpNP.mjs";
25
+ import { t as throttle } from "./throttle-BgU4k6qs.mjs";
26
+ import { t as timeout } from "./timeout-CLhwG-oo.mjs";
27
+ import { n as toDeepKey, t as addPathToDeepKey } from "./to-deep-key-DO-Z0Zjs.mjs";
28
+ import { t as toPath } from "./to-path-BajxeMmo.mjs";
29
+ import { t as unflattenObject } from "./unflatten-object-CPJIUozj.mjs";
30
+ import { t as union } from "./union-D4bbjM2i.mjs";
31
+ import { t as withTimeout } from "./with-timeout-BoZYdcOg.mjs";
32
+ export { DebounceOptions, DeepMergeOptions, GetField, KeyAttributes, KeyAttributesOptions, KeyOption, LRUCache, MatchSorterOptions, Mutex, RankingInfo, Resolved, Semaphore, ValueGetterKey, addPathToDeepKey, argIdentity, asyncNoop, characterMap, debounce, deepClone, deepMerge, defaultBaseSortFn, delay, filterEmpty, flattenObject, getField, getOrderedBy, getUnique, getUniqueBy, identity, isEqual, matchSorter, memoizeOnId, noop, omit, once, pick, rankings, removeAccents, removeEmptyItems, safeFunctionCast, setField, sleep, throttle, timeout, toDeepKey, toPath, unflattenObject, union, withTimeout };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export*from"./arg-identity";export*from"./debounce";export*from"./deep-clone";export*from"./deep-merge";export*from"./delay";export*from"./filter-empty";export*from"./flatten-object";export*from"./get-field";export*from"./get-ordered-by";export*from"./get-unique";export*from"./identity";export*from"./is-equal";export*from"./lru-cache";export*from"./match-sorter";export*from"./memoize";export*from"./mutex";export*from"./noop";export*from"./omit";export*from"./once";export*from"./pick";export*from"./remove-accents";export*from"./remove-empty-items";export*from"./semaphore";export*from"./set-field";export*from"./throttle";export*from"./timeout";export*from"./to-deep-key";export*from"./to-path";export*from"./unflatten-object";export*from"./union";export*from"./with-timeout";
1
+ import{t as e}from"./arg-identity-BfviduMt.mjs";import{t}from"./debounce-C5O3IDKy.mjs";import{t as n}from"./deep-clone-BlN5QTtW.mjs";import{t as r}from"./deep-merge-BDZ6c79O.mjs";import{n as i,t as a}from"./delay-wdNbY6sk.mjs";import{t as o}from"./filter-empty-Dsc1ymCj.mjs";import{t as s}from"./flatten-object-DFCZmly9.mjs";import{t as c}from"./get-field-ngQ9O38X.mjs";import{t as l}from"./to-path-Dm1fe-Ix.mjs";import{t as u}from"./get-ordered-by-CBKKJr4R.mjs";import{n as d,t as f}from"./get-unique-DzZ7Z34U.mjs";import{t as p}from"./identity-DBwwvmGU.mjs";import{t as m}from"./is-equal-0Z-K2uIG.mjs";import{t as h}from"./lru-cache-DLY_yZRN.mjs";import{n as g,t as _}from"./remove-accents-BFmyvTRZ.mjs";import{n as v,r as y,t as b}from"./match-sorter-B9_7YvTo.mjs";import{t as x}from"./memoize-Cr5jFKxi.mjs";import{t as S}from"./semaphore-4zJqtox8.mjs";import{t as C}from"./mutex-TqoKHosg.mjs";import{n as w,t as T}from"./noop-B7OetrhD.mjs";import{t as E}from"./omit-BROsDK0D.mjs";import{n as D,t as O}from"./once-txoW63yJ.mjs";import{t as k}from"./pick-CuXTvXaw.mjs";import{t as A}from"./remove-empty-items-BzI9Vid9.mjs";import{t as j}from"./set-field-CUgbKEjW.mjs";import{t as M}from"./throttle-CYK3F0mZ.mjs";import{t as N}from"./timeout-43rG9ETK.mjs";import{n as P,t as F}from"./to-deep-key-D8uDBd6T.mjs";import{t as I}from"./unflatten-object-C7TE8J80.mjs";import{t as L}from"./union-C-2CRoFc.mjs";import{t as R}from"./with-timeout-CAuUr1ck.mjs";export{h as LRUCache,C as Mutex,S as Semaphore,F as addPathToDeepKey,e as argIdentity,T as asyncNoop,_ as characterMap,t as debounce,n as deepClone,r as deepMerge,b as defaultBaseSortFn,a as delay,o as filterEmpty,s as flattenObject,c as getField,u as getOrderedBy,f as getUnique,d as getUniqueBy,p as identity,m as isEqual,v as matchSorter,x as memoizeOnId,w as noop,E as omit,O as once,k as pick,y as rankings,g as removeAccents,A as removeEmptyItems,D as safeFunctionCast,j as setField,i as sleep,M as throttle,N as timeout,P as toDeepKey,l as toPath,I as unflattenObject,L as union,R as withTimeout};
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./get-object-tag-oBoWkttN.mjs";function t(t){return e(t)===`[object Function]`}function n(t){return e(t)===`[object AsyncFunction]`}const r=e=>{try{return e instanceof Function||typeof e==`function`||!!(e?.constructor&&e?.call&&e?.apply)||t(e)||n(e)}catch{return!1}},i=e=>{try{return e===null}catch{return!1}},a=e=>e===void 0,o=e=>{try{return a(e)||i(e)}catch{return!1}};export{r as n,o as t};
2
+ //# sourceMappingURL=is-empty-C7vlSVFD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-C7vlSVFD.mjs","names":[],"sources":["../../type-checks/src/is-function.ts","../../type-checks/src/is-null.ts","../../type-checks/src/is-undefined.ts","../../type-checks/src/is-empty.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\nimport type { AnyFunction } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\nexport function isSyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object Function]\";\n}\n\nexport function isAsyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object AsyncFunction]\";\n}\n\n/**\n * Check if the provided value's type is `Function`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Function`\n */\nexport const isFunction = (value: unknown): value is AnyFunction => {\n try {\n return (\n value instanceof Function ||\n typeof value === \"function\" ||\n Boolean(\n value?.constructor && (value as any)?.call && (value as any)?.apply\n ) ||\n isSyncFunction(value) ||\n isAsyncFunction(value)\n );\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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\nexport const isNull = (value: unknown): value is null => {\n try {\n return value === null;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n","/* -------------------------------------------------------------------\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\nimport { isDate } from \"./is-date\";\nimport { isFunction } from \"./is-function\";\nimport { isNull } from \"./is-null\";\nimport { isNumber } from \"./is-number\";\nimport { isSymbol } from \"./is-symbol\";\nimport { isUndefined } from \"./is-undefined\";\n\n/**\n * Check if the provided value's type is `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined`\n */\nexport const isEmpty = (value: unknown) => {\n try {\n return isUndefined(value) || isNull(value);\n } catch {\n return false;\n }\n};\n\nexport const isEmptyAnything = (value: any) => {\n if (value === true || value === false) return true;\n if (value === null || value === undefined) return true;\n if (isNumber(value)) return value === 0;\n if (isDate(value)) return Number.isNaN(value.getTime());\n if (isFunction(value)) return false;\n if (isSymbol(value)) return false;\n const { length } = value;\n if (isNumber(length)) return length === 0;\n const { size } = value;\n if (isNumber(size)) return size === 0;\n const keys = Object.keys(value).length;\n\n return keys === 0;\n};\n"],"mappings":"kDAqBA,SAAgB,EAAe,EAAmC,CAChE,OAAO,EAAa,EAAM,GAAK,oBAGjC,SAAgB,EAAgB,EAAmC,CACjE,OAAO,EAAa,EAAM,GAAK,yBASjC,MAAa,EAAc,GAAyC,CAClE,GAAI,CACF,OACE,aAAiB,UACjB,OAAO,GAAU,YACjB,GACE,GAAO,aAAgB,GAAe,MAAS,GAAe,QAEhE,EAAe,EAAM,EACrB,EAAgB,EAAM,MAElB,CACN,MAAO,KC7BE,EAAU,GAAkC,CACvD,GAAI,CACF,OAAO,IAAU,UACX,CACN,MAAO,KCJE,EAAe,GACnB,IAAU,IAAA,GCYN,EAAW,GAAmB,CACzC,GAAI,CACF,OAAO,EAAY,EAAM,EAAI,EAAO,EAAM,MACpC,CACN,MAAO"}
@@ -0,0 +1 @@
1
+ const e=require(`./get-object-tag-D53RvMgo.cjs`);function t(t){return e.t(t)===`[object Function]`}function n(t){return e.t(t)===`[object AsyncFunction]`}const r=e=>{try{return e instanceof Function||typeof e==`function`||!!(e?.constructor&&e?.call&&e?.apply)||t(e)||n(e)}catch{return!1}},i=e=>{try{return e===null}catch{return!1}},a=e=>e===void 0,o=e=>{try{return a(e)||i(e)}catch{return!1}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./is-set-B9o0NIT4.mjs";import{t}from"./is-set-string-Dr1MlMk0.mjs";const n=typeof Map==`function`,r=typeof Set==`function`,i=typeof ArrayBuffer==`function`&&ArrayBuffer.isView!==void 0;function a(o,s){if(o===s)return!0;if(o&&s&&typeof o==`object`&&typeof s==`object`){if(o.constructor!==s.constructor)return!1;let c;if(Array.isArray(o)){if(c=o.length,c!=s.length)return!1;for(let e=c;e--!==0;)if(!a(o[e],s[e]))return!1;return!0}let l;if(n&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;l=o.entries();let e;for(;!(e=l.next()).done;)if(!s.has(e.value[0]))return!1;for(l=o.entries();!(e=l.next()).done;)if(!a(e.value[1],s.get(e.value[0])))return!1;return!0}if(r&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;l=o.entries();let e;for(;!(e=l.next()).done;)if(!s.has(e.value[0]))return!1;return!0}if(Array.isArray(o)&&Array.isArray(s)&&i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if(c=o.length,c!=s.length)return!1;for(let e=c;e--!==0;)if(o[e]!==s[e])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf==`function`&&typeof s.valueOf==`function`)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString==`function`&&typeof s.toString==`function`)return o.toString()===s.toString();let u=Object.keys(o);if(c=u.length,c!==Object.keys(s).length)return!1;for(let n=c;n--!==0;)if(!e(n)||!t(u[n])||!Object.prototype.hasOwnProperty.call(s,u[n]))return!1;for(let n=c;n--!==0;)if(!(Array.isArray(u)&&(u[n]===`_owner`||u[n]===`__v`||u[n]===`__o`)&&o.$$typeof)&&(!e(n)||!t(u[n])||!a(o[u[n]],s[u[n]])))return!1;return!0}return o!==o&&s!==s}function o(e,t){try{return a(e,t)}catch(e){if(/stack|recursion/i.test(e?.message||``))return console.warn(`isEqual cannot handle circular refs`),!1;throw e}}export{o as t};
2
+ //# sourceMappingURL=is-equal-0Z-K2uIG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal-0Z-K2uIG.mjs","names":[],"sources":["../src/is-equal.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 { isSet } from \"@stryke/type-checks/is-set\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\n\nconst hasMap = typeof Map === \"function\";\nconst hasSet = typeof Set === \"function\";\nconst hasArrayBuffer =\n typeof ArrayBuffer === \"function\" && ArrayBuffer.isView !== undefined;\n\nfunction equal(a: any, b: any) {\n if (a === b) {\n return true;\n }\n\n if (a && b && typeof a === \"object\" && typeof b === \"object\") {\n if (a.constructor !== b.constructor) {\n return false;\n }\n\n let length;\n if (Array.isArray(a)) {\n length = a.length;\n\n if (length != b.length) return false;\n for (let i = length; i-- !== 0; ) if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n let it;\n if (hasMap && a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return false;\n it = a.entries();\n let i;\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done) {\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n }\n return true;\n }\n\n if (hasSet && a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return false;\n it = a.entries();\n let i;\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n return true;\n }\n\n if (\n Array.isArray(a) &&\n Array.isArray(b) &&\n hasArrayBuffer &&\n ArrayBuffer.isView(a) &&\n ArrayBuffer.isView(b)\n ) {\n length = a.length;\n\n if (length != b.length) return false;\n for (let i = length; i-- !== 0; ) if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) {\n return a.source === b.source && a.flags === b.flags;\n }\n\n if (\n a.valueOf !== Object.prototype.valueOf &&\n typeof a.valueOf === \"function\" &&\n typeof b.valueOf === \"function\"\n ) {\n // eslint-disable-next-line ts/no-unsafe-call\n return a.valueOf() === b.valueOf();\n }\n if (\n a.toString !== Object.prototype.toString &&\n typeof a.toString === \"function\" &&\n typeof b.toString === \"function\"\n ) {\n // eslint-disable-next-line ts/no-unsafe-call\n return a.toString() === b.toString();\n }\n\n const keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n\n for (let i = length; i-- !== 0; ) {\n if (\n !isSet(i) ||\n !isSetString(keys[i]) ||\n !Object.prototype.hasOwnProperty.call(b, keys[i] as any)\n ) {\n return false;\n }\n }\n\n for (let i = length; i-- !== 0; ) {\n if (\n Array.isArray(keys) &&\n (keys[i] === \"_owner\" || keys[i] === \"__v\" || keys[i] === \"__o\") &&\n a.$$typeof\n ) {\n continue;\n }\n\n if (\n !isSet(i) ||\n !isSetString(keys[i]) ||\n !equal(a[keys[i] as any], b[keys[i] as any])\n ) {\n return false;\n }\n }\n\n return true;\n }\n\n // eslint-disable-next-line no-self-compare\n return a !== a && b !== b;\n}\n\n/**\n * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.\n *\n * @example\n * ```ts\n * isEqual(1, 1); // true\n * isEqual({ a: 1 }, { a: 1 }); // true\n * isEqual(/abc/g, /abc/g); // true\n * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true\n * isEqual([1, 2, 3], [1, 2, 3]); // true\n * isEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true\n * ```\n *\n * @param a - The first value to compare.\n * @param b - The second value to compare.\n * @returns `true` if the values are equal, otherwise `false`.\n */\nexport function isEqual(a: any, b: any): boolean {\n try {\n return equal(a, b);\n } catch (error) {\n if (/stack|recursion/i.test((error as any)?.message || \"\")) {\n // eslint-disable-next-line no-console\n console.warn(\"isEqual cannot handle circular refs\");\n\n return false;\n }\n\n throw error;\n }\n}\n"],"mappings":"sFAoBA,MAAM,EAAS,OAAO,KAAQ,WACxB,EAAS,OAAO,KAAQ,WACxB,EACJ,OAAO,aAAgB,YAAc,YAAY,SAAW,IAAA,GAE9D,SAAS,EAAM,EAAQ,EAAQ,CAC7B,GAAI,IAAM,EACR,MAAO,GAGT,GAAI,GAAK,GAAK,OAAO,GAAM,UAAY,OAAO,GAAM,SAAU,CAC5D,GAAI,EAAE,cAAgB,EAAE,YACtB,MAAO,GAGT,IAAI,EACJ,GAAI,MAAM,QAAQ,EAAE,CAAE,CAGpB,GAFA,EAAS,EAAE,OAEP,GAAU,EAAE,OAAQ,MAAO,GAC/B,IAAK,IAAI,EAAI,EAAQ,MAAQ,GAAK,GAAI,CAAC,EAAM,EAAE,GAAI,EAAE,GAAG,CAAE,MAAO,GACjE,MAAO,GAGT,IAAI,EACJ,GAAI,GAAU,aAAa,KAAO,aAAa,IAAK,CAClD,GAAI,EAAE,OAAS,EAAE,KAAM,MAAO,GAC9B,EAAK,EAAE,SAAS,CAChB,IAAI,EACJ,KAAO,EAAE,EAAI,EAAG,MAAM,EAAE,MAAM,GAAI,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAE,MAAO,GAE7D,IADA,EAAK,EAAE,SAAS,CACT,EAAE,EAAI,EAAG,MAAM,EAAE,MACtB,GAAI,CAAC,EAAM,EAAE,MAAM,GAAI,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAE,MAAO,GAEpD,MAAO,GAGT,GAAI,GAAU,aAAa,KAAO,aAAa,IAAK,CAClD,GAAI,EAAE,OAAS,EAAE,KAAM,MAAO,GAC9B,EAAK,EAAE,SAAS,CAChB,IAAI,EACJ,KAAO,EAAE,EAAI,EAAG,MAAM,EAAE,MAAM,GAAI,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAE,MAAO,GAC7D,MAAO,GAGT,GACE,MAAM,QAAQ,EAAE,EAChB,MAAM,QAAQ,EAAE,EAChB,GACA,YAAY,OAAO,EAAE,EACrB,YAAY,OAAO,EAAE,CACrB,CAGA,GAFA,EAAS,EAAE,OAEP,GAAU,EAAE,OAAQ,MAAO,GAC/B,IAAK,IAAI,EAAI,EAAQ,MAAQ,GAAK,GAAI,EAAE,KAAO,EAAE,GAAI,MAAO,GAC5D,MAAO,GAGT,GAAI,EAAE,cAAgB,OACpB,OAAO,EAAE,SAAW,EAAE,QAAU,EAAE,QAAU,EAAE,MAGhD,GACE,EAAE,UAAY,OAAO,UAAU,SAC/B,OAAO,EAAE,SAAY,YACrB,OAAO,EAAE,SAAY,WAGrB,OAAO,EAAE,SAAS,GAAK,EAAE,SAAS,CAEpC,GACE,EAAE,WAAa,OAAO,UAAU,UAChC,OAAO,EAAE,UAAa,YACtB,OAAO,EAAE,UAAa,WAGtB,OAAO,EAAE,UAAU,GAAK,EAAE,UAAU,CAGtC,IAAM,EAAO,OAAO,KAAK,EAAE,CAE3B,GADA,EAAS,EAAK,OACV,IAAW,OAAO,KAAK,EAAE,CAAC,OAC5B,MAAO,GAGT,IAAK,IAAI,EAAI,EAAQ,MAAQ,GAC3B,GACE,CAAC,EAAM,EAAE,EACT,CAAC,EAAY,EAAK,GAAG,EACrB,CAAC,OAAO,UAAU,eAAe,KAAK,EAAG,EAAK,GAAU,CAExD,MAAO,GAIX,IAAK,IAAI,EAAI,EAAQ,MAAQ,GAEzB,WAAM,QAAQ,EAAK,GAClB,EAAK,KAAO,UAAY,EAAK,KAAO,OAAS,EAAK,KAAO,QAC1D,EAAE,YAMF,CAAC,EAAM,EAAE,EACT,CAAC,EAAY,EAAK,GAAG,EACrB,CAAC,EAAM,EAAE,EAAK,IAAY,EAAE,EAAK,IAAW,EAE5C,MAAO,GAIX,MAAO,GAIT,OAAO,IAAM,GAAK,IAAM,EAoB1B,SAAgB,EAAQ,EAAQ,EAAiB,CAC/C,GAAI,CACF,OAAO,EAAM,EAAG,EAAE,OACX,EAAO,CACd,GAAI,mBAAmB,KAAM,GAAe,SAAW,GAAG,CAIxD,OAFA,QAAQ,KAAK,sCAAsC,CAE5C,GAGT,MAAM"}
@@ -0,0 +1 @@
1
+ const e=require(`./is-set-ByJOY6h2.cjs`),t=require(`./is-set-string-48_jZFw0.cjs`),n=typeof Map==`function`,r=typeof Set==`function`,i=typeof ArrayBuffer==`function`&&ArrayBuffer.isView!==void 0;function a(o,s){if(o===s)return!0;if(o&&s&&typeof o==`object`&&typeof s==`object`){if(o.constructor!==s.constructor)return!1;let c;if(Array.isArray(o)){if(c=o.length,c!=s.length)return!1;for(let e=c;e--!==0;)if(!a(o[e],s[e]))return!1;return!0}let l;if(n&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;l=o.entries();let e;for(;!(e=l.next()).done;)if(!s.has(e.value[0]))return!1;for(l=o.entries();!(e=l.next()).done;)if(!a(e.value[1],s.get(e.value[0])))return!1;return!0}if(r&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;l=o.entries();let e;for(;!(e=l.next()).done;)if(!s.has(e.value[0]))return!1;return!0}if(Array.isArray(o)&&Array.isArray(s)&&i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if(c=o.length,c!=s.length)return!1;for(let e=c;e--!==0;)if(o[e]!==s[e])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf==`function`&&typeof s.valueOf==`function`)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString==`function`&&typeof s.toString==`function`)return o.toString()===s.toString();let u=Object.keys(o);if(c=u.length,c!==Object.keys(s).length)return!1;for(let n=c;n--!==0;)if(!e.t(n)||!t.t(u[n])||!Object.prototype.hasOwnProperty.call(s,u[n]))return!1;for(let n=c;n--!==0;)if(!(Array.isArray(u)&&(u[n]===`_owner`||u[n]===`__v`||u[n]===`__o`)&&o.$$typeof)&&(!e.t(n)||!t.t(u[n])||!a(o[u[n]],s[u[n]])))return!1;return!0}return o!==o&&s!==s}function o(e,t){try{return a(e,t)}catch(e){if(/stack|recursion/i.test(e?.message||``))return console.warn(`isEqual cannot handle circular refs`),!1;throw e}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -1,3 +1,4 @@
1
+ //#region src/is-equal.d.ts
1
2
  /**
2
3
  * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
3
4
  *
@@ -15,4 +16,7 @@
15
16
  * @param b - The second value to compare.
16
17
  * @returns `true` if the values are equal, otherwise `false`.
17
18
  */
18
- export declare function isEqual(a: any, b: any): boolean;
19
+ declare function isEqual(a: any, b: any): boolean;
20
+ //#endregion
21
+ export { isEqual as t };
22
+ //# sourceMappingURL=is-equal-BMlMHlVi.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal-BMlMHlVi.d.cts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";;AA8JA;;;;;;;;;;;;;;;;iBAAgB,OAAA"}
@@ -0,0 +1,22 @@
1
+ //#region src/is-equal.d.ts
2
+ /**
3
+ * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * isEqual(1, 1); // true
8
+ * isEqual({ a: 1 }, { a: 1 }); // true
9
+ * isEqual(/abc/g, /abc/g); // true
10
+ * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true
11
+ * isEqual([1, 2, 3], [1, 2, 3]); // true
12
+ * isEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
13
+ * ```
14
+ *
15
+ * @param a - The first value to compare.
16
+ * @param b - The second value to compare.
17
+ * @returns `true` if the values are equal, otherwise `false`.
18
+ */
19
+ declare function isEqual(a: any, b: any): boolean;
20
+ //#endregion
21
+ export { isEqual as t };
22
+ //# sourceMappingURL=is-equal-Baqurdpn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-equal-Baqurdpn.d.mts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";;AA8JA;;;;;;;;;;;;;;;;iBAAgB,OAAA"}
package/dist/is-equal.cjs CHANGED
@@ -1,61 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isEqual = isEqual;
7
- var _isSet = require("@stryke/type-checks/is-set");
8
- var _isSetString = require("@stryke/type-checks/is-set-string");
9
- const l = typeof Map == "function",
10
- a = typeof Set == "function",
11
- c = typeof ArrayBuffer == "function" && ArrayBuffer.isView !== void 0;
12
- function o(e, r) {
13
- if (e === r) return !0;
14
- if (e && r && typeof e == "object" && typeof r == "object") {
15
- if (e.constructor !== r.constructor) return !1;
16
- let n;
17
- if (Array.isArray(e)) {
18
- if (n = e.length, n != r.length) return !1;
19
- for (let t = n; t-- !== 0;) if (!o(e[t], r[t])) return !1;
20
- return !0;
21
- }
22
- let i;
23
- if (l && e instanceof Map && r instanceof Map) {
24
- if (e.size !== r.size) return !1;
25
- i = e.entries();
26
- let t;
27
- for (; !(t = i.next()).done;) if (!r.has(t.value[0])) return !1;
28
- for (i = e.entries(); !(t = i.next()).done;) if (!o(t.value[1], r.get(t.value[0]))) return !1;
29
- return !0;
30
- }
31
- if (a && e instanceof Set && r instanceof Set) {
32
- if (e.size !== r.size) return !1;
33
- i = e.entries();
34
- let t;
35
- for (; !(t = i.next()).done;) if (!r.has(t.value[0])) return !1;
36
- return !0;
37
- }
38
- if (Array.isArray(e) && Array.isArray(r) && c && ArrayBuffer.isView(e) && ArrayBuffer.isView(r)) {
39
- if (n = e.length, n != r.length) return !1;
40
- for (let t = n; t-- !== 0;) if (e[t] !== r[t]) return !1;
41
- return !0;
42
- }
43
- if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
44
- if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof r.valueOf == "function") return e.valueOf() === r.valueOf();
45
- if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof r.toString == "function") return e.toString() === r.toString();
46
- const f = Object.keys(e);
47
- if (n = f.length, n !== Object.keys(r).length) return !1;
48
- for (let t = n; t-- !== 0;) if (!(0, _isSet.isSet)(t) || !(0, _isSetString.isSetString)(f[t]) || !Object.prototype.hasOwnProperty.call(r, f[t])) return !1;
49
- for (let t = n; t-- !== 0;) if (!(Array.isArray(f) && (f[t] === "_owner" || f[t] === "__v" || f[t] === "__o") && e.$$typeof) && (!(0, _isSet.isSet)(t) || !(0, _isSetString.isSetString)(f[t]) || !o(e[f[t]], r[f[t]]))) return !1;
50
- return !0;
51
- }
52
- return e !== e && r !== r;
53
- }
54
- function isEqual(e, r) {
55
- try {
56
- return o(e, r);
57
- } catch (n) {
58
- if (/stack|recursion/i.test(n?.message || "")) return console.warn("isEqual cannot handle circular refs"), !1;
59
- throw n;
60
- }
61
- }
1
+ const e=require(`./is-equal-BJgVhUVS.cjs`);exports.isEqual=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as isEqual } from "./is-equal-BMlMHlVi.cjs";
2
+ export { isEqual };
@@ -0,0 +1,2 @@
1
+ import { t as isEqual } from "./is-equal-Baqurdpn.mjs";
2
+ export { isEqual };
package/dist/is-equal.mjs CHANGED
@@ -1 +1 @@
1
- import{isSet as s}from"@stryke/type-checks/is-set";import{isSetString as u}from"@stryke/type-checks/is-set-string";const l=typeof Map=="function",a=typeof Set=="function",c=typeof ArrayBuffer=="function"&&ArrayBuffer.isView!==void 0;function o(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let n;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(let t=n;t--!==0;)if(!o(e[t],r[t]))return!1;return!0}let i;if(l&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;i=e.entries();let t;for(;!(t=i.next()).done;)if(!r.has(t.value[0]))return!1;for(i=e.entries();!(t=i.next()).done;)if(!o(t.value[1],r.get(t.value[0])))return!1;return!0}if(a&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;i=e.entries();let t;for(;!(t=i.next()).done;)if(!r.has(t.value[0]))return!1;return!0}if(Array.isArray(e)&&Array.isArray(r)&&c&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(let t=n;t--!==0;)if(e[t]!==r[t])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();const f=Object.keys(e);if(n=f.length,n!==Object.keys(r).length)return!1;for(let t=n;t--!==0;)if(!s(t)||!u(f[t])||!Object.prototype.hasOwnProperty.call(r,f[t]))return!1;for(let t=n;t--!==0;)if(!(Array.isArray(f)&&(f[t]==="_owner"||f[t]==="__v"||f[t]==="__o")&&e.$$typeof)&&(!s(t)||!u(f[t])||!o(e[f[t]],r[f[t]])))return!1;return!0}return e!==e&&r!==r}export function isEqual(e,r){try{return o(e,r)}catch(n){if(/stack|recursion/i.test(n?.message||""))return console.warn("isEqual cannot handle circular refs"),!1;throw n}}
1
+ import{t as e}from"./is-equal-0Z-K2uIG.mjs";export{e as isEqual};
@@ -0,0 +1 @@
1
+ const e=e=>{try{return e instanceof Number||typeof e==`number`||Number(e)===e}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -0,0 +1,2 @@
1
+ const e=e=>{try{return e instanceof Number||typeof e==`number`||Number(e)===e}catch{return!1}};export{e as t};
2
+ //# sourceMappingURL=is-number-bwhfkHlC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-number-bwhfkHlC.mjs","names":[],"sources":["../../type-checks/src/is-number.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\nimport type { AnyNumber } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Check if the provided value's type is `number`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `number`\n */\nexport const isNumber = (value: unknown): value is number => {\n try {\n return (\n value instanceof Number ||\n typeof value === \"number\" ||\n Number(value) === value\n );\n } catch {\n return false;\n }\n};\n\n/**\n * Check if the provided value's type is `AnyNumber`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `AnyNumber`\n */\nexport function isAnyNumber(value?: any): value is AnyNumber {\n return isNumber(value) || getObjectTag(value) === \"[object Number]\";\n}\n"],"mappings":"AA2BA,MAAa,EAAY,GAAoC,CAC3D,GAAI,CACF,OACE,aAAiB,QACjB,OAAO,GAAU,UACjB,OAAO,EAAM,GAAK,OAEd,CACN,MAAO"}
@@ -0,0 +1 @@
1
+ const e=require(`./get-object-tag-D53RvMgo.cjs`),t=e=>typeof e==`object`&&!!e,n=n=>{if(!t(n)||e.t(n)!==`[object Object]`)return!1;if(Object.getPrototypeOf(n)===null)return!0;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});