@stryke/helpers 0.9.26 → 0.9.28

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 (548) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/arg-identity.cjs +1 -1
  3. package/dist/arg-identity.d.cts +14 -2
  4. package/dist/arg-identity.d.cts.map +1 -0
  5. package/dist/arg-identity.d.mts +14 -2
  6. package/dist/arg-identity.d.mts.map +1 -0
  7. package/dist/arg-identity.mjs +2 -1
  8. package/dist/arg-identity.mjs.map +1 -0
  9. package/dist/convert/src/to-string-key.cjs +1 -0
  10. package/dist/convert/src/to-string-key.mjs +2 -0
  11. package/dist/convert/src/to-string-key.mjs.map +1 -0
  12. package/dist/debounce.cjs +1 -1
  13. package/dist/debounce.d.cts +47 -2
  14. package/dist/debounce.d.cts.map +1 -0
  15. package/dist/debounce.d.mts +47 -2
  16. package/dist/debounce.d.mts.map +1 -0
  17. package/dist/debounce.mjs +2 -1
  18. package/dist/debounce.mjs.map +1 -0
  19. package/dist/deep-clone.cjs +1 -1
  20. package/dist/deep-clone.d.cts +65 -2
  21. package/dist/deep-clone.d.cts.map +1 -0
  22. package/dist/deep-clone.d.mts +65 -2
  23. package/dist/deep-clone.d.mts.map +1 -0
  24. package/dist/deep-clone.mjs +2 -1
  25. package/dist/deep-clone.mjs.map +1 -0
  26. package/dist/deep-merge.cjs +1 -1
  27. package/dist/deep-merge.d.cts +26 -2
  28. package/dist/deep-merge.d.cts.map +1 -0
  29. package/dist/deep-merge.d.mts +26 -2
  30. package/dist/deep-merge.d.mts.map +1 -0
  31. package/dist/deep-merge.mjs +2 -1
  32. package/dist/deep-merge.mjs.map +1 -0
  33. package/dist/delay.cjs +1 -1
  34. package/dist/delay.d.cts +77 -2
  35. package/dist/delay.d.cts.map +1 -0
  36. package/dist/delay.d.mts +77 -2
  37. package/dist/delay.d.mts.map +1 -0
  38. package/dist/delay.mjs +2 -1
  39. package/dist/delay.mjs.map +1 -0
  40. package/dist/errors.cjs +1 -1
  41. package/dist/errors.mjs +2 -1
  42. package/dist/errors.mjs.map +1 -0
  43. package/dist/filter-empty.cjs +1 -1
  44. package/dist/filter-empty.d.cts +5 -2
  45. package/dist/filter-empty.d.cts.map +1 -0
  46. package/dist/filter-empty.d.mts +5 -2
  47. package/dist/filter-empty.d.mts.map +1 -0
  48. package/dist/filter-empty.mjs +2 -1
  49. package/dist/filter-empty.mjs.map +1 -0
  50. package/dist/flatten-object.cjs +1 -1
  51. package/dist/flatten-object.d.cts +35 -2
  52. package/dist/flatten-object.d.cts.map +1 -0
  53. package/dist/flatten-object.d.mts +35 -2
  54. package/dist/flatten-object.d.mts.map +1 -0
  55. package/dist/flatten-object.mjs +2 -1
  56. package/dist/flatten-object.mjs.map +1 -0
  57. package/dist/get-field.cjs +1 -1
  58. package/dist/get-field.d.cts +254 -2
  59. package/dist/get-field.d.cts.map +1 -0
  60. package/dist/get-field.d.mts +254 -2
  61. package/dist/get-field.d.mts.map +1 -0
  62. package/dist/get-field.mjs +2 -1
  63. package/dist/get-field.mjs.map +1 -0
  64. package/dist/get-ordered-by.cjs +1 -1
  65. package/dist/get-ordered-by.d.cts +39 -2
  66. package/dist/get-ordered-by.d.cts.map +1 -0
  67. package/dist/get-ordered-by.d.mts +39 -2
  68. package/dist/get-ordered-by.d.mts.map +1 -0
  69. package/dist/get-ordered-by.mjs +2 -1
  70. package/dist/get-ordered-by.mjs.map +1 -0
  71. package/dist/get-unique.cjs +1 -1
  72. package/dist/get-unique.d.cts +26 -2
  73. package/dist/get-unique.d.cts.map +1 -0
  74. package/dist/get-unique.d.mts +26 -2
  75. package/dist/get-unique.d.mts.map +1 -0
  76. package/dist/get-unique.mjs +2 -1
  77. package/dist/get-unique.mjs.map +1 -0
  78. package/dist/identity.cjs +1 -1
  79. package/dist/identity.d.cts +18 -2
  80. package/dist/identity.d.cts.map +1 -0
  81. package/dist/identity.d.mts +18 -2
  82. package/dist/identity.d.mts.map +1 -0
  83. package/dist/identity.mjs +2 -1
  84. package/dist/identity.mjs.map +1 -0
  85. package/dist/index.cjs +1 -1
  86. package/dist/index.d.cts +31 -31
  87. package/dist/index.d.mts +31 -31
  88. package/dist/index.mjs +1 -1
  89. package/dist/is-equal.cjs +1 -1
  90. package/dist/is-equal.d.cts +22 -2
  91. package/dist/is-equal.d.cts.map +1 -0
  92. package/dist/is-equal.d.mts +22 -2
  93. package/dist/is-equal.d.mts.map +1 -0
  94. package/dist/is-equal.mjs +2 -1
  95. package/dist/is-equal.mjs.map +1 -0
  96. package/dist/lru-cache.cjs +1 -1
  97. package/dist/lru-cache.d.cts +103 -2
  98. package/dist/lru-cache.d.cts.map +1 -0
  99. package/dist/lru-cache.d.mts +103 -2
  100. package/dist/lru-cache.d.mts.map +1 -0
  101. package/dist/lru-cache.mjs +2 -1
  102. package/dist/lru-cache.mjs.map +1 -0
  103. package/dist/match-sorter.cjs +1 -1
  104. package/dist/match-sorter.d.cts +78 -2
  105. package/dist/match-sorter.d.cts.map +1 -0
  106. package/dist/match-sorter.d.mts +78 -2
  107. package/dist/match-sorter.d.mts.map +1 -0
  108. package/dist/match-sorter.mjs +2 -1
  109. package/dist/match-sorter.mjs.map +1 -0
  110. package/dist/memoize.cjs +1 -1
  111. package/dist/memoize.d.cts +11 -2
  112. package/dist/memoize.d.cts.map +1 -0
  113. package/dist/memoize.d.mts +11 -2
  114. package/dist/memoize.d.mts.map +1 -0
  115. package/dist/memoize.mjs +2 -1
  116. package/dist/memoize.mjs.map +1 -0
  117. package/dist/mutex.cjs +1 -1
  118. package/dist/mutex.d.cts +72 -2
  119. package/dist/mutex.d.cts.map +1 -0
  120. package/dist/mutex.d.mts +72 -2
  121. package/dist/mutex.d.mts.map +1 -0
  122. package/dist/mutex.mjs +2 -1
  123. package/dist/mutex.mjs.map +1 -0
  124. package/dist/noop.cjs +1 -1
  125. package/dist/noop.d.cts +22 -2
  126. package/dist/noop.d.cts.map +1 -0
  127. package/dist/noop.d.mts +22 -2
  128. package/dist/noop.d.mts.map +1 -0
  129. package/dist/noop.mjs +2 -1
  130. package/dist/noop.mjs.map +1 -0
  131. package/dist/omit.cjs +1 -1
  132. package/dist/omit.d.cts +22 -2
  133. package/dist/omit.d.cts.map +1 -0
  134. package/dist/omit.d.mts +22 -2
  135. package/dist/omit.d.mts.map +1 -0
  136. package/dist/omit.mjs +2 -1
  137. package/dist/omit.mjs.map +1 -0
  138. package/dist/once.cjs +1 -1
  139. package/dist/once.d.cts +13 -2
  140. package/dist/once.d.cts.map +1 -0
  141. package/dist/once.d.mts +13 -2
  142. package/dist/once.d.mts.map +1 -0
  143. package/dist/once.mjs +2 -1
  144. package/dist/once.mjs.map +1 -0
  145. package/dist/pick.cjs +1 -1
  146. package/dist/pick.d.cts +22 -2
  147. package/dist/pick.d.cts.map +1 -0
  148. package/dist/pick.d.mts +22 -2
  149. package/dist/pick.d.mts.map +1 -0
  150. package/dist/pick.mjs +2 -1
  151. package/dist/pick.mjs.map +1 -0
  152. package/dist/remove-accents.cjs +1 -1
  153. package/dist/remove-accents.d.cts +12 -2
  154. package/dist/remove-accents.d.cts.map +1 -0
  155. package/dist/remove-accents.d.mts +12 -2
  156. package/dist/remove-accents.d.mts.map +1 -0
  157. package/dist/remove-accents.mjs +2 -1
  158. package/dist/remove-accents.mjs.map +1 -0
  159. package/dist/remove-empty-items.cjs +1 -1
  160. package/dist/remove-empty-items.d.cts +11 -2
  161. package/dist/remove-empty-items.d.cts.map +1 -0
  162. package/dist/remove-empty-items.d.mts +11 -2
  163. package/dist/remove-empty-items.d.mts.map +1 -0
  164. package/dist/remove-empty-items.mjs +2 -1
  165. package/dist/remove-empty-items.mjs.map +1 -0
  166. package/dist/semaphore.cjs +1 -1
  167. package/dist/semaphore.d.cts +86 -2
  168. package/dist/semaphore.d.cts.map +1 -0
  169. package/dist/semaphore.d.mts +86 -2
  170. package/dist/semaphore.d.mts.map +1 -0
  171. package/dist/semaphore.mjs +2 -1
  172. package/dist/semaphore.mjs.map +1 -0
  173. package/dist/set-field.cjs +1 -1
  174. package/dist/set-field.d.cts +16 -2
  175. package/dist/set-field.d.cts.map +1 -0
  176. package/dist/set-field.d.mts +16 -2
  177. package/dist/set-field.d.mts.map +1 -0
  178. package/dist/set-field.mjs +2 -1
  179. package/dist/set-field.mjs.map +1 -0
  180. package/dist/throttle.cjs +1 -1
  181. package/dist/throttle.d.cts +32 -2
  182. package/dist/throttle.d.cts.map +1 -0
  183. package/dist/throttle.d.mts +32 -2
  184. package/dist/throttle.d.mts.map +1 -0
  185. package/dist/throttle.mjs +2 -1
  186. package/dist/throttle.mjs.map +1 -0
  187. package/dist/timeout.cjs +1 -1
  188. package/dist/timeout.d.cts +12 -2
  189. package/dist/timeout.d.cts.map +1 -0
  190. package/dist/timeout.d.mts +12 -2
  191. package/dist/timeout.d.mts.map +1 -0
  192. package/dist/timeout.mjs +2 -1
  193. package/dist/timeout.mjs.map +1 -0
  194. package/dist/to-deep-key.cjs +1 -1
  195. package/dist/to-deep-key.d.cts +42 -2
  196. package/dist/to-deep-key.d.cts.map +1 -0
  197. package/dist/to-deep-key.d.mts +42 -2
  198. package/dist/to-deep-key.d.mts.map +1 -0
  199. package/dist/to-deep-key.mjs +2 -1
  200. package/dist/to-deep-key.mjs.map +1 -0
  201. package/dist/to-path.cjs +1 -1
  202. package/dist/to-path.d.cts +24 -2
  203. package/dist/to-path.d.cts.map +1 -0
  204. package/dist/to-path.d.mts +24 -2
  205. package/dist/to-path.d.mts.map +1 -0
  206. package/dist/to-path.mjs +2 -1
  207. package/dist/to-path.mjs.map +1 -0
  208. package/dist/type-checks/src/get-object-tag.cjs +1 -0
  209. package/dist/type-checks/src/get-object-tag.mjs +2 -0
  210. package/dist/type-checks/src/get-object-tag.mjs.map +1 -0
  211. package/dist/type-checks/src/is-deep-key.cjs +1 -0
  212. package/dist/type-checks/src/is-deep-key.mjs +2 -0
  213. package/dist/type-checks/src/is-deep-key.mjs.map +1 -0
  214. package/dist/type-checks/src/is-empty.cjs +1 -0
  215. package/dist/type-checks/src/is-empty.mjs +2 -0
  216. package/dist/type-checks/src/is-empty.mjs.map +1 -0
  217. package/dist/type-checks/src/is-function.cjs +1 -0
  218. package/dist/type-checks/src/is-function.mjs +2 -0
  219. package/dist/type-checks/src/is-function.mjs.map +1 -0
  220. package/dist/type-checks/src/is-mergeable-object.cjs +1 -0
  221. package/dist/type-checks/src/is-mergeable-object.mjs +2 -0
  222. package/dist/type-checks/src/is-mergeable-object.mjs.map +1 -0
  223. package/dist/type-checks/src/is-non-null-object.cjs +1 -0
  224. package/dist/type-checks/src/is-non-null-object.mjs +2 -0
  225. package/dist/type-checks/src/is-non-null-object.mjs.map +1 -0
  226. package/dist/type-checks/src/is-null.cjs +1 -0
  227. package/dist/type-checks/src/is-null.mjs +2 -0
  228. package/dist/type-checks/src/is-null.mjs.map +1 -0
  229. package/dist/type-checks/src/is-number.cjs +1 -0
  230. package/dist/type-checks/src/is-number.mjs +2 -0
  231. package/dist/type-checks/src/is-number.mjs.map +1 -0
  232. package/dist/type-checks/src/is-object-index.cjs +1 -0
  233. package/dist/type-checks/src/is-object-index.mjs +2 -0
  234. package/dist/type-checks/src/is-object-index.mjs.map +1 -0
  235. package/dist/type-checks/src/is-object.cjs +1 -0
  236. package/dist/type-checks/src/is-object.mjs +2 -0
  237. package/dist/type-checks/src/is-object.mjs.map +1 -0
  238. package/dist/type-checks/src/is-plain-object.cjs +1 -0
  239. package/dist/type-checks/src/is-plain-object.mjs +2 -0
  240. package/dist/type-checks/src/is-plain-object.mjs.map +1 -0
  241. package/dist/type-checks/src/is-primitive.cjs +1 -0
  242. package/dist/type-checks/src/is-primitive.mjs +2 -0
  243. package/dist/type-checks/src/is-primitive.mjs.map +1 -0
  244. package/dist/type-checks/src/is-react-element.cjs +1 -0
  245. package/dist/type-checks/src/is-react-element.mjs +2 -0
  246. package/dist/type-checks/src/is-react-element.mjs.map +1 -0
  247. package/dist/type-checks/src/is-set-string.cjs +1 -0
  248. package/dist/type-checks/src/is-set-string.mjs +2 -0
  249. package/dist/type-checks/src/is-set-string.mjs.map +1 -0
  250. package/dist/type-checks/src/is-set.cjs +1 -0
  251. package/dist/type-checks/src/is-set.mjs +2 -0
  252. package/dist/type-checks/src/is-set.mjs.map +1 -0
  253. package/dist/{is-string-CvmuuuDj.mjs → type-checks/src/is-string.cjs} +1 -2
  254. package/dist/type-checks/src/is-string.mjs +2 -0
  255. package/dist/type-checks/src/is-string.mjs.map +1 -0
  256. package/dist/type-checks/src/is-typed-array.cjs +1 -0
  257. package/dist/type-checks/src/is-typed-array.mjs +2 -0
  258. package/dist/type-checks/src/is-typed-array.mjs.map +1 -0
  259. package/dist/type-checks/src/is-undefined.cjs +1 -0
  260. package/dist/type-checks/src/is-undefined.mjs +2 -0
  261. package/dist/type-checks/src/is-undefined.mjs.map +1 -0
  262. package/dist/type-checks/src/property-exists.cjs +1 -0
  263. package/dist/type-checks/src/property-exists.mjs +2 -0
  264. package/dist/type-checks/src/property-exists.mjs.map +1 -0
  265. package/dist/types/src/base.d.cts +6 -0
  266. package/dist/types/src/base.d.cts.map +1 -0
  267. package/dist/types/src/base.d.mts +6 -0
  268. package/dist/types/src/base.d.mts.map +1 -0
  269. package/dist/types/src/json.d.cts +28 -0
  270. package/dist/types/src/json.d.cts.map +1 -0
  271. package/dist/types/src/json.d.mts +28 -0
  272. package/dist/types/src/json.d.mts.map +1 -0
  273. package/dist/{object-CHmrmQna.d.mts → types/src/object.d.cts} +6 -40
  274. package/dist/types/src/object.d.cts.map +1 -0
  275. package/dist/{object-D8HGAGMr.d.cts → types/src/object.d.mts} +6 -40
  276. package/dist/types/src/object.d.mts.map +1 -0
  277. package/dist/types/src/string.d.cts +6 -0
  278. package/dist/types/src/string.d.cts.map +1 -0
  279. package/dist/types/src/string.d.mts +6 -0
  280. package/dist/types/src/string.d.mts.map +1 -0
  281. package/dist/types/src/utilities.d.cts +7 -0
  282. package/dist/types/src/utilities.d.cts.map +1 -0
  283. package/dist/types/src/utilities.d.mts +7 -0
  284. package/dist/types/src/utilities.d.mts.map +1 -0
  285. package/dist/unflatten-object.cjs +1 -1
  286. package/dist/unflatten-object.d.cts +35 -2
  287. package/dist/unflatten-object.d.cts.map +1 -0
  288. package/dist/unflatten-object.d.mts +35 -2
  289. package/dist/unflatten-object.d.mts.map +1 -0
  290. package/dist/unflatten-object.mjs +2 -1
  291. package/dist/unflatten-object.mjs.map +1 -0
  292. package/dist/union.cjs +1 -1
  293. package/dist/union.d.cts +24 -2
  294. package/dist/union.d.cts.map +1 -0
  295. package/dist/union.d.mts +24 -2
  296. package/dist/union.d.mts.map +1 -0
  297. package/dist/union.mjs +2 -1
  298. package/dist/union.mjs.map +1 -0
  299. package/dist/with-timeout.cjs +1 -1
  300. package/dist/with-timeout.d.cts +24 -2
  301. package/dist/with-timeout.d.cts.map +1 -0
  302. package/dist/with-timeout.d.mts +24 -2
  303. package/dist/with-timeout.d.mts.map +1 -0
  304. package/dist/with-timeout.mjs +2 -1
  305. package/dist/with-timeout.mjs.map +1 -0
  306. package/package.json +3 -3
  307. package/dist/arg-identity-BIir8uzO.d.mts +0 -14
  308. package/dist/arg-identity-BIir8uzO.d.mts.map +0 -1
  309. package/dist/arg-identity-BfviduMt.mjs +0 -2
  310. package/dist/arg-identity-BfviduMt.mjs.map +0 -1
  311. package/dist/arg-identity-C-pVjd0u.d.cts +0 -14
  312. package/dist/arg-identity-C-pVjd0u.d.cts.map +0 -1
  313. package/dist/arg-identity-dlKw6BsD.cjs +0 -1
  314. package/dist/debounce-C5O3IDKy.mjs +0 -2
  315. package/dist/debounce-C5O3IDKy.mjs.map +0 -1
  316. package/dist/debounce-CIMf8-Yr.d.mts +0 -47
  317. package/dist/debounce-CIMf8-Yr.d.mts.map +0 -1
  318. package/dist/debounce-CLb-VvJv.d.cts +0 -47
  319. package/dist/debounce-CLb-VvJv.d.cts.map +0 -1
  320. package/dist/debounce-SIYbhEOF.cjs +0 -1
  321. package/dist/deep-clone-BlN5QTtW.mjs +0 -2
  322. package/dist/deep-clone-BlN5QTtW.mjs.map +0 -1
  323. package/dist/deep-clone-CoUy-Hrt.cjs +0 -1
  324. package/dist/deep-clone-CpLJcTgz.d.mts +0 -65
  325. package/dist/deep-clone-CpLJcTgz.d.mts.map +0 -1
  326. package/dist/deep-clone-jRNy1xoj.d.cts +0 -65
  327. package/dist/deep-clone-jRNy1xoj.d.cts.map +0 -1
  328. package/dist/deep-merge-BDZ6c79O.mjs +0 -2
  329. package/dist/deep-merge-BDZ6c79O.mjs.map +0 -1
  330. package/dist/deep-merge-BpFjvumi.cjs +0 -1
  331. package/dist/deep-merge-C9qDSleg.d.cts +0 -26
  332. package/dist/deep-merge-C9qDSleg.d.cts.map +0 -1
  333. package/dist/deep-merge-eCT712Cv.d.mts +0 -26
  334. package/dist/deep-merge-eCT712Cv.d.mts.map +0 -1
  335. package/dist/delay-Bd_sGzMj.d.mts +0 -77
  336. package/dist/delay-Bd_sGzMj.d.mts.map +0 -1
  337. package/dist/delay-UwR_fCwt.cjs +0 -1
  338. package/dist/delay-VkcrQf1l.d.cts +0 -77
  339. package/dist/delay-VkcrQf1l.d.cts.map +0 -1
  340. package/dist/delay-wdNbY6sk.mjs +0 -2
  341. package/dist/delay-wdNbY6sk.mjs.map +0 -1
  342. package/dist/errors-BXYY8wXj.cjs +0 -1
  343. package/dist/errors-DWX9ET_b.mjs +0 -2
  344. package/dist/errors-DWX9ET_b.mjs.map +0 -1
  345. package/dist/filter-empty-5_nMg04e.cjs +0 -1
  346. package/dist/filter-empty-BMtd0K07.d.mts +0 -5
  347. package/dist/filter-empty-BMtd0K07.d.mts.map +0 -1
  348. package/dist/filter-empty-C2fq9M7o.d.cts +0 -5
  349. package/dist/filter-empty-C2fq9M7o.d.cts.map +0 -1
  350. package/dist/filter-empty-Dsc1ymCj.mjs +0 -2
  351. package/dist/filter-empty-Dsc1ymCj.mjs.map +0 -1
  352. package/dist/flatten-object-Bk2VT-b2.d.mts +0 -35
  353. package/dist/flatten-object-Bk2VT-b2.d.mts.map +0 -1
  354. package/dist/flatten-object-D-EbEZqR.cjs +0 -1
  355. package/dist/flatten-object-DFCZmly9.mjs +0 -2
  356. package/dist/flatten-object-DFCZmly9.mjs.map +0 -1
  357. package/dist/flatten-object-DjaJJaY0.d.cts +0 -35
  358. package/dist/flatten-object-DjaJJaY0.d.cts.map +0 -1
  359. package/dist/get-field-5XqtknPs.d.mts +0 -254
  360. package/dist/get-field-5XqtknPs.d.mts.map +0 -1
  361. package/dist/get-field-D4F_p-Ov.cjs +0 -1
  362. package/dist/get-field-ngQ9O38X.mjs +0 -2
  363. package/dist/get-field-ngQ9O38X.mjs.map +0 -1
  364. package/dist/get-field-oltWWNRO.d.cts +0 -254
  365. package/dist/get-field-oltWWNRO.d.cts.map +0 -1
  366. package/dist/get-object-tag-D53RvMgo.cjs +0 -1
  367. package/dist/get-object-tag-oBoWkttN.mjs +0 -2
  368. package/dist/get-object-tag-oBoWkttN.mjs.map +0 -1
  369. package/dist/get-ordered-by-C45FfW2T.d.mts +0 -39
  370. package/dist/get-ordered-by-C45FfW2T.d.mts.map +0 -1
  371. package/dist/get-ordered-by-CBKKJr4R.mjs +0 -2
  372. package/dist/get-ordered-by-CBKKJr4R.mjs.map +0 -1
  373. package/dist/get-ordered-by-D2Sr6vUN.cjs +0 -1
  374. package/dist/get-ordered-by-DuD7QRma.d.cts +0 -39
  375. package/dist/get-ordered-by-DuD7QRma.d.cts.map +0 -1
  376. package/dist/get-unique-BOiakY6A.cjs +0 -1
  377. package/dist/get-unique-C0SBPUBv.d.cts +0 -26
  378. package/dist/get-unique-C0SBPUBv.d.cts.map +0 -1
  379. package/dist/get-unique-DZ6E1Kvc.d.mts +0 -26
  380. package/dist/get-unique-DZ6E1Kvc.d.mts.map +0 -1
  381. package/dist/get-unique-DzZ7Z34U.mjs +0 -2
  382. package/dist/get-unique-DzZ7Z34U.mjs.map +0 -1
  383. package/dist/identity-B_cGeF8o.d.mts +0 -18
  384. package/dist/identity-B_cGeF8o.d.mts.map +0 -1
  385. package/dist/identity-DBwwvmGU.mjs +0 -2
  386. package/dist/identity-DBwwvmGU.mjs.map +0 -1
  387. package/dist/identity-DRhIvbPG.d.cts +0 -18
  388. package/dist/identity-DRhIvbPG.d.cts.map +0 -1
  389. package/dist/identity-z2xaIqpe.cjs +0 -1
  390. package/dist/is-empty-C7vlSVFD.mjs +0 -2
  391. package/dist/is-empty-C7vlSVFD.mjs.map +0 -1
  392. package/dist/is-empty-DZZDqzjD.cjs +0 -1
  393. package/dist/is-equal-0Z-K2uIG.mjs +0 -2
  394. package/dist/is-equal-0Z-K2uIG.mjs.map +0 -1
  395. package/dist/is-equal-BJgVhUVS.cjs +0 -1
  396. package/dist/is-equal-BMlMHlVi.d.cts +0 -22
  397. package/dist/is-equal-BMlMHlVi.d.cts.map +0 -1
  398. package/dist/is-equal-Baqurdpn.d.mts +0 -22
  399. package/dist/is-equal-Baqurdpn.d.mts.map +0 -1
  400. package/dist/is-number-BcjxCzDM.cjs +0 -1
  401. package/dist/is-number-bwhfkHlC.mjs +0 -2
  402. package/dist/is-number-bwhfkHlC.mjs.map +0 -1
  403. package/dist/is-plain-object-BQuFhL4M.cjs +0 -1
  404. package/dist/is-plain-object-D8GSMOhY.mjs +0 -2
  405. package/dist/is-plain-object-D8GSMOhY.mjs.map +0 -1
  406. package/dist/is-set-B9o0NIT4.mjs +0 -2
  407. package/dist/is-set-B9o0NIT4.mjs.map +0 -1
  408. package/dist/is-set-ByJOY6h2.cjs +0 -1
  409. package/dist/is-set-string-48_jZFw0.cjs +0 -1
  410. package/dist/is-set-string-Dr1MlMk0.mjs +0 -2
  411. package/dist/is-set-string-Dr1MlMk0.mjs.map +0 -1
  412. package/dist/is-string-CvmuuuDj.mjs.map +0 -1
  413. package/dist/is-string-DPanLeA_.cjs +0 -1
  414. package/dist/lru-cache-CzQ_kKXk.d.mts +0 -103
  415. package/dist/lru-cache-CzQ_kKXk.d.mts.map +0 -1
  416. package/dist/lru-cache-D4VEIgtR.d.cts +0 -103
  417. package/dist/lru-cache-D4VEIgtR.d.cts.map +0 -1
  418. package/dist/lru-cache-DLY_yZRN.mjs +0 -2
  419. package/dist/lru-cache-DLY_yZRN.mjs.map +0 -1
  420. package/dist/lru-cache-DgTSGx5W.cjs +0 -1
  421. package/dist/match-sorter-B9_7YvTo.mjs +0 -2
  422. package/dist/match-sorter-B9_7YvTo.mjs.map +0 -1
  423. package/dist/match-sorter-BjnWjkKu.cjs +0 -1
  424. package/dist/match-sorter-CMYN3GuY.d.cts +0 -78
  425. package/dist/match-sorter-CMYN3GuY.d.cts.map +0 -1
  426. package/dist/match-sorter-DCRerxVe.d.mts +0 -78
  427. package/dist/match-sorter-DCRerxVe.d.mts.map +0 -1
  428. package/dist/memoize-Cr5jFKxi.mjs +0 -2
  429. package/dist/memoize-Cr5jFKxi.mjs.map +0 -1
  430. package/dist/memoize-TyrmWrfR.d.mts +0 -11
  431. package/dist/memoize-TyrmWrfR.d.mts.map +0 -1
  432. package/dist/memoize-qxvbI-0y.cjs +0 -1
  433. package/dist/memoize-tSTYY522.d.cts +0 -11
  434. package/dist/memoize-tSTYY522.d.cts.map +0 -1
  435. package/dist/mutex-CnQQBndt.cjs +0 -1
  436. package/dist/mutex-DAZduiSP.d.mts +0 -72
  437. package/dist/mutex-DAZduiSP.d.mts.map +0 -1
  438. package/dist/mutex-DCyX7B66.d.cts +0 -72
  439. package/dist/mutex-DCyX7B66.d.cts.map +0 -1
  440. package/dist/mutex-TqoKHosg.mjs +0 -2
  441. package/dist/mutex-TqoKHosg.mjs.map +0 -1
  442. package/dist/noop-B7OetrhD.mjs +0 -2
  443. package/dist/noop-B7OetrhD.mjs.map +0 -1
  444. package/dist/noop-BnXKMH6Z.d.mts +0 -22
  445. package/dist/noop-BnXKMH6Z.d.mts.map +0 -1
  446. package/dist/noop-CnJXOCpF.d.cts +0 -22
  447. package/dist/noop-CnJXOCpF.d.cts.map +0 -1
  448. package/dist/noop-Dpf7hIui.cjs +0 -1
  449. package/dist/object-CHmrmQna.d.mts.map +0 -1
  450. package/dist/object-D8HGAGMr.d.cts.map +0 -1
  451. package/dist/omit-A0uVyAS4.cjs +0 -1
  452. package/dist/omit-BROsDK0D.mjs +0 -2
  453. package/dist/omit-BROsDK0D.mjs.map +0 -1
  454. package/dist/omit-D1FKiOYz.d.cts +0 -22
  455. package/dist/omit-D1FKiOYz.d.cts.map +0 -1
  456. package/dist/omit-DpqOAtKt.d.mts +0 -22
  457. package/dist/omit-DpqOAtKt.d.mts.map +0 -1
  458. package/dist/once-DNPPQd3P.d.mts +0 -13
  459. package/dist/once-DNPPQd3P.d.mts.map +0 -1
  460. package/dist/once-DZCwmdkv.cjs +0 -1
  461. package/dist/once-DqmxXwEB.d.cts +0 -13
  462. package/dist/once-DqmxXwEB.d.cts.map +0 -1
  463. package/dist/once-txoW63yJ.mjs +0 -2
  464. package/dist/once-txoW63yJ.mjs.map +0 -1
  465. package/dist/pick-CuXTvXaw.mjs +0 -2
  466. package/dist/pick-CuXTvXaw.mjs.map +0 -1
  467. package/dist/pick-DXREvZBr.d.cts +0 -22
  468. package/dist/pick-DXREvZBr.d.cts.map +0 -1
  469. package/dist/pick-GDOwAh6I.cjs +0 -1
  470. package/dist/pick-ZrWD4de2.d.mts +0 -22
  471. package/dist/pick-ZrWD4de2.d.mts.map +0 -1
  472. package/dist/remove-accents-BFmyvTRZ.mjs +0 -2
  473. package/dist/remove-accents-BFmyvTRZ.mjs.map +0 -1
  474. package/dist/remove-accents-C4C0A2ex.d.mts +0 -12
  475. package/dist/remove-accents-C4C0A2ex.d.mts.map +0 -1
  476. package/dist/remove-accents-CXBUC-Id.cjs +0 -1
  477. package/dist/remove-accents-Yo3-2jWO.d.cts +0 -12
  478. package/dist/remove-accents-Yo3-2jWO.d.cts.map +0 -1
  479. package/dist/remove-empty-items-BglsRCyG.d.cts +0 -11
  480. package/dist/remove-empty-items-BglsRCyG.d.cts.map +0 -1
  481. package/dist/remove-empty-items-BzI9Vid9.mjs +0 -2
  482. package/dist/remove-empty-items-BzI9Vid9.mjs.map +0 -1
  483. package/dist/remove-empty-items-COwdCPHC.d.mts +0 -11
  484. package/dist/remove-empty-items-COwdCPHC.d.mts.map +0 -1
  485. package/dist/remove-empty-items-CjTxJuyS.cjs +0 -1
  486. package/dist/semaphore-4zJqtox8.mjs +0 -2
  487. package/dist/semaphore-4zJqtox8.mjs.map +0 -1
  488. package/dist/semaphore-CsGTxqsW.d.cts +0 -86
  489. package/dist/semaphore-CsGTxqsW.d.cts.map +0 -1
  490. package/dist/semaphore-DkHqPlow.cjs +0 -1
  491. package/dist/semaphore-WaZBtCk5.d.mts +0 -86
  492. package/dist/semaphore-WaZBtCk5.d.mts.map +0 -1
  493. package/dist/set-field-CUgbKEjW.mjs +0 -2
  494. package/dist/set-field-CUgbKEjW.mjs.map +0 -1
  495. package/dist/set-field-CcCiXZNl.d.cts +0 -16
  496. package/dist/set-field-CcCiXZNl.d.cts.map +0 -1
  497. package/dist/set-field-DyvXgpNP.d.mts +0 -16
  498. package/dist/set-field-DyvXgpNP.d.mts.map +0 -1
  499. package/dist/set-field-mr4GkhFb.cjs +0 -1
  500. package/dist/throttle-BOKOTo3m.cjs +0 -1
  501. package/dist/throttle-BWPQuZty.d.cts +0 -32
  502. package/dist/throttle-BWPQuZty.d.cts.map +0 -1
  503. package/dist/throttle-BgU4k6qs.d.mts +0 -32
  504. package/dist/throttle-BgU4k6qs.d.mts.map +0 -1
  505. package/dist/throttle-CYK3F0mZ.mjs +0 -2
  506. package/dist/throttle-CYK3F0mZ.mjs.map +0 -1
  507. package/dist/timeout-43rG9ETK.mjs +0 -2
  508. package/dist/timeout-43rG9ETK.mjs.map +0 -1
  509. package/dist/timeout-CLhwG-oo.d.mts +0 -12
  510. package/dist/timeout-CLhwG-oo.d.mts.map +0 -1
  511. package/dist/timeout-CoYbhliP.cjs +0 -1
  512. package/dist/timeout-DC38jHR8.d.cts +0 -12
  513. package/dist/timeout-DC38jHR8.d.cts.map +0 -1
  514. package/dist/to-deep-key-Cma9aiEz.cjs +0 -1
  515. package/dist/to-deep-key-D8uDBd6T.mjs +0 -2
  516. package/dist/to-deep-key-D8uDBd6T.mjs.map +0 -1
  517. package/dist/to-deep-key-DO-Z0Zjs.d.mts +0 -42
  518. package/dist/to-deep-key-DO-Z0Zjs.d.mts.map +0 -1
  519. package/dist/to-deep-key-DlsE4ziE.d.cts +0 -42
  520. package/dist/to-deep-key-DlsE4ziE.d.cts.map +0 -1
  521. package/dist/to-path-BajxeMmo.d.mts +0 -24
  522. package/dist/to-path-BajxeMmo.d.mts.map +0 -1
  523. package/dist/to-path-CdOFd4od.cjs +0 -1
  524. package/dist/to-path-D2zWXeYc.d.cts +0 -24
  525. package/dist/to-path-D2zWXeYc.d.cts.map +0 -1
  526. package/dist/to-path-Dm1fe-Ix.mjs +0 -2
  527. package/dist/to-path-Dm1fe-Ix.mjs.map +0 -1
  528. package/dist/unflatten-object-C7TE8J80.mjs +0 -2
  529. package/dist/unflatten-object-C7TE8J80.mjs.map +0 -1
  530. package/dist/unflatten-object-CPJIUozj.d.mts +0 -35
  531. package/dist/unflatten-object-CPJIUozj.d.mts.map +0 -1
  532. package/dist/unflatten-object-CvZj41LG.cjs +0 -1
  533. package/dist/unflatten-object-Cvbj7Q__.d.cts +0 -35
  534. package/dist/unflatten-object-Cvbj7Q__.d.cts.map +0 -1
  535. package/dist/union-BMOMEzO-.d.cts +0 -24
  536. package/dist/union-BMOMEzO-.d.cts.map +0 -1
  537. package/dist/union-C-2CRoFc.mjs +0 -2
  538. package/dist/union-C-2CRoFc.mjs.map +0 -1
  539. package/dist/union-D4bbjM2i.d.mts +0 -24
  540. package/dist/union-D4bbjM2i.d.mts.map +0 -1
  541. package/dist/union-EwdcZzNT.cjs +0 -1
  542. package/dist/with-timeout-BPaAIZtS.d.cts +0 -24
  543. package/dist/with-timeout-BPaAIZtS.d.cts.map +0 -1
  544. package/dist/with-timeout-BoZYdcOg.d.mts +0 -24
  545. package/dist/with-timeout-BoZYdcOg.d.mts.map +0 -1
  546. package/dist/with-timeout-CAuUr1ck.mjs +0 -2
  547. package/dist/with-timeout-CAuUr1ck.mjs.map +0 -1
  548. package/dist/with-timeout-CPUBGT4X.cjs +0 -1
