@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.
- package/CHANGELOG.md +419 -0
- package/README.md +33 -25
- package/dist/{arg-identity.d.ts → arg-identity-BIir8uzO.d.mts} +5 -1
- package/dist/arg-identity-BIir8uzO.d.mts.map +1 -0
- package/dist/arg-identity-BfviduMt.mjs +2 -0
- package/dist/arg-identity-BfviduMt.mjs.map +1 -0
- package/dist/arg-identity-C-pVjd0u.d.cts +14 -0
- package/dist/arg-identity-C-pVjd0u.d.cts.map +1 -0
- package/dist/arg-identity-dlKw6BsD.cjs +1 -0
- package/dist/arg-identity.cjs +1 -9
- package/dist/arg-identity.d.cts +2 -0
- package/dist/arg-identity.d.mts +2 -0
- package/dist/arg-identity.mjs +1 -1
- package/dist/debounce-C5O3IDKy.mjs +2 -0
- package/dist/debounce-C5O3IDKy.mjs.map +1 -0
- package/dist/{debounce.d.ts → debounce-CIMf8-Yr.d.mts} +10 -4
- package/dist/debounce-CIMf8-Yr.d.mts.map +1 -0
- package/dist/debounce-CLb-VvJv.d.cts +47 -0
- package/dist/debounce-CLb-VvJv.d.cts.map +1 -0
- package/dist/debounce-SIYbhEOF.cjs +1 -0
- package/dist/debounce.cjs +1 -24
- package/dist/debounce.d.cts +2 -0
- package/dist/debounce.d.mts +2 -0
- package/dist/debounce.mjs +1 -1
- package/dist/deep-clone-BlN5QTtW.mjs +2 -0
- package/dist/deep-clone-BlN5QTtW.mjs.map +1 -0
- package/dist/deep-clone-CoUy-Hrt.cjs +1 -0
- package/dist/{deep-clone.d.ts → deep-clone-CpLJcTgz.d.mts} +11 -12
- package/dist/deep-clone-CpLJcTgz.d.mts.map +1 -0
- package/dist/deep-clone-jRNy1xoj.d.cts +65 -0
- package/dist/deep-clone-jRNy1xoj.d.cts.map +1 -0
- package/dist/deep-clone.cjs +1 -62
- package/dist/deep-clone.d.cts +2 -0
- package/dist/deep-clone.d.mts +2 -0
- package/dist/deep-clone.mjs +1 -1
- package/dist/deep-merge-BDZ6c79O.mjs +2 -0
- package/dist/deep-merge-BDZ6c79O.mjs.map +1 -0
- package/dist/deep-merge-BpFjvumi.cjs +1 -0
- package/dist/deep-merge-C9qDSleg.d.cts +26 -0
- package/dist/deep-merge-C9qDSleg.d.cts.map +1 -0
- package/dist/deep-merge-eCT712Cv.d.mts +26 -0
- package/dist/deep-merge-eCT712Cv.d.mts.map +1 -0
- package/dist/deep-merge.cjs +1 -36
- package/dist/deep-merge.d.cts +2 -0
- package/dist/deep-merge.d.mts +2 -0
- package/dist/deep-merge.mjs +1 -1
- package/dist/{delay.d.ts → delay-Bd_sGzMj.d.mts} +9 -4
- package/dist/delay-Bd_sGzMj.d.mts.map +1 -0
- package/dist/delay-UwR_fCwt.cjs +1 -0
- package/dist/delay-VkcrQf1l.d.cts +77 -0
- package/dist/delay-VkcrQf1l.d.cts.map +1 -0
- package/dist/delay-wdNbY6sk.mjs +2 -0
- package/dist/delay-wdNbY6sk.mjs.map +1 -0
- package/dist/delay.cjs +1 -28
- package/dist/delay.d.cts +2 -0
- package/dist/delay.d.mts +2 -0
- package/dist/delay.mjs +1 -1
- package/dist/errors-BXYY8wXj.cjs +1 -0
- package/dist/errors-DWX9ET_b.mjs +2 -0
- package/dist/errors-DWX9ET_b.mjs.map +1 -0
- package/dist/errors.cjs +1 -18
- package/dist/errors.d.cts +16 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.mts +16 -0
- package/dist/errors.d.mts.map +1 -0
- package/dist/errors.mjs +1 -1
- package/dist/filter-empty-5_nMg04e.cjs +1 -0
- package/dist/filter-empty-BMtd0K07.d.mts +5 -0
- package/dist/filter-empty-BMtd0K07.d.mts.map +1 -0
- package/dist/filter-empty-C2fq9M7o.d.cts +5 -0
- package/dist/filter-empty-C2fq9M7o.d.cts.map +1 -0
- package/dist/filter-empty-Dsc1ymCj.mjs +2 -0
- package/dist/filter-empty-Dsc1ymCj.mjs.map +1 -0
- package/dist/filter-empty.cjs +1 -9
- package/dist/filter-empty.d.cts +2 -0
- package/dist/filter-empty.d.mts +2 -0
- package/dist/filter-empty.mjs +1 -1
- package/dist/{flatten-object.d.ts → flatten-object-Bk2VT-b2.d.mts} +8 -6
- package/dist/flatten-object-Bk2VT-b2.d.mts.map +1 -0
- package/dist/flatten-object-D-EbEZqR.cjs +1 -0
- package/dist/flatten-object-DFCZmly9.mjs +2 -0
- package/dist/flatten-object-DFCZmly9.mjs.map +1 -0
- package/dist/{unflatten-object.d.ts → flatten-object-DjaJJaY0.d.cts} +8 -6
- package/dist/flatten-object-DjaJJaY0.d.cts.map +1 -0
- package/dist/flatten-object.cjs +1 -20
- package/dist/flatten-object.d.cts +2 -0
- package/dist/flatten-object.d.mts +2 -0
- package/dist/flatten-object.mjs +1 -1
- package/dist/{get-field.d.ts → get-field-5XqtknPs.d.mts} +25 -22
- package/dist/get-field-5XqtknPs.d.mts.map +1 -0
- package/dist/get-field-D4F_p-Ov.cjs +1 -0
- package/dist/get-field-ngQ9O38X.mjs +2 -0
- package/dist/get-field-ngQ9O38X.mjs.map +1 -0
- package/dist/get-field-oltWWNRO.d.cts +254 -0
- package/dist/get-field-oltWWNRO.d.cts.map +1 -0
- package/dist/get-field.cjs +1 -43
- package/dist/get-field.d.cts +2 -0
- package/dist/get-field.d.mts +2 -0
- package/dist/get-field.mjs +1 -1
- package/dist/get-object-tag-D53RvMgo.cjs +1 -0
- package/dist/get-object-tag-oBoWkttN.mjs +2 -0
- package/dist/get-object-tag-oBoWkttN.mjs.map +1 -0
- package/dist/{get-ordered-by.d.ts → get-ordered-by-C45FfW2T.d.mts} +5 -2
- package/dist/get-ordered-by-C45FfW2T.d.mts.map +1 -0
- package/dist/get-ordered-by-CBKKJr4R.mjs +2 -0
- package/dist/get-ordered-by-CBKKJr4R.mjs.map +1 -0
- package/dist/get-ordered-by-D2Sr6vUN.cjs +1 -0
- package/dist/get-ordered-by-DuD7QRma.d.cts +39 -0
- package/dist/get-ordered-by-DuD7QRma.d.cts.map +1 -0
- package/dist/get-ordered-by.cjs +1 -18
- package/dist/get-ordered-by.d.cts +2 -0
- package/dist/get-ordered-by.d.mts +2 -0
- package/dist/get-ordered-by.mjs +1 -1
- package/dist/get-unique-BOiakY6A.cjs +1 -0
- package/dist/{get-unique.d.ts → get-unique-C0SBPUBv.d.cts} +6 -2
- package/dist/get-unique-C0SBPUBv.d.cts.map +1 -0
- package/dist/get-unique-DZ6E1Kvc.d.mts +26 -0
- package/dist/get-unique-DZ6E1Kvc.d.mts.map +1 -0
- package/dist/get-unique-DzZ7Z34U.mjs +2 -0
- package/dist/get-unique-DzZ7Z34U.mjs.map +1 -0
- package/dist/get-unique.cjs +1 -17
- package/dist/get-unique.d.cts +2 -0
- package/dist/get-unique.d.mts +2 -0
- package/dist/get-unique.mjs +1 -1
- package/dist/{identity.d.ts → identity-B_cGeF8o.d.mts} +5 -1
- package/dist/identity-B_cGeF8o.d.mts.map +1 -0
- package/dist/identity-DBwwvmGU.mjs +2 -0
- package/dist/identity-DBwwvmGU.mjs.map +1 -0
- package/dist/identity-DRhIvbPG.d.cts +18 -0
- package/dist/identity-DRhIvbPG.d.cts.map +1 -0
- package/dist/identity-z2xaIqpe.cjs +1 -0
- package/dist/identity.cjs +1 -9
- package/dist/identity.d.cts +2 -0
- package/dist/identity.d.mts +2 -0
- package/dist/identity.mjs +1 -1
- package/dist/index.cjs +1 -346
- package/dist/index.d.cts +32 -0
- package/dist/index.d.mts +32 -0
- package/dist/index.mjs +1 -1
- package/dist/is-empty-C7vlSVFD.mjs +2 -0
- package/dist/is-empty-C7vlSVFD.mjs.map +1 -0
- package/dist/is-empty-DZZDqzjD.cjs +1 -0
- package/dist/is-equal-0Z-K2uIG.mjs +2 -0
- package/dist/is-equal-0Z-K2uIG.mjs.map +1 -0
- package/dist/is-equal-BJgVhUVS.cjs +1 -0
- package/dist/{is-equal.d.ts → is-equal-BMlMHlVi.d.cts} +5 -1
- package/dist/is-equal-BMlMHlVi.d.cts.map +1 -0
- package/dist/is-equal-Baqurdpn.d.mts +22 -0
- package/dist/is-equal-Baqurdpn.d.mts.map +1 -0
- package/dist/is-equal.cjs +1 -61
- package/dist/is-equal.d.cts +2 -0
- package/dist/is-equal.d.mts +2 -0
- package/dist/is-equal.mjs +1 -1
- package/dist/is-number-BcjxCzDM.cjs +1 -0
- package/dist/is-number-bwhfkHlC.mjs +2 -0
- package/dist/is-number-bwhfkHlC.mjs.map +1 -0
- package/dist/is-plain-object-BQuFhL4M.cjs +1 -0
- package/dist/is-plain-object-D8GSMOhY.mjs +2 -0
- package/dist/is-plain-object-D8GSMOhY.mjs.map +1 -0
- package/dist/is-set-B9o0NIT4.mjs +2 -0
- package/dist/is-set-B9o0NIT4.mjs.map +1 -0
- package/dist/is-set-ByJOY6h2.cjs +1 -0
- package/dist/is-set-string-48_jZFw0.cjs +1 -0
- package/dist/is-set-string-Dr1MlMk0.mjs +2 -0
- package/dist/is-set-string-Dr1MlMk0.mjs.map +1 -0
- package/dist/is-string-CvmuuuDj.mjs +2 -0
- package/dist/is-string-CvmuuuDj.mjs.map +1 -0
- package/dist/is-string-DPanLeA_.cjs +1 -0
- package/dist/lru-cache-CzQ_kKXk.d.mts +103 -0
- package/dist/lru-cache-CzQ_kKXk.d.mts.map +1 -0
- package/dist/lru-cache-D4VEIgtR.d.cts +103 -0
- package/dist/lru-cache-D4VEIgtR.d.cts.map +1 -0
- package/dist/lru-cache-DLY_yZRN.mjs +2 -0
- package/dist/lru-cache-DLY_yZRN.mjs.map +1 -0
- package/dist/lru-cache-DgTSGx5W.cjs +1 -0
- package/dist/lru-cache.cjs +1 -82
- package/dist/lru-cache.d.cts +2 -0
- package/dist/lru-cache.d.mts +2 -0
- package/dist/lru-cache.mjs +1 -1
- package/dist/match-sorter-B9_7YvTo.mjs +2 -0
- package/dist/match-sorter-B9_7YvTo.mjs.map +1 -0
- package/dist/match-sorter-BjnWjkKu.cjs +1 -0
- package/dist/{match-sorter.d.ts → match-sorter-CMYN3GuY.d.cts} +44 -43
- package/dist/match-sorter-CMYN3GuY.d.cts.map +1 -0
- package/dist/match-sorter-DCRerxVe.d.mts +78 -0
- package/dist/match-sorter-DCRerxVe.d.mts.map +1 -0
- package/dist/match-sorter.cjs +1 -184
- package/dist/match-sorter.d.cts +2 -0
- package/dist/match-sorter.d.mts +2 -0
- package/dist/match-sorter.mjs +1 -1
- package/dist/memoize-Cr5jFKxi.mjs +2 -0
- package/dist/memoize-Cr5jFKxi.mjs.map +1 -0
- package/dist/memoize-TyrmWrfR.d.mts +11 -0
- package/dist/memoize-TyrmWrfR.d.mts.map +1 -0
- package/dist/memoize-qxvbI-0y.cjs +1 -0
- package/dist/memoize-tSTYY522.d.cts +11 -0
- package/dist/memoize-tSTYY522.d.cts.map +1 -0
- package/dist/memoize.cjs +1 -12
- package/dist/memoize.d.cts +2 -0
- package/dist/memoize.d.mts +2 -0
- package/dist/memoize.mjs +1 -1
- package/dist/mutex-CnQQBndt.cjs +1 -0
- package/dist/mutex-DAZduiSP.d.mts +72 -0
- package/dist/mutex-DAZduiSP.d.mts.map +1 -0
- package/dist/mutex-DCyX7B66.d.cts +72 -0
- package/dist/mutex-DCyX7B66.d.cts.map +1 -0
- package/dist/mutex-TqoKHosg.mjs +2 -0
- package/dist/mutex-TqoKHosg.mjs.map +1 -0
- package/dist/mutex.cjs +1 -20
- package/dist/mutex.d.cts +2 -0
- package/dist/mutex.d.mts +2 -0
- package/dist/mutex.mjs +1 -1
- package/dist/noop-B7OetrhD.mjs +2 -0
- package/dist/noop-B7OetrhD.mjs.map +1 -0
- package/dist/{noop.d.ts → noop-BnXKMH6Z.d.mts} +6 -2
- package/dist/noop-BnXKMH6Z.d.mts.map +1 -0
- package/dist/noop-CnJXOCpF.d.cts +22 -0
- package/dist/noop-CnJXOCpF.d.cts.map +1 -0
- package/dist/noop-Dpf7hIui.cjs +1 -0
- package/dist/noop.cjs +1 -10
- package/dist/noop.d.cts +2 -0
- package/dist/noop.d.mts +2 -0
- package/dist/noop.mjs +1 -1
- package/dist/object-CHmrmQna.d.mts +160 -0
- package/dist/object-CHmrmQna.d.mts.map +1 -0
- package/dist/object-D8HGAGMr.d.cts +160 -0
- package/dist/object-D8HGAGMr.d.cts.map +1 -0
- package/dist/omit-A0uVyAS4.cjs +1 -0
- package/dist/omit-BROsDK0D.mjs +2 -0
- package/dist/omit-BROsDK0D.mjs.map +1 -0
- package/dist/{omit.d.ts → omit-D1FKiOYz.d.cts} +5 -1
- package/dist/omit-D1FKiOYz.d.cts.map +1 -0
- package/dist/omit-DpqOAtKt.d.mts +22 -0
- package/dist/omit-DpqOAtKt.d.mts.map +1 -0
- package/dist/omit.cjs +1 -16
- package/dist/omit.d.cts +2 -0
- package/dist/omit.d.mts +2 -0
- package/dist/omit.mjs +1 -1
- package/dist/once-DNPPQd3P.d.mts +13 -0
- package/dist/once-DNPPQd3P.d.mts.map +1 -0
- package/dist/once-DZCwmdkv.cjs +1 -0
- package/dist/once-DqmxXwEB.d.cts +13 -0
- package/dist/once-DqmxXwEB.d.cts.map +1 -0
- package/dist/once-txoW63yJ.mjs +2 -0
- package/dist/once-txoW63yJ.mjs.map +1 -0
- package/dist/once.cjs +1 -17
- package/dist/once.d.cts +2 -0
- package/dist/once.d.mts +2 -0
- package/dist/once.mjs +1 -1
- package/dist/pick-CuXTvXaw.mjs +2 -0
- package/dist/pick-CuXTvXaw.mjs.map +1 -0
- package/dist/{pick.d.ts → pick-DXREvZBr.d.cts} +5 -1
- package/dist/pick-DXREvZBr.d.cts.map +1 -0
- package/dist/pick-GDOwAh6I.cjs +1 -0
- package/dist/pick-ZrWD4de2.d.mts +22 -0
- package/dist/pick-ZrWD4de2.d.mts.map +1 -0
- package/dist/pick.cjs +1 -14
- package/dist/pick.d.cts +2 -0
- package/dist/pick.d.mts +2 -0
- package/dist/pick.mjs +1 -1
- package/dist/remove-accents-BFmyvTRZ.mjs +2 -0
- package/dist/remove-accents-BFmyvTRZ.mjs.map +1 -0
- package/dist/remove-accents-C4C0A2ex.d.mts +12 -0
- package/dist/remove-accents-C4C0A2ex.d.mts.map +1 -0
- package/dist/remove-accents-CXBUC-Id.cjs +1 -0
- package/dist/remove-accents-Yo3-2jWO.d.cts +12 -0
- package/dist/remove-accents-Yo3-2jWO.d.cts.map +1 -0
- package/dist/remove-accents.cjs +1 -411
- package/dist/remove-accents.d.cts +2 -0
- package/dist/remove-accents.d.mts +2 -0
- package/dist/remove-accents.mjs +1 -1
- package/dist/remove-empty-items-BglsRCyG.d.cts +11 -0
- package/dist/remove-empty-items-BglsRCyG.d.cts.map +1 -0
- package/dist/remove-empty-items-BzI9Vid9.mjs +2 -0
- package/dist/remove-empty-items-BzI9Vid9.mjs.map +1 -0
- package/dist/remove-empty-items-COwdCPHC.d.mts +11 -0
- package/dist/remove-empty-items-COwdCPHC.d.mts.map +1 -0
- package/dist/remove-empty-items-CjTxJuyS.cjs +1 -0
- package/dist/remove-empty-items.cjs +1 -8
- package/dist/remove-empty-items.d.cts +2 -0
- package/dist/remove-empty-items.d.mts +2 -0
- package/dist/remove-empty-items.mjs +1 -1
- package/dist/semaphore-4zJqtox8.mjs +2 -0
- package/dist/semaphore-4zJqtox8.mjs.map +1 -0
- package/dist/semaphore-CsGTxqsW.d.cts +86 -0
- package/dist/semaphore-CsGTxqsW.d.cts.map +1 -0
- package/dist/semaphore-DkHqPlow.cjs +1 -0
- package/dist/semaphore-WaZBtCk5.d.mts +86 -0
- package/dist/semaphore-WaZBtCk5.d.mts.map +1 -0
- package/dist/semaphore.cjs +1 -32
- package/dist/semaphore.d.cts +2 -0
- package/dist/semaphore.d.mts +2 -0
- package/dist/semaphore.mjs +1 -1
- package/dist/set-field-CUgbKEjW.mjs +2 -0
- package/dist/set-field-CUgbKEjW.mjs.map +1 -0
- package/dist/set-field-CcCiXZNl.d.cts +16 -0
- package/dist/set-field-CcCiXZNl.d.cts.map +1 -0
- package/dist/set-field-DyvXgpNP.d.mts +16 -0
- package/dist/set-field-DyvXgpNP.d.mts.map +1 -0
- package/dist/set-field-mr4GkhFb.cjs +1 -0
- package/dist/set-field.cjs +1 -21
- package/dist/set-field.d.cts +2 -0
- package/dist/set-field.d.mts +2 -0
- package/dist/set-field.mjs +1 -1
- package/dist/throttle-BOKOTo3m.cjs +1 -0
- package/dist/{throttle.d.ts → throttle-BWPQuZty.d.cts} +5 -1
- package/dist/throttle-BWPQuZty.d.cts.map +1 -0
- package/dist/throttle-BgU4k6qs.d.mts +32 -0
- package/dist/throttle-BgU4k6qs.d.mts.map +1 -0
- package/dist/throttle-CYK3F0mZ.mjs +2 -0
- package/dist/throttle-CYK3F0mZ.mjs.map +1 -0
- package/dist/throttle.cjs +1 -13
- package/dist/throttle.d.cts +2 -0
- package/dist/throttle.d.mts +2 -0
- package/dist/throttle.mjs +1 -1
- package/dist/timeout-43rG9ETK.mjs +2 -0
- package/dist/timeout-43rG9ETK.mjs.map +1 -0
- package/dist/{timeout.d.ts → timeout-CLhwG-oo.d.mts} +5 -1
- package/dist/timeout-CLhwG-oo.d.mts.map +1 -0
- package/dist/timeout-CoYbhliP.cjs +1 -0
- package/dist/timeout-DC38jHR8.d.cts +12 -0
- package/dist/timeout-DC38jHR8.d.cts.map +1 -0
- package/dist/timeout.cjs +1 -11
- package/dist/timeout.d.cts +2 -0
- package/dist/timeout.d.mts +2 -0
- package/dist/timeout.mjs +1 -1
- package/dist/to-deep-key-Cma9aiEz.cjs +1 -0
- package/dist/to-deep-key-D8uDBd6T.mjs +2 -0
- package/dist/to-deep-key-D8uDBd6T.mjs.map +1 -0
- package/dist/{to-deep-key.d.ts → to-deep-key-DO-Z0Zjs.d.mts} +6 -2
- package/dist/to-deep-key-DO-Z0Zjs.d.mts.map +1 -0
- package/dist/to-deep-key-DlsE4ziE.d.cts +42 -0
- package/dist/to-deep-key-DlsE4ziE.d.cts.map +1 -0
- package/dist/to-deep-key.cjs +1 -15
- package/dist/to-deep-key.d.cts +2 -0
- package/dist/to-deep-key.d.mts +2 -0
- package/dist/to-deep-key.mjs +1 -1
- package/dist/{to-path.d.ts → to-path-BajxeMmo.d.mts} +5 -1
- package/dist/to-path-BajxeMmo.d.mts.map +1 -0
- package/dist/to-path-CdOFd4od.cjs +1 -0
- package/dist/to-path-D2zWXeYc.d.cts +24 -0
- package/dist/to-path-D2zWXeYc.d.cts.map +1 -0
- package/dist/to-path-Dm1fe-Ix.mjs +2 -0
- package/dist/to-path-Dm1fe-Ix.mjs.map +1 -0
- package/dist/to-path.cjs +1 -23
- package/dist/to-path.d.cts +2 -0
- package/dist/to-path.d.mts +2 -0
- package/dist/to-path.mjs +1 -1
- package/dist/unflatten-object-C7TE8J80.mjs +2 -0
- package/dist/unflatten-object-C7TE8J80.mjs.map +1 -0
- package/dist/unflatten-object-CPJIUozj.d.mts +35 -0
- package/dist/unflatten-object-CPJIUozj.d.mts.map +1 -0
- package/dist/unflatten-object-CvZj41LG.cjs +1 -0
- package/dist/unflatten-object-Cvbj7Q__.d.cts +35 -0
- package/dist/unflatten-object-Cvbj7Q__.d.cts.map +1 -0
- package/dist/unflatten-object.cjs +1 -10
- package/dist/unflatten-object.d.cts +2 -0
- package/dist/unflatten-object.d.mts +2 -0
- package/dist/unflatten-object.mjs +1 -1
- package/dist/{union.d.ts → union-BMOMEzO-.d.cts} +5 -1
- package/dist/union-BMOMEzO-.d.cts.map +1 -0
- package/dist/union-C-2CRoFc.mjs +2 -0
- package/dist/union-C-2CRoFc.mjs.map +1 -0
- package/dist/union-D4bbjM2i.d.mts +24 -0
- package/dist/union-D4bbjM2i.d.mts.map +1 -0
- package/dist/union-EwdcZzNT.cjs +1 -0
- package/dist/union.cjs +1 -10
- package/dist/union.d.cts +2 -0
- package/dist/union.d.mts +2 -0
- package/dist/union.mjs +1 -1
- package/dist/{with-timeout.d.ts → with-timeout-BPaAIZtS.d.cts} +5 -1
- package/dist/with-timeout-BPaAIZtS.d.cts.map +1 -0
- package/dist/with-timeout-BoZYdcOg.d.mts +24 -0
- package/dist/with-timeout-BoZYdcOg.d.mts.map +1 -0
- package/dist/with-timeout-CAuUr1ck.mjs +2 -0
- package/dist/with-timeout-CAuUr1ck.mjs.map +1 -0
- package/dist/with-timeout-CPUBGT4X.cjs +1 -0
- package/dist/with-timeout.cjs +1 -10
- package/dist/with-timeout.d.cts +2 -0
- package/dist/with-timeout.d.mts +2 -0
- package/dist/with-timeout.mjs +1 -1
- package/package.json +91 -440
- package/dist/deep-merge.d.ts +0 -22
- package/dist/errors.d.ts +0 -12
- package/dist/filter-empty.d.ts +0 -1
- package/dist/index.d.ts +0 -31
- package/dist/lru-cache.d.ts +0 -99
- package/dist/memoize.d.ts +0 -7
- package/dist/mutex.d.ts +0 -68
- package/dist/once.d.ts +0 -9
- package/dist/remove-accents.d.ts +0 -8
- package/dist/remove-empty-items.d.ts +0 -7
- package/dist/semaphore.d.ts +0 -82
- package/dist/set-field.d.ts +0 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/to-path.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Converts a deep key string into an array of path segments.
|
|
3
4
|
*
|
|
@@ -17,4 +18,7 @@
|
|
|
17
18
|
* @param deepKey - The deep key string to convert.
|
|
18
19
|
* @returns An array of strings, each representing a segment of the path.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
declare function toPath(deepKey: string): string[];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { toPath as t };
|
|
24
|
+
//# sourceMappingURL=to-path-BajxeMmo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-path-BajxeMmo.d.mts","names":[],"sources":["../src/to-path.ts"],"sourcesContent":[],"mappings":";;AAyDA;;;;;;;;;;;;;;;;;;iBAAgB,MAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=/^[\w.]+$/g,t=/\\(?<temp1>\\)?/g,n=RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`,`g`);function r(r){if(e.test(r))return r.split(`.`);let i=[];r[0]===`.`&&i.push(``);let a=r.matchAll(n);for(let e of a){let n=e[0],r=e[1],a=e[2],o=e[3];a&&o?n=o.replace(t,`$1`):r&&(n=r),i.push(n)}return i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/to-path.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Converts a deep key string into an array of path segments.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* toPath('a.b.c') // Returns ['a', 'b', 'c']
|
|
11
|
+
* toPath('a[b][c]') // Returns ['a', 'b', 'c']
|
|
12
|
+
* toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']
|
|
13
|
+
* toPath('a["b.c"].d') // Returns ['a', 'b.c', 'd']
|
|
14
|
+
* toPath('') // Returns []
|
|
15
|
+
* toPath('.a[b].c.d[e]["f.g"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param deepKey - The deep key string to convert.
|
|
19
|
+
* @returns An array of strings, each representing a segment of the path.
|
|
20
|
+
*/
|
|
21
|
+
declare function toPath(deepKey: string): string[];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { toPath as t };
|
|
24
|
+
//# sourceMappingURL=to-path-D2zWXeYc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-path-D2zWXeYc.d.cts","names":[],"sources":["../src/to-path.ts"],"sourcesContent":[],"mappings":";;AAyDA;;;;;;;;;;;;;;;;;;iBAAgB,MAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=/^[\w.]+$/g,t=/\\(?<temp1>\\)?/g,n=RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`,`g`);function r(r){if(e.test(r))return r.split(`.`);let i=[];r[0]===`.`&&i.push(``);let a=r.matchAll(n);for(let e of a){let n=e[0],r=e[1],a=e[2],o=e[3];a&&o?n=o.replace(t,`$1`):r&&(n=r),i.push(n)}return i}export{r as t};
|
|
2
|
+
//# sourceMappingURL=to-path-Dm1fe-Ix.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-path-Dm1fe-Ix.mjs","names":["result: string[]"],"sources":["../src/to-path.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst DOTS_KEY = /^[\\w.]+$/g;\n\nconst ESCAPE_REGEXP = /\\\\(?<temp1>\\\\)?/g;\nconst PROPERTY_REGEXP = new RegExp(\n // Match anything that isn't a dot or bracket.\n `${String.raw`[^.[\\]]+`}|${\n // Or match property names within brackets.\n String.raw`\\[(?:`\n // Match a non-string expression.\n }([^\"'][^[]*)` +\n `|${\n // Or match strings (supports escaping characters).\n String.raw`([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2`\n }${String.raw`)\\]`}|${\n // Or match \"\" as the space between consecutive dots or empty brackets.\n String.raw`(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`\n }`,\n \"g\"\n);\n\n/**\n * Converts a deep key string into an array of path segments.\n *\n * @remarks\n * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n *\n * @example\n * ```ts\n * toPath('a.b.c') // Returns ['a', 'b', 'c']\n * toPath('a[b][c]') // Returns ['a', 'b', 'c']\n * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n * toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n * toPath('') // Returns []\n * toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n * ```\n *\n * @param deepKey - The deep key string to convert.\n * @returns An array of strings, each representing a segment of the path.\n */\nexport function toPath(deepKey: string): string[] {\n if (DOTS_KEY.test(deepKey)) {\n return deepKey.split(\".\");\n }\n\n const result: string[] = [];\n\n if (deepKey[0] === \".\") {\n result.push(\"\");\n }\n\n const matches = deepKey.matchAll(PROPERTY_REGEXP);\n\n for (const match of matches) {\n let key = match[0];\n const expr = match[1];\n const quote = match[2];\n const substr = match[3];\n\n if (quote && substr) {\n key = substr.replace(ESCAPE_REGEXP, \"$1\");\n } else if (expr) {\n key = expr;\n }\n\n result.push(key);\n }\n\n return result;\n}\n"],"mappings":"AAkBA,MAAM,EAAW,YAEX,EAAgB,mBAChB,EAAsB,OAE1B,GAAG,OAAO,GAAG,WAAW,GAEtB,OAAO,GAAG,QAEX,eAGG,OAAO,GAAG,oCACT,OAAO,GAAG,MAAM,GAEjB,OAAO,GAAG,iCAEd,IACD,CAqBD,SAAgB,EAAO,EAA2B,CAChD,GAAI,EAAS,KAAK,EAAQ,CACxB,OAAO,EAAQ,MAAM,IAAI,CAG3B,IAAMA,EAAmB,EAAE,CAEvB,EAAQ,KAAO,KACjB,EAAO,KAAK,GAAG,CAGjB,IAAM,EAAU,EAAQ,SAAS,EAAgB,CAEjD,IAAK,IAAM,KAAS,EAAS,CAC3B,IAAI,EAAM,EAAM,GACV,EAAO,EAAM,GACb,EAAQ,EAAM,GACd,EAAS,EAAM,GAEjB,GAAS,EACX,EAAM,EAAO,QAAQ,EAAe,KAAK,CAChC,IACT,EAAM,GAGR,EAAO,KAAK,EAAI,CAGlB,OAAO"}
|
package/dist/to-path.cjs
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.toPath = toPath;
|
|
7
|
-
const a = /^[\w.]+$/g,
|
|
8
|
-
E = /\\(?<temp1>\\)?/g,
|
|
9
|
-
e = new RegExp(`${String.raw`[^.[\]]+`}|${String.raw`\[(?:`}([^"'][^[]*)|${String.raw`(["'])((?:(?!\2)[^\\]|\\.)*?)\2`}${String.raw`)\]`}|${String.raw`(?=(?:\.|\[\])(?:\.|\[\]|$))`}`, "g");
|
|
10
|
-
function toPath(t) {
|
|
11
|
-
if (a.test(t)) return t.split(".");
|
|
12
|
-
const n = [];
|
|
13
|
-
t[0] === "." && n.push("");
|
|
14
|
-
const i = t.matchAll(e);
|
|
15
|
-
for (const r of i) {
|
|
16
|
-
let s = r[0];
|
|
17
|
-
const o = r[1],
|
|
18
|
-
g = r[2],
|
|
19
|
-
c = r[3];
|
|
20
|
-
g && c ? s = c.replace(E, "$1") : o && (s = o), n.push(s);
|
|
21
|
-
}
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
1
|
+
const e=require(`./to-path-CdOFd4od.cjs`);exports.toPath=e.t;
|
package/dist/to-path.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./to-path-Dm1fe-Ix.mjs";export{e as toPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object-C7TE8J80.mjs","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport type { DeepKey, DeepValue } from \"@stryke/types/object\";\nimport { setField } from \"./set-field\";\n\n/**\n * Flattens a nested object into a single level object with dot-separated keys.\n *\n * @example\n * ```typescript\n * const nestedObject = {\n * a: {\n * b: {\n * c: 1\n * }\n * },\n * d: [2, 3]\n * };\n *\n * const flattened = flattenObject(nestedObject);\n * console.log(flattened);\n * // Output:\n * // {\n * // 'a.b.c': 1,\n * // 'd.0': 2,\n * // 'd.1': 3\n * // }\n * ```\n *\n * @param object - The object to flatten.\n * @returns - The flattened object.\n */\nexport function unflattenObject<\n TObject extends Record<string, any> = Record<string, any>,\n TDeepKeyObject extends {\n [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey>;\n } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }\n>(deepKeyObject: TDeepKeyObject): TObject {\n return Object.entries(deepKeyObject).reduce(\n (ret: TObject, [key, value]: [string, any]) => {\n return setField<TObject>(ret, key as DeepKey<TObject>, value);\n },\n {} as TObject\n );\n}\n"],"mappings":"6CA+CA,SAAgB,EAKd,EAAwC,CACxC,OAAO,OAAO,QAAQ,EAAc,CAAC,QAClC,EAAc,CAAC,EAAK,KACZ,EAAkB,EAAK,EAAyB,EAAM,CAE/D,EAAE,CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as DeepValue, t as DeepKey } from "./object-CHmrmQna.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/unflatten-object.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Flattens a nested object into a single level object with dot-separated keys.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nestedObject = {
|
|
11
|
+
* a: {
|
|
12
|
+
* b: {
|
|
13
|
+
* c: 1
|
|
14
|
+
* }
|
|
15
|
+
* },
|
|
16
|
+
* d: [2, 3]
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* const flattened = flattenObject(nestedObject);
|
|
20
|
+
* console.log(flattened);
|
|
21
|
+
* // Output:
|
|
22
|
+
* // {
|
|
23
|
+
* // 'a.b.c': 1,
|
|
24
|
+
* // 'd.0': 2,
|
|
25
|
+
* // 'd.1': 3
|
|
26
|
+
* // }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param object - The object to flatten.
|
|
30
|
+
* @returns - The flattened object.
|
|
31
|
+
*/
|
|
32
|
+
declare function unflattenObject<TObject extends Record<string, any> = Record<string, any>, TDeepKeyObject extends { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }>(deepKeyObject: TDeepKeyObject): TObject;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { unflattenObject as t };
|
|
35
|
+
//# sourceMappingURL=unflatten-object-CPJIUozj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object-CPJIUozj.d.mts","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":[],"mappings":";;;;;;AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,gCACE,sBAAsB,uDAE3B,QAAQ,WAAW,UAAU,SAAS,qBAClC,QAAQ,WAAW,UAAU,SAAS,wBACtC,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./set-field-mr4GkhFb.cjs`);function t(t){return Object.entries(t).reduce((t,[n,r])=>e.t(t,n,r),{})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as DeepValue, t as DeepKey } from "./object-D8HGAGMr.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/unflatten-object.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Flattens a nested object into a single level object with dot-separated keys.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nestedObject = {
|
|
11
|
+
* a: {
|
|
12
|
+
* b: {
|
|
13
|
+
* c: 1
|
|
14
|
+
* }
|
|
15
|
+
* },
|
|
16
|
+
* d: [2, 3]
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* const flattened = flattenObject(nestedObject);
|
|
20
|
+
* console.log(flattened);
|
|
21
|
+
* // Output:
|
|
22
|
+
* // {
|
|
23
|
+
* // 'a.b.c': 1,
|
|
24
|
+
* // 'd.0': 2,
|
|
25
|
+
* // 'd.1': 3
|
|
26
|
+
* // }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param object - The object to flatten.
|
|
30
|
+
* @returns - The flattened object.
|
|
31
|
+
*/
|
|
32
|
+
declare function unflattenObject<TObject extends Record<string, any> = Record<string, any>, TDeepKeyObject extends { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> } = { [TKey in DeepKey<TObject>]: DeepValue<TObject, TKey> }>(deepKeyObject: TDeepKeyObject): TObject;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { unflattenObject as t };
|
|
35
|
+
//# sourceMappingURL=unflatten-object-Cvbj7Q__.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object-Cvbj7Q__.d.cts","names":[],"sources":["../src/unflatten-object.ts"],"sourcesContent":[],"mappings":";;;;;;AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,gCACE,sBAAsB,uDAE3B,QAAQ,WAAW,UAAU,SAAS,qBAClC,QAAQ,WAAW,UAAU,SAAS,wBACtC,iBAAiB"}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.unflattenObject = unflattenObject;
|
|
7
|
-
var _setField = require("./set-field.cjs");
|
|
8
|
-
function unflattenObject(e) {
|
|
9
|
-
return Object.entries(e).reduce((t, [c, n]) => (0, _setField.setField)(t, c, n), {});
|
|
10
|
-
}
|
|
1
|
+
require(`./to-path-CdOFd4od.cjs`),require(`./set-field-mr4GkhFb.cjs`);const e=require(`./unflatten-object-CvZj41LG.cjs`);exports.unflattenObject=e.t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import"./to-path-Dm1fe-Ix.mjs";import"./set-field-CUgbKEjW.mjs";import{t as e}from"./unflatten-object-C7TE8J80.mjs";export{e as unflattenObject};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/union.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Creates an array of unique values from all given arrays.
|
|
3
4
|
*
|
|
@@ -17,4 +18,7 @@
|
|
|
17
18
|
* @param arr2 - The second array to merge and filter for unique values.
|
|
18
19
|
* @returns A new array of unique values.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
declare function union<T>(arr1: readonly T[], arr2: readonly T[]): T[];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { union as t };
|
|
24
|
+
//# sourceMappingURL=union-BMOMEzO-.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union-BMOMEzO-.d.cts","names":[],"sources":["../src/union.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAgB,wBAAwB,oBAAoB,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union-C-2CRoFc.mjs","names":[],"sources":["../src/union.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport { getUnique } from \"./get-unique\";\n\n/**\n * Creates an array of unique values from all given arrays.\n *\n * @remarks\n * This function takes two arrays, merges them into a single array, and returns a new array\n * containing only the unique values from the merged array.\n *\n * @example\n * ```ts\n * const array1 = [1, 2, 3];\n * const array2 = [3, 4, 5];\n * const result = union(array1, array2);\n * // result will be [1, 2, 3, 4, 5]\n * ```\n *\n * @param arr1 - The first array to merge and filter for unique values.\n * @param arr2 - The second array to merge and filter for unique values.\n * @returns A new array of unique values.\n */\nexport function union<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return getUnique([...arr1, ...arr2]);\n}\n"],"mappings":"8CAsCA,SAAgB,EAAS,EAAoB,EAAyB,CACpE,OAAO,EAAU,CAAC,GAAG,EAAM,GAAG,EAAK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/union.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of unique values from all given arrays.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This function takes two arrays, merges them into a single array, and returns a new array
|
|
7
|
+
* containing only the unique values from the merged array.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const array1 = [1, 2, 3];
|
|
12
|
+
* const array2 = [3, 4, 5];
|
|
13
|
+
* const result = union(array1, array2);
|
|
14
|
+
* // result will be [1, 2, 3, 4, 5]
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param arr1 - The first array to merge and filter for unique values.
|
|
18
|
+
* @param arr2 - The second array to merge and filter for unique values.
|
|
19
|
+
* @returns A new array of unique values.
|
|
20
|
+
*/
|
|
21
|
+
declare function union<T>(arr1: readonly T[], arr2: readonly T[]): T[];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { union as t };
|
|
24
|
+
//# sourceMappingURL=union-D4bbjM2i.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union-D4bbjM2i.d.mts","names":[],"sources":["../src/union.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAgB,wBAAwB,oBAAoB,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./get-unique-BOiakY6A.cjs`);function t(t,n){return e.t([...t,...n])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
package/dist/union.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.union = union;
|
|
7
|
-
var _getUnique = require("./get-unique.cjs");
|
|
8
|
-
function union(n, o) {
|
|
9
|
-
return (0, _getUnique.getUnique)([...n, ...o]);
|
|
10
|
-
}
|
|
1
|
+
const e=require(`./union-EwdcZzNT.cjs`);exports.union=e.t;
|
package/dist/union.d.cts
ADDED
package/dist/union.d.mts
ADDED
package/dist/union.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./union-C-2CRoFc.mjs";export{e as union};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/with-timeout.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Executes an async function and enforces a timeout.
|
|
3
4
|
*
|
|
@@ -17,4 +18,7 @@
|
|
|
17
18
|
* @param ms - The timeout duration in milliseconds.
|
|
18
19
|
* @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
declare function withTimeout<T>(run: () => Promise<T>, ms: number): Promise<T>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { withTimeout as t };
|
|
24
|
+
//# sourceMappingURL=with-timeout-BPaAIZtS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-timeout-BPaAIZtS.d.cts","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAsB,0BACT,QAAQ,iBAElB,QAAQ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/with-timeout.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Executes an async function and enforces a timeout.
|
|
4
|
+
*
|
|
5
|
+
* If the promise does not resolve within the specified time,
|
|
6
|
+
* the timeout will trigger and the returned promise will be rejected.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* try {
|
|
11
|
+
* await withTimeout(() => {}, 1000); // Timeout exception after 1 second
|
|
12
|
+
* } catch (error) {
|
|
13
|
+
* console.error(error); // Will log 'TimeoutError'
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param run - A function that returns a promise to be executed.
|
|
18
|
+
* @param ms - The timeout duration in milliseconds.
|
|
19
|
+
* @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.
|
|
20
|
+
*/
|
|
21
|
+
declare function withTimeout<T>(run: () => Promise<T>, ms: number): Promise<T>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { withTimeout as t };
|
|
24
|
+
//# sourceMappingURL=with-timeout-BoZYdcOg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-timeout-BoZYdcOg.d.mts","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":[],"mappings":";;AAsCA;;;;;;;;;;;;;;;;;;iBAAsB,0BACT,QAAQ,iBAElB,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-timeout-CAuUr1ck.mjs","names":[],"sources":["../src/with-timeout.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 License, and is\n free for commercial and private use. For more information, please visit\n our licensing page.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nimport { timeout } from \"./timeout\";\n\n/**\n * Executes an async function and enforces a timeout.\n *\n * If the promise does not resolve within the specified time,\n * the timeout will trigger and the returned promise will be rejected.\n *\n * @example\n * ```typescript\n * try {\n * await withTimeout(() => {}, 1000); // Timeout exception after 1 second\n * } catch (error) {\n * console.error(error); // Will log 'TimeoutError'\n * }\n * ```\n *\n * @param run - A function that returns a promise to be executed.\n * @param ms - The timeout duration in milliseconds.\n * @returns A promise that resolves with the result of the `run` function or rejects if the timeout is reached.\n */\nexport async function withTimeout<T>(\n run: () => Promise<T>,\n ms: number\n): Promise<T> {\n return Promise.race([run(), timeout(ms) as T]);\n}\n"],"mappings":"2CAsCA,eAAsB,EACpB,EACA,EACY,CACZ,OAAO,QAAQ,KAAK,CAAC,GAAK,CAAE,EAAQ,EAAG,CAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./timeout-CoYbhliP.cjs`);async function t(t,n){return Promise.race([t(),e.t(n)])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
package/dist/with-timeout.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.withTimeout = withTimeout;
|
|
7
|
-
var _timeout = require("./timeout.cjs");
|
|
8
|
-
async function withTimeout(r, e) {
|
|
9
|
-
return Promise.race([r(), (0, _timeout.timeout)(e)]);
|
|
10
|
-
}
|
|
1
|
+
const e=require(`./with-timeout-CPUBGT4X.cjs`);exports.withTimeout=e.t;
|
package/dist/with-timeout.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./with-timeout-CAuUr1ck.mjs";export{e as withTimeout};
|