@vinicunca/perkakas 1.12.0 → 1.13.0
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/dist/add-prop.d.cts +1 -1
- package/dist/add-prop.d.ts +1 -1
- package/dist/add-prop.js +1 -1
- package/dist/add.js +1 -1
- package/dist/all-pass.js +1 -1
- package/dist/any-pass.js +1 -1
- package/dist/{array-required-prefix-DxzEAAwi.d.cts → array-required-prefix-BFDM7eSS.d.cts} +8 -8
- package/dist/{array-required-prefix-DxzEAAwi.d.cts.map → array-required-prefix-BFDM7eSS.d.cts.map} +1 -1
- package/dist/{array-required-prefix-CefHtaKs.d.ts → array-required-prefix-DwpaLy0D.d.ts} +8 -8
- package/dist/{array-required-prefix-CefHtaKs.d.ts.map → array-required-prefix-DwpaLy0D.d.ts.map} +1 -1
- package/dist/{binary-search-cutoff-index-yQ2qcJHb.js → binary-search-cutoff-index-CN25H71A.js} +1 -1
- package/dist/{binary-search-cutoff-index-yQ2qcJHb.js.map → binary-search-cutoff-index-CN25H71A.js.map} +1 -1
- package/dist/{bounded-partial-DBIIClPU.d.ts → bounded-partial-CPc1XU57.d.ts} +2 -2
- package/dist/{bounded-partial-DBIIClPU.d.ts.map → bounded-partial-CPc1XU57.d.ts.map} +1 -1
- package/dist/{bounded-partial-D6ouPlXl.d.cts → bounded-partial-CtOsGqxa.d.cts} +2 -2
- package/dist/{bounded-partial-D6ouPlXl.d.cts.map → bounded-partial-CtOsGqxa.d.cts.map} +1 -1
- package/dist/capitalize.cjs +1 -0
- package/dist/capitalize.d.cts +53 -0
- package/dist/capitalize.d.cts.map +1 -0
- package/dist/capitalize.d.ts +53 -0
- package/dist/capitalize.d.ts.map +1 -0
- package/dist/capitalize.js +2 -0
- package/dist/capitalize.js.map +1 -0
- package/dist/ceil.js +1 -1
- package/dist/chunk.d.cts +6 -6
- package/dist/chunk.d.ts +6 -6
- package/dist/chunk.js +1 -1
- package/dist/clamp.js +1 -1
- package/dist/{clamped-integer-subtract-sK2BlhSm.d.ts → clamped-integer-subtract-C-AIuFhk.d.ts} +1 -1
- package/dist/{clamped-integer-subtract-sK2BlhSm.d.ts.map → clamped-integer-subtract-C-AIuFhk.d.ts.map} +1 -1
- package/dist/{clamped-integer-subtract-oLs8msYu.d.cts → clamped-integer-subtract-DueGS_u_.d.cts} +1 -1
- package/dist/{clamped-integer-subtract-oLs8msYu.d.cts.map → clamped-integer-subtract-DueGS_u_.d.cts.map} +1 -1
- package/dist/clone.js +1 -1
- package/dist/{coerced-array-DS7cKtbA.d.cts → coerced-array-BKR9Bvsl.d.cts} +1 -1
- package/dist/{coerced-array-DS7cKtbA.d.cts.map → coerced-array-BKR9Bvsl.d.cts.map} +1 -1
- package/dist/{coerced-array-1Xs4p4iF.d.ts → coerced-array-BfTLxqLo.d.ts} +1 -1
- package/dist/{coerced-array-1Xs4p4iF.d.ts.map → coerced-array-BfTLxqLo.d.ts.map} +1 -1
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/concat.js +1 -1
- package/dist/{conditional-tssGt6Vy.d.cts → conditional-Br0uqqc9.d.cts} +1 -1
- package/dist/{conditional-tssGt6Vy.d.cts.map → conditional-Br0uqqc9.d.cts.map} +1 -1
- package/dist/{conditional-F_nq8vtA.d.ts → conditional-CDez6uXp.d.ts} +1 -1
- package/dist/{conditional-F_nq8vtA.d.ts.map → conditional-CDez6uXp.d.ts.map} +1 -1
- package/dist/{conditional-lp8ZHACd.js → conditional-WbmvQs8H.js} +1 -1
- package/dist/{conditional-lp8ZHACd.js.map → conditional-WbmvQs8H.js.map} +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.js +1 -1
- package/dist/count-by.d.cts +1 -1
- package/dist/count-by.d.ts +1 -1
- package/dist/count-by.js +1 -1
- package/dist/{curry-d8_p_Jzt.d.ts → curry-CKDQ1osk.d.ts} +4 -2
- package/dist/curry-CKDQ1osk.d.ts.map +1 -0
- package/dist/{curry-BcQ8Up1_.js → curry-NmniqyJ0.js} +2 -2
- package/dist/curry-NmniqyJ0.js.map +1 -0
- package/dist/{curry-from-lazy-CYtJvyas.js → curry-from-lazy-PQ0BbG-7.js} +2 -2
- package/dist/{curry-from-lazy-CYtJvyas.js.map → curry-from-lazy-PQ0BbG-7.js.map} +1 -1
- package/dist/{curry-B20xQM_9.d.cts → curry-mh6BKSIA.d.cts} +4 -2
- package/dist/curry-mh6BKSIA.d.cts.map +1 -0
- package/dist/{curry-order-rules-cezUWcSx.d.cts → curry-order-rules-BoF09Dq2.d.cts} +1 -1
- package/dist/{curry-order-rules-cezUWcSx.d.cts.map → curry-order-rules-BoF09Dq2.d.cts.map} +1 -1
- package/dist/{curry-order-rules-BCcwbNxd.d.ts → curry-order-rules-CoO4bk5I.d.ts} +1 -1
- package/dist/{curry-order-rules-BCcwbNxd.d.ts.map → curry-order-rules-CoO4bk5I.d.ts.map} +1 -1
- package/dist/{curry-order-rules-C6bwcUwC.js → curry-order-rules-DwrF-_P1.js} +1 -1
- package/dist/{curry-order-rules-C6bwcUwC.js.map → curry-order-rules-DwrF-_P1.js.map} +1 -1
- package/dist/curry.d.cts +1 -1
- package/dist/curry.d.ts +1 -1
- package/dist/curry.js +1 -1
- package/dist/debounce.d.cts +5 -3
- package/dist/debounce.d.cts.map +1 -1
- package/dist/debounce.d.ts +5 -3
- package/dist/debounce.d.ts.map +1 -1
- package/dist/debounce.js.map +1 -1
- package/dist/{deduped-CXeQa-0F.d.cts → deduped-DdwAYzXs.d.cts} +3 -3
- package/dist/{deduped-CXeQa-0F.d.cts.map → deduped-DdwAYzXs.d.cts.map} +1 -1
- package/dist/{deduped-CL5-bmYU.d.ts → deduped-RY-1u-ns.d.ts} +3 -3
- package/dist/{deduped-CL5-bmYU.d.ts.map → deduped-RY-1u-ns.d.ts.map} +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference.js +1 -1
- package/dist/dist-8XtUY3ad.cjs +114 -0
- package/dist/dist-Bd1vawFi.js +103 -0
- package/dist/dist-Bd1vawFi.js.map +1 -0
- package/dist/divide.js +1 -1
- package/dist/drop-first-by.d.cts +2 -2
- package/dist/drop-first-by.d.ts +2 -2
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-last-while.d.cts +1 -1
- package/dist/drop-last-while.d.ts +1 -1
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last.d.cts +1 -1
- package/dist/drop-last.d.ts +1 -1
- package/dist/drop-last.js +1 -1
- package/dist/drop-while.d.cts +1 -1
- package/dist/drop-while.d.ts +1 -1
- package/dist/drop-while.js +1 -1
- package/dist/drop.d.cts +5 -5
- package/dist/drop.d.ts +5 -5
- package/dist/drop.js +1 -1
- package/dist/entries.d.cts +1 -1
- package/dist/entries.d.ts +1 -1
- package/dist/entries.js +1 -1
- package/dist/{enumerable-string-key-of-DMAkBhMk.d.ts → enumerable-string-key-of-CZQf3ld_.d.ts} +2 -2
- package/dist/{enumerable-string-key-of-DMAkBhMk.d.ts.map → enumerable-string-key-of-CZQf3ld_.d.ts.map} +1 -1
- package/dist/{enumerable-string-key-of-FUg082M_.d.cts → enumerable-string-key-of-DhcNc5iz.d.cts} +2 -2
- package/dist/{enumerable-string-key-of-FUg082M_.d.cts.map → enumerable-string-key-of-DhcNc5iz.d.cts.map} +1 -1
- package/dist/{enumerable-string-keyed-value-of-B2F2aTB7.d.ts → enumerable-string-keyed-value-of-CRlVAvdp.d.ts} +1 -1
- package/dist/{enumerable-string-keyed-value-of-B2F2aTB7.d.ts.map → enumerable-string-keyed-value-of-CRlVAvdp.d.ts.map} +1 -1
- package/dist/{enumerable-string-keyed-value-of-CEclDoqe.d.cts → enumerable-string-keyed-value-of-icm2q60J.d.cts} +1 -1
- package/dist/{enumerable-string-keyed-value-of-CEclDoqe.d.cts.map → enumerable-string-keyed-value-of-icm2q60J.d.cts.map} +1 -1
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/evolve.js +1 -1
- package/dist/filter.d.cts +2 -2
- package/dist/filter.d.ts +2 -2
- package/dist/filter.js +1 -1
- package/dist/filtered-array-C--8loav.d.cts +22 -0
- package/dist/filtered-array-C--8loav.d.cts.map +1 -0
- package/dist/filtered-array-wtIEwdU7.d.ts +22 -0
- package/dist/filtered-array-wtIEwdU7.d.ts.map +1 -0
- package/dist/find-index.js +1 -1
- package/dist/find-last-index.js +1 -1
- package/dist/find-last.js +1 -1
- package/dist/find.js +1 -1
- package/dist/first-by.d.cts +3 -3
- package/dist/first-by.d.ts +3 -3
- package/dist/first-by.js +1 -1
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/first.js +1 -1
- package/dist/flat-map.js +1 -1
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/flat.js +1 -1
- package/dist/floor.js +1 -1
- package/dist/for-each-obj.d.cts +2 -2
- package/dist/for-each-obj.d.ts +2 -2
- package/dist/for-each-obj.js +1 -1
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/for-each.js +1 -1
- package/dist/from-entries.d.cts +2 -2
- package/dist/from-entries.d.ts +2 -2
- package/dist/from-entries.js +1 -1
- package/dist/from-keys.d.cts +2 -2
- package/dist/from-keys.d.ts +2 -2
- package/dist/from-keys.js +1 -1
- package/dist/funnel.d.cts.map +1 -1
- package/dist/funnel.d.ts.map +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.cjs +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.js +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.js.map +1 -1
- package/dist/funnel.lodash-debounce.test.cjs +1 -1
- package/dist/funnel.lodash-debounce.test.js +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.cjs +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.js +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.js.map +1 -1
- package/dist/funnel.lodash-throttle.test.cjs +1 -1
- package/dist/funnel.lodash-throttle.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.cjs +1 -1
- package/dist/funnel.perkakas-debounce.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.js.map +1 -1
- package/dist/funnel.reference-batch.test.cjs +1 -1
- package/dist/funnel.reference-batch.test.js +1 -1
- package/dist/funnel.reference-batch.test.js.map +1 -1
- package/dist/funnel.test-d.cjs +1 -1
- package/dist/funnel.test-d.js +1 -1
- package/dist/funnel.test.cjs +1 -1
- package/dist/funnel.test.js +1 -1
- package/dist/funnel.test.js.map +1 -1
- package/dist/group-by-prop.d.cts +10 -10
- package/dist/group-by-prop.d.ts +10 -10
- package/dist/group-by-prop.js +1 -1
- package/dist/group-by-prop.js.map +1 -1
- package/dist/group-by.d.cts +2 -2
- package/dist/group-by.d.ts +2 -2
- package/dist/group-by.js +1 -1
- package/dist/has-at-least-Coy9sM-B.js +2 -0
- package/dist/{has-at-least-DyIhWZJH.js.map → has-at-least-Coy9sM-B.js.map} +1 -1
- package/dist/has-at-least.d.cts +2 -2
- package/dist/has-at-least.d.ts +2 -2
- package/dist/has-at-least.js +1 -1
- package/dist/has-sub-object.js +1 -1
- package/dist/{heap-bARaRULU.js → heap-BhpfhYWj.js} +2 -2
- package/dist/{heap-bARaRULU.js.map → heap-BhpfhYWj.js.map} +1 -1
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index-by.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -14
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +12 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{int-range-inclusive-ClGdUant.d.ts → int-range-inclusive-BlGXX6Cz.d.ts} +1 -1
- package/dist/{int-range-inclusive-ClGdUant.d.ts.map → int-range-inclusive-BlGXX6Cz.d.ts.map} +1 -1
- package/dist/{int-range-inclusive-q-Jb7w6P.d.cts → int-range-inclusive-KocNpK0p.d.cts} +1 -1
- package/dist/{int-range-inclusive-q-Jb7w6P.d.cts.map → int-range-inclusive-KocNpK0p.d.cts.map} +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection.js +1 -1
- package/dist/invert.d.cts +1 -1
- package/dist/invert.d.ts +1 -1
- package/dist/invert.js +1 -1
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/{is-bounded-record-BGclJjRX.d.ts → is-bounded-record-Bx4n8QB0.d.ts} +1 -1
- package/dist/{is-bounded-record-BGclJjRX.d.ts.map → is-bounded-record-Bx4n8QB0.d.ts.map} +1 -1
- package/dist/{is-bounded-record-D9YK_OC8.d.cts → is-bounded-record-DV6ZQk9H.d.cts} +1 -1
- package/dist/{is-bounded-record-D9YK_OC8.d.cts.map → is-bounded-record-DV6ZQk9H.d.cts.map} +1 -1
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/{is-emptyish-CIxZzxxz.d.ts → is-emptyish-9tX94IVx.d.cts} +2 -3
- package/dist/is-emptyish-9tX94IVx.d.cts.map +1 -0
- package/dist/{is-emptyish-oX5mpcfW.d.cts → is-emptyish-DVFGJe-T.d.ts} +2 -3
- package/dist/is-emptyish-DVFGJe-T.d.ts.map +1 -0
- package/dist/is-emptyish.d.cts +1 -1
- package/dist/is-emptyish.d.ts +1 -1
- package/dist/is-emptyish.js.map +1 -1
- package/dist/is-emptyish.test-d.cjs +1 -1
- package/dist/is-emptyish.test-d.js +1 -1
- package/dist/is-emptyish.test.cjs +1 -1
- package/dist/is-emptyish.test.js +1 -1
- package/dist/is-function.d.cts +5 -2
- package/dist/is-function.d.cts.map +1 -1
- package/dist/is-function.d.ts +5 -2
- package/dist/is-function.d.ts.map +1 -1
- package/dist/is-function.js.map +1 -1
- package/dist/is-included-in.d.cts +2 -3
- package/dist/is-included-in.d.cts.map +1 -1
- package/dist/is-included-in.d.ts +2 -3
- package/dist/is-included-in.d.ts.map +1 -1
- package/dist/is-included-in.js.map +1 -1
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-shallow-equal.js +1 -1
- package/dist/is-strict-equal.js +1 -1
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/{iterable-container-OFsaw8WL.d.cts → iterable-container-1TN3AJ3s.d.cts} +1 -1
- package/dist/{iterable-container-OFsaw8WL.d.cts.map → iterable-container-1TN3AJ3s.d.cts.map} +1 -1
- package/dist/{iterable-container-BdjPuIjL.d.ts → iterable-container-Dv5vSKht.d.ts} +1 -1
- package/dist/iterable-container-Dv5vSKht.d.ts.map +1 -0
- package/dist/join.js +1 -1
- package/dist/keys.d.cts +3 -3
- package/dist/keys.d.ts +3 -3
- package/dist/keys.js +1 -1
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/last.js +1 -1
- package/dist/{lazy-data-last-impl-DW5TXWv8.js → lazy-data-last-impl-R05wr4K6.js} +1 -1
- package/dist/lazy-data-last-impl-R05wr4K6.js.map +1 -0
- package/dist/length.js +1 -1
- package/dist/{magic-string.es-BY9a6RR2.js → magic-string.es-94aXgwpn.js} +1 -1
- package/dist/{magic-string.es-BY9a6RR2.js.map → magic-string.es-94aXgwpn.js.map} +1 -1
- package/dist/map-keys.d.cts +3 -3
- package/dist/map-keys.d.ts +3 -3
- package/dist/map-keys.js +1 -1
- package/dist/map-to-obj.js +1 -1
- package/dist/map-values.d.cts +2 -2
- package/dist/map-values.d.ts +2 -2
- package/dist/map-values.js +1 -1
- package/dist/map-with-feedback.d.cts +2 -2
- package/dist/map-with-feedback.d.ts +2 -2
- package/dist/map-with-feedback.js +1 -1
- package/dist/map.d.cts +2 -2
- package/dist/map.d.ts +2 -2
- package/dist/map.js +1 -1
- package/dist/{mapped-LCblUtt3.d.ts → mapped-BbrC9t3s.d.ts} +2 -2
- package/dist/mapped-BbrC9t3s.d.ts.map +1 -0
- package/dist/{mapped-m3FRlUOA.d.cts → mapped-CkRNfTnY.d.cts} +2 -2
- package/dist/mapped-CkRNfTnY.d.cts.map +1 -0
- package/dist/mean-by.js +1 -1
- package/dist/{merge-all-CW8DGAy8.d.cts → merge-all-CISawx-J.d.cts} +4 -4
- package/dist/{merge-all-CW8DGAy8.d.cts.map → merge-all-CISawx-J.d.cts.map} +1 -1
- package/dist/{merge-all-B9JBhVzy.d.ts → merge-all-DJ6n7R1b.d.ts} +4 -4
- package/dist/{merge-all-B9JBhVzy.d.ts.map → merge-all-DJ6n7R1b.d.ts.map} +1 -1
- package/dist/merge-all.d.cts +1 -1
- package/dist/merge-all.d.ts +1 -1
- package/dist/merge-deep.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/multiply.js +1 -1
- package/dist/{n-tuple-Bu1e7UH_.d.cts → n-tuple-BkMobYQ9.d.cts} +1 -1
- package/dist/{n-tuple-Bu1e7UH_.d.cts.map → n-tuple-BkMobYQ9.d.cts.map} +1 -1
- package/dist/{n-tuple-DoE0z7Kl.d.ts → n-tuple-zo5g_mSL.d.ts} +1 -1
- package/dist/{n-tuple-DoE0z7Kl.d.ts.map → n-tuple-zo5g_mSL.d.ts.map} +1 -1
- package/dist/{narrowed-to-j75i8Rl2.d.ts → narrowed-to-B7tkuY2k.d.ts} +1 -1
- package/dist/{narrowed-to-j75i8Rl2.d.ts.map → narrowed-to-B7tkuY2k.d.ts.map} +1 -1
- package/dist/{narrowed-to-Yf5qTOcD.d.cts → narrowed-to-D_6H-aZW.d.cts} +1 -1
- package/dist/{narrowed-to-Yf5qTOcD.d.cts.map → narrowed-to-D_6H-aZW.d.cts.map} +1 -1
- package/dist/{non-empty-array-DXkY7ynY.d.ts → non-empty-array-DHAKSw6t.d.ts} +1 -1
- package/dist/non-empty-array-DHAKSw6t.d.ts.map +1 -0
- package/dist/{non-empty-array-CFG7wGD-.d.cts → non-empty-array-NDjbHRjk.d.cts} +1 -1
- package/dist/non-empty-array-NDjbHRjk.d.cts.map +1 -0
- package/dist/{nth-by-Bs6FNGL-.js → nth-by-JP3-Htbo.js} +2 -2
- package/dist/{nth-by-Bs6FNGL-.js.map → nth-by-JP3-Htbo.js.map} +1 -1
- package/dist/nth-by.d.cts +3 -3
- package/dist/nth-by.d.ts +3 -3
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.js +1 -1
- package/dist/omit-DI8DRDHj.d.ts +71 -0
- package/dist/omit-DI8DRDHj.d.ts.map +1 -0
- package/dist/omit-DQiCiWAg.d.cts +71 -0
- package/dist/omit-DQiCiWAg.d.cts.map +1 -0
- package/dist/omit-by.d.cts +3 -3
- package/dist/omit-by.d.ts +3 -3
- package/dist/omit-by.js +1 -1
- package/dist/omit.d.cts +2 -29
- package/dist/omit.d.ts +2 -29
- package/dist/omit.js +1 -1
- package/dist/omit.js.map +1 -1
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/only.js +1 -1
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts +12 -0
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts.map +1 -0
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts +12 -0
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts.map +1 -0
- package/dist/{partial-array-CoV_xxyQ.d.cts → partial-array-CQF5oggb.d.cts} +1 -1
- package/dist/partial-array-CQF5oggb.d.cts.map +1 -0
- package/dist/{partial-array-CeoXpbZU.d.ts → partial-array-DU-2Vkyx.d.ts} +1 -1
- package/dist/partial-array-DU-2Vkyx.d.ts.map +1 -0
- package/dist/partition-by-union-BztEpKVh.d.cts +20 -0
- package/dist/partition-by-union-BztEpKVh.d.cts.map +1 -0
- package/dist/partition-by-union-DnfiiEMU.d.ts +20 -0
- package/dist/partition-by-union-DnfiiEMU.d.ts.map +1 -0
- package/dist/partition.js +1 -1
- package/dist/path-or.js +1 -1
- package/dist/{perkakas-type-error-DmmsEmEF.d.ts → perkakas-type-error-B9ULNhW0.d.ts} +1 -1
- package/dist/{perkakas-type-error-DmmsEmEF.d.ts.map → perkakas-type-error-B9ULNhW0.d.ts.map} +1 -1
- package/dist/{perkakas-type-error-BERl_sWR.d.cts → perkakas-type-error-ClCCHBW1.d.cts} +1 -1
- package/dist/{perkakas-type-error-BERl_sWR.d.cts.map → perkakas-type-error-ClCCHBW1.d.cts.map} +1 -1
- package/dist/pick-by.d.cts +4 -4
- package/dist/pick-by.d.cts.map +1 -1
- package/dist/pick-by.d.ts +4 -4
- package/dist/pick-by.d.ts.map +1 -1
- package/dist/pick-by.js +1 -1
- package/dist/pick-by.js.map +1 -1
- package/dist/pick.d.cts +4 -15
- package/dist/pick.d.cts.map +1 -1
- package/dist/pick.d.ts +4 -15
- package/dist/pick.d.ts.map +1 -1
- package/dist/pick.js +1 -1
- package/dist/pick.js.map +1 -1
- package/dist/{pipe-BGazHnZ_.js → pipe-CZKusDA-.js} +2 -2
- package/dist/pipe-CZKusDA-.js.map +1 -0
- package/dist/pipe.d.cts +95 -23
- package/dist/pipe.d.cts.map +1 -1
- package/dist/pipe.d.ts +95 -23
- package/dist/pipe.d.ts.map +1 -1
- package/dist/pipe.js +1 -1
- package/dist/piped.js +1 -1
- package/dist/product.d.cts +2 -2
- package/dist/product.d.ts +2 -2
- package/dist/product.js +1 -1
- package/dist/product.js.map +1 -1
- package/dist/{prop-DulcbWGG.d.ts → prop-D-4cFXSd.d.cts} +5 -6
- package/dist/prop-D-4cFXSd.d.cts.map +1 -0
- package/dist/{prop-C3rYih5m.d.cts → prop-DL-oRBeN.d.ts} +5 -6
- package/dist/prop-DL-oRBeN.d.ts.map +1 -0
- package/dist/prop.d.cts +1 -1
- package/dist/prop.d.ts +1 -1
- package/dist/prop.js.map +1 -1
- package/dist/pull-object.d.cts +2 -2
- package/dist/pull-object.d.ts +2 -2
- package/dist/pull-object.js +1 -1
- package/dist/random-integer.d.cts +1 -1
- package/dist/random-integer.d.ts +1 -1
- package/dist/random-string.js +1 -1
- package/dist/range.js +1 -1
- package/dist/rank-by.d.cts +2 -2
- package/dist/rank-by.d.ts +2 -2
- package/dist/rank-by.js +1 -1
- package/dist/reduce.js +1 -1
- package/dist/{reordered-array-B2klHneX.d.ts → reordered-array-BWG6tVSK.d.ts} +2 -2
- package/dist/reordered-array-BWG6tVSK.d.ts.map +1 -0
- package/dist/{reordered-array-BsUBOnYh.d.cts → reordered-array-CmReuxDi.d.cts} +2 -2
- package/dist/reordered-array-CmReuxDi.d.cts.map +1 -0
- package/dist/reverse.js +1 -1
- package/dist/round.js +1 -1
- package/dist/sample.d.cts +5 -5
- package/dist/sample.d.ts +5 -5
- package/dist/sample.js +1 -1
- package/dist/set-path.d.cts +1 -1
- package/dist/set-path.d.ts +1 -1
- package/dist/set-path.js +1 -1
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/set.js +1 -1
- package/dist/shuffle.d.cts +2 -2
- package/dist/shuffle.d.ts +2 -2
- package/dist/shuffle.js +1 -1
- package/dist/sort-by.d.cts +4 -4
- package/dist/sort-by.d.ts +4 -4
- package/dist/sort-by.js +1 -1
- package/dist/sort.d.cts +2 -2
- package/dist/sort.d.ts +2 -2
- package/dist/sort.js +1 -1
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-last-index-by.js +1 -1
- package/dist/sorted-last-index.js +1 -1
- package/dist/splice.js +1 -1
- package/dist/split-at.js +1 -1
- package/dist/split-when.js +1 -1
- package/dist/split.d.cts +8 -8
- package/dist/split.d.cts.map +1 -1
- package/dist/split.d.ts +8 -8
- package/dist/split.d.ts.map +1 -1
- package/dist/split.js.map +1 -1
- package/dist/strict-function-BBgKFNUw.d.ts +26 -0
- package/dist/strict-function-BBgKFNUw.d.ts.map +1 -0
- package/dist/strict-function-CPTwDgnZ.d.cts +26 -0
- package/dist/strict-function-CPTwDgnZ.d.cts.map +1 -0
- package/dist/subtract.js +1 -1
- package/dist/sum-by.d.cts +1 -1
- package/dist/sum-by.d.ts +1 -1
- package/dist/sum-by.js +1 -1
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/sum.js +1 -1
- package/dist/{swap-in-place-COm7qHj4.js → swap-in-place-C_jXKHuD.js} +1 -1
- package/dist/{swap-in-place-COm7qHj4.js.map → swap-in-place-C_jXKHuD.js.map} +1 -1
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/swap-indices.js +1 -1
- package/dist/swap-props.js +1 -1
- package/dist/take-first-by.d.cts +2 -2
- package/dist/take-first-by.d.ts +2 -2
- package/dist/take-first-by.js +1 -1
- package/dist/take-last-while.d.cts +1 -1
- package/dist/take-last-while.d.ts +1 -1
- package/dist/take-last-while.js +1 -1
- package/dist/take-last.d.cts +1 -1
- package/dist/take-last.d.ts +1 -1
- package/dist/take-last.js +1 -1
- package/dist/take-while.d.cts +1 -1
- package/dist/take-while.d.ts +1 -1
- package/dist/take-while.js +1 -1
- package/dist/take.d.cts +1 -1
- package/dist/take.d.ts +1 -1
- package/dist/take.js +1 -1
- package/dist/tap.js +1 -1
- package/dist/times.js +1 -1
- package/dist/to-camel-case.cjs +1 -1
- package/dist/to-camel-case.d.cts +72 -20
- package/dist/to-camel-case.d.cts.map +1 -1
- package/dist/to-camel-case.d.ts +72 -20
- package/dist/to-camel-case.d.ts.map +1 -1
- package/dist/to-camel-case.js +1 -1
- package/dist/to-camel-case.js.map +1 -1
- package/dist/to-kebab-case.cjs +1 -1
- package/dist/to-kebab-case.d.cts +48 -19
- package/dist/to-kebab-case.d.cts.map +1 -1
- package/dist/to-kebab-case.d.ts +48 -19
- package/dist/to-kebab-case.d.ts.map +1 -1
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-kebab-case.js.map +1 -1
- package/dist/to-lower-case.cjs +1 -0
- package/dist/to-lower-case.d.cts +51 -0
- package/dist/to-lower-case.d.cts.map +1 -0
- package/dist/to-lower-case.d.ts +51 -0
- package/dist/to-lower-case.d.ts.map +1 -0
- package/dist/to-lower-case.js +2 -0
- package/dist/to-lower-case.js.map +1 -0
- package/dist/{to-single-vYpRavjM.js → to-single-BKYbBic-.js} +1 -1
- package/dist/to-single-BKYbBic-.js.map +1 -0
- package/dist/to-snake-case.cjs +1 -1
- package/dist/to-snake-case.d.cts +48 -19
- package/dist/to-snake-case.d.cts.map +1 -1
- package/dist/to-snake-case.d.ts +48 -19
- package/dist/to-snake-case.d.ts.map +1 -1
- package/dist/to-snake-case.js +1 -1
- package/dist/to-snake-case.js.map +1 -1
- package/dist/{to-string-Se4KcQka.d.cts → to-string-DkC3zRUJ.d.cts} +1 -1
- package/dist/to-string-DkC3zRUJ.d.cts.map +1 -0
- package/dist/{to-string-C6_OnZ6e.d.ts → to-string-YIFx2KS6.d.ts} +1 -1
- package/dist/to-string-YIFx2KS6.d.ts.map +1 -0
- package/dist/to-title-case.cjs +1 -0
- package/dist/to-title-case.d.cts +86 -0
- package/dist/to-title-case.d.cts.map +1 -0
- package/dist/to-title-case.d.ts +86 -0
- package/dist/to-title-case.d.ts.map +1 -0
- package/dist/to-title-case.js +2 -0
- package/dist/to-title-case.js.map +1 -0
- package/dist/to-upper-case.cjs +1 -0
- package/dist/to-upper-case.d.cts +51 -0
- package/dist/to-upper-case.d.cts.map +1 -0
- package/dist/to-upper-case.d.ts +51 -0
- package/dist/to-upper-case.d.ts.map +1 -0
- package/dist/to-upper-case.js +2 -0
- package/dist/to-upper-case.js.map +1 -0
- package/dist/{tuple-parts-Bhbm4jiu.d.ts → tuple-parts-BYI4o8Vk.d.ts} +8 -8
- package/dist/{tuple-parts-Bhbm4jiu.d.ts.map → tuple-parts-BYI4o8Vk.d.ts.map} +1 -1
- package/dist/{tuple-parts-BJQEORxn.d.cts → tuple-parts-CzQQupgi.d.cts} +8 -8
- package/dist/{tuple-parts-BJQEORxn.d.cts.map → tuple-parts-CzQQupgi.d.cts.map} +1 -1
- package/dist/uncapitalize.cjs +1 -0
- package/dist/uncapitalize.d.cts +51 -0
- package/dist/uncapitalize.d.cts.map +1 -0
- package/dist/uncapitalize.d.ts +51 -0
- package/dist/uncapitalize.d.ts.map +1 -0
- package/dist/uncapitalize.js +2 -0
- package/dist/uncapitalize.js.map +1 -0
- package/dist/unique-by.d.cts +2 -2
- package/dist/unique-by.d.ts +2 -2
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.d.cts +2 -2
- package/dist/unique-with.d.ts +2 -2
- package/dist/unique-with.js +1 -1
- package/dist/unique.d.cts +2 -2
- package/dist/unique.d.ts +2 -2
- package/dist/unique.js +1 -1
- package/dist/{upsert-prop-__xTQQ07.d.ts → upsert-prop-0hwik6JJ.d.cts} +2 -3
- package/dist/{upsert-prop-__xTQQ07.d.ts.map → upsert-prop-0hwik6JJ.d.cts.map} +1 -1
- package/dist/{upsert-prop-P-aJDDII.d.cts → upsert-prop-_NpaZwm4.d.ts} +2 -3
- package/dist/upsert-prop-_NpaZwm4.d.ts.map +1 -0
- package/dist/{utility-evaluators-BwYLtB8b.js → utility-evaluators-Boc-TMbq.js} +1 -1
- package/dist/{utility-evaluators-BwYLtB8b.js.map → utility-evaluators-Boc-TMbq.js.map} +1 -1
- package/dist/values.d.cts +2 -2
- package/dist/values.d.ts +2 -2
- package/dist/values.js +1 -1
- package/dist/{with-precision-CWWiMmxZ.js → with-precision-CQ90Walk.js} +1 -1
- package/dist/{with-precision-CWWiMmxZ.js.map → with-precision-CQ90Walk.js.map} +1 -1
- package/dist/words-DQCM5umD.js +3 -0
- package/dist/words-DQCM5umD.js.map +1 -0
- package/dist/words-DRQKxzLU.cjs +2 -0
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip-with.js +1 -1
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/dist/zip.js +1 -1
- package/package.json +4 -6
- package/dist/case.transform-CCMWrBmz.js +0 -2
- package/dist/case.transform-CCMWrBmz.js.map +0 -1
- package/dist/case.transform-FNx2XsC3.cjs +0 -1
- package/dist/case.types-BxuWJgN1.d.cts +0 -19
- package/dist/case.types-BxuWJgN1.d.cts.map +0 -1
- package/dist/case.types-CVfGg990.d.ts +0 -19
- package/dist/case.types-CVfGg990.d.ts.map +0 -1
- package/dist/curry-B20xQM_9.d.cts.map +0 -1
- package/dist/curry-BcQ8Up1_.js.map +0 -1
- package/dist/curry-d8_p_Jzt.d.ts.map +0 -1
- package/dist/dist-CUT1dnRU.js +0 -343
- package/dist/dist-CUT1dnRU.js.map +0 -1
- package/dist/dist-CiyBKPT6.cjs +0 -343
- package/dist/filtered-array-D_RqQ8tX.d.cts +0 -13
- package/dist/filtered-array-D_RqQ8tX.d.cts.map +0 -1
- package/dist/filtered-array-Yij-X3T4.d.ts +0 -13
- package/dist/filtered-array-Yij-X3T4.d.ts.map +0 -1
- package/dist/has-at-least-DyIhWZJH.js +0 -2
- package/dist/is-emptyish-CIxZzxxz.d.ts.map +0 -1
- package/dist/is-emptyish-oX5mpcfW.d.cts.map +0 -1
- package/dist/is-union-Bu19sEkP.d.ts +0 -8
- package/dist/is-union-Bu19sEkP.d.ts.map +0 -1
- package/dist/is-union-Dp9mCo1b.d.cts +0 -8
- package/dist/is-union-Dp9mCo1b.d.cts.map +0 -1
- package/dist/iterable-container-BdjPuIjL.d.ts.map +0 -1
- package/dist/lazy-data-last-impl-DW5TXWv8.js.map +0 -1
- package/dist/mapped-LCblUtt3.d.ts.map +0 -1
- package/dist/mapped-m3FRlUOA.d.cts.map +0 -1
- package/dist/no-infer-BIHbaQcD.d.ts +0 -5
- package/dist/no-infer-BIHbaQcD.d.ts.map +0 -1
- package/dist/no-infer-BVbyldno.d.cts +0 -5
- package/dist/no-infer-BVbyldno.d.cts.map +0 -1
- package/dist/non-empty-array-CFG7wGD-.d.cts.map +0 -1
- package/dist/non-empty-array-DXkY7ynY.d.ts.map +0 -1
- package/dist/omit.d.cts.map +0 -1
- package/dist/omit.d.ts.map +0 -1
- package/dist/partial-array-CeoXpbZU.d.ts.map +0 -1
- package/dist/partial-array-CoV_xxyQ.d.cts.map +0 -1
- package/dist/pipe-BGazHnZ_.js.map +0 -1
- package/dist/prop-C3rYih5m.d.cts.map +0 -1
- package/dist/prop-DulcbWGG.d.ts.map +0 -1
- package/dist/reordered-array-B2klHneX.d.ts.map +0 -1
- package/dist/reordered-array-BsUBOnYh.d.cts.map +0 -1
- package/dist/to-capital-case.cjs +0 -1
- package/dist/to-capital-case.d.cts +0 -31
- package/dist/to-capital-case.d.cts.map +0 -1
- package/dist/to-capital-case.d.ts +0 -31
- package/dist/to-capital-case.d.ts.map +0 -1
- package/dist/to-capital-case.js +0 -2
- package/dist/to-capital-case.js.map +0 -1
- package/dist/to-constant-case.cjs +0 -1
- package/dist/to-constant-case.d.cts +0 -31
- package/dist/to-constant-case.d.cts.map +0 -1
- package/dist/to-constant-case.d.ts +0 -31
- package/dist/to-constant-case.d.ts.map +0 -1
- package/dist/to-constant-case.js +0 -2
- package/dist/to-constant-case.js.map +0 -1
- package/dist/to-no-case.cjs +0 -1
- package/dist/to-no-case.d.cts +0 -31
- package/dist/to-no-case.d.cts.map +0 -1
- package/dist/to-no-case.d.ts +0 -31
- package/dist/to-no-case.d.ts.map +0 -1
- package/dist/to-no-case.js +0 -2
- package/dist/to-no-case.js.map +0 -1
- package/dist/to-pascal-case.cjs +0 -1
- package/dist/to-pascal-case.d.cts +0 -32
- package/dist/to-pascal-case.d.cts.map +0 -1
- package/dist/to-pascal-case.d.ts +0 -32
- package/dist/to-pascal-case.d.ts.map +0 -1
- package/dist/to-pascal-case.js +0 -2
- package/dist/to-pascal-case.js.map +0 -1
- package/dist/to-pascal-snake-case.cjs +0 -1
- package/dist/to-pascal-snake-case.d.cts +0 -31
- package/dist/to-pascal-snake-case.d.cts.map +0 -1
- package/dist/to-pascal-snake-case.d.ts +0 -31
- package/dist/to-pascal-snake-case.d.ts.map +0 -1
- package/dist/to-pascal-snake-case.js +0 -2
- package/dist/to-pascal-snake-case.js.map +0 -1
- package/dist/to-sentence-case.cjs +0 -1
- package/dist/to-sentence-case.d.cts +0 -31
- package/dist/to-sentence-case.d.cts.map +0 -1
- package/dist/to-sentence-case.d.ts +0 -31
- package/dist/to-sentence-case.d.ts.map +0 -1
- package/dist/to-sentence-case.js +0 -2
- package/dist/to-sentence-case.js.map +0 -1
- package/dist/to-single-vYpRavjM.js.map +0 -1
- package/dist/to-string-C6_OnZ6e.d.ts.map +0 -1
- package/dist/to-string-Se4KcQka.d.cts.map +0 -1
- package/dist/to-train-case.cjs +0 -1
- package/dist/to-train-case.d.cts +0 -31
- package/dist/to-train-case.d.cts.map +0 -1
- package/dist/to-train-case.d.ts +0 -31
- package/dist/to-train-case.d.ts.map +0 -1
- package/dist/to-train-case.js +0 -2
- package/dist/to-train-case.js.map +0 -1
- package/dist/upsert-prop-P-aJDDII.d.cts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/types/reordered-array.d.ts
|
|
4
4
|
type ReorderedArray<T extends IterableContainer> = { -readonly [P in keyof T]: T[number] };
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ReorderedArray as t };
|
|
7
|
-
//# sourceMappingURL=reordered-array-
|
|
7
|
+
//# sourceMappingURL=reordered-array-BWG6tVSK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reordered-array-BWG6tVSK.d.ts","names":[],"sources":["../src/internal/types/reordered-array.ts"],"sourcesContent":[],"mappings":";;;KAEY,yBAAyB,6CACb,IAAI,WAD5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/types/reordered-array.d.ts
|
|
4
4
|
type ReorderedArray<T extends IterableContainer> = { -readonly [P in keyof T]: T[number] };
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ReorderedArray as t };
|
|
7
|
-
//# sourceMappingURL=reordered-array-
|
|
7
|
+
//# sourceMappingURL=reordered-array-CmReuxDi.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reordered-array-CmReuxDi.d.cts","names":[],"sources":["../src/internal/types/reordered-array.ts"],"sourcesContent":[],"mappings":";;;KAEY,yBAAyB,6CACb,IAAI,WAD5B"}
|
package/dist/reverse.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e){return[...e].reverse()}export{t as reverse};
|
|
2
2
|
//# sourceMappingURL=reverse.js.map
|
package/dist/round.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./with-precision-CQ90Walk.js";function n(...n){return e(t(Math.round),n)}export{n as round};
|
|
2
2
|
//# sourceMappingURL=round.js.map
|
package/dist/sample.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NTuple } from "./n-tuple-
|
|
3
|
-
import { t as PartialArray } from "./partial-array-
|
|
4
|
-
import { t as TupleParts } from "./tuple-parts-
|
|
5
|
-
import { t as CoercedArray } from "./coerced-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
|
+
import { t as NTuple } from "./n-tuple-BkMobYQ9.cjs";
|
|
3
|
+
import { t as PartialArray } from "./partial-array-CQF5oggb.cjs";
|
|
4
|
+
import { t as TupleParts } from "./tuple-parts-CzQQupgi.cjs";
|
|
5
|
+
import { t as CoercedArray } from "./coerced-array-BKR9Bvsl.cjs";
|
|
6
6
|
import { FixedLengthArray, IsEqual, IsNever, NonNegativeInteger, Or, Writable } from "type-fest";
|
|
7
7
|
|
|
8
8
|
//#region src/sample.d.ts
|
package/dist/sample.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NTuple } from "./n-tuple-
|
|
3
|
-
import { t as PartialArray } from "./partial-array-
|
|
4
|
-
import { t as TupleParts } from "./tuple-parts-
|
|
5
|
-
import { t as CoercedArray } from "./coerced-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
|
+
import { t as NTuple } from "./n-tuple-zo5g_mSL.js";
|
|
3
|
+
import { t as PartialArray } from "./partial-array-DU-2Vkyx.js";
|
|
4
|
+
import { t as TupleParts } from "./tuple-parts-BYI4o8Vk.js";
|
|
5
|
+
import { t as CoercedArray } from "./coerced-array-BfTLxqLo.js";
|
|
6
6
|
import { FixedLengthArray, IsEqual, IsNever, NonNegativeInteger, Or, Writable } from "type-fest";
|
|
7
7
|
|
|
8
8
|
//#region src/sample.d.ts
|
package/dist/sample.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){if(t<=0)return[];if(t>=e.length)return[...e];let n=Math.min(t,e.length-t),r=new Set;for(;r.size<n;){let t=Math.floor(Math.random()*e.length);r.add(t)}return t===n?[...r].sort((e,t)=>e-t).map(t=>e[t]):e.filter((e,t)=>!r.has(t))}export{t as sample};
|
|
2
2
|
//# sourceMappingURL=sample.js.map
|
package/dist/set-path.d.cts
CHANGED
package/dist/set-path.d.ts
CHANGED
package/dist/set-path.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,r){let[i,...a]=t;if(i===void 0)return r;if(Array.isArray(e)){let t=[...e];return t[i]=n(e[i],a,r),t}let{[i]:o,...s}=e;return{...s,[i]:n(o,a,r)}}export{t as setPath};
|
|
2
2
|
//# sourceMappingURL=set-path.js.map
|
package/dist/set.d.cts
CHANGED
package/dist/set.d.ts
CHANGED
package/dist/set.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,n){return{...e,[t]:n}}export{t as set};
|
|
2
2
|
//# sourceMappingURL=set.js.map
|
package/dist/shuffle.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
|
+
import { t as ReorderedArray } from "./reordered-array-CmReuxDi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shuffle.d.ts
|
|
5
5
|
|
package/dist/shuffle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
|
+
import { t as ReorderedArray } from "./reordered-array-BWG6tVSK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/shuffle.d.ts
|
|
5
5
|
|
package/dist/shuffle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e){let t=[...e];for(let n=0;n<e.length;n++){let r=n+Math.floor(Math.random()*(e.length-n)),i=t[r];t[r]=t[n],t[n]=i}return t}export{t as shuffle};
|
|
2
2
|
//# sourceMappingURL=shuffle.js.map
|
package/dist/sort-by.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
3
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
4
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
|
+
import { t as NonEmptyArray } from "./non-empty-array-NDjbHRjk.cjs";
|
|
3
|
+
import { t as OrderRule } from "./curry-order-rules-BoF09Dq2.cjs";
|
|
4
|
+
import { t as ReorderedArray } from "./reordered-array-CmReuxDi.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/sort-by.d.ts
|
|
7
7
|
|
package/dist/sort-by.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
3
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
4
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
|
+
import { t as NonEmptyArray } from "./non-empty-array-DHAKSw6t.js";
|
|
3
|
+
import { t as OrderRule } from "./curry-order-rules-CoO4bk5I.js";
|
|
4
|
+
import { t as ReorderedArray } from "./reordered-array-BWG6tVSK.js";
|
|
5
5
|
|
|
6
6
|
//#region src/sort-by.d.ts
|
|
7
7
|
|
package/dist/sort-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-order-rules-
|
|
1
|
+
import{t as e}from"./curry-order-rules-DwrF-_P1.js";function t(...t){return e(n,t)}function n(e,t){return[...e].sort(t)}export{t as sortBy};
|
|
2
2
|
//# sourceMappingURL=sort-by.js.map
|
package/dist/sort.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
|
+
import { t as ReorderedArray } from "./reordered-array-CmReuxDi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/sort.d.ts
|
|
5
5
|
|
package/dist/sort.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as ReorderedArray } from "./reordered-array-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
|
+
import { t as ReorderedArray } from "./reordered-array-BWG6tVSK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/sort.d.ts
|
|
5
5
|
|
package/dist/sort.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=[...e];return n.sort(t),n}export{t as sort};
|
|
2
2
|
//# sourceMappingURL=sort.js.map
|
package/dist/sorted-index-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./binary-search-cutoff-index-CN25H71A.js";function n(...t){return e(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t(e,(t,n)=>r(t,n,e)<i)}export{n as sortedIndexBy};
|
|
2
2
|
//# sourceMappingURL=sorted-index-by.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./binary-search-cutoff-index-CN25H71A.js";function n(...n){return e(t,n)}export{n as sortedIndexWith};
|
|
2
2
|
//# sourceMappingURL=sorted-index-with.js.map
|
package/dist/sorted-index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./binary-search-cutoff-index-CN25H71A.js";function n(...t){return e(r,t)}function r(e,n){return t(e,e=>e<n)}export{n as sortedIndex};
|
|
2
2
|
//# sourceMappingURL=sorted-index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./binary-search-cutoff-index-CN25H71A.js";function n(...t){return e(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t(e,(t,n)=>r(t,n,e)<=i)}export{n as sortedLastIndexBy};
|
|
2
2
|
//# sourceMappingURL=sorted-last-index-by.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./binary-search-cutoff-index-CN25H71A.js";function n(...t){return e(r,t)}function r(e,n){return t(e,e=>e<=n)}export{n as sortedLastIndex};
|
|
2
2
|
//# sourceMappingURL=sorted-last-index.js.map
|
package/dist/splice.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,n,r){let i=[...e];return i.splice(t,n,...r),i}export{t as splice};
|
|
2
2
|
//# sourceMappingURL=splice.js.map
|
package/dist/split-at.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=Math.max(Math.min(t<0?e.length+t:t,e.length),0);return[e.slice(0,n),e.slice(n)]}export{t as splitAt};
|
|
2
2
|
//# sourceMappingURL=split-at.js.map
|
package/dist/split-when.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=e.findIndex(t);return n===-1?[[...e],[]]:[e.slice(0,n),e.slice(n)]}export{t as splitWhen};
|
|
2
2
|
//# sourceMappingURL=split-when.js.map
|
package/dist/split.d.cts
CHANGED
|
@@ -20,11 +20,11 @@ type Split$1<S extends string, Separator extends string, N extends number | unde
|
|
|
20
20
|
* @returns An Array of strings, split at each point where the separator occurs
|
|
21
21
|
* in the given string.
|
|
22
22
|
* @signature
|
|
23
|
-
*
|
|
23
|
+
* P.split(data, separator, limit);
|
|
24
24
|
* @example
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* P.split("a,b,c", ","); //=> ["a", "b", "c"]
|
|
26
|
+
* P.split("a,b,c", ",", 2); //=> ["a", "b"]
|
|
27
|
+
* P.split("a1b2c3d", /\d/u); //=> ["a", "b", "c", "d"]
|
|
28
28
|
* @dataFirst
|
|
29
29
|
* @category String
|
|
30
30
|
*/
|
|
@@ -47,11 +47,11 @@ declare function split<S extends string, Separator extends string, N extends num
|
|
|
47
47
|
* @returns An Array of strings, split at each point where the separator occurs
|
|
48
48
|
* in the given string.
|
|
49
49
|
* @signature
|
|
50
|
-
*
|
|
50
|
+
* P.split(separator, limit)(data);
|
|
51
51
|
* @example
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* P.pipe("a,b,c", P.split(",")); //=> ["a", "b", "c"]
|
|
53
|
+
* P.pipe("a,b,c", P.split(",", 2)); //=> ["a", "b"]
|
|
54
|
+
* P.pipe("a1b2c3d", P.split(/\d/u)); //=> ["a", "b", "c", "d"]
|
|
55
55
|
* @dataLast
|
|
56
56
|
* @category String
|
|
57
57
|
*/
|
package/dist/split.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.d.cts","names":[],"sources":["../src/split.ts"],"sourcesContent":[],"mappings":";;;KAOK,+GAIc,IACf,+BACe,YACb,+BACe,IACb,
|
|
1
|
+
{"version":3,"file":"split.d.cts","names":[],"sources":["../src/split.ts"],"sourcesContent":[],"mappings":";;;KAOK,+GAIc,IACf,+BACe,YACb,+BACe,IACb,gBAEA,QAAQ,kBACN,gBACA,WAIA,MAAU,GAAG,eAIb,mBAAmB,YAAY;;AAvBtB;;;;;;;;;;;;;;;;;;AAoDnB;AAKA;;;;;;AAIiE,iBATjD,KAAA,CASiD,IAAA,EAAA,MAAA,EAAA,SAAA,EAPpD,MAOoD,EAAA,KAAA,CAAA,EAAA,MAAA,CAAA,EAL9D,KAK8D,CAAA,MAAA,CAAA;AAApB,iBAJ7B,KAI6B,CAAA,UAAA,MAAA,EAAA,kBAAA,MAAA,EAAA,UAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA,CAAA,IAAA,EAArC,CAAqC,EAAA,SAAA,EAAvB,SAAuB,EAAA,KAAA,CAAA,EAAJ,CAAI,CAAA,EAAA,OAAA,CAAM,CAAN,EAAS,SAAT,EAAoB,CAApB,CAAA;;AA2B7C;AAIA;;;;;;;;;;;;;;;;;;;;;;;iBAJgB,KAAA,YACH,2CAEQ;iBACL,uGAIH,mBAAmB,WAAW,MAAM,QAAM,GAAG,WAAW"}
|
package/dist/split.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ type Split$1<S extends string, Separator extends string, N extends number | unde
|
|
|
20
20
|
* @returns An Array of strings, split at each point where the separator occurs
|
|
21
21
|
* in the given string.
|
|
22
22
|
* @signature
|
|
23
|
-
*
|
|
23
|
+
* P.split(data, separator, limit);
|
|
24
24
|
* @example
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* P.split("a,b,c", ","); //=> ["a", "b", "c"]
|
|
26
|
+
* P.split("a,b,c", ",", 2); //=> ["a", "b"]
|
|
27
|
+
* P.split("a1b2c3d", /\d/u); //=> ["a", "b", "c", "d"]
|
|
28
28
|
* @dataFirst
|
|
29
29
|
* @category String
|
|
30
30
|
*/
|
|
@@ -47,11 +47,11 @@ declare function split<S extends string, Separator extends string, N extends num
|
|
|
47
47
|
* @returns An Array of strings, split at each point where the separator occurs
|
|
48
48
|
* in the given string.
|
|
49
49
|
* @signature
|
|
50
|
-
*
|
|
50
|
+
* P.split(separator, limit)(data);
|
|
51
51
|
* @example
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* P.pipe("a,b,c", P.split(",")); //=> ["a", "b", "c"]
|
|
53
|
+
* P.pipe("a,b,c", P.split(",", 2)); //=> ["a", "b"]
|
|
54
|
+
* P.pipe("a1b2c3d", P.split(/\d/u)); //=> ["a", "b", "c", "d"]
|
|
55
55
|
* @dataLast
|
|
56
56
|
* @category String
|
|
57
57
|
*/
|
package/dist/split.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.d.ts","names":[],"sources":["../src/split.ts"],"sourcesContent":[],"mappings":";;;KAOK,+GAIc,IACf,+BACe,YACb,+BACe,IACb,
|
|
1
|
+
{"version":3,"file":"split.d.ts","names":[],"sources":["../src/split.ts"],"sourcesContent":[],"mappings":";;;KAOK,+GAIc,IACf,+BACe,YACb,+BACe,IACb,gBAEA,QAAQ,kBACN,gBACA,WAIA,MAAU,GAAG,eAIb,mBAAmB,YAAY;;AAvBtB;;;;;;;;;;;;;;;;;;AAoDnB;AAKA;;;;;;AAIiE,iBATjD,KAAA,CASiD,IAAA,EAAA,MAAA,EAAA,SAAA,EAPpD,MAOoD,EAAA,KAAA,CAAA,EAAA,MAAA,CAAA,EAL9D,KAK8D,CAAA,MAAA,CAAA;AAApB,iBAJ7B,KAI6B,CAAA,UAAA,MAAA,EAAA,kBAAA,MAAA,EAAA,UAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA,CAAA,IAAA,EAArC,CAAqC,EAAA,SAAA,EAAvB,SAAuB,EAAA,KAAA,CAAA,EAAJ,CAAI,CAAA,EAAA,OAAA,CAAM,CAAN,EAAS,SAAT,EAAoB,CAApB,CAAA;;AA2B7C;AAIA;;;;;;;;;;;;;;;;;;;;;;;iBAJgB,KAAA,YACH,2CAEQ;iBACL,uGAIH,mBAAmB,WAAW,MAAM,QAAM,GAAG,WAAW"}
|
package/dist/split.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.js","names":[],"sources":["../src/split.ts"],"sourcesContent":["import type {\n ArraySlice,\n IsFloat,\n NonNegative,\n Split as SplitBase,\n} from 'type-fest';\n\ntype Split<\n S extends string,\n Separator extends string,\n N extends number | undefined = undefined,\n> = string extends S\n ? Array<string>\n : string extends Separator\n ? Array<string>\n : number extends N\n ? Array<string>\n
|
|
1
|
+
{"version":3,"file":"split.js","names":[],"sources":["../src/split.ts"],"sourcesContent":["import type {\n ArraySlice,\n IsFloat,\n NonNegative,\n Split as SplitBase,\n} from 'type-fest';\n\ntype Split<\n S extends string,\n Separator extends string,\n N extends number | undefined = undefined,\n> = string extends S\n ? Array<string>\n : string extends Separator\n ? Array<string>\n : number extends N\n ? Array<string>\n // TODO: We need a way to \"floor\" non-integer numbers, until then we return a lower fidelity type instead.\n : IsFloat<N> extends true\n ? Array<string>\n : ArraySlice<\n // We can use the base (type-fest) split **only** if all the params\n // are literals. For all other cases it would return the wrong type\n // so we fallback to the built-in Array.prototype.split return type.\n SplitBase<S, Separator>,\n 0,\n // `undefined` and negative numbers are treated as non-limited\n // splits, which is what we'd get when using `never` for ArraySlice.\n N extends number ? NonNegative<N> : never\n >;\n\n/**\n * Takes a pattern and divides this string into an ordered list of substrings by\n * searching for the pattern, puts these substrings into an array, and returns\n * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\n * method.\n *\n * @param data - The string to split.\n * @param separator - The pattern describing where each split should occur. Can\n * be a string, or a regular expression.\n * @param limit - A non-negative integer specifying a limit on the number of\n * substrings to be included in the array. If provided, splits the string at\n * each occurrence of the specified separator, but stops when limit entries have\n * been placed in the array. Any leftover text is not included in the array at\n * all. The array may contain fewer entries than limit if the end of the string\n * is reached before the limit is reached. If limit is 0, [] is returned.\n * @returns An Array of strings, split at each point where the separator occurs\n * in the given string.\n * @signature\n * P.split(data, separator, limit);\n * @example\n * P.split(\"a,b,c\", \",\"); //=> [\"a\", \"b\", \"c\"]\n * P.split(\"a,b,c\", \",\", 2); //=> [\"a\", \"b\"]\n * P.split(\"a1b2c3d\", /\\d/u); //=> [\"a\", \"b\", \"c\", \"d\"]\n * @dataFirst\n * @category String\n */\nexport function split(\n data: string,\n separator: RegExp,\n limit?: number,\n): Array<string>;\nexport function split<\n S extends string,\n Separator extends string,\n N extends number | undefined = undefined,\n>(data: S, separator: Separator, limit?: N): Split<S, Separator, N>;\n\n/**\n * Takes a pattern and divides this string into an ordered list of substrings by\n * searching for the pattern, puts these substrings into an array, and returns\n * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\n * method.\n *\n * @param separator - The pattern describing where each split should occur. Can\n * be a string, or a regular expression.\n * @param limit - A non-negative integer specifying a limit on the number of\n * substrings to be included in the array. If provided, splits the string at\n * each occurrence of the specified separator, but stops when limit entries have\n * been placed in the array. Any leftover text is not included in the array at\n * all. The array may contain fewer entries than limit if the end of the string\n * is reached before the limit is reached. If limit is 0, [] is returned.\n * @returns An Array of strings, split at each point where the separator occurs\n * in the given string.\n * @signature\n * P.split(separator, limit)(data);\n * @example\n * P.pipe(\"a,b,c\", P.split(\",\")); //=> [\"a\", \"b\", \"c\"]\n * P.pipe(\"a,b,c\", P.split(\",\", 2)); //=> [\"a\", \"b\"]\n * P.pipe(\"a1b2c3d\", P.split(/\\d/u)); //=> [\"a\", \"b\", \"c\", \"d\"]\n * @dataLast\n * @category String\n */\nexport function split(\n separator: RegExp,\n limit?: number,\n): (data: string) => Array<string>;\nexport function split<\n S extends string,\n Separator extends string,\n N extends number | undefined = undefined,\n>(separator: Separator, limit?: N): (data: S) => Split<S, Separator, N>;\n\nexport function split(\n dataOrSeparator: RegExp | string,\n separatorOrLimit?: RegExp | number | string,\n limit?: number,\n): unknown {\n return typeof separatorOrLimit === 'number' || separatorOrLimit === undefined\n // dataLast\n // eslint-disable-next-line sonar/argument-type\n ? (data: string) => data.split(dataOrSeparator, separatorOrLimit)\n // dataFirst\n : (dataOrSeparator as string).split(separatorOrLimit, limit);\n}\n"],"mappings":"AAuGA,SAAgB,EACd,EACA,EACA,EACS,CACT,OAAO,OAAO,GAAqB,UAAY,IAAqB,IAAA,GAG/D,GAAiB,EAAK,MAAM,EAAiB,EAAiB,CAE9D,EAA2B,MAAM,EAAkB,EAAM"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/internal/types/strict-function.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* TypeScript compares function parameters using [contra-variance and not
|
|
4
|
+
* co-variance](https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)#Function_types).
|
|
5
|
+
* To accept all functions we **can't** use `readonly unknown[]` (which only
|
|
6
|
+
* accepts functions with an actual variadic param). Instead, contrary to
|
|
7
|
+
* intuition, we need to use `never` (which extends **everything!** and thus
|
|
8
|
+
* would catch all cases). Another way to think about it is that a function
|
|
9
|
+
* with `never` parameters is effectively un-callable, making functions that
|
|
10
|
+
* take anything else callable, and thus are "extensions" of it.
|
|
11
|
+
*
|
|
12
|
+
* It's important to note that the resulting type is "academic", but not very
|
|
13
|
+
* useful because of a known, and [reported](https://github.com/microsoft/TypeScript/issues/61750), limitation of TypeScript that stems
|
|
14
|
+
* from the fact that TypeScript infers types parameterized by generic types
|
|
15
|
+
* too eagerly, making it impossible to rely on parts of a generic type
|
|
16
|
+
* generically too. Internally use `@ts-expect-error` in those cases and
|
|
17
|
+
* explain what the expected type should have been, this is so that if the issue
|
|
18
|
+
* is resolved in future versions of TypeScript we can easily find these places
|
|
19
|
+
* and fix them.
|
|
20
|
+
*
|
|
21
|
+
* @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBA6glsAFgJQgQwCYHsB2AbEAVRwGscsB3HAHgBUA+KAXilqggA9gIcMBnKAAoAdKLQAnAOZ8AXFHHps+EFACupclQDaAXQCUzRurKUcAKChQA-FGDjVEC1DkAzNHj4QA3GbOhIsAiIAII4IHSMLGyc3LwCImJSslBoYQZMRhqm1rb20K7unj5+4NDwSAByEABuEOIRzKzsXDz8QqLCEtJyODV16ZkmVDl2Ds5Qbh7evv7QtBB8wABi6gDGjYJoPaoAtgBG-YZQi+JwOJLFs1AAGgAMjeUoirgExEM084srOKv0PgD0-0sUAAelYZqUbgBGB5BULhT7LNZ-MyA4FgiEBa4AJlhlT69UR31+AKBljBQA
|
|
22
|
+
*/
|
|
23
|
+
type StrictFunction = (...args: never) => unknown;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { StrictFunction as t };
|
|
26
|
+
//# sourceMappingURL=strict-function-BBgKFNUw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strict-function-BBgKFNUw.d.ts","names":[],"sources":["../src/internal/types/strict-function.ts"],"sourcesContent":[],"mappings":";;AAqBA;;;;;;;;;;;;;;;;;;;;KAAY,cAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/internal/types/strict-function.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* TypeScript compares function parameters using [contra-variance and not
|
|
4
|
+
* co-variance](https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)#Function_types).
|
|
5
|
+
* To accept all functions we **can't** use `readonly unknown[]` (which only
|
|
6
|
+
* accepts functions with an actual variadic param). Instead, contrary to
|
|
7
|
+
* intuition, we need to use `never` (which extends **everything!** and thus
|
|
8
|
+
* would catch all cases). Another way to think about it is that a function
|
|
9
|
+
* with `never` parameters is effectively un-callable, making functions that
|
|
10
|
+
* take anything else callable, and thus are "extensions" of it.
|
|
11
|
+
*
|
|
12
|
+
* It's important to note that the resulting type is "academic", but not very
|
|
13
|
+
* useful because of a known, and [reported](https://github.com/microsoft/TypeScript/issues/61750), limitation of TypeScript that stems
|
|
14
|
+
* from the fact that TypeScript infers types parameterized by generic types
|
|
15
|
+
* too eagerly, making it impossible to rely on parts of a generic type
|
|
16
|
+
* generically too. Internally use `@ts-expect-error` in those cases and
|
|
17
|
+
* explain what the expected type should have been, this is so that if the issue
|
|
18
|
+
* is resolved in future versions of TypeScript we can easily find these places
|
|
19
|
+
* and fix them.
|
|
20
|
+
*
|
|
21
|
+
* @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBA6glsAFgJQgQwCYHsB2AbEAVRwGscsB3HAHgBUA+KAXilqggA9gIcMBnKAAoAdKLQAnAOZ8AXFHHps+EFACupclQDaAXQCUzRurKUcAKChQA-FGDjVEC1DkAzNHj4QA3GbOhIsAiIAII4IHSMLGyc3LwCImJSslBoYQZMRhqm1rb20K7unj5+4NDwSAByEABuEOIRzKzsXDz8QqLCEtJyODV16ZkmVDl2Ds5Qbh7evv7QtBB8wABi6gDGjYJoPaoAtgBG-YZQi+JwOJLFs1AAGgAMjeUoirgExEM084srOKv0PgD0-0sUAAelYZqUbgBGB5BULhT7LNZ-MyA4FgiEBa4AJlhlT69UR31+AKBljBQA
|
|
22
|
+
*/
|
|
23
|
+
type StrictFunction = (...args: never) => unknown;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { StrictFunction as t };
|
|
26
|
+
//# sourceMappingURL=strict-function-CPTwDgnZ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strict-function-CPTwDgnZ.d.cts","names":[],"sources":["../src/internal/types/strict-function.ts"],"sourcesContent":[],"mappings":";;AAqBA;;;;;;;;;;;;;;;;;;;;KAAY,cAAA"}
|
package/dist/subtract.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){return e-t}export{t as subtract};
|
|
2
2
|
//# sourceMappingURL=subtract.js.map
|
package/dist/sum-by.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/sum-by.d.ts
|
|
4
4
|
type SumBy<T extends IterableContainer, U extends bigint | number> = T extends readonly [] ? 0 : T extends readonly [unknown, ...ReadonlyArray<unknown>] ? U : 0 | U;
|
package/dist/sum-by.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
2
|
|
|
3
3
|
//#region src/sum-by.d.ts
|
|
4
4
|
type SumBy<T extends IterableContainer, U extends bigint | number> = T extends readonly [] ? 0 : T extends readonly [unknown, ...ReadonlyArray<unknown>] ? U : 0 | U;
|
package/dist/sum-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=e.entries(),r=n.next();if(`done`in r&&r.done)return 0;let{value:[,i]}=r,a=t(i,0,e);for(let[r,i]of n){let n=t(i,r,e);a+=n}return a}export{t as sumBy};
|
|
2
2
|
//# sourceMappingURL=sum-by.js.map
|
package/dist/sum.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/sum.d.ts
|
|
4
4
|
type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
|
package/dist/sum.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
2
|
|
|
3
3
|
//#region src/sum.d.ts
|
|
4
4
|
type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
|
package/dist/sum.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e){let t=typeof e[0]==`bigint`?0n:0;for(let n of e)t+=n;return t}export{t as sum};
|
|
2
2
|
//# sourceMappingURL=sum.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
function e(e,t,n){[e[t],e[n]]=[e[n],e[t]]}export{e as t};
|
|
2
|
-
//# sourceMappingURL=swap-in-place-
|
|
2
|
+
//# sourceMappingURL=swap-in-place-C_jXKHuD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-in-place-
|
|
1
|
+
{"version":3,"file":"swap-in-place-C_jXKHuD.js","names":[],"sources":["../src/internal/swap-in-place.ts"],"sourcesContent":["/**\n * An efficient hack to swap the values at two indices in an array *in-place*.\n */\nexport function swapInPlace(\n\n data: Array<unknown>,\n i: number,\n j: number,\n): void {\n // We use destructuring to perform an in-place swap *without* needing a\n // temporary variable\n [data[i], data[j]] = [data[j], data[i]];\n}\n"],"mappings":"AAGA,SAAgB,EAEd,EACA,EACA,EACM,CAGN,CAAC,EAAK,GAAI,EAAK,IAAM,CAAC,EAAK,GAAI,EAAK,GAAG"}
|
package/dist/swap-indices.d.cts
CHANGED
package/dist/swap-indices.d.ts
CHANGED
package/dist/swap-indices.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,n){return typeof e==`string`?r([...e],t,n).join(``):r(e,t,n)}function r(e,t,n){let r=[...e];if(Number.isNaN(t)||Number.isNaN(n))return r;let i=t<0?e.length+t:t,a=n<0?e.length+n:n;return i<0||i>e.length||a<0||a>e.length?r:(r[i]=e[a],r[a]=e[i],r)}export{t as swapIndices};
|
|
2
2
|
//# sourceMappingURL=swap-indices.js.map
|
package/dist/swap-props.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,n){let{[t]:r,[n]:i}=e;return{...e,[t]:i,[n]:r}}export{t as swapProps};
|
|
2
2
|
//# sourceMappingURL=swap-props.js.map
|
package/dist/take-first-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
2
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
1
|
+
import { t as NonEmptyArray } from "./non-empty-array-NDjbHRjk.cjs";
|
|
2
|
+
import { t as OrderRule } from "./curry-order-rules-BoF09Dq2.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/take-first-by.d.ts
|
|
5
5
|
|
package/dist/take-first-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
2
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
1
|
+
import { t as NonEmptyArray } from "./non-empty-array-DHAKSw6t.js";
|
|
2
|
+
import { t as OrderRule } from "./curry-order-rules-CoO4bk5I.js";
|
|
3
3
|
|
|
4
4
|
//#region src/take-first-by.d.ts
|
|
5
5
|
|
package/dist/take-first-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./curry-order-rules-
|
|
1
|
+
import{n as e}from"./curry-order-rules-DwrF-_P1.js";import{n as t,t as n}from"./heap-BhpfhYWj.js";function r(...t){return e(i,t)}function i(e,r,i){if(i<=0)return[];if(i>=e.length)return[...e];let a=e.slice(0,i);t(a,r);let o=e.slice(i);for(let e of o)n(a,r,e);return a}export{r as takeFirstBy};
|
|
2
2
|
//# sourceMappingURL=take-first-by.js.map
|
package/dist/take-last-while.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){for(let n=e.length-1;n>=0;n--)if(!t(e[n],n,e))return e.slice(n+1);return[...e]}export{t as takeLastWhile};
|
|
2
2
|
//# sourceMappingURL=take-last-while.js.map
|
package/dist/take-last.d.cts
CHANGED
package/dist/take-last.d.ts
CHANGED
package/dist/take-last.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){return t>0?e.slice(Math.max(0,e.length-t)):[]}export{t as takeLast};
|
|
2
2
|
//# sourceMappingURL=take-last.js.map
|
package/dist/take-while.d.cts
CHANGED
package/dist/take-while.d.ts
CHANGED
package/dist/take-while.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=[];for(let[r,i]of e.entries()){if(!t(i,r,e))break;n.push(i)}return n}export{t as takeWhile};
|
|
2
2
|
//# sourceMappingURL=take-while.js.map
|