@vinicunca/perkakas 1.0.2 → 1.0.3
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.spec-d.cjs +1 -0
- package/dist/add-prop.spec-d.d.cts +2 -0
- package/dist/add-prop.spec-d.d.ts +2 -0
- package/dist/add-prop.spec-d.js +1 -0
- package/dist/chunk-2ADWP73S.js +1 -0
- package/dist/chunk-2VLHCBHJ.js +1 -0
- package/dist/chunk-HU67VIVI.js +1 -0
- package/dist/chunk-J5PNUDDU.js +1 -0
- package/dist/chunk-MZWACWOX.js +1 -0
- package/dist/chunk-QHGCU3LJ.js +1 -0
- package/dist/chunk-T7S2RC5M.cjs +1 -0
- package/dist/chunk-TRIZIXDA.cjs +1 -0
- package/dist/chunk-ULMOKABQ.cjs +1 -0
- package/dist/chunk-UVAWCZB6.js +1 -0
- package/dist/chunk-VAUOPMAN.cjs +1 -0
- package/dist/chunk-XSYAC5NV.cjs +1 -0
- package/dist/chunk-ZJGZ2TEC.cjs +1 -0
- package/dist/chunk.spec-d.cjs +1 -0
- package/dist/chunk.spec-d.d.cts +2 -0
- package/dist/chunk.spec-d.d.ts +2 -0
- package/dist/chunk.spec-d.js +1 -0
- package/dist/conditional.spec-d.cjs +1 -0
- package/dist/conditional.spec-d.d.cts +2 -0
- package/dist/conditional.spec-d.d.ts +2 -0
- package/dist/conditional.spec-d.js +1 -0
- package/dist/constant.spec-d.cjs +1 -0
- package/dist/constant.spec-d.d.cts +2 -0
- package/dist/constant.spec-d.d.ts +2 -0
- package/dist/constant.spec-d.js +1 -0
- package/dist/{curry-order-rules-BOMf1JS7.d.cts → curry-order-rules-DETxSzle.d.cts} +1 -1
- package/dist/{curry-order-rules-BOMf1JS7.d.ts → curry-order-rules-DETxSzle.d.ts} +1 -1
- package/dist/debounce.spec-d.cjs +1 -0
- package/dist/debounce.spec-d.d.cts +2 -0
- package/dist/debounce.spec-d.d.ts +2 -0
- package/dist/debounce.spec-d.js +1 -0
- package/dist/do-nothing.spec-d.cjs +1 -0
- package/dist/do-nothing.spec-d.d.cts +2 -0
- package/dist/do-nothing.spec-d.d.ts +2 -0
- package/dist/do-nothing.spec-d.js +1 -0
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/entries.spec-d.cjs +1 -0
- package/dist/entries.spec-d.d.cts +2 -0
- package/dist/entries.spec-d.d.ts +2 -0
- package/dist/entries.spec-d.js +1 -0
- package/dist/evolve.spec-d.cjs +1 -0
- package/dist/evolve.spec-d.d.cts +2 -0
- package/dist/evolve.spec-d.d.ts +2 -0
- package/dist/evolve.spec-d.js +1 -0
- package/dist/filter.spec-d.cjs +1 -0
- package/dist/filter.spec-d.d.cts +2 -0
- package/dist/filter.spec-d.d.ts +2 -0
- package/dist/filter.spec-d.js +1 -0
- package/dist/find.spec-d.cjs +1 -0
- package/dist/find.spec-d.d.cts +2 -0
- package/dist/find.spec-d.d.ts +2 -0
- package/dist/find.spec-d.js +1 -0
- 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-by.spec-d.cjs +1 -0
- package/dist/first-by.spec-d.d.cts +2 -0
- package/dist/first-by.spec-d.d.ts +2 -0
- package/dist/first-by.spec-d.js +1 -0
- package/dist/first.spec-d.cjs +1 -0
- package/dist/first.spec-d.d.cts +2 -0
- package/dist/first.spec-d.d.ts +2 -0
- package/dist/first.spec-d.js +1 -0
- package/dist/flat.spec-d.cjs +1 -0
- package/dist/flat.spec-d.d.cts +2 -0
- package/dist/flat.spec-d.d.ts +2 -0
- package/dist/flat.spec-d.js +1 -0
- package/dist/for-each-obj.spec-d.cjs +1 -0
- package/dist/for-each-obj.spec-d.d.cts +2 -0
- package/dist/for-each-obj.spec-d.d.ts +2 -0
- package/dist/for-each-obj.spec-d.js +1 -0
- package/dist/for-each.spec-d.cjs +1 -0
- package/dist/for-each.spec-d.d.cts +2 -0
- package/dist/for-each.spec-d.d.ts +2 -0
- package/dist/for-each.spec-d.js +1 -0
- package/dist/from-entries.spec-d.cjs +1 -0
- package/dist/from-entries.spec-d.d.cts +2 -0
- package/dist/from-entries.spec-d.d.ts +2 -0
- package/dist/from-entries.spec-d.js +1 -0
- package/dist/from-keys.spec-d.cjs +1 -0
- package/dist/from-keys.spec-d.d.cts +2 -0
- package/dist/from-keys.spec-d.d.ts +2 -0
- package/dist/from-keys.spec-d.js +1 -0
- package/dist/group-by.spec-d.cjs +1 -0
- package/dist/group-by.spec-d.d.cts +2 -0
- package/dist/group-by.spec-d.d.ts +2 -0
- package/dist/group-by.spec-d.js +1 -0
- package/dist/has-at-least.spec-d.cjs +1 -0
- package/dist/has-at-least.spec-d.d.cts +2 -0
- package/dist/has-at-least.spec-d.d.ts +2 -0
- package/dist/has-at-least.spec-d.js +1 -0
- package/dist/has-sub-object.spec-d.cjs +1 -0
- package/dist/has-sub-object.spec-d.d.cts +2 -0
- package/dist/has-sub-object.spec-d.d.ts +2 -0
- package/dist/has-sub-object.spec-d.js +1 -0
- package/dist/identity.spec-d.cjs +1 -0
- package/dist/identity.spec-d.d.cts +2 -0
- package/dist/identity.spec-d.d.ts +2 -0
- package/dist/identity.spec-d.js +1 -0
- package/dist/index-by.spec-d.cjs +1 -0
- package/dist/index-by.spec-d.d.cts +2 -0
- package/dist/index-by.spec-d.d.ts +2 -0
- package/dist/index-by.spec-d.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/intersection.spec-d.cjs +1 -0
- package/dist/intersection.spec-d.d.cts +2 -0
- package/dist/intersection.spec-d.d.ts +2 -0
- package/dist/intersection.spec-d.js +1 -0
- package/dist/invert.spec-d.cjs +1 -0
- package/dist/invert.spec-d.d.cts +2 -0
- package/dist/invert.spec-d.d.ts +2 -0
- package/dist/invert.spec-d.js +1 -0
- package/dist/is-array.spec-d.cjs +1 -0
- package/dist/is-array.spec-d.d.cts +2 -0
- package/dist/is-array.spec-d.d.ts +2 -0
- package/dist/is-array.spec-d.js +1 -0
- package/dist/is-big-int.spec-d.cjs +1 -0
- package/dist/is-big-int.spec-d.d.cts +2 -0
- package/dist/is-big-int.spec-d.d.ts +2 -0
- package/dist/is-big-int.spec-d.js +1 -0
- package/dist/is-boolean.spec-d.cjs +1 -0
- package/dist/is-boolean.spec-d.d.cts +2 -0
- package/dist/is-boolean.spec-d.d.ts +2 -0
- package/dist/is-boolean.spec-d.js +1 -0
- package/dist/is-date.spec-d.cjs +1 -0
- package/dist/is-date.spec-d.d.cts +2 -0
- package/dist/is-date.spec-d.d.ts +2 -0
- package/dist/is-date.spec-d.js +1 -0
- package/dist/is-deep-equal.d.cts +26 -10
- package/dist/is-deep-equal.d.ts +26 -10
- package/dist/is-deep-equal.spec-d.cjs +1 -0
- package/dist/is-deep-equal.spec-d.d.cts +2 -0
- package/dist/is-deep-equal.spec-d.d.ts +2 -0
- package/dist/is-deep-equal.spec-d.js +1 -0
- package/dist/is-defined.spec-d.cjs +1 -0
- package/dist/is-defined.spec-d.d.cts +2 -0
- package/dist/is-defined.spec-d.d.ts +2 -0
- package/dist/is-defined.spec-d.js +1 -0
- package/dist/is-empty.cjs +1 -1
- package/dist/is-empty.js +1 -1
- package/dist/is-empty.spec-d.cjs +1 -0
- package/dist/is-empty.spec-d.d.cts +2 -0
- package/dist/is-empty.spec-d.d.ts +2 -0
- package/dist/is-empty.spec-d.js +1 -0
- package/dist/is-error.spec-d.cjs +1 -0
- package/dist/is-error.spec-d.d.cts +2 -0
- package/dist/is-error.spec-d.d.ts +2 -0
- package/dist/is-error.spec-d.js +1 -0
- package/dist/is-function.spec-d.cjs +1 -0
- package/dist/is-function.spec-d.d.cts +2 -0
- package/dist/is-function.spec-d.d.ts +2 -0
- package/dist/is-function.spec-d.js +1 -0
- package/dist/is-included-in.spec-d.cjs +1 -0
- package/dist/is-included-in.spec-d.d.cts +2 -0
- package/dist/is-included-in.spec-d.d.ts +2 -0
- package/dist/is-included-in.spec-d.js +1 -0
- package/dist/is-non-null.spec-d.cjs +1 -0
- package/dist/is-non-null.spec-d.d.cts +2 -0
- package/dist/is-non-null.spec-d.d.ts +2 -0
- package/dist/is-non-null.spec-d.js +1 -0
- package/dist/is-non-nullish.spec-d.cjs +1 -0
- package/dist/is-non-nullish.spec-d.d.cts +2 -0
- package/dist/is-non-nullish.spec-d.d.ts +2 -0
- package/dist/is-non-nullish.spec-d.js +1 -0
- package/dist/is-not.spec-d.cjs +1 -0
- package/dist/is-not.spec-d.d.cts +2 -0
- package/dist/is-not.spec-d.d.ts +2 -0
- package/dist/is-not.spec-d.js +1 -0
- package/dist/is-nullish.spec-d.cjs +1 -0
- package/dist/is-nullish.spec-d.d.cts +2 -0
- package/dist/is-nullish.spec-d.d.ts +2 -0
- package/dist/is-nullish.spec-d.js +1 -0
- package/dist/is-number.spec-d.cjs +1 -0
- package/dist/is-number.spec-d.d.cts +2 -0
- package/dist/is-number.spec-d.d.ts +2 -0
- package/dist/is-number.spec-d.js +1 -0
- package/dist/is-object-type.spec-d.cjs +1 -0
- package/dist/is-object-type.spec-d.d.cts +2 -0
- package/dist/is-object-type.spec-d.d.ts +2 -0
- package/dist/is-object-type.spec-d.js +1 -0
- package/dist/is-plain-object.spec-d.cjs +1 -0
- package/dist/is-plain-object.spec-d.d.cts +2 -0
- package/dist/is-plain-object.spec-d.d.ts +2 -0
- package/dist/is-plain-object.spec-d.js +1 -0
- package/dist/is-promise.spec-d.cjs +1 -0
- package/dist/is-promise.spec-d.d.cts +2 -0
- package/dist/is-promise.spec-d.d.ts +2 -0
- package/dist/is-promise.spec-d.js +1 -0
- package/dist/is-shallow-equal.cjs +1 -0
- package/dist/is-shallow-equal.d.cts +69 -0
- package/dist/is-shallow-equal.d.ts +69 -0
- package/dist/is-shallow-equal.js +1 -0
- package/dist/is-shallow-equal.spec-d.cjs +1 -0
- package/dist/is-shallow-equal.spec-d.d.cts +2 -0
- package/dist/is-shallow-equal.spec-d.d.ts +2 -0
- package/dist/is-shallow-equal.spec-d.js +1 -0
- package/dist/is-strict-equal.cjs +1 -0
- package/dist/is-strict-equal.d.cts +65 -0
- package/dist/is-strict-equal.d.ts +65 -0
- package/dist/is-strict-equal.js +1 -0
- package/dist/is-strict-equal.spec-d.cjs +1 -0
- package/dist/is-strict-equal.spec-d.d.cts +2 -0
- package/dist/is-strict-equal.spec-d.d.ts +2 -0
- package/dist/is-strict-equal.spec-d.js +1 -0
- package/dist/is-string.spec-d.cjs +1 -0
- package/dist/is-string.spec-d.d.cts +2 -0
- package/dist/is-string.spec-d.d.ts +2 -0
- package/dist/is-string.spec-d.js +1 -0
- package/dist/is-symbol.spec-d.cjs +1 -0
- package/dist/is-symbol.spec-d.d.cts +2 -0
- package/dist/is-symbol.spec-d.d.ts +2 -0
- package/dist/is-symbol.spec-d.js +1 -0
- package/dist/is-truthy.spec-d.cjs +1 -0
- package/dist/is-truthy.spec-d.d.cts +2 -0
- package/dist/is-truthy.spec-d.d.ts +2 -0
- package/dist/is-truthy.spec-d.js +1 -0
- package/dist/join.spec-d.cjs +1 -0
- package/dist/join.spec-d.d.cts +2 -0
- package/dist/join.spec-d.d.ts +2 -0
- package/dist/join.spec-d.js +1 -0
- package/dist/keys.spec-d.cjs +1 -0
- package/dist/keys.spec-d.d.cts +2 -0
- package/dist/keys.spec-d.d.ts +2 -0
- package/dist/keys.spec-d.js +1 -0
- package/dist/last.spec-d.cjs +1 -0
- package/dist/last.spec-d.d.cts +2 -0
- package/dist/last.spec-d.d.ts +2 -0
- package/dist/last.spec-d.js +1 -0
- package/dist/map-keys.spec-d.cjs +1 -0
- package/dist/map-keys.spec-d.d.cts +2 -0
- package/dist/map-keys.spec-d.d.ts +2 -0
- package/dist/map-keys.spec-d.js +1 -0
- package/dist/map-values.spec-d.cjs +1 -0
- package/dist/map-values.spec-d.d.cts +2 -0
- package/dist/map-values.spec-d.d.ts +2 -0
- package/dist/map-values.spec-d.js +1 -0
- package/dist/map-with-feedback.spec-d.cjs +1 -0
- package/dist/map-with-feedback.spec-d.d.cts +2 -0
- package/dist/map-with-feedback.spec-d.d.ts +2 -0
- package/dist/map-with-feedback.spec-d.js +1 -0
- package/dist/map.spec-d.cjs +1 -0
- package/dist/map.spec-d.d.cts +2 -0
- package/dist/map.spec-d.d.ts +2 -0
- package/dist/map.spec-d.js +1 -0
- package/dist/merge-deep.spec-d.cjs +1 -0
- package/dist/merge-deep.spec-d.d.cts +2 -0
- package/dist/merge-deep.spec-d.d.ts +2 -0
- package/dist/merge-deep.spec-d.js +1 -0
- package/dist/merge.spec-d.cjs +1 -0
- package/dist/merge.spec-d.d.cts +2 -0
- package/dist/merge.spec-d.d.ts +2 -0
- package/dist/merge.spec-d.js +1 -0
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/nth-by.spec-d.cjs +1 -0
- package/dist/nth-by.spec-d.d.cts +2 -0
- package/dist/nth-by.spec-d.d.ts +2 -0
- package/dist/nth-by.spec-d.js +1 -0
- package/dist/omit-by.spec-d.cjs +1 -0
- package/dist/omit-by.spec-d.d.cts +2 -0
- package/dist/omit-by.spec-d.d.ts +2 -0
- package/dist/omit-by.spec-d.js +1 -0
- package/dist/omit.spec-d.cjs +1 -0
- package/dist/omit.spec-d.d.cts +2 -0
- package/dist/omit.spec-d.d.ts +2 -0
- package/dist/omit.spec-d.js +1 -0
- package/dist/only.spec-d.cjs +1 -0
- package/dist/only.spec-d.d.cts +2 -0
- package/dist/only.spec-d.d.ts +2 -0
- package/dist/only.spec-d.js +1 -0
- package/dist/partition.spec-d.cjs +1 -0
- package/dist/partition.spec-d.d.cts +2 -0
- package/dist/partition.spec-d.d.ts +2 -0
- package/dist/partition.spec-d.js +1 -0
- package/dist/pick-by.spec-d.cjs +1 -0
- package/dist/pick-by.spec-d.d.cts +2 -0
- package/dist/pick-by.spec-d.d.ts +2 -0
- package/dist/pick-by.spec-d.js +1 -0
- package/dist/pick.spec-d.cjs +1 -0
- package/dist/pick.spec-d.d.cts +2 -0
- package/dist/pick.spec-d.d.ts +2 -0
- package/dist/pick.spec-d.js +1 -0
- package/dist/product.spec-d.cjs +1 -0
- package/dist/product.spec-d.d.cts +2 -0
- package/dist/product.spec-d.d.ts +2 -0
- package/dist/product.spec-d.js +1 -0
- package/dist/prop.spec-d.cjs +1 -0
- package/dist/prop.spec-d.d.cts +2 -0
- package/dist/prop.spec-d.d.ts +2 -0
- package/dist/prop.spec-d.js +1 -0
- package/dist/pull-object.spec-d.cjs +1 -0
- package/dist/pull-object.spec-d.d.cts +2 -0
- package/dist/pull-object.spec-d.d.ts +2 -0
- package/dist/pull-object.spec-d.js +1 -0
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/reverse.spec-d.cjs +1 -0
- package/dist/reverse.spec-d.d.cts +2 -0
- package/dist/reverse.spec-d.d.ts +2 -0
- package/dist/reverse.spec-d.js +1 -0
- package/dist/sample.spec-d.cjs +1 -0
- package/dist/sample.spec-d.d.cts +2 -0
- package/dist/sample.spec-d.d.ts +2 -0
- package/dist/sample.spec-d.js +1 -0
- package/dist/set-path.cjs +1 -1
- package/dist/set-path.d.cts +4 -4
- package/dist/set-path.d.ts +4 -4
- package/dist/set-path.js +1 -1
- package/dist/set-path.spec-d.cjs +1 -0
- package/dist/set-path.spec-d.d.cts +2 -0
- package/dist/set-path.spec-d.d.ts +2 -0
- package/dist/set-path.spec-d.js +1 -0
- package/dist/set.spec-d.cjs +1 -0
- package/dist/set.spec-d.d.cts +2 -0
- package/dist/set.spec-d.d.ts +2 -0
- package/dist/set.spec-d.js +1 -0
- package/dist/sort-by.d.cts +1 -1
- package/dist/sort-by.d.ts +1 -1
- package/dist/sort-by.spec-d.cjs +1 -0
- package/dist/sort-by.spec-d.d.cts +2 -0
- package/dist/sort-by.spec-d.d.ts +2 -0
- package/dist/sort-by.spec-d.js +1 -0
- package/dist/sort.spec-d.cjs +1 -0
- package/dist/sort.spec-d.d.cts +2 -0
- package/dist/sort.spec-d.d.ts +2 -0
- package/dist/sort.spec-d.js +1 -0
- package/dist/splice.spec-d.cjs +1 -0
- package/dist/splice.spec-d.d.cts +2 -0
- package/dist/splice.spec-d.d.ts +2 -0
- package/dist/splice.spec-d.js +1 -0
- package/dist/split.spec-d.cjs +1 -0
- package/dist/split.spec-d.d.cts +2 -0
- package/dist/split.spec-d.d.ts +2 -0
- package/dist/split.spec-d.js +1 -0
- package/dist/string-to-path.spec-d.cjs +1 -0
- package/dist/string-to-path.spec-d.d.cts +2 -0
- package/dist/string-to-path.spec-d.d.ts +2 -0
- package/dist/string-to-path.spec-d.js +1 -0
- package/dist/sum.spec-d.cjs +1 -0
- package/dist/sum.spec-d.d.cts +2 -0
- package/dist/sum.spec-d.d.ts +2 -0
- package/dist/sum.spec-d.js +1 -0
- package/dist/swap-props.spec-d.cjs +1 -0
- package/dist/swap-props.spec-d.d.cts +2 -0
- package/dist/swap-props.spec-d.d.ts +2 -0
- package/dist/swap-props.spec-d.js +1 -0
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/tap.spec-d.cjs +1 -0
- package/dist/tap.spec-d.d.cts +2 -0
- package/dist/tap.spec-d.d.ts +2 -0
- package/dist/tap.spec-d.js +1 -0
- package/dist/times.cjs +1 -1
- package/dist/times.d.cts +21 -5
- package/dist/times.d.ts +21 -5
- package/dist/times.js +1 -1
- package/dist/times.spec-d.cjs +1 -0
- package/dist/times.spec-d.d.cts +2 -0
- package/dist/times.spec-d.d.ts +2 -0
- package/dist/times.spec-d.js +1 -0
- package/dist/values.spec-d.cjs +1 -0
- package/dist/values.spec-d.d.cts +2 -0
- package/dist/values.spec-d.d.ts +2 -0
- package/dist/values.spec-d.js +1 -0
- package/dist/zip-with.spec-d.cjs +1 -0
- package/dist/zip-with.spec-d.d.cts +2 -0
- package/dist/zip-with.spec-d.d.ts +2 -0
- package/dist/zip-with.spec-d.js +1 -0
- package/dist/zip.spec-d.cjs +1 -0
- package/dist/zip.spec-d.d.cts +2 -0
- package/dist/zip.spec-d.d.ts +2 -0
- package/dist/zip.spec-d.js +1 -0
- package/package.json +15 -14
- package/dist/chunk-4XRKXTOK.js +0 -1
- package/dist/chunk-CXRG2GSY.js +0 -1
- package/dist/chunk-EDKMZBZ3.cjs +0 -1
- package/dist/chunk-NNU5DU4F.cjs +0 -1
- package/dist/chunk-NQR6HZYF.js +0 -1
- package/dist/chunk-UH3TDC4T.cjs +0 -1
- package/dist/chunk-ZW3IUWYO.js +0 -1
- /package/dist/{chunk-XJRGE7WL.cjs → chunk-DHNCWVVT.cjs} +0 -0
package/dist/sort-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-BMu1PIvo.cjs';
|
|
2
|
-
import { O as OrderRule } from './curry-order-rules-
|
|
2
|
+
import { O as OrderRule } from './curry-order-rules-DETxSzle.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/sort-by.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkNIYVDIEQcjs = require('./chunk-NIYVDIEQ.cjs');var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-FWQYL4Y4.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');var s=[{id:1,color:"red",weight:2,active:!0,date:new Date(2021,1,1)},{id:2,color:"blue",weight:3,active:!1,date:new Date(2021,1,2)},{id:3,color:"green",weight:1,active:!1,date:new Date(2021,1,3)},{id:4,color:"purple",weight:1,active:!0,date:new Date(2021,1,4)}];describe("dataFirst",()=>{test("SortProjection",()=>{let a=_chunkNIYVDIEQcjs.a.call(void 0, [{a:1},{a:3},{a:7},{a:2}],_chunkSXTSJOEEcjs.a.call(void 0, "a"));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, s,[a=>a.active,"desc"]);expectTypeOf(e).toEqualTypeOf()})});describe("dataLast",()=>{test("SortProjection",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [{a:1},{a:3},{a:7},{a:2}],_chunkNIYVDIEQcjs.a.call(void 0, _chunkSXTSJOEEcjs.a.call(void 0, "a")));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, s,_chunkNIYVDIEQcjs.a.call(void 0, [_chunkSXTSJOEEcjs.a.call(void 0, "weight"),"asc"],[_chunkSXTSJOEEcjs.a.call(void 0, "color"),"desc"]));expectTypeOf(e).toEqualTypeOf()})});it("on empty tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on tuple with rest middle",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [3,2,1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with rest middle",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [3,2,1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on tuple with optional values",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, 0));expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with optional values",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, 0));expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,"hello",!0],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-J3YPWVVQ.js";import{a as r}from"./chunk-WUAU3LTQ.js";import{a as n}from"./chunk-USNHLUEU.js";import{a as o}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JXXXUJM5.js";import{a as u}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";var s=[{id:1,color:"red",weight:2,active:!0,date:new Date(2021,1,1)},{id:2,color:"blue",weight:3,active:!1,date:new Date(2021,1,2)},{id:3,color:"green",weight:1,active:!1,date:new Date(2021,1,3)},{id:4,color:"purple",weight:1,active:!0,date:new Date(2021,1,4)}];describe("dataFirst",()=>{test("SortProjection",()=>{let a=t([{a:1},{a:3},{a:7},{a:2}],n("a"));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=t(s,[a=>a.active,"desc"]);expectTypeOf(e).toEqualTypeOf()})});describe("dataLast",()=>{test("SortProjection",()=>{let a=o([{a:1},{a:3},{a:7},{a:2}],t(n("a")));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=o(s,t([n("weight"),"asc"],[n("color"),"desc"]));expectTypeOf(e).toEqualTypeOf()})});it("on empty tuple",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=t([1,2,3],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=t([1,2,3],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});test("on tuple with rest middle",()=>{let e=t([3,2,1],r);expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with rest middle",()=>{let e=t([3,2,1],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});test("on tuple with optional values",()=>{let e=t([],u(0));expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with optional values",()=>{let e=t([],u(0));expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=t([1,"hello",!0],r);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkZ42U7NBMcjs = require('./chunk-Z42U7NBM.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("on empty tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,"hello",!0],()=>1);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-XUU6IYML.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("on empty tuple",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=n([1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=n([1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=n([1,"hello",!0],()=>1);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkDJ5DVLWDcjs = require('./chunk-DJ5DVLWD.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("reflects the type of `items` in the return value",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, [],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, [],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value (data-last)",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, 0,0,[]);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-7UJXFFOU.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("reflects the type of `items` in the return value",()=>{let e=t([],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value",()=>{let e=t([],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value (data-last)",()=>{let e=t(0,0,[]);expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkTFN3JWPScjs = require('./chunk-TFN3JWPS.cjs');test("non-literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("non-literal data",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","",1);expectTypeOf(t).toEqualTypeOf()});test("literal empty strings",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a",",");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a",",");expectTypeOf(t).toEqualTypeOf()});test("string contains separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, ",",",");expectTypeOf(t).toEqualTypeOf()});test("useful split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",");expectTypeOf(t).toEqualTypeOf()});test("regex split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",/,/u);expectTypeOf(t).toEqualTypeOf()});test("limited split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",2);expectTypeOf(t).toEqualTypeOf()});test("limit is higher than splits",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",5);expectTypeOf(t).toEqualTypeOf()});test("undefined limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",void 0);expectTypeOf(t).toEqualTypeOf()});test("multiple consecutive separators",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,,b",",");expectTypeOf(t).toEqualTypeOf()});test("separator at the start and end",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, ",a,b,",",");expectTypeOf(t).toEqualTypeOf()});test("empty string separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "abcdef","");expectTypeOf(t).toEqualTypeOf()});test("empty everything",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("literal string with multiple character separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a--b--c","--");expectTypeOf(t).toEqualTypeOf()});test("negative limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",-1);expectTypeOf(t).toEqualTypeOf()});test("fractional limits",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",1.5);expectTypeOf(t).toEqualTypeOf()});test("0 limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",0);expectTypeOf(t).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-RBODUO3Q.js";test("non-literals",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("non-literal data",()=>{let t=e("",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal separator",()=>{let t=e("",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal limit",()=>{let t=e("","",1);expectTypeOf(t).toEqualTypeOf()});test("literal empty strings",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=e("a",",");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=e("a",",");expectTypeOf(t).toEqualTypeOf()});test("string contains separator",()=>{let t=e(",",",");expectTypeOf(t).toEqualTypeOf()});test("useful split",()=>{let t=e("a,b,c",",");expectTypeOf(t).toEqualTypeOf()});test("regex split",()=>{let t=e("a,b,c",/,/u);expectTypeOf(t).toEqualTypeOf()});test("limited split",()=>{let t=e("a,b,c",",",2);expectTypeOf(t).toEqualTypeOf()});test("limit is higher than splits",()=>{let t=e("a,b,c",",",5);expectTypeOf(t).toEqualTypeOf()});test("undefined limit",()=>{let t=e("a,b,c",",",void 0);expectTypeOf(t).toEqualTypeOf()});test("multiple consecutive separators",()=>{let t=e("a,,b",",");expectTypeOf(t).toEqualTypeOf()});test("separator at the start and end",()=>{let t=e(",a,b,",",");expectTypeOf(t).toEqualTypeOf()});test("empty string separator",()=>{let t=e("abcdef","");expectTypeOf(t).toEqualTypeOf()});test("empty everything",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("literal string with multiple character separator",()=>{let t=e("a--b--c","--");expectTypeOf(t).toEqualTypeOf()});test("negative limit",()=>{let t=e("a,b,c",",",-1);expectTypeOf(t).toEqualTypeOf()});test("fractional limits",()=>{let t=e("a,b,c",",",1.5);expectTypeOf(t).toEqualTypeOf()});test("0 limit",()=>{let t=e("a,b,c",",",0);expectTypeOf(t).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkVRZNQSZNcjs = require('./chunk-VRZNQSZN.cjs');test("should convert a string to a deeply nested path",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "a.b[0].c");expectTypeOf(e).toEqualTypeOf()});test("simple const string are inferred",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "foo[bar.baz].qui");expectTypeOf(e).toEqualTypeOf()});test("should handle long paths",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "lorem.ipsum[dolor.sit].amet.con.sec.tetur[adi.pisc.ing].elit.42");expectTypeOf(e).toEqualTypeOf()});test("dynamic strings cannot be inferred",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "foo.bar[baz]");expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-CZLV6ZLZ.js";test("should convert a string to a deeply nested path",()=>{let e=t("a.b[0].c");expectTypeOf(e).toEqualTypeOf()});test("simple const string are inferred",()=>{let e=t("foo[bar.baz].qui");expectTypeOf(e).toEqualTypeOf()});test("should handle long paths",()=>{let e=t("lorem.ipsum[dolor.sit].amet.con.sec.tetur[adi.pisc.ing].elit.42");expectTypeOf(e).toEqualTypeOf()});test("dynamic strings cannot be inferred",()=>{let e=t("foo.bar[baz]");expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunk6TRXWRYJcjs = require('./chunk-6TRXWRYJ.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()});describe("numbers",()=>{test("arbitrary arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2,3]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2]);expectTypeOf(t).toEqualTypeOf()})});describe("bigints",()=>{test("arbitrary arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n,3n]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n]);expectTypeOf(t).toEqualTypeOf()})});describe("dataLast",()=>{test("numbers",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunk6TRXWRYJcjs.a.call(void 0, ));expectTypeOf(t).toEqualTypeOf()}),test("bigints",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1n,2n,3n],_chunk6TRXWRYJcjs.a.call(void 0, ));expectTypeOf(t).toEqualTypeOf()})});it("doesn't allow mixed arrays",()=>{_chunk6TRXWRYJcjs.a.call(void 0, [1,2n])});describe("KNOWN ISSUES",()=>{it("Returns 0 (`number`) instead of 0n (`bigint`) for empty `bigint` arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-2T576V7A.js";import{a as r}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("empty arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()});describe("numbers",()=>{test("arbitrary arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=e([1,2]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=e([1,2,3]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=e([1,2]);expectTypeOf(t).toEqualTypeOf()})});describe("bigints",()=>{test("arbitrary arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=e([1n,2n]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=e([1n,2n,3n]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=e([1n,2n]);expectTypeOf(t).toEqualTypeOf()})});describe("dataLast",()=>{test("numbers",()=>{let t=r([1,2,3],e());expectTypeOf(t).toEqualTypeOf()}),test("bigints",()=>{let t=r([1n,2n,3n],e());expectTypeOf(t).toEqualTypeOf()})});it("doesn't allow mixed arrays",()=>{e([1,2n])});describe("KNOWN ISSUES",()=>{it("Returns 0 (`number`) instead of 0n (`bigint`) for empty `bigint` arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkKBGFDQ5Tcjs = require('./chunk-KBGFDQ5T.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("protects against invalid prop names",()=>{_chunkKBGFDQ5Tcjs.a.call(void 0, {a:1,b:2},"a","c")});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-3T7K3EKS.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("protects against invalid prop names",()=>{a({a:1,b:2},"a","c")});
|
package/dist/take-first-by.d.cts
CHANGED
package/dist/take-first-by.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkYWO7TFODcjs = require('./chunk-YWO7TFOD.cjs');var _chunkKLQZU5J4cjs = require('./chunk-KLQZU5J4.cjs');var _chunk7IYJC2PMcjs = require('./chunk-7IYJC2PM.cjs');var _chunkWW7P3TAUcjs = require('./chunk-WW7P3TAU.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("should work in the middle of pipe sequence",()=>{_chunkI6VXEY44cjs.a.call(void 0, [-1,2],_chunk7IYJC2PMcjs.a.call(void 0, e=>e>0),_chunkYWO7TFODcjs.a.call(void 0, e=>{expectTypeOf(e).toEqualTypeOf()}),_chunkWW7P3TAUcjs.a.call(void 0, _chunkKLQZU5J4cjs.a.call(void 0, 2)))});it("should infer types after tapping function reference with parameter type any",()=>{_chunkI6VXEY44cjs.a.call(void 0, [-1,2],_chunk7IYJC2PMcjs.a.call(void 0, e=>e>0),_chunkYWO7TFODcjs.a.call(void 0, i),_chunkWW7P3TAUcjs.a.call(void 0, e=>(expectTypeOf(e).toEqualTypeOf(),e*2)))});function i(e){return e}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-ENIRKKU6.js";import{a as n}from"./chunk-MBYBX5B3.js";import{a as p}from"./chunk-BGPRJNRQ.js";import{a as t}from"./chunk-QRDGUNHT.js";import{a as r}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("should work in the middle of pipe sequence",()=>{r([-1,2],p(e=>e>0),o(e=>{expectTypeOf(e).toEqualTypeOf()}),t(n(2)))});it("should infer types after tapping function reference with parameter type any",()=>{r([-1,2],p(e=>e>0),o(i),t(e=>(expectTypeOf(e).toEqualTypeOf(),e*2)))});function i(e){return e}
|
package/dist/times.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXSYAC5NVcjs = require('./chunk-XSYAC5NV.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.times = _chunkXSYAC5NVcjs.a;
|
package/dist/times.d.cts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import { GreaterThan } from 'type-fest';
|
|
2
|
+
|
|
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
|
+
];
|
|
1
13
|
/**
|
|
2
14
|
* Calls an input function `n` times, returning an array containing the results
|
|
3
15
|
* of those function calls.
|
|
@@ -5,8 +17,10 @@
|
|
|
5
17
|
* `fn` is passed one argument: The current value of `n`, which begins at `0`
|
|
6
18
|
* and is gradually incremented to `n - 1`.
|
|
7
19
|
*
|
|
8
|
-
* @param count - A value between `0` and `n - 1`. Increments after each
|
|
9
|
-
*
|
|
20
|
+
* @param count - A value between `0` and `n - 1`. Increments after each
|
|
21
|
+
* function call.
|
|
22
|
+
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
23
|
+
* `n`.
|
|
10
24
|
* @signature
|
|
11
25
|
* P.times(count, fn)
|
|
12
26
|
* @example
|
|
@@ -15,7 +29,7 @@
|
|
|
15
29
|
* @dataFirst
|
|
16
30
|
* @category Array
|
|
17
31
|
*/
|
|
18
|
-
declare function times<T>(count:
|
|
32
|
+
declare function times<T, N extends number>(count: N, fn: (index: number) => T): TimesArray<T, N>;
|
|
19
33
|
/**
|
|
20
34
|
* Calls an input function `n` times, returning an array containing the results
|
|
21
35
|
* of those function calls.
|
|
@@ -23,7 +37,9 @@ declare function times<T>(count: number, fn: (n: number) => T): Array<T>;
|
|
|
23
37
|
* `fn` is passed one argument: The current value of `n`, which begins at `0`
|
|
24
38
|
* and is gradually incremented to `n - 1`.
|
|
25
39
|
*
|
|
26
|
-
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
40
|
+
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
41
|
+
* `n`.
|
|
42
|
+
* @returns An array containing the return values of all calls to `fn`.
|
|
27
43
|
*
|
|
28
44
|
* @signature
|
|
29
45
|
* P.times(count, fn)
|
|
@@ -33,6 +49,6 @@ declare function times<T>(count: number, fn: (n: number) => T): Array<T>;
|
|
|
33
49
|
* @dataLast
|
|
34
50
|
* @category Array
|
|
35
51
|
*/
|
|
36
|
-
declare function times<T>(fn: (
|
|
52
|
+
declare function times<T>(fn: (index: number) => T): <N extends number>(count: N) => TimesArray<T, N>;
|
|
37
53
|
|
|
38
54
|
export { times };
|
package/dist/times.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import { GreaterThan } from 'type-fest';
|
|
2
|
+
|
|
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
|
+
];
|
|
1
13
|
/**
|
|
2
14
|
* Calls an input function `n` times, returning an array containing the results
|
|
3
15
|
* of those function calls.
|
|
@@ -5,8 +17,10 @@
|
|
|
5
17
|
* `fn` is passed one argument: The current value of `n`, which begins at `0`
|
|
6
18
|
* and is gradually incremented to `n - 1`.
|
|
7
19
|
*
|
|
8
|
-
* @param count - A value between `0` and `n - 1`. Increments after each
|
|
9
|
-
*
|
|
20
|
+
* @param count - A value between `0` and `n - 1`. Increments after each
|
|
21
|
+
* function call.
|
|
22
|
+
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
23
|
+
* `n`.
|
|
10
24
|
* @signature
|
|
11
25
|
* P.times(count, fn)
|
|
12
26
|
* @example
|
|
@@ -15,7 +29,7 @@
|
|
|
15
29
|
* @dataFirst
|
|
16
30
|
* @category Array
|
|
17
31
|
*/
|
|
18
|
-
declare function times<T>(count:
|
|
32
|
+
declare function times<T, N extends number>(count: N, fn: (index: number) => T): TimesArray<T, N>;
|
|
19
33
|
/**
|
|
20
34
|
* Calls an input function `n` times, returning an array containing the results
|
|
21
35
|
* of those function calls.
|
|
@@ -23,7 +37,9 @@ declare function times<T>(count: number, fn: (n: number) => T): Array<T>;
|
|
|
23
37
|
* `fn` is passed one argument: The current value of `n`, which begins at `0`
|
|
24
38
|
* and is gradually incremented to `n - 1`.
|
|
25
39
|
*
|
|
26
|
-
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
40
|
+
* @param fn - The function to invoke. Passed one argument, the current value of
|
|
41
|
+
* `n`.
|
|
42
|
+
* @returns An array containing the return values of all calls to `fn`.
|
|
27
43
|
*
|
|
28
44
|
* @signature
|
|
29
45
|
* P.times(count, fn)
|
|
@@ -33,6 +49,6 @@ declare function times<T>(count: number, fn: (n: number) => T): Array<T>;
|
|
|
33
49
|
* @dataLast
|
|
34
50
|
* @category Array
|
|
35
51
|
*/
|
|
36
|
-
declare function times<T>(fn: (
|
|
52
|
+
declare function times<T>(fn: (index: number) => T): <N extends number>(count: N) => TimesArray<T, N>;
|
|
37
53
|
|
|
38
54
|
export { times };
|
package/dist/times.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-MZWACWOX.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as times};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkXSYAC5NVcjs = require('./chunk-XSYAC5NV.cjs');var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("works with 0",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 0,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with non-literals",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 10,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with positive integer literals",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 10,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with negative integers",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, -10,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with non-integer positive literals",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 10.5,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with non-integer negative literals",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, -10.5,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("works with literal unions",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 1,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("could be 'disabled' with large literals",()=>{let e=_chunkXSYAC5NVcjs.a.call(void 0, 1e4,_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(e).toMatchTypeOf(),expectTypeOf(e[0]).toEqualTypeOf(),expectTypeOf(e[45]).toEqualTypeOf(),expectTypeOf(e[56]).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-MZWACWOX.js";import{a as t}from"./chunk-WUAU3LTQ.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("works with 0",()=>{let e=r(0,t());expectTypeOf(e).toEqualTypeOf()});it("works with non-literals",()=>{let e=r(10,t());expectTypeOf(e).toEqualTypeOf()});it("works with positive integer literals",()=>{let e=r(10,t());expectTypeOf(e).toEqualTypeOf()});it("works with negative integers",()=>{let e=r(-10,t());expectTypeOf(e).toEqualTypeOf()});it("works with non-integer positive literals",()=>{let e=r(10.5,t());expectTypeOf(e).toEqualTypeOf()});it("works with non-integer negative literals",()=>{let e=r(-10.5,t());expectTypeOf(e).toEqualTypeOf()});it("works with literal unions",()=>{let e=r(1,t());expectTypeOf(e).toEqualTypeOf()});it("could be 'disabled' with large literals",()=>{let e=r(1e4,t());expectTypeOf(e).toMatchTypeOf(),expectTypeOf(e[0]).toEqualTypeOf(),expectTypeOf(e[45]).toEqualTypeOf(),expectTypeOf(e[56]).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunk47KOI7MWcjs = require('./chunk-47KOI7MW.cjs');var _chunkNULDWRPDcjs = require('./chunk-NULDWRPD.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("should correctly types indexed types",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {a:"b"});expectTypeOf(e).toEqualTypeOf()});it("should correctly type functions",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, _chunkNULDWRPDcjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});it("should correctly type arrays",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, [1,2,3]);expectTypeOf(e).toEqualTypeOf()});it("should correctly type const arrays",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, [1,2,3]);expectTypeOf(e).toEqualTypeOf()});it("should correctly type objects",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {a:!0});expectTypeOf(e).toEqualTypeOf()});it("should correctly type Records",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {a:!0});expectTypeOf(e).toEqualTypeOf()});it("should correctly type union of Records",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {a:"cat"});expectTypeOf(e).toEqualTypeOf()});it("should correctly type typed objects",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {type:"cat",age:7});expectTypeOf(e).toEqualTypeOf()});it("should skip symbol keys",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {[Symbol("a")]:!0,a:"b",123:456});expectTypeOf(e).toEqualTypeOf()});it("should return a useful type when all keys are symbols",()=>{let e=_chunk47KOI7MWcjs.a.call(void 0, {[Symbol("a")]:!0,[Symbol("b")]:"c"});expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-22S2LZ25.js";import{a as r}from"./chunk-PHKKU45J.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("should correctly types indexed types",()=>{let e=t({a:"b"});expectTypeOf(e).toEqualTypeOf()});it("should correctly type functions",()=>{let e=t(r());expectTypeOf(e).toEqualTypeOf()});it("should correctly type arrays",()=>{let e=t([1,2,3]);expectTypeOf(e).toEqualTypeOf()});it("should correctly type const arrays",()=>{let e=t([1,2,3]);expectTypeOf(e).toEqualTypeOf()});it("should correctly type objects",()=>{let e=t({a:!0});expectTypeOf(e).toEqualTypeOf()});it("should correctly type Records",()=>{let e=t({a:!0});expectTypeOf(e).toEqualTypeOf()});it("should correctly type union of Records",()=>{let e=t({a:"cat"});expectTypeOf(e).toEqualTypeOf()});it("should correctly type typed objects",()=>{let e=t({type:"cat",age:7});expectTypeOf(e).toEqualTypeOf()});it("should skip symbol keys",()=>{let e=t({[Symbol("a")]:!0,a:"b",123:456});expectTypeOf(e).toEqualTypeOf()});it("should return a useful type when all keys are symbols",()=>{let e=t({[Symbol("a")]:!0,[Symbol("b")]:"c"});expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkPH45KQNBcjs = require('./chunk-PH45KQNB.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-7T4AVFYJ.cjs');test("data first typings",()=>{let t=_chunkPH45KQNBcjs.a.call(void 0, ["1","2","3"],["a","b","c"],(a,e)=>`${a}${e}`);expectTypeOf(t).toEqualTypeOf()});test("data second typings",()=>{let t=_chunkPH45KQNBcjs.a.call(void 0, (a,e)=>`${a}${e}`)(["1","2","3"],["a","b","c"]);expectTypeOf(t).toEqualTypeOf()});test("data second with initial arg typings",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, ["1","2","3"],_chunkPH45KQNBcjs.a.call(void 0, ["a","b","c"],(a,e)=>`${a}${e}`));expectTypeOf(t).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-PSXTTF2V.js";import{a as p}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-KQGY2DBY.js";test("data first typings",()=>{let t=i(["1","2","3"],["a","b","c"],(a,e)=>`${a}${e}`);expectTypeOf(t).toEqualTypeOf()});test("data second typings",()=>{let t=i((a,e)=>`${a}${e}`)(["1","2","3"],["a","b","c"]);expectTypeOf(t).toEqualTypeOf()});test("data second with initial arg typings",()=>{let t=p(["1","2","3"],i(["a","b","c"],(a,e)=>`${a}${e}`));expectTypeOf(t).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkWNL2I2YKcjs = require('./chunk-WNL2I2YK.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("dataFirst",()=>{test("arrays",()=>{let r=_chunkWNL2I2YKcjs.a.call(void 0, [1,2,3],["a","b","c"]);expectTypeOf(r).toEqualTypeOf()}),test("tuples",()=>{let r=_chunkWNL2I2YKcjs.a.call(void 0, [1,2,3],["a","b","c"]);expectTypeOf(r).toEqualTypeOf()}),test("variadic tuples",()=>{let a=_chunkWNL2I2YKcjs.a.call(void 0, [1,"b","c"],["a",2,3]);expectTypeOf(a).toEqualTypeOf()}),test("on empty tuples",()=>{let r=[],t=_chunkWNL2I2YKcjs.a.call(void 0, r,r);expectTypeOf(t).toEqualTypeOf()}),test("on empty readonly tuples",()=>{let r=[],t=_chunkWNL2I2YKcjs.a.call(void 0, r,r);expectTypeOf(t).toEqualTypeOf()}),test("on arrays",()=>{let r=[],t=_chunkWNL2I2YKcjs.a.call(void 0, r,r);expectTypeOf(t).toEqualTypeOf()}),test("on mixed typeds array",()=>{let a=_chunkWNL2I2YKcjs.a.call(void 0, [],[]);expectTypeOf(a).toEqualTypeOf()}),test("on readonly arrays",()=>{let r=[],t=_chunkWNL2I2YKcjs.a.call(void 0, r,r);expectTypeOf(t).toEqualTypeOf()}),test("on tuples",()=>{let a=_chunkWNL2I2YKcjs.a.call(void 0, [1,2,3],[4,5,6]);expectTypeOf(a).toEqualTypeOf()}),test("on readonly tuples",()=>{let a=_chunkWNL2I2YKcjs.a.call(void 0, [1,2,3],[4,5,6]);expectTypeOf(a).toEqualTypeOf()}),test("on tuples of different lengths",()=>{let r=[1,2,3],t=[4,5],a=_chunkWNL2I2YKcjs.a.call(void 0, r,t);expectTypeOf(a).toEqualTypeOf();let n=_chunkWNL2I2YKcjs.a.call(void 0, t,r);expectTypeOf(n).toEqualTypeOf()}),test("on variadic tuples",()=>{let a=_chunkWNL2I2YKcjs.a.call(void 0, [1,"b","c"],["a",2,3]);expectTypeOf(a).toEqualTypeOf()})});describe("dataLast",()=>{test("arrays",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunkWNL2I2YKcjs.a.call(void 0, ["a","b","c"]));expectTypeOf(r).toEqualTypeOf()}),test("tuples",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunkWNL2I2YKcjs.a.call(void 0, ["a","b","c"]));expectTypeOf(r).toEqualTypeOf()}),test("variadic tuples",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [1,"b","c"],_chunkWNL2I2YKcjs.a.call(void 0, ["a",2,3]));expectTypeOf(a).toEqualTypeOf()}),test("on empty tuples",()=>{let r=[],t=_chunkI6VXEY44cjs.a.call(void 0, r,_chunkWNL2I2YKcjs.a.call(void 0, r));expectTypeOf(t).toEqualTypeOf()}),test("on empty readonly tuples",()=>{let r=[],t=_chunkI6VXEY44cjs.a.call(void 0, r,_chunkWNL2I2YKcjs.a.call(void 0, r));expectTypeOf(t).toEqualTypeOf()}),test("on arrays",()=>{let r=[],t=_chunkI6VXEY44cjs.a.call(void 0, r,_chunkWNL2I2YKcjs.a.call(void 0, r));expectTypeOf(t).toEqualTypeOf()}),test("on mixed typeds array",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkWNL2I2YKcjs.a.call(void 0, []));expectTypeOf(a).toEqualTypeOf()}),test("on readonly arrays",()=>{let r=[],t=_chunkI6VXEY44cjs.a.call(void 0, r,_chunkWNL2I2YKcjs.a.call(void 0, r));expectTypeOf(t).toEqualTypeOf()}),test("on tuples",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunkWNL2I2YKcjs.a.call(void 0, [4,5,6]));expectTypeOf(a).toEqualTypeOf()}),test("on readonly tuples",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunkWNL2I2YKcjs.a.call(void 0, [4,5,6]));expectTypeOf(a).toEqualTypeOf()}),test("on tuples of different lengths",()=>{let r=[1,2,3],t=[4,5],a=_chunkI6VXEY44cjs.a.call(void 0, r,_chunkWNL2I2YKcjs.a.call(void 0, t));expectTypeOf(a).toEqualTypeOf();let n=_chunkI6VXEY44cjs.a.call(void 0, t,_chunkWNL2I2YKcjs.a.call(void 0, r));expectTypeOf(n).toEqualTypeOf()}),test("on variadic tuples",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [1,"b","c"],_chunkWNL2I2YKcjs.a.call(void 0, ["a",2,3]));expectTypeOf(a).toEqualTypeOf()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-QQQIEYAH.js";import{a as s}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("dataFirst",()=>{test("arrays",()=>{let r=e([1,2,3],["a","b","c"]);expectTypeOf(r).toEqualTypeOf()}),test("tuples",()=>{let r=e([1,2,3],["a","b","c"]);expectTypeOf(r).toEqualTypeOf()}),test("variadic tuples",()=>{let a=e([1,"b","c"],["a",2,3]);expectTypeOf(a).toEqualTypeOf()}),test("on empty tuples",()=>{let r=[],t=e(r,r);expectTypeOf(t).toEqualTypeOf()}),test("on empty readonly tuples",()=>{let r=[],t=e(r,r);expectTypeOf(t).toEqualTypeOf()}),test("on arrays",()=>{let r=[],t=e(r,r);expectTypeOf(t).toEqualTypeOf()}),test("on mixed typeds array",()=>{let a=e([],[]);expectTypeOf(a).toEqualTypeOf()}),test("on readonly arrays",()=>{let r=[],t=e(r,r);expectTypeOf(t).toEqualTypeOf()}),test("on tuples",()=>{let a=e([1,2,3],[4,5,6]);expectTypeOf(a).toEqualTypeOf()}),test("on readonly tuples",()=>{let a=e([1,2,3],[4,5,6]);expectTypeOf(a).toEqualTypeOf()}),test("on tuples of different lengths",()=>{let r=[1,2,3],t=[4,5],a=e(r,t);expectTypeOf(a).toEqualTypeOf();let n=e(t,r);expectTypeOf(n).toEqualTypeOf()}),test("on variadic tuples",()=>{let a=e([1,"b","c"],["a",2,3]);expectTypeOf(a).toEqualTypeOf()})});describe("dataLast",()=>{test("arrays",()=>{let r=s([1,2,3],e(["a","b","c"]));expectTypeOf(r).toEqualTypeOf()}),test("tuples",()=>{let r=s([1,2,3],e(["a","b","c"]));expectTypeOf(r).toEqualTypeOf()}),test("variadic tuples",()=>{let a=s([1,"b","c"],e(["a",2,3]));expectTypeOf(a).toEqualTypeOf()}),test("on empty tuples",()=>{let r=[],t=s(r,e(r));expectTypeOf(t).toEqualTypeOf()}),test("on empty readonly tuples",()=>{let r=[],t=s(r,e(r));expectTypeOf(t).toEqualTypeOf()}),test("on arrays",()=>{let r=[],t=s(r,e(r));expectTypeOf(t).toEqualTypeOf()}),test("on mixed typeds array",()=>{let a=s([],e([]));expectTypeOf(a).toEqualTypeOf()}),test("on readonly arrays",()=>{let r=[],t=s(r,e(r));expectTypeOf(t).toEqualTypeOf()}),test("on tuples",()=>{let a=s([1,2,3],e([4,5,6]));expectTypeOf(a).toEqualTypeOf()}),test("on readonly tuples",()=>{let a=s([1,2,3],e([4,5,6]));expectTypeOf(a).toEqualTypeOf()}),test("on tuples of different lengths",()=>{let r=[1,2,3],t=[4,5],a=s(r,e(t));expectTypeOf(a).toEqualTypeOf();let n=s(t,e(r));expectTypeOf(n).toEqualTypeOf()}),test("on variadic tuples",()=>{let a=s([1,"b","c"],e(["a",2,3]));expectTypeOf(a).toEqualTypeOf()})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/perkakas",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"description": "Utility for JavaScript and Typescript.",
|
|
6
6
|
"author": "praburangki<https://github.com/praburangki>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"node": ">=20.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"type-fest": "^4.
|
|
40
|
+
"type-fest": "^4.21.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^20.14.
|
|
44
|
-
"@vinicunca/eslint-config": "
|
|
45
|
-
"@vitest/coverage-v8": "^
|
|
43
|
+
"@types/node": "^20.14.9",
|
|
44
|
+
"@vinicunca/eslint-config": "2.7.0-beta.1",
|
|
45
|
+
"@vitest/coverage-v8": "^2.0.2",
|
|
46
46
|
"bumpp": "^9.4.1",
|
|
47
|
-
"eslint": "^9.
|
|
48
|
-
"prettier": "^3.3.
|
|
47
|
+
"eslint": "^9.6.0",
|
|
48
|
+
"prettier": "^3.3.2",
|
|
49
49
|
"tsup": "^8.1.0",
|
|
50
|
-
"typedoc": "^0.
|
|
51
|
-
"typescript": "^5.
|
|
52
|
-
"vitest": "^
|
|
50
|
+
"typedoc": "^0.26.4",
|
|
51
|
+
"typescript": "^5.5.3",
|
|
52
|
+
"vitest": "^2.0.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup",
|
|
@@ -59,9 +59,10 @@
|
|
|
59
59
|
"lint": "eslint . --fix",
|
|
60
60
|
"publish:ci": "pnpm publish --access public --no-git-checks",
|
|
61
61
|
"release": "bumpp package.json",
|
|
62
|
-
"test": "vitest",
|
|
63
|
-
"test:
|
|
64
|
-
"
|
|
65
|
-
"
|
|
62
|
+
"test": "tsc --project tsconfig.tests.json && vitest --typecheck.enabled --typecheck.ignoreSourceErrors",
|
|
63
|
+
"test:runtime": "tsc --project tsconfig.tests.json && vitest",
|
|
64
|
+
"test:typing": "vitest --typecheck.only --typecheck.ignoreSourceErrors",
|
|
65
|
+
"typecheck": "tsc --project tsconfig.source.json",
|
|
66
|
+
"typecheck:dist": "tsc --project tsconfig.dist.json"
|
|
66
67
|
}
|
|
67
68
|
}
|
package/dist/chunk-4XRKXTOK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-JFXZ246Y.js";function i(...n){return t(u,n)}function u(n,o){if(n<0)throw new RangeError("n must be a non-negative number");let e=[];for(let r=0;r<n;r++)e.push(o(r));return e}export{i as a};
|
package/dist/chunk-CXRG2GSY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-JXXXUJM5.js";import{a as o}from"./chunk-73BYESBE.js";function l(...e){return t(i,e)}function i(e,y){if(!o(e,2))return e[0];let[n]=e,[,...u]=e;for(let r of u)y(r,n)<0&&(n=r);return n}export{l as a};
|
package/dist/chunk-EDKMZBZ3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function n(e){return e===void 0?!0:typeof e=="string"?e.length===0:typeof e!="object"?!1:Array.isArray(e)?e.length===0:Object.keys(e).length===0}exports.a = n;
|
package/dist/chunk-NNU5DU4F.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function h(...e){return _chunkY74ER22Ocjs.a.call(void 0, r,e)}function r(e,T,t){let[n,...a]=T;if(n===void 0)return t;if(Array.isArray(e)){let o=[...e];return o[n]=r(e[n],a,t),o}let{[n]:u,...s}=e;return{...s,[n]:r(u,a,t)}}exports.a = h; exports.b = r;
|
package/dist/chunk-NQR6HZYF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as P}from"./chunk-JFXZ246Y.js";function h(...e){return P(r,e)}function r(e,T,t){let[n,...a]=T;if(n===void 0)return t;if(Array.isArray(e)){let o=[...e];return o[n]=r(e[n],a,t),o}let{[n]:u,...s}=e;return{...s,[n]:r(u,a,t)}}export{h as a,r as b};
|
package/dist/chunk-UH3TDC4T.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function i(...n){return _chunkY74ER22Ocjs.a.call(void 0, u,n)}function u(n,o){if(n<0)throw new RangeError("n must be a non-negative number");let e=[];for(let r=0;r<n;r++)e.push(o(r));return e}exports.a = i;
|
package/dist/chunk-ZW3IUWYO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(e){return e===void 0?!0:typeof e=="string"?e.length===0:typeof e!="object"?!1:Array.isArray(e)?e.length===0:Object.keys(e).length===0}export{n as a};
|
|
File without changes
|