@vinicunca/perkakas 1.5.0 → 1.7.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.cjs +1 -1
- 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.cjs +1 -1
- package/dist/add.js +1 -1
- package/dist/all-pass.cjs +1 -1
- package/dist/all-pass.js +1 -1
- package/dist/any-pass.cjs +1 -1
- package/dist/any-pass.js +1 -1
- package/dist/array-required-prefix-Ck4lHkbA.d.cts +33 -0
- package/dist/array-required-prefix-DXv_WnmG.d.ts +33 -0
- package/dist/bounded-partial-BqwRN49U.d.cts +15 -0
- package/dist/bounded-partial-BzynYDVs.d.ts +15 -0
- package/dist/ceil.cjs +1 -1
- package/dist/ceil.js +1 -1
- package/dist/{chunk-AJQEGHF5.cjs → chunk-22AQJBPW.cjs} +1 -1
- package/dist/chunk-2HQM73IT.cjs +1 -0
- package/dist/chunk-2XGSSTCA.js +1 -0
- package/dist/chunk-3DOG24FJ.cjs +1 -0
- package/dist/{chunk-6ENW2VLC.cjs → chunk-3LC3CLYE.cjs} +1 -1
- package/dist/chunk-44LUF6RO.js +1 -0
- package/dist/chunk-4BTTPOEU.cjs +1 -0
- package/dist/chunk-4Y6KJJOW.js +1 -0
- package/dist/chunk-5PMGMODH.js +1 -0
- package/dist/{chunk-GVYLRJPB.cjs → chunk-66JP4PUG.cjs} +1 -1
- package/dist/chunk-6M4IYQFZ.js +1 -0
- package/dist/chunk-76VE5EC6.cjs +1 -0
- package/dist/{chunk-TNA73S2T.cjs → chunk-7C7R7JNX.cjs} +1 -1
- package/dist/{chunk-WONMP5WS.js → chunk-7V7IBWP5.js} +1 -1
- package/dist/chunk-B6SBIS6W.js +1 -0
- package/dist/chunk-BEMQAYI5.cjs +1 -0
- package/dist/chunk-BKBHW2XJ.js +1 -0
- package/dist/chunk-BSNCALDT.cjs +1 -0
- package/dist/chunk-CTGIT5TY.js +1 -0
- package/dist/{chunk-UGWBDJPI.cjs → chunk-D4TUHKBA.cjs} +1 -1
- package/dist/chunk-EK7ODJWE.js +1 -0
- package/dist/chunk-FGMSPUSF.cjs +1 -0
- package/dist/chunk-FIO5FNV2.js +1 -0
- package/dist/chunk-FOUZI2Q3.cjs +1 -0
- package/dist/chunk-GRKRFDIL.js +1 -0
- package/dist/chunk-GW4KDK3D.cjs +1 -0
- package/dist/chunk-HSNPZS6R.cjs +1 -0
- package/dist/chunk-ITDJLXHO.js +1 -0
- package/dist/{chunk-FLQYTU5W.cjs → chunk-JHFSYEXB.cjs} +1 -1
- package/dist/{chunk-WCPENZWH.js → chunk-JI5FJX2E.js} +1 -1
- package/dist/chunk-JYWIRZ2Z.js +1 -0
- package/dist/chunk-K26HQR4Y.cjs +1 -0
- package/dist/chunk-KYMVIFAW.cjs +1 -0
- package/dist/chunk-MBGSSEZN.cjs +1 -0
- package/dist/{chunk-22IDCBFS.js → chunk-MPWQN3WY.js} +1 -1
- package/dist/chunk-NHTBBY2L.js +1 -0
- package/dist/chunk-NQUTCPKD.js +1 -0
- package/dist/{chunk-ZQXE6PIV.cjs → chunk-NVCXF5UR.cjs} +1 -1
- package/dist/chunk-O74TUGYF.js +1 -0
- package/dist/chunk-OKBFQ7B6.js +1 -0
- package/dist/{chunk-MHEODCN3.cjs → chunk-OMHZCALN.cjs} +1 -1
- package/dist/chunk-P7RCAO7P.cjs +438 -0
- package/dist/chunk-QGF2XNZS.cjs +1 -0
- package/dist/chunk-R4O7XE2F.cjs +1 -0
- package/dist/chunk-RMOD5JNB.cjs +1 -0
- package/dist/chunk-RTFVY5D4.cjs +1 -0
- package/dist/chunk-SG2YWG6U.cjs +1 -0
- package/dist/chunk-SXNRBENP.cjs +1 -0
- package/dist/chunk-TSP3FU72.cjs +1 -0
- package/dist/chunk-TVMG2NYC.js +1 -0
- package/dist/chunk-TWCEO47X.cjs +1 -0
- package/dist/{chunk-L4FN2W5Q.cjs → chunk-TXPRX236.cjs} +1 -1
- package/dist/{chunk-3K7SNX4D.cjs → chunk-UURK6I3D.cjs} +1 -1
- package/dist/chunk-UWMBE6BM.js +1 -0
- package/dist/{chunk-VBH6SKKO.js → chunk-VI2QG3FU.js} +1 -1
- package/dist/chunk-XCG2UC6T.js +1 -0
- package/dist/chunk-YCSQX2SY.js +1 -0
- package/dist/{chunk-6XVLHSPK.js → chunk-YRVN4PYH.js} +1 -1
- package/dist/chunk-YWIXN5BR.js +1 -0
- package/dist/chunk-Z23BZCCD.js +438 -0
- package/dist/{chunk-EDZFEURO.js → chunk-Z5YZYBC2.js} +1 -1
- package/dist/chunk-Z7D7Q6U3.js +1 -0
- package/dist/chunk-ZITGCTSW.js +1 -0
- package/dist/chunk-ZMG3NQDL.js +1 -0
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.d.cts +37 -41
- package/dist/chunk.d.ts +37 -41
- package/dist/chunk.js +1 -1
- package/dist/clamp.cjs +1 -1
- package/dist/clamp.js +1 -1
- package/dist/clamped-integer-subtract-DZ7rsJE4.d.cts +15 -0
- package/dist/clamped-integer-subtract-DZ7rsJE4.d.ts +15 -0
- package/dist/clone.cjs +1 -1
- package/dist/clone.js +1 -1
- package/dist/coerced-array-DRz3tqda.d.cts +14 -0
- package/dist/coerced-array-DRz3tqda.d.ts +14 -0
- package/dist/concat.cjs +1 -1
- package/dist/concat.js +1 -1
- package/dist/conditional.cjs +1 -1
- package/dist/conditional.d.cts +133 -43
- package/dist/conditional.d.ts +133 -43
- package/dist/conditional.js +1 -1
- package/dist/constant.cjs +1 -1
- package/dist/constant.js +1 -1
- package/dist/count-by.cjs +1 -1
- package/dist/count-by.d.cts +5 -4
- package/dist/count-by.d.ts +5 -4
- package/dist/count-by.js +1 -1
- package/dist/curry.cjs +1 -1
- package/dist/curry.js +1 -1
- package/dist/debounce.cjs +1 -1
- package/dist/debounce.js +1 -1
- package/dist/difference-with.cjs +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference.cjs +1 -1
- package/dist/difference.js +1 -1
- package/dist/divide.cjs +1 -1
- package/dist/divide.js +1 -1
- package/dist/do-nothing.cjs +1 -1
- package/dist/do-nothing.js +1 -1
- package/dist/drop-first-by.cjs +1 -1
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.js +1 -1
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.js +1 -1
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +18 -30
- package/dist/drop.d.ts +18 -30
- package/dist/drop.js +1 -1
- package/dist/entries.cjs +1 -1
- package/dist/entries.d.cts +8 -5
- package/dist/entries.d.ts +8 -5
- package/dist/entries.js +1 -1
- package/dist/{enumerable-string-key-of-BQ4aR5ep.d.cts → enumerable-string-key-of-C4gsorXe.d.ts} +3 -1
- package/dist/{enumerable-string-key-of-BQ4aR5ep.d.ts → enumerable-string-key-of-D8w_3Yg8.d.cts} +3 -1
- package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.cts +9 -0
- package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.ts +9 -0
- package/dist/evolve.cjs +1 -1
- package/dist/evolve.js +1 -1
- package/dist/filter.cjs +1 -1
- package/dist/filter.d.cts +12 -4
- package/dist/filter.d.ts +12 -4
- package/dist/filter.js +1 -1
- package/dist/filtered-array-BCjySbC6.d.cts +18 -0
- package/dist/filtered-array-JKATL39M.d.ts +18 -0
- package/dist/find-index.cjs +1 -1
- package/dist/find-index.js +1 -1
- package/dist/find-last-index.cjs +1 -1
- package/dist/find-last-index.js +1 -1
- package/dist/find-last.cjs +1 -1
- package/dist/find-last.js +1 -1
- package/dist/find.cjs +1 -1
- package/dist/find.js +1 -1
- package/dist/first-by.cjs +1 -1
- package/dist/first-by.d.cts +1 -1
- package/dist/first-by.d.ts +1 -1
- package/dist/first-by.js +1 -1
- package/dist/first.cjs +1 -1
- package/dist/first.js +1 -1
- package/dist/flat-map.cjs +1 -1
- package/dist/flat-map.js +1 -1
- package/dist/flat.cjs +1 -1
- package/dist/flat.d.cts +2 -5
- package/dist/flat.d.ts +2 -5
- package/dist/flat.js +1 -1
- package/dist/floor.cjs +1 -1
- package/dist/floor.js +1 -1
- package/dist/for-each-obj.cjs +1 -1
- package/dist/for-each-obj.d.cts +3 -2
- package/dist/for-each-obj.d.ts +3 -2
- package/dist/for-each-obj.js +1 -1
- package/dist/for-each.cjs +1 -1
- package/dist/for-each.js +1 -1
- package/dist/from-entries.cjs +1 -1
- package/dist/from-entries.d.cts +4 -2
- package/dist/from-entries.d.ts +4 -2
- package/dist/from-entries.js +1 -1
- package/dist/from-keys.cjs +1 -1
- package/dist/from-keys.d.cts +4 -3
- package/dist/from-keys.d.ts +4 -3
- package/dist/from-keys.js +1 -1
- package/dist/funnel.cjs +1 -1
- package/dist/funnel.d.cts +7 -7
- package/dist/funnel.d.ts +7 -7
- package/dist/funnel.js +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.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.test.cjs +1 -1
- package/dist/funnel.lodash-throttle.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.cjs +1 -0
- package/dist/funnel.perkakas-debounce.test.js +1 -0
- package/dist/funnel.reference-batch.test.cjs +1 -1
- package/dist/funnel.reference-batch.test.js +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/group-by-prop.cjs +1 -0
- package/dist/group-by-prop.d.cts +93 -0
- package/dist/group-by-prop.d.ts +93 -0
- package/dist/group-by-prop.js +1 -0
- package/dist/group-by.cjs +1 -1
- package/dist/group-by.d.cts +15 -4
- package/dist/group-by.d.ts +15 -4
- package/dist/group-by.js +1 -1
- package/dist/has-at-least.cjs +1 -1
- package/dist/has-at-least.d.cts +7 -15
- package/dist/has-at-least.d.ts +7 -15
- package/dist/has-at-least.js +1 -1
- package/dist/has-sub-object.cjs +1 -1
- package/dist/has-sub-object.js +1 -1
- package/dist/human-readable-file-size.cjs +1 -1
- package/dist/human-readable-file-size.js +1 -1
- package/dist/identity.cjs +1 -1
- package/dist/identity.js +1 -1
- package/dist/if-D4QIikQ1.d.cts +5 -0
- package/dist/if-D4QIikQ1.d.ts +5 -0
- package/dist/index-by.cjs +1 -1
- package/dist/index-by.d.cts +5 -4
- package/dist/index-by.d.ts +5 -4
- package/dist/index-by.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +1 -1
- package/dist/intersection-with.cjs +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection.cjs +1 -1
- package/dist/intersection.js +1 -1
- package/dist/invert.cjs +1 -1
- package/dist/invert.d.cts +2 -1
- package/dist/invert.d.ts +2 -1
- package/dist/invert.js +1 -1
- package/dist/is-array.cjs +1 -1
- package/dist/is-array.js +1 -1
- package/dist/is-big-int.cjs +1 -1
- package/dist/is-big-int.js +1 -1
- package/dist/is-boolean.cjs +1 -1
- package/dist/is-boolean.js +1 -1
- package/dist/is-bounded-record-C9WAwfA8.d.cts +30 -0
- package/dist/is-bounded-record-C9WAwfA8.d.ts +30 -0
- package/dist/is-date.cjs +1 -1
- package/dist/is-date.js +1 -1
- package/dist/is-deep-equal.cjs +1 -1
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-defined.cjs +1 -1
- package/dist/is-defined.js +1 -1
- package/dist/is-empty.cjs +1 -1
- package/dist/is-empty.js +1 -1
- package/dist/is-error.cjs +1 -1
- package/dist/is-error.js +1 -1
- package/dist/is-function.cjs +1 -1
- package/dist/is-function.js +1 -1
- package/dist/is-included-in.cjs +1 -1
- package/dist/is-included-in.js +1 -1
- package/dist/is-non-null.cjs +1 -1
- package/dist/is-non-null.js +1 -1
- package/dist/is-non-nullish.cjs +1 -1
- package/dist/is-non-nullish.js +1 -1
- package/dist/is-not.cjs +1 -1
- package/dist/is-not.js +1 -1
- package/dist/is-nullish.cjs +1 -1
- package/dist/is-nullish.js +1 -1
- package/dist/is-number.cjs +1 -1
- package/dist/is-number.js +1 -1
- package/dist/is-object-type.cjs +1 -1
- package/dist/is-object-type.js +1 -1
- package/dist/is-plain-object.cjs +1 -1
- package/dist/is-plain-object.js +1 -1
- package/dist/is-promise.cjs +1 -1
- package/dist/is-promise.js +1 -1
- package/dist/is-shallow-equal.cjs +1 -1
- package/dist/is-shallow-equal.js +1 -1
- package/dist/is-strict-equal.cjs +1 -1
- package/dist/is-strict-equal.js +1 -1
- package/dist/is-string.cjs +1 -1
- package/dist/is-string.js +1 -1
- package/dist/is-symbol.cjs +1 -1
- package/dist/is-symbol.js +1 -1
- package/dist/is-truthy.cjs +1 -1
- package/dist/is-truthy.js +1 -1
- package/dist/join.cjs +1 -1
- package/dist/join.js +1 -1
- package/dist/key-codes.cjs +1 -1
- package/dist/key-codes.js +1 -1
- package/dist/keys.cjs +1 -1
- package/dist/keys.d.cts +4 -3
- package/dist/keys.d.ts +4 -3
- package/dist/keys.js +1 -1
- package/dist/last.cjs +1 -1
- package/dist/last.js +1 -1
- package/dist/length.cjs +1 -1
- package/dist/length.js +1 -1
- package/dist/magic-string.es-2ADFIHOO.cjs +13 -0
- package/dist/magic-string.es-PNCTE22R.js +13 -0
- package/dist/map-keys.cjs +1 -1
- package/dist/map-keys.d.cts +8 -6
- package/dist/map-keys.d.ts +8 -6
- package/dist/map-keys.js +1 -1
- package/dist/map-to-obj.cjs +1 -1
- package/dist/map-to-obj.d.cts +30 -12
- package/dist/map-to-obj.d.ts +30 -12
- package/dist/map-to-obj.js +1 -1
- package/dist/map-values.cjs +1 -1
- package/dist/map-values.d.cts +3 -2
- package/dist/map-values.d.ts +3 -2
- package/dist/map-values.js +1 -1
- package/dist/map-with-feedback.cjs +1 -1
- package/dist/map-with-feedback.js +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/mean-by.cjs +1 -1
- package/dist/mean-by.js +1 -1
- package/dist/merge-all.cjs +1 -1
- package/dist/merge-all.d.cts +2 -1
- package/dist/merge-all.d.ts +2 -1
- package/dist/merge-all.js +1 -1
- package/dist/merge-deep.cjs +1 -1
- package/dist/merge-deep.js +1 -1
- package/dist/merge.cjs +1 -1
- package/dist/merge.js +1 -1
- package/dist/multiply.cjs +1 -1
- package/dist/multiply.js +1 -1
- package/dist/nth-by.cjs +1 -1
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.cjs +1 -1
- package/dist/obj-of.js +1 -1
- package/dist/omit-by.cjs +1 -1
- package/dist/omit-by.d.cts +7 -6
- package/dist/omit-by.d.ts +7 -6
- package/dist/omit-by.js +1 -1
- package/dist/omit.cjs +1 -1
- package/dist/omit.js +1 -1
- package/dist/once.cjs +1 -1
- package/dist/once.js +1 -1
- package/dist/only.cjs +1 -1
- package/dist/only.js +1 -1
- package/dist/partial-array-Vnf1fBtl.d.cts +10 -0
- package/dist/partial-array-Vnf1fBtl.d.ts +10 -0
- package/dist/partition.cjs +1 -1
- package/dist/partition.js +1 -1
- package/dist/path-or.cjs +1 -1
- package/dist/path-or.js +1 -1
- package/dist/perkakas-type-error-8wPb8T2y.d.cts +17 -0
- package/dist/perkakas-type-error-8wPb8T2y.d.ts +17 -0
- package/dist/pick-by.cjs +1 -1
- package/dist/pick-by.d.cts +11 -11
- package/dist/pick-by.d.ts +11 -11
- package/dist/pick-by.js +1 -1
- package/dist/pick.cjs +1 -1
- package/dist/pick.d.cts +52 -7
- package/dist/pick.d.ts +52 -7
- package/dist/pick.js +1 -1
- package/dist/pipe.cjs +1 -1
- package/dist/pipe.js +1 -1
- package/dist/piped.cjs +1 -1
- package/dist/piped.js +1 -1
- package/dist/product.cjs +1 -1
- package/dist/product.js +1 -1
- package/dist/prop.cjs +1 -1
- package/dist/prop.js +1 -1
- package/dist/pull-object.cjs +1 -1
- package/dist/pull-object.d.cts +5 -4
- package/dist/pull-object.d.ts +5 -4
- package/dist/pull-object.js +1 -1
- package/dist/random-integer.cjs +1 -1
- package/dist/random-integer.js +1 -1
- package/dist/random-string.cjs +1 -1
- package/dist/random-string.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/rank-by.cjs +1 -1
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/rank-by.js +1 -1
- package/dist/reduce.cjs +1 -1
- package/dist/reduce.js +1 -1
- package/dist/reverse.cjs +1 -1
- package/dist/reverse.js +1 -1
- package/dist/round.cjs +1 -1
- package/dist/round.js +1 -1
- package/dist/sample.cjs +1 -1
- package/dist/sample.js +1 -1
- package/dist/set-path.cjs +1 -1
- package/dist/set-path.d.cts +18 -7
- package/dist/set-path.d.ts +18 -7
- package/dist/set-path.js +1 -1
- package/dist/set.cjs +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.cjs +1 -1
- package/dist/shuffle.js +1 -1
- package/dist/sleep.cjs +1 -1
- package/dist/sleep.js +1 -1
- package/dist/slice-string.cjs +1 -1
- package/dist/slice-string.js +1 -1
- package/dist/slugify.cjs +1 -1
- package/dist/slugify.js +1 -1
- package/dist/sort-by.cjs +1 -1
- package/dist/sort-by.d.cts +1 -1
- package/dist/sort-by.d.ts +1 -1
- package/dist/sort-by.js +1 -1
- package/dist/sort.cjs +1 -1
- package/dist/sort.js +1 -1
- package/dist/sorted-index-by.cjs +1 -1
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-with.cjs +1 -1
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index.cjs +1 -1
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-last-index-by.cjs +1 -1
- package/dist/sorted-last-index-by.js +1 -1
- package/dist/sorted-last-index.cjs +1 -1
- package/dist/sorted-last-index.js +1 -1
- package/dist/splice.cjs +1 -1
- package/dist/splice.js +1 -1
- package/dist/split-at.cjs +1 -1
- package/dist/split-at.js +1 -1
- package/dist/split-when.cjs +1 -1
- package/dist/split-when.js +1 -1
- package/dist/split.cjs +1 -1
- package/dist/split.js +1 -1
- package/dist/string-to-path.cjs +1 -1
- package/dist/string-to-path.d.cts +33 -11
- package/dist/string-to-path.d.ts +33 -11
- package/dist/string-to-path.js +1 -1
- package/dist/subtract.cjs +1 -1
- package/dist/subtract.js +1 -1
- package/dist/sum-by.cjs +1 -1
- package/dist/sum-by.js +1 -1
- package/dist/sum.cjs +1 -1
- package/dist/sum.js +1 -1
- package/dist/swap-indices.cjs +1 -1
- package/dist/swap-indices.js +1 -1
- package/dist/swap-props.cjs +1 -1
- package/dist/swap-props.js +1 -1
- package/dist/take-first-by.cjs +1 -1
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/take-first-by.js +1 -1
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.d.cts +2 -0
- package/dist/take-last-while.d.ts +2 -0
- package/dist/take-last-while.js +1 -1
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.js +1 -1
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.d.cts +2 -0
- package/dist/take-while.d.ts +2 -0
- package/dist/take-while.js +1 -1
- package/dist/take.cjs +1 -1
- package/dist/take.js +1 -1
- package/dist/tap.cjs +1 -1
- package/dist/tap.js +1 -1
- package/dist/times.cjs +1 -1
- package/dist/times.d.cts +1 -9
- package/dist/times.d.ts +1 -9
- package/dist/times.js +1 -1
- package/dist/to-camel-case.cjs +1 -1
- package/dist/to-camel-case.js +1 -1
- package/dist/to-capital-case.cjs +1 -1
- package/dist/to-capital-case.js +1 -1
- package/dist/to-constant-case.cjs +1 -1
- package/dist/to-constant-case.js +1 -1
- package/dist/to-kebab-case.cjs +1 -1
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-no-case.cjs +1 -1
- package/dist/to-no-case.js +1 -1
- package/dist/to-pascal-case.cjs +1 -1
- package/dist/to-pascal-case.js +1 -1
- package/dist/to-pascal-snake-case.cjs +1 -1
- package/dist/to-pascal-snake-case.js +1 -1
- package/dist/to-sentence-case.cjs +1 -1
- package/dist/to-sentence-case.js +1 -1
- package/dist/to-snake-case.cjs +1 -1
- package/dist/to-snake-case.js +1 -1
- package/dist/to-string-DO8zw6jS.d.cts +11 -0
- package/dist/to-string-DO8zw6jS.d.ts +11 -0
- package/dist/to-train-case.cjs +1 -1
- package/dist/to-train-case.js +1 -1
- package/dist/tuple-parts-BTivqbtT.d.ts +86 -0
- package/dist/tuple-parts-v6av7LMU.d.cts +86 -0
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.js +1 -1
- package/dist/{upsert-prop-tIHFi_F_.d.cts → upsert-prop-Cc3jEW9l.d.cts} +1 -2
- package/dist/{upsert-prop-D0N8486l.d.ts → upsert-prop-CdUtD50i.d.ts} +1 -2
- package/dist/values.cjs +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/values.js +1 -1
- package/dist/zip-with.cjs +1 -1
- package/dist/zip-with.js +1 -1
- package/dist/zip.cjs +1 -1
- package/dist/zip.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-2MU3SHCO.js +0 -1
- package/dist/chunk-3CFBQYOQ.js +0 -1
- package/dist/chunk-5SAUYUEK.js +0 -1
- package/dist/chunk-5VXKW6SI.cjs +0 -1
- package/dist/chunk-6HSB3NFW.js +0 -1
- package/dist/chunk-6L5XEBJG.js +0 -1
- package/dist/chunk-A2PAJNYA.js +0 -1
- package/dist/chunk-APUBIDDU.cjs +0 -1
- package/dist/chunk-AWXJSK4F.js +0 -1
- package/dist/chunk-B5QDOWVQ.cjs +0 -1
- package/dist/chunk-B7RHAPUE.js +0 -1
- package/dist/chunk-BOOMUHPG.js +0 -1
- package/dist/chunk-CZLV6ZLZ.js +0 -1
- package/dist/chunk-DLXKXNZT.js +0 -1
- package/dist/chunk-F3JXHUP4.cjs +0 -1
- package/dist/chunk-FMUPPQZE.js +0 -1
- package/dist/chunk-GFQXVPLP.cjs +0 -1
- package/dist/chunk-GOUUMCT7.cjs +0 -1
- package/dist/chunk-HRK4GMT2.cjs +0 -1
- package/dist/chunk-I7K3Z4BT.js +0 -1
- package/dist/chunk-ICYGL2YZ.js +0 -1
- package/dist/chunk-IJ4I5A3K.js +0 -1
- package/dist/chunk-IXGOK22A.cjs +0 -1
- package/dist/chunk-L4ITKDYB.cjs +0 -1
- package/dist/chunk-MBC7VZHY.js +0 -1
- package/dist/chunk-NQGMUM3E.cjs +0 -1
- package/dist/chunk-OBWPUDD3.cjs +0 -1
- package/dist/chunk-OEJ5J23C.js +0 -1
- package/dist/chunk-OL2TQDYM.cjs +0 -1
- package/dist/chunk-PIF5X7RQ.cjs +0 -1
- package/dist/chunk-PWHX2554.js +0 -1
- package/dist/chunk-QQMFHVPX.cjs +0 -1
- package/dist/chunk-SQZULO7V.js +0 -1
- package/dist/chunk-THE6MSJO.cjs +0 -1
- package/dist/chunk-UDSRBKNR.js +0 -1
- package/dist/chunk-UUYCL4G2.js +0 -1
- package/dist/chunk-VRZNQSZN.cjs +0 -1
- package/dist/chunk-WYM2JV5T.cjs +0 -1
- package/dist/chunk-XLGD5ZUY.cjs +0 -1
- package/dist/chunk-XU4TDKMD.cjs +0 -1
- package/dist/chunk-YCM6N46T.js +0 -1
- package/dist/chunk-Z46FX2Y4.js +0 -1
- package/dist/enumerable-string-keyed-value-of-CLzltniW.d.cts +0 -15
- package/dist/enumerable-string-keyed-value-of-CLzltniW.d.ts +0 -15
- package/dist/exact-record-Dhbe_K-E.d.ts +0 -5
- package/dist/exact-record-_isi2JMR.d.cts +0 -5
- package/dist/funnel.remeda-debounce.test.cjs +0 -1
- package/dist/funnel.remeda-debounce.test.js +0 -1
- package/dist/if-bounded-record-Drd4UbBU.d.cts +0 -29
- package/dist/if-bounded-record-Drd4UbBU.d.ts +0 -29
- package/dist/n-tuple-5jljrt4c.d.cts +0 -10
- package/dist/n-tuple-5jljrt4c.d.ts +0 -10
- package/dist/reconstructed-record-DchLaSO8.d.cts +0 -10
- package/dist/reconstructed-record-DuxOLlMs.d.ts +0 -10
- package/dist/take-last-while.spec-d-.cjs +0 -1
- package/dist/take-last-while.spec-d-.d.cts +0 -2
- package/dist/take-last-while.spec-d-.d.ts +0 -2
- package/dist/take-last-while.spec-d-.js +0 -1
- package/dist/tuple-parts-CP0H7BrE.d.cts +0 -37
- package/dist/tuple-parts-CP0H7BrE.d.ts +0 -37
- /package/dist/{funnel.remeda-debounce.test.d.cts → funnel.perkakas-debounce.test.d.cts} +0 -0
- /package/dist/{funnel.remeda-debounce.test.d.ts → funnel.perkakas-debounce.test.d.ts} +0 -0
package/dist/string-to-path.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-ZMG3NQDL.js";import"./chunk-EK7ODJWE.js";export{a as stringToPath};
|
package/dist/subtract.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLT2AWHBCcjs = require('./chunk-LT2AWHBC.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.subtract = _chunkLT2AWHBCcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLT2AWHBCcjs = require('./chunk-LT2AWHBC.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.subtract = _chunkLT2AWHBCcjs.a;
|
package/dist/subtract.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-2H7RTCCP.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as subtract};
|
|
1
|
+
import{a}from"./chunk-2H7RTCCP.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as subtract};
|
package/dist/sum-by.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DOG24FJcjs = require('./chunk-3DOG24FJ.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.sumBy = _chunk3DOG24FJcjs.a;
|
package/dist/sum-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-XCG2UC6T.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as sumBy};
|
package/dist/sum.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJNB74WWBcjs = require('./chunk-JNB74WWB.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.sum = _chunkJNB74WWBcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJNB74WWBcjs = require('./chunk-JNB74WWB.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.sum = _chunkJNB74WWBcjs.a;
|
package/dist/sum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-DZRYZ45X.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as sum};
|
|
1
|
+
import{a}from"./chunk-DZRYZ45X.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as sum};
|
package/dist/swap-indices.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIVO53H3Jcjs = require('./chunk-IVO53H3J.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.swapIndices = _chunkIVO53H3Jcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIVO53H3Jcjs = require('./chunk-IVO53H3J.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.swapIndices = _chunkIVO53H3Jcjs.a;
|
package/dist/swap-indices.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-CL7YONGV.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as swapIndices};
|
|
1
|
+
import{a}from"./chunk-CL7YONGV.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as swapIndices};
|
package/dist/swap-props.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6K5VISMcjs = require('./chunk-Z6K5VISM.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.swapProps = _chunkZ6K5VISMcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6K5VISMcjs = require('./chunk-Z6K5VISM.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.swapProps = _chunkZ6K5VISMcjs.a;
|
package/dist/swap-props.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-RLJFMTDS.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as swapProps};
|
|
1
|
+
import{a}from"./chunk-RLJFMTDS.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as swapProps};
|
package/dist/take-first-by.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRTFVY5D4cjs = require('./chunk-RTFVY5D4.cjs');require('./chunk-JHFSYEXB.cjs');require('./chunk-Z6OOXW67.cjs');require('./chunk-EROXO3T4.cjs');require('./chunk-66JP4PUG.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.takeFirstBy = _chunkRTFVY5D4cjs.a;
|
package/dist/take-first-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NonEmptyArray } from './non-empty-array-C9Od1wmF.cjs';
|
|
2
1
|
import { O as OrderRule } from './curry-order-rules-BKXCPBNx.cjs';
|
|
2
|
+
import { N as NonEmptyArray } from './non-empty-array-C9Od1wmF.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Take the first `n` items from `data` based on the provided ordering criteria. This allows you to avoid sorting the array before taking the items. The complexity of this function is *O(Nlogn)* where `N` is the length of the array.
|
package/dist/take-first-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NonEmptyArray } from './non-empty-array-C9Od1wmF.js';
|
|
2
1
|
import { O as OrderRule } from './curry-order-rules-BKXCPBNx.js';
|
|
2
|
+
import { N as NonEmptyArray } from './non-empty-array-C9Od1wmF.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Take the first `n` items from `data` based on the provided ordering criteria. This allows you to avoid sorting the array before taking the items. The complexity of this function is *O(Nlogn)* where `N` is the length of the array.
|
package/dist/take-first-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-YRVN4PYH.js";import"./chunk-JI5FJX2E.js";import"./chunk-YYEJOSR3.js";import"./chunk-7KBK2RWQ.js";import"./chunk-ITDJLXHO.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as takeFirstBy};
|
package/dist/take-last-while.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNVCXF5URcjs = require('./chunk-NVCXF5UR.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.takeLastWhile = _chunkNVCXF5URcjs.a;
|
|
@@ -13,6 +13,7 @@ import { I as IterableContainer } from './iterable-container-BTpDVdNc.cjs';
|
|
|
13
13
|
* @dataFirst
|
|
14
14
|
* @category Array
|
|
15
15
|
*/
|
|
16
|
+
declare function takeLastWhile<T extends IterableContainer, S extends T[number]>(data: T, predicate: (item: T[number], index: number, data: T) => item is S): Array<S>;
|
|
16
17
|
declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
17
18
|
/**
|
|
18
19
|
* Returns elements from the end of the array until the predicate returns false.
|
|
@@ -26,6 +27,7 @@ declare function takeLastWhile<T extends IterableContainer>(data: T, predicate:
|
|
|
26
27
|
* @dataLast
|
|
27
28
|
* @category Array
|
|
28
29
|
*/
|
|
30
|
+
declare function takeLastWhile<T extends IterableContainer, S extends T[number]>(predicate: (item: T[number], index: number, data: T) => item is S): (array: T) => Array<S>;
|
|
29
31
|
declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
32
|
|
|
31
33
|
export { takeLastWhile };
|
|
@@ -13,6 +13,7 @@ import { I as IterableContainer } from './iterable-container-BTpDVdNc.js';
|
|
|
13
13
|
* @dataFirst
|
|
14
14
|
* @category Array
|
|
15
15
|
*/
|
|
16
|
+
declare function takeLastWhile<T extends IterableContainer, S extends T[number]>(data: T, predicate: (item: T[number], index: number, data: T) => item is S): Array<S>;
|
|
16
17
|
declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
17
18
|
/**
|
|
18
19
|
* Returns elements from the end of the array until the predicate returns false.
|
|
@@ -26,6 +27,7 @@ declare function takeLastWhile<T extends IterableContainer>(data: T, predicate:
|
|
|
26
27
|
* @dataLast
|
|
27
28
|
* @category Array
|
|
28
29
|
*/
|
|
30
|
+
declare function takeLastWhile<T extends IterableContainer, S extends T[number]>(predicate: (item: T[number], index: number, data: T) => item is S): (array: T) => Array<S>;
|
|
29
31
|
declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
32
|
|
|
31
33
|
export { takeLastWhile };
|
package/dist/take-last-while.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-O74TUGYF.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as takeLastWhile};
|
package/dist/take-last.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY5LDV42Icjs = require('./chunk-Y5LDV42I.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.takeLast = _chunkY5LDV42Icjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY5LDV42Icjs = require('./chunk-Y5LDV42I.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.takeLast = _chunkY5LDV42Icjs.a;
|
package/dist/take-last.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-PSKQ45PX.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as takeLast};
|
|
1
|
+
import{a}from"./chunk-PSKQ45PX.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as takeLast};
|
package/dist/take-while.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXR2MB57Zcjs = require('./chunk-XR2MB57Z.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.takeWhile = _chunkXR2MB57Zcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXR2MB57Zcjs = require('./chunk-XR2MB57Z.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.takeWhile = _chunkXR2MB57Zcjs.a;
|
package/dist/take-while.d.cts
CHANGED
|
@@ -12,6 +12,7 @@ import { I as IterableContainer } from './iterable-container-BTpDVdNc.cjs';
|
|
|
12
12
|
* @dataFirst
|
|
13
13
|
* @category Array
|
|
14
14
|
*/
|
|
15
|
+
declare function takeWhile<T extends IterableContainer, S extends T[number]>(data: T, predicate: (item: T[number], index: number, data: T) => item is S): Array<S>;
|
|
15
16
|
declare function takeWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
17
|
/**
|
|
17
18
|
* Returns elements from the array until predicate returns false.
|
|
@@ -24,6 +25,7 @@ declare function takeWhile<T extends IterableContainer>(data: T, predicate: (ite
|
|
|
24
25
|
* @dataLast
|
|
25
26
|
* @category Array
|
|
26
27
|
*/
|
|
28
|
+
declare function takeWhile<T extends IterableContainer, S extends T[number]>(predicate: (item: T[number], index: number, data: T) => item is S): (array: T) => Array<S>;
|
|
27
29
|
declare function takeWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (array: T) => Array<T[number]>;
|
|
28
30
|
|
|
29
31
|
export { takeWhile };
|
package/dist/take-while.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { I as IterableContainer } from './iterable-container-BTpDVdNc.js';
|
|
|
12
12
|
* @dataFirst
|
|
13
13
|
* @category Array
|
|
14
14
|
*/
|
|
15
|
+
declare function takeWhile<T extends IterableContainer, S extends T[number]>(data: T, predicate: (item: T[number], index: number, data: T) => item is S): Array<S>;
|
|
15
16
|
declare function takeWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
17
|
/**
|
|
17
18
|
* Returns elements from the array until predicate returns false.
|
|
@@ -24,6 +25,7 @@ declare function takeWhile<T extends IterableContainer>(data: T, predicate: (ite
|
|
|
24
25
|
* @dataLast
|
|
25
26
|
* @category Array
|
|
26
27
|
*/
|
|
28
|
+
declare function takeWhile<T extends IterableContainer, S extends T[number]>(predicate: (item: T[number], index: number, data: T) => item is S): (array: T) => Array<S>;
|
|
27
29
|
declare function takeWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (array: T) => Array<T[number]>;
|
|
28
30
|
|
|
29
31
|
export { takeWhile };
|
package/dist/take-while.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-2KMUA3WC.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as takeWhile};
|
|
1
|
+
import{a}from"./chunk-2KMUA3WC.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as takeWhile};
|
package/dist/take.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ5Z4ADBOcjs = require('./chunk-Z5Z4ADBO.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.take = _chunkZ5Z4ADBOcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ5Z4ADBOcjs = require('./chunk-Z5Z4ADBO.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.take = _chunkZ5Z4ADBOcjs.a;
|
package/dist/take.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-VQ3GU3JR.js";import"./chunk-EPU4K3DD.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as take};
|
|
1
|
+
import{a}from"./chunk-VQ3GU3JR.js";import"./chunk-EPU4K3DD.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as take};
|
package/dist/tap.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkACPTAGS3cjs = require('./chunk-ACPTAGS3.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.tap = _chunkACPTAGS3cjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkACPTAGS3cjs = require('./chunk-ACPTAGS3.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.tap = _chunkACPTAGS3cjs.a;
|
package/dist/tap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-CMAETGEV.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as tap};
|
|
1
|
+
import{a}from"./chunk-CMAETGEV.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as tap};
|
package/dist/times.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBBPC5RWJcjs = require('./chunk-BBPC5RWJ.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.times = _chunkBBPC5RWJcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBBPC5RWJcjs = require('./chunk-BBPC5RWJ.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.times = _chunkBBPC5RWJcjs.a;
|
package/dist/times.d.cts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { GreaterThan } from 'type-fest';
|
|
2
2
|
|
|
3
3
|
type MAX_LITERAL_SIZE = 46;
|
|
4
|
-
type TimesArray<T, N extends number, Iteration extends ReadonlyArray<unknown> = []> = number extends N ? Array<T> : `${N}` extends `-${number}` ? [
|
|
5
|
-
] : `${N}` extends `${infer K extends number}.${number}` ? TimesArray<T, K, Iteration> : GreaterThan<N, MAX_LITERAL_SIZE> extends true ? [
|
|
6
|
-
...TimesArray<T, MAX_LITERAL_SIZE, Iteration>,
|
|
7
|
-
...Array<T>
|
|
8
|
-
] : N extends Iteration['length'] ? [
|
|
9
|
-
] : [
|
|
10
|
-
T,
|
|
11
|
-
...TimesArray<T, N, [unknown, ...Iteration]>
|
|
12
|
-
];
|
|
4
|
+
type TimesArray<T, N extends number, Iteration extends ReadonlyArray<unknown> = []> = number extends N ? Array<T> : `${N}` extends `-${number}` ? [] : `${N}` extends `${infer K extends number}.${number}` ? TimesArray<T, K, Iteration> : GreaterThan<N, MAX_LITERAL_SIZE> extends true ? [...TimesArray<T, MAX_LITERAL_SIZE, Iteration>, ...Array<T>] : N extends Iteration['length'] ? [] : [T, ...TimesArray<T, N, [unknown, ...Iteration]>];
|
|
13
5
|
/**
|
|
14
6
|
* Calls an input function `n` times, returning an array containing the results
|
|
15
7
|
* of those function calls.
|
package/dist/times.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { GreaterThan } from 'type-fest';
|
|
2
2
|
|
|
3
3
|
type MAX_LITERAL_SIZE = 46;
|
|
4
|
-
type TimesArray<T, N extends number, Iteration extends ReadonlyArray<unknown> = []> = number extends N ? Array<T> : `${N}` extends `-${number}` ? [
|
|
5
|
-
] : `${N}` extends `${infer K extends number}.${number}` ? TimesArray<T, K, Iteration> : GreaterThan<N, MAX_LITERAL_SIZE> extends true ? [
|
|
6
|
-
...TimesArray<T, MAX_LITERAL_SIZE, Iteration>,
|
|
7
|
-
...Array<T>
|
|
8
|
-
] : N extends Iteration['length'] ? [
|
|
9
|
-
] : [
|
|
10
|
-
T,
|
|
11
|
-
...TimesArray<T, N, [unknown, ...Iteration]>
|
|
12
|
-
];
|
|
4
|
+
type TimesArray<T, N extends number, Iteration extends ReadonlyArray<unknown> = []> = number extends N ? Array<T> : `${N}` extends `-${number}` ? [] : `${N}` extends `${infer K extends number}.${number}` ? TimesArray<T, K, Iteration> : GreaterThan<N, MAX_LITERAL_SIZE> extends true ? [...TimesArray<T, MAX_LITERAL_SIZE, Iteration>, ...Array<T>] : N extends Iteration['length'] ? [] : [T, ...TimesArray<T, N, [unknown, ...Iteration]>];
|
|
13
5
|
/**
|
|
14
6
|
* Calls an input function `n` times, returning an array containing the results
|
|
15
7
|
* of those function calls.
|
package/dist/times.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-4MZDYEVQ.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as times};
|
|
1
|
+
import{a}from"./chunk-4MZDYEVQ.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as times};
|
package/dist/to-camel-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVNI4VRFMcjs = require('./chunk-VNI4VRFM.cjs');require('./chunk-OPJJI442.cjs');exports.toCamelCase = _chunkVNI4VRFMcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVNI4VRFMcjs = require('./chunk-VNI4VRFM.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toCamelCase = _chunkVNI4VRFMcjs.a;
|
package/dist/to-camel-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-ZAZDS3SB.js";import"./chunk-MZEHWQF3.js";export{a as toCamelCase};
|
|
1
|
+
import{a}from"./chunk-ZAZDS3SB.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toCamelCase};
|
package/dist/to-capital-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7GAGU65Ucjs = require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');exports.toCapitalCase = _chunk7GAGU65Ucjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7GAGU65Ucjs = require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toCapitalCase = _chunk7GAGU65Ucjs.a;
|
package/dist/to-capital-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";export{a as toCapitalCase};
|
|
1
|
+
import{a}from"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toCapitalCase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5GI4OEUMcjs = require('./chunk-5GI4OEUM.cjs');require('./chunk-OPJJI442.cjs');exports.toConstantCase = _chunk5GI4OEUMcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5GI4OEUMcjs = require('./chunk-5GI4OEUM.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toConstantCase = _chunk5GI4OEUMcjs.a;
|
package/dist/to-constant-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-EYPNBGK5.js";import"./chunk-MZEHWQF3.js";export{a as toConstantCase};
|
|
1
|
+
import{a}from"./chunk-EYPNBGK5.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toConstantCase};
|
package/dist/to-kebab-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRAHS5RJScjs = require('./chunk-RAHS5RJS.cjs');require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');exports.toKebabCase = _chunkRAHS5RJScjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRAHS5RJScjs = require('./chunk-RAHS5RJS.cjs');require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toKebabCase = _chunkRAHS5RJScjs.a;
|
package/dist/to-kebab-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-L4ZCRIBG.js";import"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";export{a as toKebabCase};
|
|
1
|
+
import{a}from"./chunk-L4ZCRIBG.js";import"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toKebabCase};
|
package/dist/to-no-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI27XCDDIcjs = require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');exports.toNoCase = _chunkI27XCDDIcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI27XCDDIcjs = require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toNoCase = _chunkI27XCDDIcjs.a;
|
package/dist/to-no-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";export{a as toNoCase};
|
|
1
|
+
import{a}from"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toNoCase};
|
package/dist/to-pascal-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkG74G5PZTcjs = require('./chunk-G74G5PZT.cjs');require('./chunk-OPJJI442.cjs');exports.toPascalCase = _chunkG74G5PZTcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkG74G5PZTcjs = require('./chunk-G74G5PZT.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toPascalCase = _chunkG74G5PZTcjs.a;
|
package/dist/to-pascal-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-ZIGQWNCG.js";import"./chunk-MZEHWQF3.js";export{a as toPascalCase};
|
|
1
|
+
import{a}from"./chunk-ZIGQWNCG.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toPascalCase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWVTQN2AIcjs = require('./chunk-WVTQN2AI.cjs');require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');exports.toPascalSnakeCase = _chunkWVTQN2AIcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWVTQN2AIcjs = require('./chunk-WVTQN2AI.cjs');require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toPascalSnakeCase = _chunkWVTQN2AIcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-OT55MXTZ.js";import"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";export{a as toPascalSnakeCase};
|
|
1
|
+
import{a}from"./chunk-OT55MXTZ.js";import"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toPascalSnakeCase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN7AESA4Wcjs = require('./chunk-N7AESA4W.cjs');require('./chunk-OPJJI442.cjs');exports.toSentenceCase = _chunkN7AESA4Wcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN7AESA4Wcjs = require('./chunk-N7AESA4W.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toSentenceCase = _chunkN7AESA4Wcjs.a;
|
package/dist/to-sentence-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-L4S5OAPG.js";import"./chunk-MZEHWQF3.js";export{a as toSentenceCase};
|
|
1
|
+
import{a}from"./chunk-L4S5OAPG.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toSentenceCase};
|
package/dist/to-snake-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLPNHLDEAcjs = require('./chunk-LPNHLDEA.cjs');require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');exports.toSnakeCase = _chunkLPNHLDEAcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLPNHLDEAcjs = require('./chunk-LPNHLDEA.cjs');require('./chunk-I27XCDDI.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toSnakeCase = _chunkLPNHLDEAcjs.a;
|
package/dist/to-snake-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-5OPUQ5T6.js";import"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";export{a as toSnakeCase};
|
|
1
|
+
import{a}from"./chunk-5OPUQ5T6.js";import"./chunk-MFSRIHWE.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toSnakeCase};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A utility to preserve strings as-is, convert numbers to strings, and fail on
|
|
3
|
+
* anything else. This happens a lot in JS when accessing objects or when
|
|
4
|
+
* enumerating over keys.
|
|
5
|
+
*
|
|
6
|
+
* Notice that symbols are not supported, which is consistent with how built-in
|
|
7
|
+
* functions like `Object.keys` and `Object.entries` behave.
|
|
8
|
+
*/
|
|
9
|
+
type ToString<T> = T extends unknown ? T extends number ? `${T}` : T extends string ? T : never : never;
|
|
10
|
+
|
|
11
|
+
export type { ToString as T };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A utility to preserve strings as-is, convert numbers to strings, and fail on
|
|
3
|
+
* anything else. This happens a lot in JS when accessing objects or when
|
|
4
|
+
* enumerating over keys.
|
|
5
|
+
*
|
|
6
|
+
* Notice that symbols are not supported, which is consistent with how built-in
|
|
7
|
+
* functions like `Object.keys` and `Object.entries` behave.
|
|
8
|
+
*/
|
|
9
|
+
type ToString<T> = T extends unknown ? T extends number ? `${T}` : T extends string ? T : never : never;
|
|
10
|
+
|
|
11
|
+
export type { ToString as T };
|
package/dist/to-train-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkX7EK7EDZcjs = require('./chunk-X7EK7EDZ.cjs');require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');exports.toTrainCase = _chunkX7EK7EDZcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkX7EK7EDZcjs = require('./chunk-X7EK7EDZ.cjs');require('./chunk-7GAGU65U.cjs');require('./chunk-OPJJI442.cjs');require('./chunk-MBGSSEZN.cjs');exports.toTrainCase = _chunkX7EK7EDZcjs.a;
|
package/dist/to-train-case.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-RW5FFMRB.js";import"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";export{a as toTrainCase};
|
|
1
|
+
import{a}from"./chunk-RW5FFMRB.js";import"./chunk-CQ7LGCRX.js";import"./chunk-MZEHWQF3.js";import"./chunk-EK7ODJWE.js";export{a as toTrainCase};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Simplify, Or } from 'type-fest';
|
|
2
|
+
import { I as IterableContainer } from './iterable-container-BTpDVdNc.js';
|
|
3
|
+
import { P as PerkakasTypeError } from './perkakas-type-error-8wPb8T2y.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Takes a tuple and returns the types that make up its parts. These parts
|
|
7
|
+
* follow TypeScript's only supported format for arrays/tuples:
|
|
8
|
+
* [<required>, <optional>, ...<rest>[], <suffix>].
|
|
9
|
+
*
|
|
10
|
+
* There are some limitations to what shapes TypeScript supports:
|
|
11
|
+
* tuples can only have a suffix if they also have a non-never rest element,
|
|
12
|
+
* **and** tuples cannot have both an optional part and a suffix; this means
|
|
13
|
+
* there are only 10 possible shapes for tuples:
|
|
14
|
+
* 1. Empty Tuples: `[]`.
|
|
15
|
+
* 2. Fixed Tuples: `[string, number]`.
|
|
16
|
+
* 3. Optional Tuples: `[string?, number?]`.
|
|
17
|
+
* 4. Mixed Tuples: `[string, number?]`.
|
|
18
|
+
* 5. Arrays: `Array<string>`.
|
|
19
|
+
* 6. Fixed-Prefix Arrays: `[string, ...Array<string>]`.
|
|
20
|
+
* 7. Optional-Prefix Arrays: `[number?, ...Array<boolean>]`.
|
|
21
|
+
* 8. Mixed-Prefix Arrays: `[string, number?, ...Array<boolean>]`.
|
|
22
|
+
* 9. Fixed-Suffix Arrays: `[...Array<string>, string]`.
|
|
23
|
+
* 10. Fixed-Elements Arrays: `[string, ...Array<string>, string]`.
|
|
24
|
+
*
|
|
25
|
+
* @example [
|
|
26
|
+
* ...TupleParts<T>["required"],
|
|
27
|
+
* ...Partial<TupleParts<T>["optional"]>,
|
|
28
|
+
* ...CoercedArray<TupleParts<T>["item"]>,
|
|
29
|
+
* ...TupleParts<T>["suffix"],
|
|
30
|
+
* ].
|
|
31
|
+
*/
|
|
32
|
+
type TupleParts<T extends IterableContainer, Prefix extends Array<unknown> = []> = T extends readonly [infer Head, ...infer Tail] ? TupleParts<Tail, [...Prefix, Head]> : Simplify<{
|
|
33
|
+
/**
|
|
34
|
+
* A fixed tuple that defines the part of the tuple where all its
|
|
35
|
+
* elements are required. This will always be the first part of the
|
|
36
|
+
* tuple and will never contain any optional or rest elements. When the
|
|
37
|
+
* array doesn't have a required part this will be an empty tuple
|
|
38
|
+
* (`[]`).
|
|
39
|
+
*/
|
|
40
|
+
required: Prefix;
|
|
41
|
+
} & TuplePartsWithoutRequired<T>>;
|
|
42
|
+
type TuplePartsWithoutRequired<T extends IterableContainer, Suffix extends Array<unknown> = []> = T extends readonly [...infer Head, infer Tail] ? TuplePartsWithoutRequired<Head, [Tail, ...Suffix]> : (Suffix extends readonly [] ? TuplePartsWithoutFixed<T> : {
|
|
43
|
+
optional: [];
|
|
44
|
+
} & TuplePartsRest<T>) & {
|
|
45
|
+
/**
|
|
46
|
+
* A *fixed* tuple that defines the part of a tuple **after** a non-never
|
|
47
|
+
* rest parameter. These could never be optional elements, and could
|
|
48
|
+
* never contain another rest element. When the array doesn't have a
|
|
49
|
+
* required part this will be an empty tuple (`[]`).
|
|
50
|
+
*/
|
|
51
|
+
suffix: Suffix;
|
|
52
|
+
};
|
|
53
|
+
type TuplePartsWithoutFixed<T extends IterableContainer, Optional extends Array<unknown> = []> = T extends readonly [(infer Head)?, ...infer Tail] ? Or<T extends readonly [] ? true : false, Array<T[number]> extends Tail ? true : false> extends true ? {
|
|
54
|
+
/**
|
|
55
|
+
* A *fixed* tuple that defines the part of a tuple where all its
|
|
56
|
+
* elements are suffixed with the optional operator (`?`); but with
|
|
57
|
+
* the optional operator removed (e.g. `[string?]` would be
|
|
58
|
+
* represented as `[string]`). These elements can only follow the
|
|
59
|
+
* `required` part (which could be empty).
|
|
60
|
+
* To add optional operator back wrap the result with the built-in
|
|
61
|
+
* `Partial` type.
|
|
62
|
+
* When the array doesn't have a required part this will be an empty
|
|
63
|
+
* tuple (`[]`).
|
|
64
|
+
*
|
|
65
|
+
* @example Partial<TupleParts<T>["optional"]>
|
|
66
|
+
*/
|
|
67
|
+
optional: Optional;
|
|
68
|
+
} & TuplePartsRest<T> : TuplePartsWithoutFixed<Tail, [...Optional, Head | undefined]> : PerkakasTypeError<'TupleParts', 'Unexpected tuple shape', {
|
|
69
|
+
type: never;
|
|
70
|
+
metadata: T;
|
|
71
|
+
}>;
|
|
72
|
+
interface TuplePartsRest<T extends IterableContainer> {
|
|
73
|
+
/**
|
|
74
|
+
* The type for the rest parameter of the tuple, if any. Unlike the
|
|
75
|
+
* other parts of the tuple, this is a single type and not
|
|
76
|
+
* represented as an array/tuple. When a tuple doesn't have a rest
|
|
77
|
+
* element, this will be `never`. To convert this to a matching array
|
|
78
|
+
* type that could be spread into a new type use the `CoercedArray`
|
|
79
|
+
* type which handles the `never` case correctly.
|
|
80
|
+
*
|
|
81
|
+
* @example CoercedArray<TupleParts<T>["item"]>
|
|
82
|
+
*/
|
|
83
|
+
item: T extends readonly [] ? never : T[number];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type { TupleParts as T };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Simplify, Or } from 'type-fest';
|
|
2
|
+
import { I as IterableContainer } from './iterable-container-BTpDVdNc.cjs';
|
|
3
|
+
import { P as PerkakasTypeError } from './perkakas-type-error-8wPb8T2y.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Takes a tuple and returns the types that make up its parts. These parts
|
|
7
|
+
* follow TypeScript's only supported format for arrays/tuples:
|
|
8
|
+
* [<required>, <optional>, ...<rest>[], <suffix>].
|
|
9
|
+
*
|
|
10
|
+
* There are some limitations to what shapes TypeScript supports:
|
|
11
|
+
* tuples can only have a suffix if they also have a non-never rest element,
|
|
12
|
+
* **and** tuples cannot have both an optional part and a suffix; this means
|
|
13
|
+
* there are only 10 possible shapes for tuples:
|
|
14
|
+
* 1. Empty Tuples: `[]`.
|
|
15
|
+
* 2. Fixed Tuples: `[string, number]`.
|
|
16
|
+
* 3. Optional Tuples: `[string?, number?]`.
|
|
17
|
+
* 4. Mixed Tuples: `[string, number?]`.
|
|
18
|
+
* 5. Arrays: `Array<string>`.
|
|
19
|
+
* 6. Fixed-Prefix Arrays: `[string, ...Array<string>]`.
|
|
20
|
+
* 7. Optional-Prefix Arrays: `[number?, ...Array<boolean>]`.
|
|
21
|
+
* 8. Mixed-Prefix Arrays: `[string, number?, ...Array<boolean>]`.
|
|
22
|
+
* 9. Fixed-Suffix Arrays: `[...Array<string>, string]`.
|
|
23
|
+
* 10. Fixed-Elements Arrays: `[string, ...Array<string>, string]`.
|
|
24
|
+
*
|
|
25
|
+
* @example [
|
|
26
|
+
* ...TupleParts<T>["required"],
|
|
27
|
+
* ...Partial<TupleParts<T>["optional"]>,
|
|
28
|
+
* ...CoercedArray<TupleParts<T>["item"]>,
|
|
29
|
+
* ...TupleParts<T>["suffix"],
|
|
30
|
+
* ].
|
|
31
|
+
*/
|
|
32
|
+
type TupleParts<T extends IterableContainer, Prefix extends Array<unknown> = []> = T extends readonly [infer Head, ...infer Tail] ? TupleParts<Tail, [...Prefix, Head]> : Simplify<{
|
|
33
|
+
/**
|
|
34
|
+
* A fixed tuple that defines the part of the tuple where all its
|
|
35
|
+
* elements are required. This will always be the first part of the
|
|
36
|
+
* tuple and will never contain any optional or rest elements. When the
|
|
37
|
+
* array doesn't have a required part this will be an empty tuple
|
|
38
|
+
* (`[]`).
|
|
39
|
+
*/
|
|
40
|
+
required: Prefix;
|
|
41
|
+
} & TuplePartsWithoutRequired<T>>;
|
|
42
|
+
type TuplePartsWithoutRequired<T extends IterableContainer, Suffix extends Array<unknown> = []> = T extends readonly [...infer Head, infer Tail] ? TuplePartsWithoutRequired<Head, [Tail, ...Suffix]> : (Suffix extends readonly [] ? TuplePartsWithoutFixed<T> : {
|
|
43
|
+
optional: [];
|
|
44
|
+
} & TuplePartsRest<T>) & {
|
|
45
|
+
/**
|
|
46
|
+
* A *fixed* tuple that defines the part of a tuple **after** a non-never
|
|
47
|
+
* rest parameter. These could never be optional elements, and could
|
|
48
|
+
* never contain another rest element. When the array doesn't have a
|
|
49
|
+
* required part this will be an empty tuple (`[]`).
|
|
50
|
+
*/
|
|
51
|
+
suffix: Suffix;
|
|
52
|
+
};
|
|
53
|
+
type TuplePartsWithoutFixed<T extends IterableContainer, Optional extends Array<unknown> = []> = T extends readonly [(infer Head)?, ...infer Tail] ? Or<T extends readonly [] ? true : false, Array<T[number]> extends Tail ? true : false> extends true ? {
|
|
54
|
+
/**
|
|
55
|
+
* A *fixed* tuple that defines the part of a tuple where all its
|
|
56
|
+
* elements are suffixed with the optional operator (`?`); but with
|
|
57
|
+
* the optional operator removed (e.g. `[string?]` would be
|
|
58
|
+
* represented as `[string]`). These elements can only follow the
|
|
59
|
+
* `required` part (which could be empty).
|
|
60
|
+
* To add optional operator back wrap the result with the built-in
|
|
61
|
+
* `Partial` type.
|
|
62
|
+
* When the array doesn't have a required part this will be an empty
|
|
63
|
+
* tuple (`[]`).
|
|
64
|
+
*
|
|
65
|
+
* @example Partial<TupleParts<T>["optional"]>
|
|
66
|
+
*/
|
|
67
|
+
optional: Optional;
|
|
68
|
+
} & TuplePartsRest<T> : TuplePartsWithoutFixed<Tail, [...Optional, Head | undefined]> : PerkakasTypeError<'TupleParts', 'Unexpected tuple shape', {
|
|
69
|
+
type: never;
|
|
70
|
+
metadata: T;
|
|
71
|
+
}>;
|
|
72
|
+
interface TuplePartsRest<T extends IterableContainer> {
|
|
73
|
+
/**
|
|
74
|
+
* The type for the rest parameter of the tuple, if any. Unlike the
|
|
75
|
+
* other parts of the tuple, this is a single type and not
|
|
76
|
+
* represented as an array/tuple. When a tuple doesn't have a rest
|
|
77
|
+
* element, this will be `never`. To convert this to a matching array
|
|
78
|
+
* type that could be spread into a new type use the `CoercedArray`
|
|
79
|
+
* type which handles the `never` case correctly.
|
|
80
|
+
*
|
|
81
|
+
* @example CoercedArray<TupleParts<T>["item"]>
|
|
82
|
+
*/
|
|
83
|
+
item: T extends readonly [] ? never : T[number];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type { TupleParts as T };
|
package/dist/unique-by.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYN6OVP7Dcjs = require('./chunk-YN6OVP7D.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');exports.uniqueBy = _chunkYN6OVP7Dcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYN6OVP7Dcjs = require('./chunk-YN6OVP7D.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-MBGSSEZN.cjs');exports.uniqueBy = _chunkYN6OVP7Dcjs.a;
|
package/dist/unique-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-7RUINKY7.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";export{a as uniqueBy};
|
|
1
|
+
import{a}from"./chunk-7RUINKY7.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";import"./chunk-EK7ODJWE.js";export{a as uniqueBy};
|
package/dist/unique-with.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFN6OUY2Pcjs = require('./chunk-FN6OUY2P.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');exports.uniqueWith = _chunkFN6OUY2Pcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFN6OUY2Pcjs = require('./chunk-FN6OUY2P.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-MBGSSEZN.cjs');exports.uniqueWith = _chunkFN6OUY2Pcjs.a;
|
package/dist/unique-with.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-SE4JHXNT.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";export{a as uniqueWith};
|
|
1
|
+
import{a}from"./chunk-SE4JHXNT.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";import"./chunk-EK7ODJWE.js";export{a as uniqueWith};
|
package/dist/unique.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJUPDV6DZcjs = require('./chunk-JUPDV6DZ.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');exports.unique = _chunkJUPDV6DZcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJUPDV6DZcjs = require('./chunk-JUPDV6DZ.cjs');require('./chunk-YJWH5VIJ.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-MBGSSEZN.cjs');exports.unique = _chunkJUPDV6DZcjs.a;
|
package/dist/unique.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-X7PFDZGQ.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";export{a as unique};
|
|
1
|
+
import{a}from"./chunk-X7PFDZGQ.js";import"./chunk-LSODZ3GY.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";import"./chunk-EK7ODJWE.js";export{a as unique};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Simplify, IsLiteral, Writable } from 'type-fest';
|
|
2
2
|
import { I as IsUnion } from './is-union-Bx34mF34.cjs';
|
|
3
3
|
|
|
4
|
-
type UpsertProp<T, K extends PropertyKey, V> = Simplify<Omit<T, K> & (IsSingleLiteral<K> extends true ? Writable<Required<Record<K, V>>> :
|
|
5
|
-
{
|
|
4
|
+
type UpsertProp<T, K extends PropertyKey, V> = Simplify<Omit<T, K> & (IsSingleLiteral<K> extends true ? Writable<Required<Record<K, V>>> : {
|
|
6
5
|
-readonly [P in keyof T as P extends K ? P : never]: T[P] | V;
|
|
7
6
|
} & {
|
|
8
7
|
-readonly [P in K as P extends keyof T ? never : P]?: V;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Simplify, IsLiteral, Writable } from 'type-fest';
|
|
2
2
|
import { I as IsUnion } from './is-union-Bx34mF34.js';
|
|
3
3
|
|
|
4
|
-
type UpsertProp<T, K extends PropertyKey, V> = Simplify<Omit<T, K> & (IsSingleLiteral<K> extends true ? Writable<Required<Record<K, V>>> :
|
|
5
|
-
{
|
|
4
|
+
type UpsertProp<T, K extends PropertyKey, V> = Simplify<Omit<T, K> & (IsSingleLiteral<K> extends true ? Writable<Required<Record<K, V>>> : {
|
|
6
5
|
-readonly [P in keyof T as P extends K ? P : never]: T[P] | V;
|
|
7
6
|
} & {
|
|
8
7
|
-readonly [P in K as P extends keyof T ? never : P]?: V;
|
package/dist/values.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLTDI6TR7cjs = require('./chunk-LTDI6TR7.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.values = _chunkLTDI6TR7cjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLTDI6TR7cjs = require('./chunk-LTDI6TR7.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.values = _chunkLTDI6TR7cjs.a;
|