@@ -1 +0,0 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,2 +0,0 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);export{e as t};
2
- //# sourceMappingURL=get-object-tag-oBoWkttN.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-object-tag-oBoWkttN.mjs","names":[],"sources":["../../type-checks/src/get-object-tag.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\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n"],"mappings":"AAwBA,MAAa,EAAgB,GACvB,GAAS,KACJ,IAAU,IAAA,GAAY,qBAAuB,gBAE/C,OAAO,UAAU,SAAS,KAAK,EAAM"}
@@ -1,39 +0,0 @@
1
- //#region src/get-ordered-by.d.ts
2
- type Order = "asc" | "desc";
3
- /**
4
- * Sorts an array of objects based on multiple properties and their corresponding order directions.
5
- *
6
- * @remarks
7
- * This function takes an array of objects, an array of keys to sort by, and an array of order directions.
8
- * It returns the sorted array, ordering by each key according to its corresponding direction
9
- * ('asc' for ascending or 'desc' for descending). If values for a key are equal,
10
- * it moves to the next key to determine the order.
11
- *
12
- * @example
13
- * ```typescript
14
- * // Sort an array of objects by 'user' in ascending order and 'age' in descending order.
15
- * const users = [
16
- * { user: 'fred', age: 48 },
17
- * { user: 'barney', age: 34 },
18
- * { user: 'fred', age: 40 },
19
- * { user: 'barney', age: 36 },
20
- * ];
21
- * const result = orderBy(users, ['user', 'age'], ['asc', 'desc']);
22
- * // result will be:
23
- * // [
24
- * // { user: 'barney', age: 36 },
25
- * // { user: 'barney', age: 34 },
26
- * // { user: 'fred', age: 48 },
27
- * // { user: 'fred', age: 40 },
28
- * // ]
29
- * ```
30
- *
31
- * @param collection - The array of objects to be sorted.
32
- * @param keys - An array of keys (properties) by which to sort.
33
- * @param orders - An array of order directions ('asc' for ascending or 'desc' for descending).
34
- * @returns The sorted array.
35
- */
36
- declare function getOrderedBy<T>(collection: T[], keys: (keyof T)[], orders: Order[]): T[];
37
- //#endregion
38
- export { getOrderedBy as t };
39
- //# sourceMappingURL=get-ordered-by-C45FfW2T.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-ordered-by-C45FfW2T.d.mts","names":[],"sources":["../src/get-ordered-by.ts"],"sourcesContent":[],"mappings":";KAiBK,KAAA;;AAmCL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,4BACF,kBACC,cACL,UACP"}
@@ -1,2 +0,0 @@
1
- function e(e,t,n){let r=(e,t,n)=>e<t?n===`asc`?-1:1:e>t?n===`asc`?1:-1:0,i=t.map((e,t)=>n[t]??n.at(-1));return[...e].sort((e,n)=>{for(let[a,o]of t.entries()){let t=i[a],s=r(e[o],n[o],t);if(s!==0)return s}return 0})}export{e as t};
2
- //# sourceMappingURL=get-ordered-by-CBKKJr4R.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-ordered-by-CBKKJr4R.mjs","names":[],"sources":["../src/get-ordered-by.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\ntype Order = \"asc\" | \"desc\";\n\n/**\n * Sorts an array of objects based on multiple properties and their corresponding order directions.\n *\n * @remarks\n * This function takes an array of objects, an array of keys to sort by, and an array of order directions.\n * It returns the sorted array, ordering by each key according to its corresponding direction\n * ('asc' for ascending or 'desc' for descending). If values for a key are equal,\n * it moves to the next key to determine the order.\n *\n * @example\n * ```typescript\n * // Sort an array of objects by 'user' in ascending order and 'age' in descending order.\n * const users = [\n * { user: 'fred', age: 48 },\n * { user: 'barney', age: 34 },\n * { user: 'fred', age: 40 },\n * { user: 'barney', age: 36 },\n * ];\n * const result = orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // result will be:\n * // [\n * // { user: 'barney', age: 36 },\n * // { user: 'barney', age: 34 },\n * // { user: 'fred', age: 48 },\n * // { user: 'fred', age: 40 },\n * // ]\n * ```\n *\n * @param collection - The array of objects to be sorted.\n * @param keys - An array of keys (properties) by which to sort.\n * @param orders - An array of order directions ('asc' for ascending or 'desc' for descending).\n * @returns The sorted array.\n */\nexport function getOrderedBy<T>(\n collection: T[],\n keys: (keyof T)[],\n orders: Order[]\n): T[] {\n const compareValues = (a: T[keyof T], b: T[keyof T], order: Order) => {\n if (a < b) {\n return order === \"asc\" ? -1 : 1;\n }\n if (a > b) {\n return order === \"asc\" ? 1 : -1;\n }\n return 0;\n };\n\n const effectiveOrders = keys.map(\n (_, index) => orders[index] ?? orders.at(-1)\n );\n\n return [...collection].sort((a, b) => {\n for (const [i, key] of keys.entries()) {\n const order = effectiveOrders[i];\n const result = compareValues(a[key], b[key], order!);\n if (result !== 0) {\n return result;\n }\n }\n return 0;\n });\n}\n"],"mappings":"AAoDA,SAAgB,EACd,EACA,EACA,EACK,CACL,IAAM,GAAiB,EAAe,EAAe,IAC/C,EAAI,EACC,IAAU,MAAQ,GAAK,EAE5B,EAAI,EACC,IAAU,MAAQ,EAAI,GAExB,EAGH,EAAkB,EAAK,KAC1B,EAAG,IAAU,EAAO,IAAU,EAAO,GAAG,GAAG,CAC7C,CAED,MAAO,CAAC,GAAG,EAAW,CAAC,MAAM,EAAG,IAAM,CACpC,IAAK,GAAM,CAAC,EAAG,KAAQ,EAAK,SAAS,CAAE,CACrC,IAAM,EAAQ,EAAgB,GACxB,EAAS,EAAc,EAAE,GAAM,EAAE,GAAM,EAAO,CACpD,GAAI,IAAW,EACb,OAAO,EAGX,MAAO,IACP"}
@@ -1 +0,0 @@
1
- function e(e,t,n){let r=(e,t,n)=>e<t?n===`asc`?-1:1:e>t?n===`asc`?1:-1:0,i=t.map((e,t)=>n[t]??n.at(-1));return[...e].sort((e,n)=>{for(let[a,o]of t.entries()){let t=i[a],s=r(e[o],n[o],t);if(s!==0)return s}return 0})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,39 +0,0 @@
1
- //#region src/get-ordered-by.d.ts
2
- type Order = "asc" | "desc";
3
- /**
4
- * Sorts an array of objects based on multiple properties and their corresponding order directions.
5
- *
6
- * @remarks
7
- * This function takes an array of objects, an array of keys to sort by, and an array of order directions.
8
- * It returns the sorted array, ordering by each key according to its corresponding direction
9
- * ('asc' for ascending or 'desc' for descending). If values for a key are equal,
10
- * it moves to the next key to determine the order.
11
- *
12
- * @example
13
- * ```typescript
14
- * // Sort an array of objects by 'user' in ascending order and 'age' in descending order.
15
- * const users = [
16
- * { user: 'fred', age: 48 },
17
- * { user: 'barney', age: 34 },
18
- * { user: 'fred', age: 40 },
19
- * { user: 'barney', age: 36 },
20
- * ];
21
- * const result = orderBy(users, ['user', 'age'], ['asc', 'desc']);
22
- * // result will be:
23
- * // [
24
- * // { user: 'barney', age: 36 },
25
- * // { user: 'barney', age: 34 },
26
- * // { user: 'fred', age: 48 },
27
- * // { user: 'fred', age: 40 },
28
- * // ]
29
- * ```
30
- *
31
- * @param collection - The array of objects to be sorted.
32
- * @param keys - An array of keys (properties) by which to sort.
33
- * @param orders - An array of order directions ('asc' for ascending or 'desc' for descending).
34
- * @returns The sorted array.
35
- */
36
- declare function getOrderedBy<T>(collection: T[], keys: (keyof T)[], orders: Order[]): T[];
37
- //#endregion
38
- export { getOrderedBy as t };
39
- //# sourceMappingURL=get-ordered-by-DuD7QRma.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-ordered-by-DuD7QRma.d.cts","names":[],"sources":["../src/get-ordered-by.ts"],"sourcesContent":[],"mappings":";KAiBK,KAAA;;AAmCL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,4BACF,kBACC,cACL,UACP"}
@@ -1 +0,0 @@
1
- const e=e=>[...new Set(e)];function t(e,t=e=>e){let n=new Map;for(let r of e){let e=t(r);n.has(e)||n.set(e,r)}return[...n.values()]}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,26 +0,0 @@
1
- //#region src/get-unique.d.ts
2
- /**
3
- * Returns an array of unique values from the given array.
4
- *
5
- * @param arr - The array to get unique values from.
6
- * @returns An array of unique values.
7
- */
8
- declare const getUnique: <T = any>(arr: T[]) => T[];
9
- /**
10
- * Returns a new array containing only the unique elements from the original array,
11
- * based on the values returned by the mapper function.
12
- *
13
- * @example
14
- * ```ts
15
- * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);
16
- * // [1.2, 2.1, 3.2, 5.7, 7.19]
17
- * ```
18
- *
19
- * @param arr - The array to process.
20
- * @param mapper - The function used to convert the array elements.
21
- * @returns A new array containing only the unique elements from the original array, based on the values returned by the mapper function.
22
- */
23
- declare function getUniqueBy<T, U>(arr: readonly T[], mapper?: (item: T) => U): T[];
24
- //#endregion
25
- export { getUniqueBy as n, getUnique as t };
26
- //# sourceMappingURL=get-unique-C0SBPUBv.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-unique-C0SBPUBv.d.cts","names":[],"sources":["../src/get-unique.ts"],"sourcesContent":[],"mappings":";;AAwBA;AAkBA;;;;AAGG,cArBU,SAqBV,EAAA,CAAA,IAAA,GAAA,CAAA,CAAA,GAAA,EArBqC,CAqBrC,EAAA,EAAA,GArB2C,CAqB3C,EAAA;;;;;;;;;;;;;;;iBAHa,gCACA,qBACC,MAAM,IACpB"}
@@ -1,26 +0,0 @@
1
- //#region src/get-unique.d.ts
2
- /**
3
- * Returns an array of unique values from the given array.
4
- *
5
- * @param arr - The array to get unique values from.
6
- * @returns An array of unique values.
7
- */
8
- declare const getUnique: <T = any>(arr: T[]) => T[];
9
- /**
10
- * Returns a new array containing only the unique elements from the original array,
11
- * based on the values returned by the mapper function.
12
- *
13
- * @example
14
- * ```ts
15
- * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);
16
- * // [1.2, 2.1, 3.2, 5.7, 7.19]
17
- * ```
18
- *
19
- * @param arr - The array to process.
20
- * @param mapper - The function used to convert the array elements.
21
- * @returns A new array containing only the unique elements from the original array, based on the values returned by the mapper function.
22
- */
23
- declare function getUniqueBy<T, U>(arr: readonly T[], mapper?: (item: T) => U): T[];
24
- //#endregion
25
- export { getUniqueBy as n, getUnique as t };
26
- //# sourceMappingURL=get-unique-DZ6E1Kvc.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-unique-DZ6E1Kvc.d.mts","names":[],"sources":["../src/get-unique.ts"],"sourcesContent":[],"mappings":";;AAwBA;AAkBA;;;;AAGG,cArBU,SAqBV,EAAA,CAAA,IAAA,GAAA,CAAA,CAAA,GAAA,EArBqC,CAqBrC,EAAA,EAAA,GArB2C,CAqB3C,EAAA;;;;;;;;;;;;;;;iBAHa,gCACA,qBACC,MAAM,IACpB"}
@@ -1,2 +0,0 @@
1
- const e=e=>[...new Set(e)];function t(e,t=e=>e){let n=new Map;for(let r of e){let e=t(r);n.has(e)||n.set(e,r)}return[...n.values()]}export{t as n,e as t};
2
- //# sourceMappingURL=get-unique-DzZ7Z34U.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-unique-DzZ7Z34U.mjs","names":[],"sources":["../src/get-unique.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\n/**\n * Returns an array of unique values from the given array.\n *\n * @param arr - The array to get unique values from.\n * @returns An array of unique values.\n */\nexport const getUnique = <T = any>(arr: T[]): T[] => {\n return [...new Set(arr)];\n};\n\n/**\n * Returns a new array containing only the unique elements from the original array,\n * based on the values returned by the mapper function.\n *\n * @example\n * ```ts\n * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);\n * // [1.2, 2.1, 3.2, 5.7, 7.19]\n * ```\n *\n * @param arr - The array to process.\n * @param mapper - The function used to convert the array elements.\n * @returns A new array containing only the unique elements from the original array, based on the values returned by the mapper function.\n */\nexport function getUniqueBy<T, U>(\n arr: readonly T[],\n mapper: (item: T) => U = item => item as unknown as U\n): T[] {\n const map = new Map<U, T>();\n\n for (const item of arr) {\n const key = mapper(item);\n\n if (!map.has(key)) {\n map.set(key, item);\n }\n }\n\n return [...map.values()];\n}\n"],"mappings":"AAwBA,MAAa,EAAsB,GAC1B,CAAC,GAAG,IAAI,IAAI,EAAI,CAAC,CAiB1B,SAAgB,EACd,EACA,EAAyB,GAAQ,EAC5B,CACL,IAAM,EAAM,IAAI,IAEhB,IAAK,IAAM,KAAQ,EAAK,CACtB,IAAM,EAAM,EAAO,EAAK,CAEnB,EAAI,IAAI,EAAI,EACf,EAAI,IAAI,EAAK,EAAK,CAItB,MAAO,CAAC,GAAG,EAAI,QAAQ,CAAC"}
@@ -1,18 +0,0 @@
1
- //#region src/identity.d.ts
2
- /**
3
- * Returns the input value unchanged.
4
- *
5
- * @example
6
- * ```ts
7
- * identity(5); // Returns 5
8
- * identity('hello'); // Returns 'hello'
9
- * identity({ key: 'value' }); // Returns { key: 'value' }
10
- * ```
11
- *
12
- * @param x - The value to be returned.
13
- * @returns The input value.
14
- */
15
- declare function identity<T>(x: T): T;
16
- //#endregion
17
- export { identity as t };
18
- //# sourceMappingURL=identity-B_cGeF8o.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-B_cGeF8o.d.mts","names":[],"sources":["../src/identity.ts"],"sourcesContent":[],"mappings":";;AA8BA;;;;;;;;;;;;iBAAgB,eAAe,IAAI"}
@@ -1,2 +0,0 @@
1
- function e(e){return e}export{e as t};
2
- //# sourceMappingURL=identity-DBwwvmGU.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-DBwwvmGU.mjs","names":[],"sources":["../src/identity.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\n/**\n * Returns the input value unchanged.\n *\n * @example\n * ```ts\n * identity(5); // Returns 5\n * identity('hello'); // Returns 'hello'\n * identity({ key: 'value' }); // Returns { key: 'value' }\n * ```\n *\n * @param x - The value to be returned.\n * @returns The input value.\n */\nexport function identity<T>(x: T): T {\n return x;\n}\n"],"mappings":"AA8BA,SAAgB,EAAY,EAAS,CACnC,OAAO"}
@@ -1,18 +0,0 @@
1
- //#region src/identity.d.ts
2
- /**
3
- * Returns the input value unchanged.
4
- *
5
- * @example
6
- * ```ts
7
- * identity(5); // Returns 5
8
- * identity('hello'); // Returns 'hello'
9
- * identity({ key: 'value' }); // Returns { key: 'value' }
10
- * ```
11
- *
12
- * @param x - The value to be returned.
13
- * @returns The input value.
14
- */
15
- declare function identity<T>(x: T): T;
16
- //#endregion
17
- export { identity as t };
18
- //# sourceMappingURL=identity-DRhIvbPG.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-DRhIvbPG.d.cts","names":[],"sources":["../src/identity.ts"],"sourcesContent":[],"mappings":";;AA8BA;;;;;;;;;;;;iBAAgB,eAAe,IAAI"}
@@ -1 +0,0 @@
1
- function e(e){return e}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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}});
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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,22 +0,0 @@
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-BMlMHlVi.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-equal-BMlMHlVi.d.cts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";;AA8JA;;;;;;;;;;;;;;;;iBAAgB,OAAA"}
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-equal-Baqurdpn.d.mts","names":[],"sources":["../src/is-equal.ts"],"sourcesContent":[],"mappings":";;AA8JA;;;;;;;;;;;;;;;;iBAAgB,OAAA"}
@@ -1 +0,0 @@
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}});
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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}});
@@ -1,2 +0,0 @@
1
- import{t as e}from"./get-object-tag-oBoWkttN.mjs";const t=e=>typeof e==`object`&&!!e,n=n=>{if(!t(n)||e(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};export{n as t};
2
- //# sourceMappingURL=is-plain-object-D8GSMOhY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object-D8GSMOhY.mjs","names":[],"sources":["../../type-checks/src/is-plain-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 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 { PlainObject } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @example\n * ```typescript\n * isObjectLike({})\n * // => true\n *\n * isObjectLike([1, 2, 3])\n * // => true\n *\n * isObjectLike(Function)\n * // => false\n *\n * isObjectLike(null)\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `value` is object-like, else `false`.\n */\nexport const isObjectLike = (obj: unknown) => {\n return typeof obj === \"object\" && obj !== null;\n};\n\n/**\n * Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @example\n * ```typescript\n * function Foo() {\n * this.a = 1\n * }\n *\n * isPlainObject(new Foo)\n * // => false\n *\n * isPlainObject([1, 2, 3])\n * // => false\n *\n * isPlainObject({ 'x': 0, 'y': 0 })\n * // => true\n *\n * isPlainObject(Object.create(null))\n * // => true\n * ```\n *\n * @param obj - The value to check.\n * @returns Returns `true` if `obj` is a plain object, else `false`.\n */\nexport const isPlainObject = (obj: unknown): obj is PlainObject => {\n if (!isObjectLike(obj) || getObjectTag(obj) !== \"[object Object]\") {\n return false;\n }\n if (Object.getPrototypeOf(obj) === null) {\n return true;\n }\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto;\n};\n"],"mappings":"kDA2CA,MAAa,EAAgB,GACpB,OAAO,GAAQ,YAAY,EA4BvB,EAAiB,GAAqC,CACjE,GAAI,CAAC,EAAa,EAAI,EAAI,EAAa,EAAI,GAAK,kBAC9C,MAAO,GAET,GAAI,OAAO,eAAe,EAAI,GAAK,KACjC,MAAO,GAET,IAAI,EAAQ,EACZ,KAAO,OAAO,eAAe,EAAM,GAAK,MACtC,EAAQ,OAAO,eAAe,EAAM,CAEtC,OAAO,OAAO,eAAe,EAAI,GAAK"}
@@ -1,2 +0,0 @@
1
- import{t as e}from"./is-empty-C7vlSVFD.mjs";const t=t=>{try{return!e(t)}catch{return!1}};export{t};
2
- //# sourceMappingURL=is-set-B9o0NIT4.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-set-B9o0NIT4.mjs","names":[],"sources":["../../type-checks/src/is-set.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 { isEmpty } from \"./is-empty\";\n\n/**\n * The inverse of the `isEmpty` function\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`\n */\nexport const isSet = (value: unknown): value is NonNullable<unknown> => {\n try {\n return !isEmpty(value);\n } catch {\n return false;\n }\n};\n"],"mappings":"4CA0BA,MAAa,EAAS,GAAkD,CACtE,GAAI,CACF,MAAO,CAAC,EAAQ,EAAM,MAChB,CACN,MAAO"}
@@ -1 +0,0 @@
1
- const e=require(`./is-empty-DZZDqzjD.cjs`),t=t=>{try{return!e.t(t)}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1 +0,0 @@
1
- const e=require(`./is-set-ByJOY6h2.cjs`),t=require(`./is-string-DPanLeA_.cjs`),n=n=>{try{return e.t(n)&&t.t(n)&&n.length>0}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,2 +0,0 @@
1
- import{t as e}from"./is-set-B9o0NIT4.mjs";import{t}from"./is-string-CvmuuuDj.mjs";const n=n=>{try{return e(n)&&t(n)&&n.length>0}catch{return!1}};export{n as t};
2
- //# sourceMappingURL=is-set-string-Dr1MlMk0.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-set-string-Dr1MlMk0.mjs","names":[],"sources":["../../type-checks/src/is-set-string.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 { isSet } from \"./is-set\";\nimport { isString } from \"./is-string\";\n\n/**\n * Determine if the type is string and is not empty (length greater than zero)\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `string` and length greater than zero\n */\nexport const isSetString = (value: unknown): value is NonNullable<string> => {\n try {\n return isSet(value) && isString(value) && value.length > 0;\n } catch {\n return false;\n }\n};\n"],"mappings":"kFA2BA,MAAa,EAAe,GAAiD,CAC3E,GAAI,CACF,OAAO,EAAM,EAAM,EAAI,EAAS,EAAM,EAAI,EAAM,OAAS,OACnD,CACN,MAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-string-CvmuuuDj.mjs","names":[],"sources":["../../type-checks/src/is-string.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\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n"],"mappings":"AAkBA,MAAa,EAAY,GAAoC,CAC3D,GAAI,CACF,OAAO,OAAO,GAAU,cAClB,CACN,MAAO"}
@@ -1 +0,0 @@
1
- const e=e=>{try{return typeof e==`string`}catch{return!1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,103 +0,0 @@
1
- //#region src/lru-cache.d.ts
2
- /**
3
- * LRU (Least Recently Used) Cache implementation using a doubly-linked list
4
- * and hash map for O(1) operations.
5
- *
6
- * Algorithm:
7
- * - Uses a doubly-linked list to maintain access order (most recent at head)
8
- * - Hash map provides O(1) key-to-node lookup
9
- * - Sentinel head/tail nodes simplify edge case handling
10
- * - Size-based eviction supports custom size calculation functions
11
- *
12
- * Data Structure Layout:
13
- * HEAD \<-\> [most recent] \<-\> ... \<-\> [least recent] \<-\> TAIL
14
- *
15
- * Operations:
16
- * - get(): Move accessed node to head (mark as most recent)
17
- * - set(): Add new node at head, evict from tail if over capacity
18
- * - Eviction: Remove least recent node (tail.prev) when size exceeds limit
19
- */
20
- declare class LRUCache<T> {
21
- private readonly cache;
22
- private readonly head;
23
- private readonly tail;
24
- private totalSize;
25
- private readonly maxSize;
26
- private readonly calculateSize;
27
- constructor(maxSize: number, calculateSize?: (value: T) => number);
28
- /**
29
- * Adds a node immediately after the head (marks as most recently used). Used when inserting new items or when an item is accessed. **PRECONDITION:** node must be disconnected (prev/next should be null)
30
- *
31
- * @param node - The node to add after the head.
32
- */
33
- private addToHead;
34
- /**
35
- * Removes a node from its current position in the doubly-linked list. Updates the prev/next pointers of adjacent nodes to maintain list integrity. **PRECONDITION:** node must be connected (prev/next are non-null)
36
- *
37
- * @param node - The node to remove from the list.
38
- */
39
- private removeNode;
40
- /**
41
- * Moves an existing node to the head position (marks as most recently used). This is the core LRU operation - accessed items become most recent.
42
- *
43
- * @param node - The node to move to the head.
44
- */
45
- private moveToHead;
46
- /**
47
- * Removes and returns the least recently used node (the one before tail). This is called during eviction when the cache exceeds capacity. **PRECONDITION:** cache is not empty (ensured by caller)
48
- *
49
- * @returns The removed least recently used node.
50
- */
51
- private removeTail;
52
- /**
53
- * Sets a key-value pair in the cache.
54
- * If the key exists, updates the value and moves to head.
55
- * If new, adds at head and evicts from tail if necessary.
56
- *
57
- * Time Complexity:
58
- * - O(1) for uniform item sizes
59
- * - O(k) where k is the number of items evicted (can be O(N) for variable sizes)
60
- *
61
- * @param key - The key to set.
62
- * @param value - The value to set.
63
- */
64
- set(key: string, value: T): void;
65
- /**
66
- * Checks if a key exists in the cache.
67
- * This is a pure query operation - does NOT update LRU order.
68
- *
69
- * Time Complexity: O(1)
70
- */
71
- has(key: string): boolean;
72
- /**
73
- * Retrieves a value by key and marks it as most recently used.
74
- * Moving to head maintains the LRU property for future evictions.
75
- *
76
- * Time Complexity: O(1)
77
- */
78
- get(key: string): T | undefined;
79
- /**
80
- * Returns an iterator over the cache entries. The order is outputted in the
81
- * order of most recently used to least recently used.
82
- */
83
- [Symbol.iterator](): IterableIterator<[string, T]>;
84
- /**
85
- * Removes a specific key from the cache.
86
- * Updates both the hash map and doubly-linked list.
87
- *
88
- * Time Complexity: O(1)
89
- */
90
- remove(key: string): void;
91
- /**
92
- * Returns the number of items in the cache.
93
- */
94
- get size(): number;
95
- /**
96
- * Returns the current total size of all cached items.
97
- * This uses the custom size calculation if provided.
98
- */
99
- get currentSize(): number;
100
- }
101
- //#endregion
102
- export { LRUCache as t };
103
- //# sourceMappingURL=lru-cache-CzQ_kKXk.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lru-cache-CzQ_kKXk.d.mts","names":[],"sources":["../src/lru-cache.ts"],"sourcesContent":[],"mappings":";;AAgEA;;;;;;;;;;;;;;;;;cAAa;;;;;;;uDAa0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAsEtB;;;;;;;;;;;;;;oBA8CN;;;;;GAchB,MAAA,CAAO,QAAA,KAAa,0BAA0B"}