@ac-kit/core 0.1.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/LICENSE +28 -0
- package/README.md +39 -0
- package/dist/array/find-index.d.ts +19 -0
- package/dist/array/find-index.d.ts.map +1 -0
- package/dist/array/find-index.js +29 -0
- package/dist/array/find-index.js.map +1 -0
- package/dist/array/remove-all.d.ts +19 -0
- package/dist/array/remove-all.d.ts.map +1 -0
- package/dist/array/remove-all.js +36 -0
- package/dist/array/remove-all.js.map +1 -0
- package/dist/big-int/abs.d.ts +3 -0
- package/dist/big-int/abs.d.ts.map +1 -0
- package/dist/big-int/abs.js +5 -0
- package/dist/big-int/abs.js.map +1 -0
- package/dist/big-int/bit/bit-reverse64.d.ts +12 -0
- package/dist/big-int/bit/bit-reverse64.d.ts.map +1 -0
- package/dist/big-int/bit/bit-reverse64.js +23 -0
- package/dist/big-int/bit/bit-reverse64.js.map +1 -0
- package/dist/big-int/bit/byte-swap64.d.ts +11 -0
- package/dist/big-int/bit/byte-swap64.d.ts.map +1 -0
- package/dist/big-int/bit/byte-swap64.js +18 -0
- package/dist/big-int/bit/byte-swap64.js.map +1 -0
- package/dist/big-int/bit/clz64.d.ts +12 -0
- package/dist/big-int/bit/clz64.d.ts.map +1 -0
- package/dist/big-int/bit/clz64.js +16 -0
- package/dist/big-int/bit/clz64.js.map +1 -0
- package/dist/big-int/bit/ctz64.d.ts +11 -0
- package/dist/big-int/bit/ctz64.d.ts.map +1 -0
- package/dist/big-int/bit/ctz64.js +16 -0
- package/dist/big-int/bit/ctz64.js.map +1 -0
- package/dist/big-int/bit/mask64.d.ts +3 -0
- package/dist/big-int/bit/mask64.d.ts.map +1 -0
- package/dist/big-int/bit/mask64.js +6 -0
- package/dist/big-int/bit/mask64.js.map +1 -0
- package/dist/big-int/bit/mul-wide64.d.ts +9 -0
- package/dist/big-int/bit/mul-wide64.d.ts.map +1 -0
- package/dist/big-int/bit/mul-wide64.js +10 -0
- package/dist/big-int/bit/mul-wide64.js.map +1 -0
- package/dist/big-int/bit/pop-count.d.ts +16 -0
- package/dist/big-int/bit/pop-count.d.ts.map +1 -0
- package/dist/big-int/bit/pop-count.js +26 -0
- package/dist/big-int/bit/pop-count.js.map +1 -0
- package/dist/big-int/bit/pop-count64.d.ts +11 -0
- package/dist/big-int/bit/pop-count64.d.ts.map +1 -0
- package/dist/big-int/bit/pop-count64.js +20 -0
- package/dist/big-int/bit/pop-count64.js.map +1 -0
- package/dist/big-int/bit/rotl64.d.ts +12 -0
- package/dist/big-int/bit/rotl64.d.ts.map +1 -0
- package/dist/big-int/bit/rotl64.js +15 -0
- package/dist/big-int/bit/rotl64.js.map +1 -0
- package/dist/big-int/bit/rotr64.d.ts +12 -0
- package/dist/big-int/bit/rotr64.d.ts.map +1 -0
- package/dist/big-int/bit/rotr64.js +15 -0
- package/dist/big-int/bit/rotr64.js.map +1 -0
- package/dist/big-int/bit/shift-right-unsigned64.d.ts +16 -0
- package/dist/big-int/bit/shift-right-unsigned64.d.ts.map +1 -0
- package/dist/big-int/bit/shift-right-unsigned64.js +26 -0
- package/dist/big-int/bit/shift-right-unsigned64.js.map +1 -0
- package/dist/big-int/bit/xorshift64.d.ts +3 -0
- package/dist/big-int/bit/xorshift64.d.ts.map +1 -0
- package/dist/big-int/bit/xorshift64.js +5 -0
- package/dist/big-int/bit/xorshift64.js.map +1 -0
- package/dist/big-int/bit-length.d.ts +8 -0
- package/dist/big-int/bit-length.d.ts.map +1 -0
- package/dist/big-int/bit-length.js +17 -0
- package/dist/big-int/bit-length.js.map +1 -0
- package/dist/big-int/clamp.d.ts +7 -0
- package/dist/big-int/clamp.d.ts.map +1 -0
- package/dist/big-int/clamp.js +13 -0
- package/dist/big-int/clamp.js.map +1 -0
- package/dist/big-int/div-euclid.d.ts +11 -0
- package/dist/big-int/div-euclid.d.ts.map +1 -0
- package/dist/big-int/div-euclid.js +14 -0
- package/dist/big-int/div-euclid.js.map +1 -0
- package/dist/big-int/div-floor.d.ts +9 -0
- package/dist/big-int/div-floor.d.ts.map +1 -0
- package/dist/big-int/div-floor.js +17 -0
- package/dist/big-int/div-floor.js.map +1 -0
- package/dist/big-int/div-trunc.d.ts +9 -0
- package/dist/big-int/div-trunc.d.ts.map +1 -0
- package/dist/big-int/div-trunc.js +14 -0
- package/dist/big-int/div-trunc.js.map +1 -0
- package/dist/big-int/log10.d.ts +22 -0
- package/dist/big-int/log10.d.ts.map +1 -0
- package/dist/big-int/log10.js +42 -0
- package/dist/big-int/log10.js.map +1 -0
- package/dist/big-int/log2.d.ts +8 -0
- package/dist/big-int/log2.d.ts.map +1 -0
- package/dist/big-int/log2.js +14 -0
- package/dist/big-int/log2.js.map +1 -0
- package/dist/big-int/min-max.d.ts +20 -0
- package/dist/big-int/min-max.d.ts.map +1 -0
- package/dist/big-int/min-max.js +30 -0
- package/dist/big-int/min-max.js.map +1 -0
- package/dist/big-int/mod-euclid.d.ts +11 -0
- package/dist/big-int/mod-euclid.d.ts.map +1 -0
- package/dist/big-int/mod-euclid.js +18 -0
- package/dist/big-int/mod-euclid.js.map +1 -0
- package/dist/big-int/mod.d.ts +16 -0
- package/dist/big-int/mod.d.ts.map +1 -0
- package/dist/big-int/mod.js +25 -0
- package/dist/big-int/mod.js.map +1 -0
- package/dist/big-int/parse.d.ts +31 -0
- package/dist/big-int/parse.d.ts.map +1 -0
- package/dist/big-int/parse.js +102 -0
- package/dist/big-int/parse.js.map +1 -0
- package/dist/big-int/pow.d.ts +7 -0
- package/dist/big-int/pow.d.ts.map +1 -0
- package/dist/big-int/pow.js +12 -0
- package/dist/big-int/pow.js.map +1 -0
- package/dist/big-int/pow10.d.ts +20 -0
- package/dist/big-int/pow10.d.ts.map +1 -0
- package/dist/big-int/pow10.js +39 -0
- package/dist/big-int/pow10.js.map +1 -0
- package/dist/big-int/power-of-two.d.ts +4 -0
- package/dist/big-int/power-of-two.d.ts.map +1 -0
- package/dist/big-int/power-of-two.js +26 -0
- package/dist/big-int/power-of-two.js.map +1 -0
- package/dist/big-int/sign.d.ts +8 -0
- package/dist/big-int/sign.d.ts.map +1 -0
- package/dist/big-int/sign.js +13 -0
- package/dist/big-int/sign.js.map +1 -0
- package/dist/big-int/sqrt-exact.d.ts +7 -0
- package/dist/big-int/sqrt-exact.d.ts.map +1 -0
- package/dist/big-int/sqrt-exact.js +11 -0
- package/dist/big-int/sqrt-exact.js.map +1 -0
- package/dist/big-int/sqrt.d.ts +7 -0
- package/dist/big-int/sqrt.d.ts.map +1 -0
- package/dist/big-int/sqrt.js +25 -0
- package/dist/big-int/sqrt.js.map +1 -0
- package/dist/buffer/bytes-is-equal.d.ts +9 -0
- package/dist/buffer/bytes-is-equal.d.ts.map +1 -0
- package/dist/buffer/bytes-is-equal.js +19 -0
- package/dist/buffer/bytes-is-equal.js.map +1 -0
- package/dist/buffer/chunk-bytes.d.ts +7 -0
- package/dist/buffer/chunk-bytes.d.ts.map +1 -0
- package/dist/buffer/chunk-bytes.js +13 -0
- package/dist/buffer/chunk-bytes.js.map +1 -0
- package/dist/buffer/codec/get-big-uint64-be.d.ts +15 -0
- package/dist/buffer/codec/get-big-uint64-be.d.ts.map +1 -0
- package/dist/buffer/codec/get-big-uint64-be.js +24 -0
- package/dist/buffer/codec/get-big-uint64-be.js.map +1 -0
- package/dist/buffer/codec/get-big-uint64-le.d.ts +16 -0
- package/dist/buffer/codec/get-big-uint64-le.d.ts.map +1 -0
- package/dist/buffer/codec/get-big-uint64-le.js +25 -0
- package/dist/buffer/codec/get-big-uint64-le.js.map +1 -0
- package/dist/buffer/codec/get-float32-be.d.ts +10 -0
- package/dist/buffer/codec/get-float32-be.d.ts.map +1 -0
- package/dist/buffer/codec/get-float32-be.js +12 -0
- package/dist/buffer/codec/get-float32-be.js.map +1 -0
- package/dist/buffer/codec/get-float32-le.d.ts +10 -0
- package/dist/buffer/codec/get-float32-le.d.ts.map +1 -0
- package/dist/buffer/codec/get-float32-le.js +12 -0
- package/dist/buffer/codec/get-float32-le.js.map +1 -0
- package/dist/buffer/codec/get-float64-be.d.ts +10 -0
- package/dist/buffer/codec/get-float64-be.d.ts.map +1 -0
- package/dist/buffer/codec/get-float64-be.js +12 -0
- package/dist/buffer/codec/get-float64-be.js.map +1 -0
- package/dist/buffer/codec/get-float64-le.d.ts +10 -0
- package/dist/buffer/codec/get-float64-le.d.ts.map +1 -0
- package/dist/buffer/codec/get-float64-le.js +12 -0
- package/dist/buffer/codec/get-float64-le.js.map +1 -0
- package/dist/buffer/codec/get-uint32-array-le.d.ts +17 -0
- package/dist/buffer/codec/get-uint32-array-le.d.ts.map +1 -0
- package/dist/buffer/codec/get-uint32-array-le.js +29 -0
- package/dist/buffer/codec/get-uint32-array-le.js.map +1 -0
- package/dist/buffer/codec/get-uint32-be.d.ts +17 -0
- package/dist/buffer/codec/get-uint32-be.d.ts.map +1 -0
- package/dist/buffer/codec/get-uint32-be.js +30 -0
- package/dist/buffer/codec/get-uint32-be.js.map +1 -0
- package/dist/buffer/codec/get-uint32-le.d.ts +18 -0
- package/dist/buffer/codec/get-uint32-le.d.ts.map +1 -0
- package/dist/buffer/codec/get-uint32-le.js +31 -0
- package/dist/buffer/codec/get-uint32-le.js.map +1 -0
- package/dist/buffer/codec/set-big-uint64-array-be.d.ts +12 -0
- package/dist/buffer/codec/set-big-uint64-array-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-big-uint64-array-be.js +24 -0
- package/dist/buffer/codec/set-big-uint64-array-be.js.map +1 -0
- package/dist/buffer/codec/set-big-uint64-array-le.d.ts +13 -0
- package/dist/buffer/codec/set-big-uint64-array-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-big-uint64-array-le.js +25 -0
- package/dist/buffer/codec/set-big-uint64-array-le.js.map +1 -0
- package/dist/buffer/codec/set-big-uint64-be.d.ts +13 -0
- package/dist/buffer/codec/set-big-uint64-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-big-uint64-be.js +18 -0
- package/dist/buffer/codec/set-big-uint64-be.js.map +1 -0
- package/dist/buffer/codec/set-big-uint64-le.d.ts +13 -0
- package/dist/buffer/codec/set-big-uint64-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-big-uint64-le.js +18 -0
- package/dist/buffer/codec/set-big-uint64-le.js.map +1 -0
- package/dist/buffer/codec/set-float32-be.d.ts +13 -0
- package/dist/buffer/codec/set-float32-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-float32-be.js +15 -0
- package/dist/buffer/codec/set-float32-be.js.map +1 -0
- package/dist/buffer/codec/set-float32-le.d.ts +13 -0
- package/dist/buffer/codec/set-float32-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-float32-le.js +15 -0
- package/dist/buffer/codec/set-float32-le.js.map +1 -0
- package/dist/buffer/codec/set-float64-be.d.ts +13 -0
- package/dist/buffer/codec/set-float64-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-float64-be.js +15 -0
- package/dist/buffer/codec/set-float64-be.js.map +1 -0
- package/dist/buffer/codec/set-float64-le.d.ts +13 -0
- package/dist/buffer/codec/set-float64-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-float64-le.js +15 -0
- package/dist/buffer/codec/set-float64-le.js.map +1 -0
- package/dist/buffer/codec/set-uint32-array-be.d.ts +15 -0
- package/dist/buffer/codec/set-uint32-array-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-uint32-array-be.js +27 -0
- package/dist/buffer/codec/set-uint32-array-be.js.map +1 -0
- package/dist/buffer/codec/set-uint32-array-le.d.ts +15 -0
- package/dist/buffer/codec/set-uint32-array-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-uint32-array-le.js +27 -0
- package/dist/buffer/codec/set-uint32-array-le.js.map +1 -0
- package/dist/buffer/codec/set-uint32-be.d.ts +13 -0
- package/dist/buffer/codec/set-uint32-be.d.ts.map +1 -0
- package/dist/buffer/codec/set-uint32-be.js +18 -0
- package/dist/buffer/codec/set-uint32-be.js.map +1 -0
- package/dist/buffer/codec/set-uint32-le.d.ts +13 -0
- package/dist/buffer/codec/set-uint32-le.d.ts.map +1 -0
- package/dist/buffer/codec/set-uint32-le.js +18 -0
- package/dist/buffer/codec/set-uint32-le.js.map +1 -0
- package/dist/buffer/compare-bytes.d.ts +11 -0
- package/dist/buffer/compare-bytes.d.ts.map +1 -0
- package/dist/buffer/compare-bytes.js +19 -0
- package/dist/buffer/compare-bytes.js.map +1 -0
- package/dist/buffer/concat-bytes.d.ts +12 -0
- package/dist/buffer/concat-bytes.d.ts.map +1 -0
- package/dist/buffer/concat-bytes.js +17 -0
- package/dist/buffer/concat-bytes.js.map +1 -0
- package/dist/buffer/index-of-sequence.d.ts +13 -0
- package/dist/buffer/index-of-sequence.d.ts.map +1 -0
- package/dist/buffer/index-of-sequence.js +31 -0
- package/dist/buffer/index-of-sequence.js.map +1 -0
- package/dist/buffer/stream/bit-builder.d.ts +46 -0
- package/dist/buffer/stream/bit-builder.d.ts.map +1 -0
- package/dist/buffer/stream/bit-builder.js +75 -0
- package/dist/buffer/stream/bit-builder.js.map +1 -0
- package/dist/buffer/stream/bit-reader.d.ts +49 -0
- package/dist/buffer/stream/bit-reader.d.ts.map +1 -0
- package/dist/buffer/stream/bit-reader.js +100 -0
- package/dist/buffer/stream/bit-reader.js.map +1 -0
- package/dist/buffer/stream/block-accumulator.d.ts +51 -0
- package/dist/buffer/stream/block-accumulator.d.ts.map +1 -0
- package/dist/buffer/stream/block-accumulator.js +79 -0
- package/dist/buffer/stream/block-accumulator.js.map +1 -0
- package/dist/buffer/stream/byte-accumulator.d.ts +65 -0
- package/dist/buffer/stream/byte-accumulator.d.ts.map +1 -0
- package/dist/buffer/stream/byte-accumulator.js +130 -0
- package/dist/buffer/stream/byte-accumulator.js.map +1 -0
- package/dist/buffer/stream/byte-builder.d.ts +23 -0
- package/dist/buffer/stream/byte-builder.d.ts.map +1 -0
- package/dist/buffer/stream/byte-builder.js +40 -0
- package/dist/buffer/stream/byte-builder.js.map +1 -0
- package/dist/buffer/stream/byte-reader.d.ts +68 -0
- package/dist/buffer/stream/byte-reader.d.ts.map +1 -0
- package/dist/buffer/stream/byte-reader.js +110 -0
- package/dist/buffer/stream/byte-reader.js.map +1 -0
- package/dist/buffer/text/decode-text.d.ts +46 -0
- package/dist/buffer/text/decode-text.d.ts.map +1 -0
- package/dist/buffer/text/decode-text.js +65 -0
- package/dist/buffer/text/decode-text.js.map +1 -0
- package/dist/buffer/text/encode-text.d.ts +15 -0
- package/dist/buffer/text/encode-text.d.ts.map +1 -0
- package/dist/buffer/text/encode-text.js +61 -0
- package/dist/buffer/text/encode-text.js.map +1 -0
- package/dist/buffer/text/text-encoding-name.d.ts +20 -0
- package/dist/buffer/text/text-encoding-name.d.ts.map +1 -0
- package/dist/buffer/text/text-encoding-name.js +2 -0
- package/dist/buffer/text/text-encoding-name.js.map +1 -0
- package/dist/constants/ascii.d.ts +162 -0
- package/dist/constants/ascii.d.ts.map +1 -0
- package/dist/constants/ascii.js +162 -0
- package/dist/constants/ascii.js.map +1 -0
- package/dist/constants/float.d.ts +27 -0
- package/dist/constants/float.d.ts.map +1 -0
- package/dist/constants/float.js +33 -0
- package/dist/constants/float.js.map +1 -0
- package/dist/constants/limits.d.ts +16 -0
- package/dist/constants/limits.d.ts.map +1 -0
- package/dist/constants/limits.js +16 -0
- package/dist/constants/limits.js.map +1 -0
- package/dist/constants/mask.d.ts +4 -0
- package/dist/constants/mask.d.ts.map +1 -0
- package/dist/constants/mask.js +4 -0
- package/dist/constants/mask.js.map +1 -0
- package/dist/constants/units.d.ts +14 -0
- package/dist/constants/units.d.ts.map +1 -0
- package/dist/constants/units.js +14 -0
- package/dist/constants/units.js.map +1 -0
- package/dist/error/buffer-overflow-error.d.ts +5 -0
- package/dist/error/buffer-overflow-error.d.ts.map +1 -0
- package/dist/error/buffer-overflow-error.js +8 -0
- package/dist/error/buffer-overflow-error.js.map +1 -0
- package/dist/error/capture-stack-trace.d.ts +33 -0
- package/dist/error/capture-stack-trace.d.ts.map +1 -0
- package/dist/error/capture-stack-trace.js +38 -0
- package/dist/error/capture-stack-trace.js.map +1 -0
- package/dist/error/capture-v8-frames.d.ts +20 -0
- package/dist/error/capture-v8-frames.d.ts.map +1 -0
- package/dist/error/capture-v8-frames.js +42 -0
- package/dist/error/capture-v8-frames.js.map +1 -0
- package/dist/error/capture-v8-stack-trace.d.ts +28 -0
- package/dist/error/capture-v8-stack-trace.d.ts.map +1 -0
- package/dist/error/capture-v8-stack-trace.js +21 -0
- package/dist/error/capture-v8-stack-trace.js.map +1 -0
- package/dist/error/format-error-stack.d.ts +25 -0
- package/dist/error/format-error-stack.d.ts.map +1 -0
- package/dist/error/format-error-stack.js +24 -0
- package/dist/error/format-error-stack.js.map +1 -0
- package/dist/error/format-error.d.ts +31 -0
- package/dist/error/format-error.d.ts.map +1 -0
- package/dist/error/format-error.js +142 -0
- package/dist/error/format-error.js.map +1 -0
- package/dist/error/parse-error-stack.d.ts +26 -0
- package/dist/error/parse-error-stack.d.ts.map +1 -0
- package/dist/error/parse-error-stack.js +16 -0
- package/dist/error/parse-error-stack.js.map +1 -0
- package/dist/error/reject-out-of-band.d.ts +8 -0
- package/dist/error/reject-out-of-band.d.ts.map +1 -0
- package/dist/error/reject-out-of-band.js +12 -0
- package/dist/error/reject-out-of-band.js.map +1 -0
- package/dist/error/throw-out-of-band.d.ts +8 -0
- package/dist/error/throw-out-of-band.d.ts.map +1 -0
- package/dist/error/throw-out-of-band.js +12 -0
- package/dist/error/throw-out-of-band.js.map +1 -0
- package/dist/error/traverse-error.d.ts +26 -0
- package/dist/error/traverse-error.d.ts.map +1 -0
- package/dist/error/traverse-error.js +72 -0
- package/dist/error/traverse-error.js.map +1 -0
- package/dist/error/unimplemented-error.d.ts +22 -0
- package/dist/error/unimplemented-error.d.ts.map +1 -0
- package/dist/error/unimplemented-error.js +25 -0
- package/dist/error/unimplemented-error.js.map +1 -0
- package/dist/error/unsupported-error.d.ts +10 -0
- package/dist/error/unsupported-error.d.ts.map +1 -0
- package/dist/error/unsupported-error.js +13 -0
- package/dist/error/unsupported-error.js.map +1 -0
- package/dist/error/v8-stack-trace.d.ts +27 -0
- package/dist/error/v8-stack-trace.d.ts.map +1 -0
- package/dist/error/v8-stack-trace.js +27 -0
- package/dist/error/v8-stack-trace.js.map +1 -0
- package/dist/function/compare/compare-natural.d.ts +20 -0
- package/dist/function/compare/compare-natural.d.ts.map +1 -0
- package/dist/function/compare/compare-natural.js +37 -0
- package/dist/function/compare/compare-natural.js.map +1 -0
- package/dist/function/compare/create-chained-comparator.d.ts +12 -0
- package/dist/function/compare/create-chained-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-chained-comparator.js +28 -0
- package/dist/function/compare/create-chained-comparator.js.map +1 -0
- package/dist/function/compare/create-comparator.d.ts +26 -0
- package/dist/function/compare/create-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-comparator.js +54 -0
- package/dist/function/compare/create-comparator.js.map +1 -0
- package/dist/function/compare/create-equality-comparator.d.ts +16 -0
- package/dist/function/compare/create-equality-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-equality-comparator.js +16 -0
- package/dist/function/compare/create-equality-comparator.js.map +1 -0
- package/dist/function/compare/create-lexicographical-comparator.d.ts +11 -0
- package/dist/function/compare/create-lexicographical-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-lexicographical-comparator.js +35 -0
- package/dist/function/compare/create-lexicographical-comparator.js.map +1 -0
- package/dist/function/compare/create-nullish-comparator.d.ts +12 -0
- package/dist/function/compare/create-nullish-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-nullish-comparator.js +31 -0
- package/dist/function/compare/create-nullish-comparator.js.map +1 -0
- package/dist/function/compare/create-order-predicate.d.ts +8 -0
- package/dist/function/compare/create-order-predicate.d.ts.map +1 -0
- package/dist/function/compare/create-order-predicate.js +9 -0
- package/dist/function/compare/create-order-predicate.js.map +1 -0
- package/dist/function/compare/create-reversed-comparator.d.ts +4 -0
- package/dist/function/compare/create-reversed-comparator.d.ts.map +1 -0
- package/dist/function/compare/create-reversed-comparator.js +5 -0
- package/dist/function/compare/create-reversed-comparator.js.map +1 -0
- package/dist/function/compare/types.d.ts +38 -0
- package/dist/function/compare/types.d.ts.map +1 -0
- package/dist/function/compare/types.js +2 -0
- package/dist/function/compare/types.js.map +1 -0
- package/dist/function/identity.d.ts +8 -0
- package/dist/function/identity.d.ts.map +1 -0
- package/dist/function/identity.js +10 -0
- package/dist/function/identity.js.map +1 -0
- package/dist/function/memoize.d.ts +19 -0
- package/dist/function/memoize.d.ts.map +1 -0
- package/dist/function/memoize.js +17 -0
- package/dist/function/memoize.js.map +1 -0
- package/dist/function/no-throw.d.ts +39 -0
- package/dist/function/no-throw.d.ts.map +1 -0
- package/dist/function/no-throw.js +66 -0
- package/dist/function/no-throw.js.map +1 -0
- package/dist/function/serialize-queue-next.d.ts +21 -0
- package/dist/function/serialize-queue-next.d.ts.map +1 -0
- package/dist/function/serialize-queue-next.js +56 -0
- package/dist/function/serialize-queue-next.js.map +1 -0
- package/dist/function/settle.d.ts +21 -0
- package/dist/function/settle.d.ts.map +1 -0
- package/dist/function/settle.js +34 -0
- package/dist/function/settle.js.map +1 -0
- package/dist/function/variadic-args.d.ts +41 -0
- package/dist/function/variadic-args.d.ts.map +1 -0
- package/dist/function/variadic-args.js +36 -0
- package/dist/function/variadic-args.js.map +1 -0
- package/dist/function/wait-for.d.ts +22 -0
- package/dist/function/wait-for.d.ts.map +1 -0
- package/dist/function/wait-for.js +27 -0
- package/dist/function/wait-for.js.map +1 -0
- package/dist/guards/is-aggregate-error.d.ts +7 -0
- package/dist/guards/is-aggregate-error.d.ts.map +1 -0
- package/dist/guards/is-aggregate-error.js +9 -0
- package/dist/guards/is-aggregate-error.js.map +1 -0
- package/dist/guards/is-array-buffer.d.ts +14 -0
- package/dist/guards/is-array-buffer.d.ts.map +1 -0
- package/dist/guards/is-array-buffer.js +16 -0
- package/dist/guards/is-array-buffer.js.map +1 -0
- package/dist/guards/is-data-view.d.ts +11 -0
- package/dist/guards/is-data-view.d.ts.map +1 -0
- package/dist/guards/is-data-view.js +13 -0
- package/dist/guards/is-data-view.js.map +1 -0
- package/dist/guards/is-date.d.ts +14 -0
- package/dist/guards/is-date.d.ts.map +1 -0
- package/dist/guards/is-date.js +16 -0
- package/dist/guards/is-date.js.map +1 -0
- package/dist/guards/is-error.d.ts +4 -0
- package/dist/guards/is-error.d.ts.map +1 -0
- package/dist/guards/is-error.js +6 -0
- package/dist/guards/is-error.js.map +1 -0
- package/dist/guards/is-function.d.ts +8 -0
- package/dist/guards/is-function.d.ts.map +1 -0
- package/dist/guards/is-function.js +10 -0
- package/dist/guards/is-function.js.map +1 -0
- package/dist/guards/is-map.d.ts +11 -0
- package/dist/guards/is-map.d.ts.map +1 -0
- package/dist/guards/is-map.js +13 -0
- package/dist/guards/is-map.js.map +1 -0
- package/dist/guards/is-object.d.ts +10 -0
- package/dist/guards/is-object.d.ts.map +1 -0
- package/dist/guards/is-object.js +12 -0
- package/dist/guards/is-object.js.map +1 -0
- package/dist/guards/is-plain-object.d.ts +8 -0
- package/dist/guards/is-plain-object.d.ts.map +1 -0
- package/dist/guards/is-plain-object.js +11 -0
- package/dist/guards/is-plain-object.js.map +1 -0
- package/dist/guards/is-pojo.d.ts +9 -0
- package/dist/guards/is-pojo.d.ts.map +1 -0
- package/dist/guards/is-pojo.js +13 -0
- package/dist/guards/is-pojo.js.map +1 -0
- package/dist/guards/is-primitive.d.ts +14 -0
- package/dist/guards/is-primitive.d.ts.map +1 -0
- package/dist/guards/is-primitive.js +21 -0
- package/dist/guards/is-primitive.js.map +1 -0
- package/dist/guards/is-promise.d.ts +16 -0
- package/dist/guards/is-promise.d.ts.map +1 -0
- package/dist/guards/is-promise.js +18 -0
- package/dist/guards/is-promise.js.map +1 -0
- package/dist/guards/is-property-key.d.ts +9 -0
- package/dist/guards/is-property-key.d.ts.map +1 -0
- package/dist/guards/is-property-key.js +12 -0
- package/dist/guards/is-property-key.js.map +1 -0
- package/dist/guards/is-regexp.d.ts +11 -0
- package/dist/guards/is-regexp.d.ts.map +1 -0
- package/dist/guards/is-regexp.js +13 -0
- package/dist/guards/is-regexp.js.map +1 -0
- package/dist/guards/is-set.d.ts +11 -0
- package/dist/guards/is-set.d.ts.map +1 -0
- package/dist/guards/is-set.js +13 -0
- package/dist/guards/is-set.js.map +1 -0
- package/dist/guards/is-shared-array-buffer.d.ts +14 -0
- package/dist/guards/is-shared-array-buffer.d.ts.map +1 -0
- package/dist/guards/is-shared-array-buffer.js +17 -0
- package/dist/guards/is-shared-array-buffer.js.map +1 -0
- package/dist/guards/is-suppressed-error.d.ts +7 -0
- package/dist/guards/is-suppressed-error.d.ts.map +1 -0
- package/dist/guards/is-suppressed-error.js +9 -0
- package/dist/guards/is-suppressed-error.js.map +1 -0
- package/dist/guards/is-thenable.d.ts +12 -0
- package/dist/guards/is-thenable.d.ts.map +1 -0
- package/dist/guards/is-thenable.js +16 -0
- package/dist/guards/is-thenable.js.map +1 -0
- package/dist/guards/is-typed-array.d.ts +16 -0
- package/dist/guards/is-typed-array.d.ts.map +1 -0
- package/dist/guards/is-typed-array.js +17 -0
- package/dist/guards/is-typed-array.js.map +1 -0
- package/dist/guards/is-v8-error-constructor.d.ts +13 -0
- package/dist/guards/is-v8-error-constructor.d.ts.map +1 -0
- package/dist/guards/is-v8-error-constructor.js +5 -0
- package/dist/guards/is-v8-error-constructor.js.map +1 -0
- package/dist/guards/is-weak-map.d.ts +11 -0
- package/dist/guards/is-weak-map.d.ts.map +1 -0
- package/dist/guards/is-weak-map.js +13 -0
- package/dist/guards/is-weak-map.js.map +1 -0
- package/dist/guards/is-weak-set.d.ts +11 -0
- package/dist/guards/is-weak-set.d.ts.map +1 -0
- package/dist/guards/is-weak-set.js +13 -0
- package/dist/guards/is-weak-set.js.map +1 -0
- package/dist/index.d.ts +334 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +334 -0
- package/dist/index.js.map +1 -0
- package/dist/iterable/always-iterable.d.ts +20 -0
- package/dist/iterable/always-iterable.d.ts.map +1 -0
- package/dist/iterable/always-iterable.js +29 -0
- package/dist/iterable/always-iterable.js.map +1 -0
- package/dist/iterable/async/_async-iterator.d.ts +10 -0
- package/dist/iterable/async/_async-iterator.d.ts.map +1 -0
- package/dist/iterable/async/_async-iterator.js +13 -0
- package/dist/iterable/async/_async-iterator.js.map +1 -0
- package/dist/iterable/async/always-iterable.d.ts +17 -0
- package/dist/iterable/async/always-iterable.d.ts.map +1 -0
- package/dist/iterable/async/always-iterable.js +26 -0
- package/dist/iterable/async/always-iterable.js.map +1 -0
- package/dist/iterable/async/before-and-after.d.ts +21 -0
- package/dist/iterable/async/before-and-after.d.ts.map +1 -0
- package/dist/iterable/async/before-and-after.js +55 -0
- package/dist/iterable/async/before-and-after.js.map +1 -0
- package/dist/iterable/async/chunk.d.ts +16 -0
- package/dist/iterable/async/chunk.d.ts.map +1 -0
- package/dist/iterable/async/chunk.js +30 -0
- package/dist/iterable/async/chunk.js.map +1 -0
- package/dist/iterable/async/compact.d.ts +13 -0
- package/dist/iterable/async/compact.d.ts.map +1 -0
- package/dist/iterable/async/compact.js +18 -0
- package/dist/iterable/async/compact.js.map +1 -0
- package/dist/iterable/async/concat.d.ts +16 -0
- package/dist/iterable/async/concat.d.ts.map +1 -0
- package/dist/iterable/async/concat.js +19 -0
- package/dist/iterable/async/concat.js.map +1 -0
- package/dist/iterable/async/consume.d.ts +19 -0
- package/dist/iterable/async/consume.d.ts.map +1 -0
- package/dist/iterable/async/consume.js +33 -0
- package/dist/iterable/async/consume.js.map +1 -0
- package/dist/iterable/async/count.d.ts +15 -0
- package/dist/iterable/async/count.d.ts.map +1 -0
- package/dist/iterable/async/count.js +24 -0
- package/dist/iterable/async/count.js.map +1 -0
- package/dist/iterable/async/cycle.d.ts +19 -0
- package/dist/iterable/async/cycle.d.ts.map +1 -0
- package/dist/iterable/async/cycle.js +37 -0
- package/dist/iterable/async/cycle.js.map +1 -0
- package/dist/iterable/async/deltas.d.ts +17 -0
- package/dist/iterable/async/deltas.d.ts.map +1 -0
- package/dist/iterable/async/deltas.js +25 -0
- package/dist/iterable/async/deltas.js.map +1 -0
- package/dist/iterable/async/drop-while.d.ts +18 -0
- package/dist/iterable/async/drop-while.d.ts.map +1 -0
- package/dist/iterable/async/drop-while.js +26 -0
- package/dist/iterable/async/drop-while.js.map +1 -0
- package/dist/iterable/async/drop.d.ts +17 -0
- package/dist/iterable/async/drop.d.ts.map +1 -0
- package/dist/iterable/async/drop.js +28 -0
- package/dist/iterable/async/drop.js.map +1 -0
- package/dist/iterable/async/filter-map.d.ts +20 -0
- package/dist/iterable/async/filter-map.d.ts.map +1 -0
- package/dist/iterable/async/filter-map.js +25 -0
- package/dist/iterable/async/filter-map.js.map +1 -0
- package/dist/iterable/async/first.d.ts +16 -0
- package/dist/iterable/async/first.d.ts.map +1 -0
- package/dist/iterable/async/first.js +20 -0
- package/dist/iterable/async/first.js.map +1 -0
- package/dist/iterable/async/flatten-deep.d.ts +21 -0
- package/dist/iterable/async/flatten-deep.d.ts.map +1 -0
- package/dist/iterable/async/flatten-deep.js +28 -0
- package/dist/iterable/async/flatten-deep.js.map +1 -0
- package/dist/iterable/async/flatten.d.ts +14 -0
- package/dist/iterable/async/flatten.d.ts.map +1 -0
- package/dist/iterable/async/flatten.js +17 -0
- package/dist/iterable/async/flatten.js.map +1 -0
- package/dist/iterable/async/includes.d.ts +18 -0
- package/dist/iterable/async/includes.d.ts.map +1 -0
- package/dist/iterable/async/includes.js +26 -0
- package/dist/iterable/async/includes.js.map +1 -0
- package/dist/iterable/async/indices-where.d.ts +31 -0
- package/dist/iterable/async/indices-where.d.ts.map +1 -0
- package/dist/iterable/async/indices-where.js +49 -0
- package/dist/iterable/async/indices-where.js.map +1 -0
- package/dist/iterable/async/intersperse.d.ts +15 -0
- package/dist/iterable/async/intersperse.d.ts.map +1 -0
- package/dist/iterable/async/intersperse.js +23 -0
- package/dist/iterable/async/intersperse.js.map +1 -0
- package/dist/iterable/async/is-iterable-equal.d.ts +22 -0
- package/dist/iterable/async/is-iterable-equal.d.ts.map +1 -0
- package/dist/iterable/async/is-iterable-equal.js +49 -0
- package/dist/iterable/async/is-iterable-equal.js.map +1 -0
- package/dist/iterable/async/last.d.ts +16 -0
- package/dist/iterable/async/last.d.ts.map +1 -0
- package/dist/iterable/async/last.js +22 -0
- package/dist/iterable/async/last.js.map +1 -0
- package/dist/iterable/async/map.d.ts +15 -0
- package/dist/iterable/async/map.d.ts.map +1 -0
- package/dist/iterable/async/map.js +18 -0
- package/dist/iterable/async/map.js.map +1 -0
- package/dist/iterable/async/mark-ends.d.ts +18 -0
- package/dist/iterable/async/mark-ends.d.ts.map +1 -0
- package/dist/iterable/async/mark-ends.js +33 -0
- package/dist/iterable/async/mark-ends.js.map +1 -0
- package/dist/iterable/async/nth.d.ts +20 -0
- package/dist/iterable/async/nth.d.ts.map +1 -0
- package/dist/iterable/async/nth.js +32 -0
- package/dist/iterable/async/nth.js.map +1 -0
- package/dist/iterable/async/one.d.ts +20 -0
- package/dist/iterable/async/one.d.ts.map +1 -0
- package/dist/iterable/async/one.js +32 -0
- package/dist/iterable/async/one.js.map +1 -0
- package/dist/iterable/async/only.d.ts +18 -0
- package/dist/iterable/async/only.d.ts.map +1 -0
- package/dist/iterable/async/only.js +31 -0
- package/dist/iterable/async/only.js.map +1 -0
- package/dist/iterable/async/pad.d.ts +17 -0
- package/dist/iterable/async/pad.d.ts.map +1 -0
- package/dist/iterable/async/pad.js +28 -0
- package/dist/iterable/async/pad.js.map +1 -0
- package/dist/iterable/async/pairwise.d.ts +15 -0
- package/dist/iterable/async/pairwise.d.ts.map +1 -0
- package/dist/iterable/async/pairwise.js +24 -0
- package/dist/iterable/async/pairwise.js.map +1 -0
- package/dist/iterable/async/repeat-each.d.ts +17 -0
- package/dist/iterable/async/repeat-each.d.ts.map +1 -0
- package/dist/iterable/async/repeat-each.js +28 -0
- package/dist/iterable/async/repeat-each.js.map +1 -0
- package/dist/iterable/async/take-while-inclusive.d.ts +19 -0
- package/dist/iterable/async/take-while-inclusive.d.ts.map +1 -0
- package/dist/iterable/async/take-while-inclusive.js +25 -0
- package/dist/iterable/async/take-while-inclusive.js.map +1 -0
- package/dist/iterable/async/take-while.d.ts +17 -0
- package/dist/iterable/async/take-while.d.ts.map +1 -0
- package/dist/iterable/async/take-while.js +23 -0
- package/dist/iterable/async/take-while.js.map +1 -0
- package/dist/iterable/async/take.d.ts +16 -0
- package/dist/iterable/async/take.d.ts.map +1 -0
- package/dist/iterable/async/take.js +29 -0
- package/dist/iterable/async/take.js.map +1 -0
- package/dist/iterable/async/tap.d.ts +18 -0
- package/dist/iterable/async/tap.d.ts.map +1 -0
- package/dist/iterable/async/tap.js +22 -0
- package/dist/iterable/async/tap.js.map +1 -0
- package/dist/iterable/async/tee.d.ts +23 -0
- package/dist/iterable/async/tee.d.ts.map +1 -0
- package/dist/iterable/async/tee.js +77 -0
- package/dist/iterable/async/tee.js.map +1 -0
- package/dist/iterable/async/trim-while.d.ts +31 -0
- package/dist/iterable/async/trim-while.d.ts.map +1 -0
- package/dist/iterable/async/trim-while.js +43 -0
- package/dist/iterable/async/trim-while.js.map +1 -0
- package/dist/iterable/async/unfold.d.ts +17 -0
- package/dist/iterable/async/unfold.d.ts.map +1 -0
- package/dist/iterable/async/unfold.js +26 -0
- package/dist/iterable/async/unfold.js.map +1 -0
- package/dist/iterable/async/unzip.d.ts +17 -0
- package/dist/iterable/async/unzip.d.ts.map +1 -0
- package/dist/iterable/async/unzip.js +27 -0
- package/dist/iterable/async/unzip.js.map +1 -0
- package/dist/iterable/async/windowed.d.ts +17 -0
- package/dist/iterable/async/windowed.d.ts.map +1 -0
- package/dist/iterable/async/windowed.js +42 -0
- package/dist/iterable/async/windowed.js.map +1 -0
- package/dist/iterable/async/zip-longest.d.ts +18 -0
- package/dist/iterable/async/zip-longest.d.ts.map +1 -0
- package/dist/iterable/async/zip-longest.js +52 -0
- package/dist/iterable/async/zip-longest.js.map +1 -0
- package/dist/iterable/async/zip.d.ts +21 -0
- package/dist/iterable/async/zip.d.ts.map +1 -0
- package/dist/iterable/async/zip.js +42 -0
- package/dist/iterable/async/zip.js.map +1 -0
- package/dist/iterable/before-and-after.d.ts +25 -0
- package/dist/iterable/before-and-after.d.ts.map +1 -0
- package/dist/iterable/before-and-after.js +59 -0
- package/dist/iterable/before-and-after.js.map +1 -0
- package/dist/iterable/big-int-range.d.ts +20 -0
- package/dist/iterable/big-int-range.d.ts.map +1 -0
- package/dist/iterable/big-int-range.js +34 -0
- package/dist/iterable/big-int-range.js.map +1 -0
- package/dist/iterable/chunk.d.ts +16 -0
- package/dist/iterable/chunk.d.ts.map +1 -0
- package/dist/iterable/chunk.js +31 -0
- package/dist/iterable/chunk.js.map +1 -0
- package/dist/iterable/compact.d.ts +8 -0
- package/dist/iterable/compact.d.ts.map +1 -0
- package/dist/iterable/compact.js +14 -0
- package/dist/iterable/compact.js.map +1 -0
- package/dist/iterable/concat.d.ts +12 -0
- package/dist/iterable/concat.d.ts.map +1 -0
- package/dist/iterable/concat.js +16 -0
- package/dist/iterable/concat.js.map +1 -0
- package/dist/iterable/consume.d.ts +16 -0
- package/dist/iterable/consume.d.ts.map +1 -0
- package/dist/iterable/consume.js +28 -0
- package/dist/iterable/consume.js.map +1 -0
- package/dist/iterable/count.d.ts +13 -0
- package/dist/iterable/count.d.ts.map +1 -0
- package/dist/iterable/count.js +28 -0
- package/dist/iterable/count.js.map +1 -0
- package/dist/iterable/cycle.d.ts +18 -0
- package/dist/iterable/cycle.d.ts.map +1 -0
- package/dist/iterable/cycle.js +37 -0
- package/dist/iterable/cycle.js.map +1 -0
- package/dist/iterable/deltas.d.ts +23 -0
- package/dist/iterable/deltas.d.ts.map +1 -0
- package/dist/iterable/deltas.js +32 -0
- package/dist/iterable/deltas.js.map +1 -0
- package/dist/iterable/drop-while.d.ts +18 -0
- package/dist/iterable/drop-while.d.ts.map +1 -0
- package/dist/iterable/drop-while.js +27 -0
- package/dist/iterable/drop-while.js.map +1 -0
- package/dist/iterable/drop.d.ts +16 -0
- package/dist/iterable/drop.d.ts.map +1 -0
- package/dist/iterable/drop.js +28 -0
- package/dist/iterable/drop.js.map +1 -0
- package/dist/iterable/filter-map.d.ts +20 -0
- package/dist/iterable/filter-map.d.ts.map +1 -0
- package/dist/iterable/filter-map.js +26 -0
- package/dist/iterable/filter-map.js.map +1 -0
- package/dist/iterable/first.d.ts +14 -0
- package/dist/iterable/first.d.ts.map +1 -0
- package/dist/iterable/first.js +18 -0
- package/dist/iterable/first.js.map +1 -0
- package/dist/iterable/flatten-deep.d.ts +25 -0
- package/dist/iterable/flatten-deep.d.ts.map +1 -0
- package/dist/iterable/flatten-deep.js +33 -0
- package/dist/iterable/flatten-deep.js.map +1 -0
- package/dist/iterable/flatten.d.ts +18 -0
- package/dist/iterable/flatten.d.ts.map +1 -0
- package/dist/iterable/flatten.js +22 -0
- package/dist/iterable/flatten.js.map +1 -0
- package/dist/iterable/includes.d.ts +19 -0
- package/dist/iterable/includes.d.ts.map +1 -0
- package/dist/iterable/includes.js +26 -0
- package/dist/iterable/includes.js.map +1 -0
- package/dist/iterable/indices-where.d.ts +32 -0
- package/dist/iterable/indices-where.d.ts.map +1 -0
- package/dist/iterable/indices-where.js +46 -0
- package/dist/iterable/indices-where.js.map +1 -0
- package/dist/iterable/intersperse.d.ts +15 -0
- package/dist/iterable/intersperse.d.ts.map +1 -0
- package/dist/iterable/intersperse.js +24 -0
- package/dist/iterable/intersperse.js.map +1 -0
- package/dist/iterable/is-iterable-equal.d.ts +21 -0
- package/dist/iterable/is-iterable-equal.d.ts.map +1 -0
- package/dist/iterable/is-iterable-equal.js +46 -0
- package/dist/iterable/is-iterable-equal.js.map +1 -0
- package/dist/iterable/last.d.ts +15 -0
- package/dist/iterable/last.d.ts.map +1 -0
- package/dist/iterable/last.js +25 -0
- package/dist/iterable/last.js.map +1 -0
- package/dist/iterable/map.d.ts +19 -0
- package/dist/iterable/map.d.ts.map +1 -0
- package/dist/iterable/map.js +23 -0
- package/dist/iterable/map.js.map +1 -0
- package/dist/iterable/mark-ends.d.ts +20 -0
- package/dist/iterable/mark-ends.d.ts.map +1 -0
- package/dist/iterable/mark-ends.js +34 -0
- package/dist/iterable/mark-ends.js.map +1 -0
- package/dist/iterable/nth.d.ts +21 -0
- package/dist/iterable/nth.d.ts.map +1 -0
- package/dist/iterable/nth.js +32 -0
- package/dist/iterable/nth.js.map +1 -0
- package/dist/iterable/one.d.ts +18 -0
- package/dist/iterable/one.d.ts.map +1 -0
- package/dist/iterable/one.js +28 -0
- package/dist/iterable/one.js.map +1 -0
- package/dist/iterable/only.d.ts +15 -0
- package/dist/iterable/only.d.ts.map +1 -0
- package/dist/iterable/only.js +26 -0
- package/dist/iterable/only.js.map +1 -0
- package/dist/iterable/pad.d.ts +17 -0
- package/dist/iterable/pad.d.ts.map +1 -0
- package/dist/iterable/pad.js +29 -0
- package/dist/iterable/pad.js.map +1 -0
- package/dist/iterable/pairwise.d.ts +16 -0
- package/dist/iterable/pairwise.d.ts.map +1 -0
- package/dist/iterable/pairwise.js +26 -0
- package/dist/iterable/pairwise.js.map +1 -0
- package/dist/iterable/range.d.ts +24 -0
- package/dist/iterable/range.d.ts.map +1 -0
- package/dist/iterable/range.js +44 -0
- package/dist/iterable/range.js.map +1 -0
- package/dist/iterable/repeat-each.d.ts +17 -0
- package/dist/iterable/repeat-each.d.ts.map +1 -0
- package/dist/iterable/repeat-each.js +29 -0
- package/dist/iterable/repeat-each.js.map +1 -0
- package/dist/iterable/take-while-inclusive.d.ts +19 -0
- package/dist/iterable/take-while-inclusive.d.ts.map +1 -0
- package/dist/iterable/take-while-inclusive.js +26 -0
- package/dist/iterable/take-while-inclusive.js.map +1 -0
- package/dist/iterable/take-while.d.ts +18 -0
- package/dist/iterable/take-while.d.ts.map +1 -0
- package/dist/iterable/take-while.js +25 -0
- package/dist/iterable/take-while.js.map +1 -0
- package/dist/iterable/take.d.ts +18 -0
- package/dist/iterable/take.d.ts.map +1 -0
- package/dist/iterable/take.js +32 -0
- package/dist/iterable/take.js.map +1 -0
- package/dist/iterable/tap.d.ts +17 -0
- package/dist/iterable/tap.d.ts.map +1 -0
- package/dist/iterable/tap.js +22 -0
- package/dist/iterable/tap.js.map +1 -0
- package/dist/iterable/tee.d.ts +22 -0
- package/dist/iterable/tee.d.ts.map +1 -0
- package/dist/iterable/tee.js +64 -0
- package/dist/iterable/tee.js.map +1 -0
- package/dist/iterable/trim-while.d.ts +31 -0
- package/dist/iterable/trim-while.d.ts.map +1 -0
- package/dist/iterable/trim-while.js +44 -0
- package/dist/iterable/trim-while.js.map +1 -0
- package/dist/iterable/unfold.d.ts +19 -0
- package/dist/iterable/unfold.d.ts.map +1 -0
- package/dist/iterable/unfold.js +28 -0
- package/dist/iterable/unfold.js.map +1 -0
- package/dist/iterable/unzip.d.ts +22 -0
- package/dist/iterable/unzip.d.ts.map +1 -0
- package/dist/iterable/unzip.js +28 -0
- package/dist/iterable/unzip.js.map +1 -0
- package/dist/iterable/windowed.d.ts +23 -0
- package/dist/iterable/windowed.d.ts.map +1 -0
- package/dist/iterable/windowed.js +49 -0
- package/dist/iterable/windowed.js.map +1 -0
- package/dist/iterable/zip-longest.d.ts +24 -0
- package/dist/iterable/zip-longest.d.ts.map +1 -0
- package/dist/iterable/zip-longest.js +55 -0
- package/dist/iterable/zip-longest.js.map +1 -0
- package/dist/iterable/zip.d.ts +27 -0
- package/dist/iterable/zip.d.ts.map +1 -0
- package/dist/iterable/zip.js +43 -0
- package/dist/iterable/zip.js.map +1 -0
- package/dist/json/json-make-replacer-function.d.ts +16 -0
- package/dist/json/json-make-replacer-function.d.ts.map +1 -0
- package/dist/json/json-make-replacer-function.js +37 -0
- package/dist/json/json-make-replacer-function.js.map +1 -0
- package/dist/json/json-serialize-safe.d.ts +20 -0
- package/dist/json/json-serialize-safe.d.ts.map +1 -0
- package/dist/json/json-serialize-safe.js +7 -0
- package/dist/json/json-serialize-safe.js.map +1 -0
- package/dist/json/json-serialize.d.ts +16 -0
- package/dist/json/json-serialize.d.ts.map +1 -0
- package/dist/json/json-serialize.js +8 -0
- package/dist/json/json-serialize.js.map +1 -0
- package/dist/json/json-stringify-safe.d.ts +23 -0
- package/dist/json/json-stringify-safe.d.ts.map +1 -0
- package/dist/json/json-stringify-safe.js +6 -0
- package/dist/json/json-stringify-safe.js.map +1 -0
- package/dist/json/jsonify-safe.d.ts +29 -0
- package/dist/json/jsonify-safe.d.ts.map +1 -0
- package/dist/json/jsonify-safe.js +2 -0
- package/dist/json/jsonify-safe.js.map +1 -0
- package/dist/json/replacers/all-replacers.d.ts +7 -0
- package/dist/json/replacers/all-replacers.d.ts.map +1 -0
- package/dist/json/replacers/all-replacers.js +7 -0
- package/dist/json/replacers/all-replacers.js.map +1 -0
- package/dist/json/replacers/big-int.d.ts +16 -0
- package/dist/json/replacers/big-int.d.ts.map +1 -0
- package/dist/json/replacers/big-int.js +28 -0
- package/dist/json/replacers/big-int.js.map +1 -0
- package/dist/json/replacers/circular-reference.d.ts +22 -0
- package/dist/json/replacers/circular-reference.d.ts.map +1 -0
- package/dist/json/replacers/circular-reference.js +45 -0
- package/dist/json/replacers/circular-reference.js.map +1 -0
- package/dist/json/replacers/error.d.ts +31 -0
- package/dist/json/replacers/error.d.ts.map +1 -0
- package/dist/json/replacers/error.js +42 -0
- package/dist/json/replacers/error.js.map +1 -0
- package/dist/map/case-insensitive-map.d.ts +17 -0
- package/dist/map/case-insensitive-map.d.ts.map +1 -0
- package/dist/map/case-insensitive-map.js +64 -0
- package/dist/map/case-insensitive-map.js.map +1 -0
- package/dist/map/join-mappings.d.ts +32 -0
- package/dist/map/join-mappings.d.ts.map +1 -0
- package/dist/map/join-mappings.js +31 -0
- package/dist/map/join-mappings.js.map +1 -0
- package/dist/net/ephemeral-port.d.ts +13 -0
- package/dist/net/ephemeral-port.d.ts.map +1 -0
- package/dist/net/ephemeral-port.js +19 -0
- package/dist/net/ephemeral-port.js.map +1 -0
- package/dist/net/inet-address.d.ts +20 -0
- package/dist/net/inet-address.d.ts.map +1 -0
- package/dist/net/inet-address.js +42 -0
- package/dist/net/inet-address.js.map +1 -0
- package/dist/net/inet-endpoint.d.ts +7 -0
- package/dist/net/inet-endpoint.d.ts.map +1 -0
- package/dist/net/inet-endpoint.js +2 -0
- package/dist/net/inet-endpoint.js.map +1 -0
- package/dist/number/bit/bit-reverse32.d.ts +13 -0
- package/dist/number/bit/bit-reverse32.d.ts.map +1 -0
- package/dist/number/bit/bit-reverse32.js +21 -0
- package/dist/number/bit/bit-reverse32.js.map +1 -0
- package/dist/number/bit/byte-swap32.d.ts +11 -0
- package/dist/number/bit/byte-swap32.d.ts.map +1 -0
- package/dist/number/bit/byte-swap32.js +18 -0
- package/dist/number/bit/byte-swap32.js.map +1 -0
- package/dist/number/bit/bytes-for-bits.d.ts +8 -0
- package/dist/number/bit/bytes-for-bits.d.ts.map +1 -0
- package/dist/number/bit/bytes-for-bits.js +10 -0
- package/dist/number/bit/bytes-for-bits.js.map +1 -0
- package/dist/number/bit/ctz32.d.ts +15 -0
- package/dist/number/bit/ctz32.d.ts.map +1 -0
- package/dist/number/bit/ctz32.js +18 -0
- package/dist/number/bit/ctz32.js.map +1 -0
- package/dist/number/bit/pop-count32.d.ts +11 -0
- package/dist/number/bit/pop-count32.d.ts.map +1 -0
- package/dist/number/bit/pop-count32.js +17 -0
- package/dist/number/bit/pop-count32.js.map +1 -0
- package/dist/number/bit/popcount32.d.ts +11 -0
- package/dist/number/bit/popcount32.d.ts.map +1 -0
- package/dist/number/bit/popcount32.js +17 -0
- package/dist/number/bit/popcount32.js.map +1 -0
- package/dist/number/bit/rotl32.d.ts +13 -0
- package/dist/number/bit/rotl32.d.ts.map +1 -0
- package/dist/number/bit/rotl32.js +15 -0
- package/dist/number/bit/rotl32.js.map +1 -0
- package/dist/number/bit/rotr32.d.ts +13 -0
- package/dist/number/bit/rotr32.d.ts.map +1 -0
- package/dist/number/bit/rotr32.js +15 -0
- package/dist/number/bit/rotr32.js.map +1 -0
- package/dist/number/bit/words-for-bits.d.ts +10 -0
- package/dist/number/bit/words-for-bits.d.ts.map +1 -0
- package/dist/number/bit/words-for-bits.js +12 -0
- package/dist/number/bit/words-for-bits.js.map +1 -0
- package/dist/number/clamp.d.ts +10 -0
- package/dist/number/clamp.d.ts.map +1 -0
- package/dist/number/clamp.js +15 -0
- package/dist/number/clamp.js.map +1 -0
- package/dist/number/float16-bits.d.ts +15 -0
- package/dist/number/float16-bits.d.ts.map +1 -0
- package/dist/number/float16-bits.js +24 -0
- package/dist/number/float16-bits.js.map +1 -0
- package/dist/number/float32-bits.d.ts +14 -0
- package/dist/number/float32-bits.d.ts.map +1 -0
- package/dist/number/float32-bits.js +23 -0
- package/dist/number/float32-bits.js.map +1 -0
- package/dist/number/float64-bits.d.ts +15 -0
- package/dist/number/float64-bits.d.ts.map +1 -0
- package/dist/number/float64-bits.js +24 -0
- package/dist/number/float64-bits.js.map +1 -0
- package/dist/number/integer/_powers-of-ten.d.ts +2 -0
- package/dist/number/integer/_powers-of-ten.d.ts.map +1 -0
- package/dist/number/integer/_powers-of-ten.js +11 -0
- package/dist/number/integer/_powers-of-ten.js.map +1 -0
- package/dist/number/integer/bit-length.d.ts +13 -0
- package/dist/number/integer/bit-length.d.ts.map +1 -0
- package/dist/number/integer/bit-length.js +22 -0
- package/dist/number/integer/bit-length.js.map +1 -0
- package/dist/number/integer/clamp-to-integer.d.ts +14 -0
- package/dist/number/integer/clamp-to-integer.d.ts.map +1 -0
- package/dist/number/integer/clamp-to-integer.js +20 -0
- package/dist/number/integer/clamp-to-integer.js.map +1 -0
- package/dist/number/integer/div-euclid.d.ts +11 -0
- package/dist/number/integer/div-euclid.d.ts.map +1 -0
- package/dist/number/integer/div-euclid.js +14 -0
- package/dist/number/integer/div-euclid.js.map +1 -0
- package/dist/number/integer/div-floor.d.ts +10 -0
- package/dist/number/integer/div-floor.d.ts.map +1 -0
- package/dist/number/integer/div-floor.js +13 -0
- package/dist/number/integer/div-floor.js.map +1 -0
- package/dist/number/integer/div-trunc.d.ts +12 -0
- package/dist/number/integer/div-trunc.d.ts.map +1 -0
- package/dist/number/integer/div-trunc.js +17 -0
- package/dist/number/integer/div-trunc.js.map +1 -0
- package/dist/number/integer/ilog10.d.ts +20 -0
- package/dist/number/integer/ilog10.d.ts.map +1 -0
- package/dist/number/integer/ilog10.js +30 -0
- package/dist/number/integer/ilog10.js.map +1 -0
- package/dist/number/integer/ilog2.d.ts +8 -0
- package/dist/number/integer/ilog2.d.ts.map +1 -0
- package/dist/number/integer/ilog2.js +14 -0
- package/dist/number/integer/ilog2.js.map +1 -0
- package/dist/number/integer/ipow.d.ts +15 -0
- package/dist/number/integer/ipow.d.ts.map +1 -0
- package/dist/number/integer/ipow.js +41 -0
- package/dist/number/integer/ipow.js.map +1 -0
- package/dist/number/integer/ipow10.d.ts +12 -0
- package/dist/number/integer/ipow10.d.ts.map +1 -0
- package/dist/number/integer/ipow10.js +18 -0
- package/dist/number/integer/ipow10.js.map +1 -0
- package/dist/number/integer/isqrt.d.ts +12 -0
- package/dist/number/integer/isqrt.d.ts.map +1 -0
- package/dist/number/integer/isqrt.js +25 -0
- package/dist/number/integer/isqrt.js.map +1 -0
- package/dist/number/integer/mod-euclid.d.ts +11 -0
- package/dist/number/integer/mod-euclid.d.ts.map +1 -0
- package/dist/number/integer/mod-euclid.js +17 -0
- package/dist/number/integer/mod-euclid.js.map +1 -0
- package/dist/number/integer/mod.d.ts +18 -0
- package/dist/number/integer/mod.d.ts.map +1 -0
- package/dist/number/integer/mod.js +23 -0
- package/dist/number/integer/mod.js.map +1 -0
- package/dist/number/integer/power-of-two.d.ts +7 -0
- package/dist/number/integer/power-of-two.d.ts.map +1 -0
- package/dist/number/integer/power-of-two.js +41 -0
- package/dist/number/integer/power-of-two.js.map +1 -0
- package/dist/number/integer/sqrt-exact.d.ts +9 -0
- package/dist/number/integer/sqrt-exact.d.ts.map +1 -0
- package/dist/number/integer/sqrt-exact.js +13 -0
- package/dist/number/integer/sqrt-exact.js.map +1 -0
- package/dist/number/is-close-absolute.d.ts +18 -0
- package/dist/number/is-close-absolute.d.ts.map +1 -0
- package/dist/number/is-close-absolute.js +28 -0
- package/dist/number/is-close-absolute.js.map +1 -0
- package/dist/number/is-close-relative.d.ts +22 -0
- package/dist/number/is-close-relative.d.ts.map +1 -0
- package/dist/number/is-close-relative.js +32 -0
- package/dist/number/is-close-relative.js.map +1 -0
- package/dist/number/is-close-to.d.ts +35 -0
- package/dist/number/is-close-to.d.ts.map +1 -0
- package/dist/number/is-close-to.js +39 -0
- package/dist/number/is-close-to.js.map +1 -0
- package/dist/number/is-close-ulp.d.ts +22 -0
- package/dist/number/is-close-ulp.d.ts.map +1 -0
- package/dist/number/is-close-ulp.js +25 -0
- package/dist/number/is-close-ulp.js.map +1 -0
- package/dist/number/is-finite-positive.d.ts +3 -0
- package/dist/number/is-finite-positive.d.ts.map +1 -0
- package/dist/number/is-finite-positive.js +5 -0
- package/dist/number/is-finite-positive.js.map +1 -0
- package/dist/number/is-normal.d.ts +8 -0
- package/dist/number/is-normal.d.ts.map +1 -0
- package/dist/number/is-normal.js +11 -0
- package/dist/number/is-normal.js.map +1 -0
- package/dist/number/is-subnormal.d.ts +6 -0
- package/dist/number/is-subnormal.d.ts.map +1 -0
- package/dist/number/is-subnormal.js +9 -0
- package/dist/number/is-subnormal.js.map +1 -0
- package/dist/number/minmax.d.ts +21 -0
- package/dist/number/minmax.d.ts.map +1 -0
- package/dist/number/minmax.js +22 -0
- package/dist/number/minmax.js.map +1 -0
- package/dist/number/next-after.d.ts +12 -0
- package/dist/number/next-after.d.ts.map +1 -0
- package/dist/number/next-after.js +28 -0
- package/dist/number/next-after.js.map +1 -0
- package/dist/number/precise-sum.d.ts +62 -0
- package/dist/number/precise-sum.d.ts.map +1 -0
- package/dist/number/precise-sum.js +209 -0
- package/dist/number/precise-sum.js.map +1 -0
- package/dist/number/round.d.ts +35 -0
- package/dist/number/round.d.ts.map +1 -0
- package/dist/number/round.js +47 -0
- package/dist/number/round.js.map +1 -0
- package/dist/number/to-fixed-length.d.ts +50 -0
- package/dist/number/to-fixed-length.d.ts.map +1 -0
- package/dist/number/to-fixed-length.js +90 -0
- package/dist/number/to-fixed-length.js.map +1 -0
- package/dist/number/ulp-distance.d.ts +13 -0
- package/dist/number/ulp-distance.d.ts.map +1 -0
- package/dist/number/ulp-distance.js +39 -0
- package/dist/number/ulp-distance.js.map +1 -0
- package/dist/number/ulp.d.ts +9 -0
- package/dist/number/ulp.d.ts.map +1 -0
- package/dist/number/ulp.js +24 -0
- package/dist/number/ulp.js.map +1 -0
- package/dist/object/clone.d.ts +78 -0
- package/dist/object/clone.d.ts.map +1 -0
- package/dist/object/clone.js +359 -0
- package/dist/object/clone.js.map +1 -0
- package/dist/object/defaults.d.ts +21 -0
- package/dist/object/defaults.d.ts.map +1 -0
- package/dist/object/defaults.js +33 -0
- package/dist/object/defaults.js.map +1 -0
- package/dist/object/get-at-path.d.ts +14 -0
- package/dist/object/get-at-path.d.ts.map +1 -0
- package/dist/object/get-at-path.js +28 -0
- package/dist/object/get-at-path.js.map +1 -0
- package/dist/object/get-object-keys.d.ts +44 -0
- package/dist/object/get-object-keys.d.ts.map +1 -0
- package/dist/object/get-object-keys.js +52 -0
- package/dist/object/get-object-keys.js.map +1 -0
- package/dist/object/is-deep-equal.d.ts +21 -0
- package/dist/object/is-deep-equal.d.ts.map +1 -0
- package/dist/object/is-deep-equal.js +123 -0
- package/dist/object/is-deep-equal.js.map +1 -0
- package/dist/object/is-equal.d.ts +110 -0
- package/dist/object/is-equal.d.ts.map +1 -0
- package/dist/object/is-equal.js +107 -0
- package/dist/object/is-equal.js.map +1 -0
- package/dist/object/merge-inplace.d.ts +34 -0
- package/dist/object/merge-inplace.d.ts.map +1 -0
- package/dist/object/merge-inplace.js +107 -0
- package/dist/object/merge-inplace.js.map +1 -0
- package/dist/object/merge-options.d.ts +23 -0
- package/dist/object/merge-options.d.ts.map +1 -0
- package/dist/object/merge-options.js +6 -0
- package/dist/object/merge-options.js.map +1 -0
- package/dist/object/merge.d.ts +32 -0
- package/dist/object/merge.d.ts.map +1 -0
- package/dist/object/merge.js +105 -0
- package/dist/object/merge.js.map +1 -0
- package/dist/object/set-at-path.d.ts +14 -0
- package/dist/object/set-at-path.d.ts.map +1 -0
- package/dist/object/set-at-path.js +51 -0
- package/dist/object/set-at-path.js.map +1 -0
- package/dist/object/traverse.d.ts +100 -0
- package/dist/object/traverse.d.ts.map +1 -0
- package/dist/object/traverse.js +358 -0
- package/dist/object/traverse.js.map +1 -0
- package/dist/pattern/pattern-trim.d.ts +71 -0
- package/dist/pattern/pattern-trim.d.ts.map +1 -0
- package/dist/pattern/pattern-trim.js +94 -0
- package/dist/pattern/pattern-trim.js.map +1 -0
- package/dist/pattern/pattern-util.d.ts +51 -0
- package/dist/pattern/pattern-util.d.ts.map +1 -0
- package/dist/pattern/pattern-util.js +49 -0
- package/dist/pattern/pattern-util.js.map +1 -0
- package/dist/pattern/types.d.ts +3 -0
- package/dist/pattern/types.d.ts.map +1 -0
- package/dist/pattern/types.js +2 -0
- package/dist/pattern/types.js.map +1 -0
- package/dist/polyfill/math-sum-precise.d.ts +46 -0
- package/dist/polyfill/math-sum-precise.d.ts.map +1 -0
- package/dist/polyfill/math-sum-precise.js +53 -0
- package/dist/polyfill/math-sum-precise.js.map +1 -0
- package/dist/promise/promise-to-async-iterable-iterator.d.ts +10 -0
- package/dist/promise/promise-to-async-iterable-iterator.d.ts.map +1 -0
- package/dist/promise/promise-to-async-iterable-iterator.js +24 -0
- package/dist/promise/promise-to-async-iterable-iterator.js.map +1 -0
- package/dist/promise/waiter-queue.d.ts +40 -0
- package/dist/promise/waiter-queue.d.ts.map +1 -0
- package/dist/promise/waiter-queue.js +90 -0
- package/dist/promise/waiter-queue.js.map +1 -0
- package/dist/set/fast-set.d.ts +17 -0
- package/dist/set/fast-set.d.ts.map +1 -0
- package/dist/set/fast-set.js +38 -0
- package/dist/set/fast-set.js.map +1 -0
- package/dist/shell/fs/escape-posix-path.d.ts +9 -0
- package/dist/shell/fs/escape-posix-path.d.ts.map +1 -0
- package/dist/shell/fs/escape-posix-path.js +15 -0
- package/dist/shell/fs/escape-posix-path.js.map +1 -0
- package/dist/shell/fs/escape-win32-path.d.ts +9 -0
- package/dist/shell/fs/escape-win32-path.d.ts.map +1 -0
- package/dist/shell/fs/escape-win32-path.js +18 -0
- package/dist/shell/fs/escape-win32-path.js.map +1 -0
- package/dist/shell/process/parse-env-variable.d.ts +43 -0
- package/dist/shell/process/parse-env-variable.d.ts.map +1 -0
- package/dist/shell/process/parse-env-variable.js +109 -0
- package/dist/shell/process/parse-env-variable.js.map +1 -0
- package/dist/shell/process/stringify-env-variable.d.ts +50 -0
- package/dist/shell/process/stringify-env-variable.d.ts.map +1 -0
- package/dist/shell/process/stringify-env-variable.js +86 -0
- package/dist/shell/process/stringify-env-variable.js.map +1 -0
- package/dist/shell/process/types.d.ts +7 -0
- package/dist/shell/process/types.d.ts.map +1 -0
- package/dist/shell/process/types.js +2 -0
- package/dist/shell/process/types.js.map +1 -0
- package/dist/shell/shell/escape-posix-sh-command-arg.d.ts +20 -0
- package/dist/shell/shell/escape-posix-sh-command-arg.d.ts.map +1 -0
- package/dist/shell/shell/escape-posix-sh-command-arg.js +26 -0
- package/dist/shell/shell/escape-posix-sh-command-arg.js.map +1 -0
- package/dist/shell/shell/escape-posix-sh-command.d.ts +19 -0
- package/dist/shell/shell/escape-posix-sh-command.d.ts.map +1 -0
- package/dist/shell/shell/escape-posix-sh-command.js +55 -0
- package/dist/shell/shell/escape-posix-sh-command.js.map +1 -0
- package/dist/shell/shell/escape-posix-sh-sqe.d.ts +13 -0
- package/dist/shell/shell/escape-posix-sh-sqe.d.ts.map +1 -0
- package/dist/shell/shell/escape-posix-sh-sqe.js +15 -0
- package/dist/shell/shell/escape-posix-sh-sqe.js.map +1 -0
- package/dist/shell/shell/escape-win32-cmd-command-arg.d.ts +20 -0
- package/dist/shell/shell/escape-win32-cmd-command-arg.d.ts.map +1 -0
- package/dist/shell/shell/escape-win32-cmd-command-arg.js +29 -0
- package/dist/shell/shell/escape-win32-cmd-command-arg.js.map +1 -0
- package/dist/shell/shell/escape-win32-cmd-command.d.ts +18 -0
- package/dist/shell/shell/escape-win32-cmd-command.d.ts.map +1 -0
- package/dist/shell/shell/escape-win32-cmd-command.js +20 -0
- package/dist/shell/shell/escape-win32-cmd-command.js.map +1 -0
- package/dist/string/apply-text-edits.d.ts +23 -0
- package/dist/string/apply-text-edits.d.ts.map +1 -0
- package/dist/string/apply-text-edits.js +22 -0
- package/dist/string/apply-text-edits.js.map +1 -0
- package/dist/string/ascii/is-ascii-alpha-numeric.d.ts +3 -0
- package/dist/string/ascii/is-ascii-alpha-numeric.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-alpha-numeric.js +7 -0
- package/dist/string/ascii/is-ascii-alpha-numeric.js.map +1 -0
- package/dist/string/ascii/is-ascii-alpha.d.ts +6 -0
- package/dist/string/ascii/is-ascii-alpha.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-alpha.js +10 -0
- package/dist/string/ascii/is-ascii-alpha.js.map +1 -0
- package/dist/string/ascii/is-ascii-base64-char.d.ts +12 -0
- package/dist/string/ascii/is-ascii-base64-char.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-base64-char.js +20 -0
- package/dist/string/ascii/is-ascii-base64-char.js.map +1 -0
- package/dist/string/ascii/is-ascii-digit.d.ts +3 -0
- package/dist/string/ascii/is-ascii-digit.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-digit.js +6 -0
- package/dist/string/ascii/is-ascii-digit.js.map +1 -0
- package/dist/string/ascii/is-ascii-hex-digit.d.ts +6 -0
- package/dist/string/ascii/is-ascii-hex-digit.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-hex-digit.js +11 -0
- package/dist/string/ascii/is-ascii-hex-digit.js.map +1 -0
- package/dist/string/ascii/is-ascii-lower-alpha.d.ts +6 -0
- package/dist/string/ascii/is-ascii-lower-alpha.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-lower-alpha.js +9 -0
- package/dist/string/ascii/is-ascii-lower-alpha.js.map +1 -0
- package/dist/string/ascii/is-ascii-octal-digit.d.ts +6 -0
- package/dist/string/ascii/is-ascii-octal-digit.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-octal-digit.js +9 -0
- package/dist/string/ascii/is-ascii-octal-digit.js.map +1 -0
- package/dist/string/ascii/is-ascii-upper-alpha.d.ts +6 -0
- package/dist/string/ascii/is-ascii-upper-alpha.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-upper-alpha.js +9 -0
- package/dist/string/ascii/is-ascii-upper-alpha.js.map +1 -0
- package/dist/string/ascii/is-ascii-whitespace.d.ts +7 -0
- package/dist/string/ascii/is-ascii-whitespace.d.ts.map +1 -0
- package/dist/string/ascii/is-ascii-whitespace.js +10 -0
- package/dist/string/ascii/is-ascii-whitespace.js.map +1 -0
- package/dist/string/capitalize.d.ts +9 -0
- package/dist/string/capitalize.d.ts.map +1 -0
- package/dist/string/capitalize.js +14 -0
- package/dist/string/capitalize.js.map +1 -0
- package/dist/string/case/camel-case.d.ts +17 -0
- package/dist/string/case/camel-case.d.ts.map +1 -0
- package/dist/string/case/camel-case.js +25 -0
- package/dist/string/case/camel-case.js.map +1 -0
- package/dist/string/case/case-options.d.ts +15 -0
- package/dist/string/case/case-options.d.ts.map +1 -0
- package/dist/string/case/case-options.js +5 -0
- package/dist/string/case/case-options.js.map +1 -0
- package/dist/string/case/kebab-case.d.ts +17 -0
- package/dist/string/case/kebab-case.d.ts.map +1 -0
- package/dist/string/case/kebab-case.js +25 -0
- package/dist/string/case/kebab-case.js.map +1 -0
- package/dist/string/case/lower-case.d.ts +17 -0
- package/dist/string/case/lower-case.d.ts.map +1 -0
- package/dist/string/case/lower-case.js +25 -0
- package/dist/string/case/lower-case.js.map +1 -0
- package/dist/string/case/snake-case.d.ts +21 -0
- package/dist/string/case/snake-case.d.ts.map +1 -0
- package/dist/string/case/snake-case.js +29 -0
- package/dist/string/case/snake-case.js.map +1 -0
- package/dist/string/case/start-case.d.ts +18 -0
- package/dist/string/case/start-case.d.ts.map +1 -0
- package/dist/string/case/start-case.js +27 -0
- package/dist/string/case/start-case.js.map +1 -0
- package/dist/string/case/upper-case.d.ts +18 -0
- package/dist/string/case/upper-case.d.ts.map +1 -0
- package/dist/string/case/upper-case.js +26 -0
- package/dist/string/case/upper-case.js.map +1 -0
- package/dist/string/dedent.d.ts +27 -0
- package/dist/string/dedent.d.ts.map +1 -0
- package/dist/string/dedent.js +51 -0
- package/dist/string/dedent.js.map +1 -0
- package/dist/string/join-non-empty.d.ts +9 -0
- package/dist/string/join-non-empty.d.ts.map +1 -0
- package/dist/string/join-non-empty.js +13 -0
- package/dist/string/join-non-empty.js.map +1 -0
- package/dist/string/lower-first.d.ts +8 -0
- package/dist/string/lower-first.d.ts.map +1 -0
- package/dist/string/lower-first.js +13 -0
- package/dist/string/lower-first.js.map +1 -0
- package/dist/string/prefix-lines.d.ts +17 -0
- package/dist/string/prefix-lines.d.ts.map +1 -0
- package/dist/string/prefix-lines.js +22 -0
- package/dist/string/prefix-lines.js.map +1 -0
- package/dist/string/slugify.d.ts +20 -0
- package/dist/string/slugify.d.ts.map +1 -0
- package/dist/string/slugify.js +25 -0
- package/dist/string/slugify.js.map +1 -0
- package/dist/string/span.d.ts +19 -0
- package/dist/string/span.d.ts.map +1 -0
- package/dist/string/span.js +13 -0
- package/dist/string/span.js.map +1 -0
- package/dist/string/string-is-equal.d.ts +35 -0
- package/dist/string/string-is-equal.d.ts.map +1 -0
- package/dist/string/string-is-equal.js +30 -0
- package/dist/string/string-is-equal.js.map +1 -0
- package/dist/string/string-pointer.d.ts +34 -0
- package/dist/string/string-pointer.d.ts.map +1 -0
- package/dist/string/string-pointer.js +55 -0
- package/dist/string/string-pointer.js.map +1 -0
- package/dist/string/strip-diacritics.d.ts +11 -0
- package/dist/string/strip-diacritics.d.ts.map +1 -0
- package/dist/string/strip-diacritics.js +14 -0
- package/dist/string/strip-diacritics.js.map +1 -0
- package/dist/string/truncate-core.d.ts +31 -0
- package/dist/string/truncate-core.d.ts.map +1 -0
- package/dist/string/truncate-core.js +85 -0
- package/dist/string/truncate-core.js.map +1 -0
- package/dist/string/truncate.d.ts +35 -0
- package/dist/string/truncate.d.ts.map +1 -0
- package/dist/string/truncate.js +33 -0
- package/dist/string/truncate.js.map +1 -0
- package/dist/string/upper-first.d.ts +8 -0
- package/dist/string/upper-first.d.ts.map +1 -0
- package/dist/string/upper-first.js +13 -0
- package/dist/string/upper-first.js.map +1 -0
- package/dist/time/format-duration.d.ts +20 -0
- package/dist/time/format-duration.d.ts.map +1 -0
- package/dist/time/format-duration.js +134 -0
- package/dist/time/format-duration.js.map +1 -0
- package/dist/time/periodical-timer.d.ts +37 -0
- package/dist/time/periodical-timer.d.ts.map +1 -0
- package/dist/time/periodical-timer.js +74 -0
- package/dist/time/periodical-timer.js.map +1 -0
- package/dist/time/sleep.d.ts +10 -0
- package/dist/time/sleep.d.ts.map +1 -0
- package/dist/time/sleep.js +22 -0
- package/dist/time/sleep.js.map +1 -0
- package/dist/time/timer.d.ts +29 -0
- package/dist/time/timer.d.ts.map +1 -0
- package/dist/time/timer.js +50 -0
- package/dist/time/timer.js.map +1 -0
- package/dist/types/callable.d.ts +11 -0
- package/dist/types/callable.d.ts.map +1 -0
- package/dist/types/callable.js +2 -0
- package/dist/types/callable.js.map +1 -0
- package/dist/types/data.d.ts +2 -0
- package/dist/types/data.d.ts.map +1 -0
- package/dist/types/data.js +2 -0
- package/dist/types/data.js.map +1 -0
- package/dist/types/defined-value.d.ts +20 -0
- package/dist/types/defined-value.d.ts.map +1 -0
- package/dist/types/defined-value.js +2 -0
- package/dist/types/defined-value.js.map +1 -0
- package/dist/types/dispose.d.ts +2 -0
- package/dist/types/dispose.d.ts.map +1 -0
- package/dist/types/dispose.js +2 -0
- package/dist/types/dispose.js.map +1 -0
- package/dist/types/error.d.ts +29 -0
- package/dist/types/error.d.ts.map +1 -0
- package/dist/types/error.js +2 -0
- package/dist/types/error.js.map +1 -0
- package/dist/types/globals/builtin-array.d.ts +18 -0
- package/dist/types/globals/builtin-array.d.ts.map +1 -0
- package/dist/types/globals/builtin-array.js +2 -0
- package/dist/types/globals/builtin-array.js.map +1 -0
- package/dist/types/globals/builtin-json.d.ts +41 -0
- package/dist/types/globals/builtin-json.d.ts.map +1 -0
- package/dist/types/globals/builtin-json.js +2 -0
- package/dist/types/globals/builtin-json.js.map +1 -0
- package/dist/types/globals/builtin-object.d.ts +27 -0
- package/dist/types/globals/builtin-object.d.ts.map +1 -0
- package/dist/types/globals/builtin-object.js +2 -0
- package/dist/types/globals/builtin-object.js.map +1 -0
- package/dist/types/globals/builtin-regexp.d.ts +15 -0
- package/dist/types/globals/builtin-regexp.d.ts.map +1 -0
- package/dist/types/globals/builtin-regexp.js +2 -0
- package/dist/types/globals/builtin-regexp.js.map +1 -0
- package/dist/types/iterator.d.ts +10 -0
- package/dist/types/iterator.d.ts.map +1 -0
- package/dist/types/iterator.js +2 -0
- package/dist/types/iterator.js.map +1 -0
- package/dist/types/json.d.ts +25 -0
- package/dist/types/json.d.ts.map +1 -0
- package/dist/types/json.js +2 -0
- package/dist/types/json.js.map +1 -0
- package/dist/types/primitive.d.ts +2 -0
- package/dist/types/primitive.d.ts.map +1 -0
- package/dist/types/primitive.js +2 -0
- package/dist/types/primitive.js.map +1 -0
- package/dist/types/promise.d.ts +13 -0
- package/dist/types/promise.d.ts.map +1 -0
- package/dist/types/promise.js +2 -0
- package/dist/types/promise.js.map +1 -0
- package/dist/types/random-fn.d.ts +4 -0
- package/dist/types/random-fn.d.ts.map +1 -0
- package/dist/types/random-fn.js +2 -0
- package/dist/types/random-fn.js.map +1 -0
- package/dist/types/util/defined.d.ts +15 -0
- package/dist/types/util/defined.d.ts.map +1 -0
- package/dist/types/util/defined.js +2 -0
- package/dist/types/util/defined.js.map +1 -0
- package/dist/types/util/set-nullable.d.ts +30 -0
- package/dist/types/util/set-nullable.d.ts.map +1 -0
- package/dist/types/util/set-nullable.js +2 -0
- package/dist/types/util/set-nullable.js.map +1 -0
- package/dist/types/v8-call-site.d.ts +33 -0
- package/dist/types/v8-call-site.d.ts.map +1 -0
- package/dist/types/v8-call-site.js +2 -0
- package/dist/types/v8-call-site.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Comparator } from "./types.js";
|
|
2
|
+
/** Reverses `compare`; operands it calls equivalent stay equivalent. */
|
|
3
|
+
export declare function createReversedComparator<A, B = A>(compare: Comparator<A, B>): Comparator<B, A>;
|
|
4
|
+
//# sourceMappingURL=create-reversed-comparator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reversed-comparator.d.ts","sourceRoot":"","sources":["../../../src/function/compare/create-reversed-comparator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wEAAwE;AACxE,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAChD,OAAO,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GACvB,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reversed-comparator.js","sourceRoot":"","sources":["../../../src/function/compare/create-reversed-comparator.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,MAAM,UAAU,wBAAwB,CACvC,OAAyB;IAEzB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Callable, Predicate } from "../../types/callable.js";
|
|
2
|
+
export type ComparatorResult = -1 | 0 | 1;
|
|
3
|
+
/**
|
|
4
|
+
* Orders `a` against `b`: `-1` if `a` precedes `b`, `0` if the two are
|
|
5
|
+
* equivalent, `1` if `a` follows `b`.
|
|
6
|
+
*
|
|
7
|
+
* Must be a strict weak ordering — irreflexive, antisymmetric and transitive,
|
|
8
|
+
* with transitive equivalence. Sorting, bisecting, heaps and ordered ranges all
|
|
9
|
+
* assume it, and a comparator that breaks it makes their results unspecified
|
|
10
|
+
* rather than merely imprecise. An approximate comparison is therefore never a
|
|
11
|
+
* valid comparator: tolerant equivalence is not transitive.
|
|
12
|
+
*
|
|
13
|
+
* `A` and `B` differ when the search target need not share the collection's
|
|
14
|
+
* element type — bisecting an array of records by a plain numeric key, say.
|
|
15
|
+
*/
|
|
16
|
+
export type Comparator<A, B = A> = Callable<[A, B], ComparatorResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Strict weak ordering as a boolean: `true` if `a` must come before `b`.
|
|
19
|
+
*
|
|
20
|
+
* Carries exactly the same information as a {@link Comparator} — equivalence is
|
|
21
|
+
* recoverable as `!precedes(a, b) && !precedes(b, a)` — but at two calls rather
|
|
22
|
+
* than one.
|
|
23
|
+
*/
|
|
24
|
+
export type OrderPredicate<A, B = A> = Predicate<[A, B]>;
|
|
25
|
+
/**
|
|
26
|
+
* How far apart `a` and `b` are.
|
|
27
|
+
*
|
|
28
|
+
* Must be a true metric: non-negative, symmetric, `0` exactly when the two are
|
|
29
|
+
* equivalent, and satisfying the triangle inequality. Metric-space indexes
|
|
30
|
+
* prune entire subtrees on the strength of that last property, so a distance
|
|
31
|
+
* that violates it makes their results wrong, not merely slower.
|
|
32
|
+
*
|
|
33
|
+
* Not a {@link Comparator}: it answers how far apart, never which comes first.
|
|
34
|
+
* To order candidates by closeness to a query, derive one —
|
|
35
|
+
* `createComparatorBy((item) => distance(query, item))`.
|
|
36
|
+
*/
|
|
37
|
+
export type Distance<T> = Callable<[T, T], number>;
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/function/compare/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/function/compare/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/function/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/function/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAI,KAAQ;IACnC,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Callable } from "../types/callable.js";
|
|
2
|
+
export type MemoizeOptions<A extends unknown[]> = {
|
|
3
|
+
/**
|
|
4
|
+
* A function that generates a cache key from the arguments passed to the
|
|
5
|
+
* memoized function.
|
|
6
|
+
*
|
|
7
|
+
* By default, the first argument is used as the cache key.
|
|
8
|
+
*
|
|
9
|
+
* Note: If the first argument is not a primitive value, you may want to
|
|
10
|
+
* provide a custom `keyOf` function that returns a primitive value to avoid
|
|
11
|
+
* unexpected behavior.
|
|
12
|
+
*
|
|
13
|
+
* @param args - The arguments passed to the memoized function.
|
|
14
|
+
* @returns A primitive value that can be used as a cache key.
|
|
15
|
+
*/
|
|
16
|
+
keyOf?: (args: A) => unknown;
|
|
17
|
+
};
|
|
18
|
+
export declare function memoize<A extends unknown[], R>(fn: Callable<A, R>, options?: MemoizeOptions<A>): Callable<A, R>;
|
|
19
|
+
//# sourceMappingURL=memoize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../src/function/memoize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI;IACjD;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;CAC7B,CAAC;AAEF,wBAAgB,OAAO,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EAC7C,EAAE,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAClB,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GACzB,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAoBhB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function memoize(fn, options) {
|
|
2
|
+
const cache = new Map();
|
|
3
|
+
const keyOf = options?.keyOf ?? ((args) => args[0]);
|
|
4
|
+
return function (...args) {
|
|
5
|
+
const key = keyOf(args);
|
|
6
|
+
if (cache.has(key)) {
|
|
7
|
+
const value = cache.get(key);
|
|
8
|
+
cache.delete(key);
|
|
9
|
+
cache.set(key, value);
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
const result = fn(...args);
|
|
13
|
+
cache.set(key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=memoize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoize.js","sourceRoot":"","sources":["../../src/function/memoize.ts"],"names":[],"mappings":"AAmBA,MAAM,UAAU,OAAO,CACtB,EAAkB,EAClB,OAA2B;IAE3B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAc,CAAC;IAEpC,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,CAAC,CAAC,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvD,OAAO,UAAU,GAAG,IAAO;QAC1B,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QAExB,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;YAC9B,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAClB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACtB,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QAC3B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAEvB,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Callable, MaybeAsyncCallable } from "../types/callable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Calls a function, containing any error it throws — the error still surfaces,
|
|
4
|
+
* out of band (via `queueMicrotask`), instead of propagating to this call's
|
|
5
|
+
* caller.
|
|
6
|
+
*
|
|
7
|
+
* Note: this does not handle promise rejections. For async functions, use
|
|
8
|
+
* {@link catchOutOfBandApplyAsync}.
|
|
9
|
+
*
|
|
10
|
+
* @param func The function to call.
|
|
11
|
+
* @param args Arguments to pass to it.
|
|
12
|
+
* @returns The function's result, or `undefined` if it threw.
|
|
13
|
+
*/
|
|
14
|
+
export declare function catchOutOfBandApply<A extends unknown[], R>(func: Callable<A, R>, args: A): R | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Calls a function, containing any error it throws or rejects with — the error
|
|
17
|
+
* still surfaces, out of band, instead of propagating to this call's caller.
|
|
18
|
+
*
|
|
19
|
+
* @param func The function to call.
|
|
20
|
+
* @param args Arguments to pass to it.
|
|
21
|
+
* @returns The function's result, or `undefined` if it threw or rejected.
|
|
22
|
+
*/
|
|
23
|
+
export declare function catchOutOfBandApplyAsync<A extends unknown[], R>(func: MaybeAsyncCallable<A, R>, args: A): Promise<R | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Runs `work`, containing any error it throws. See {@link catchOutOfBandApply}.
|
|
26
|
+
*
|
|
27
|
+
* @param work The action to run.
|
|
28
|
+
* @returns `work`'s result, or `undefined` if it threw.
|
|
29
|
+
*/
|
|
30
|
+
export declare function catchOutOfBand<T>(work: Callable<[], T>): T | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Runs `work`, containing any error it throws or rejects with. See
|
|
33
|
+
* {@link catchOutOfBandApplyAsync}.
|
|
34
|
+
*
|
|
35
|
+
* @param work The action to run.
|
|
36
|
+
* @returns `work`'s result, or `undefined` if it threw or rejected.
|
|
37
|
+
*/
|
|
38
|
+
export declare function catchOutOfBandAsync<T>(work: MaybeAsyncCallable<[], T>): Promise<T | undefined>;
|
|
39
|
+
//# sourceMappingURL=no-throw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-throw.d.ts","sourceRoot":"","sources":["../../src/function/no-throw.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAGzE;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EACzD,IAAI,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,IAAI,EAAE,CAAC,GACL,CAAC,GAAG,SAAS,CAMf;AAED;;;;;;;GAOG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EACpE,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9B,IAAI,EAAE,CAAC,GACL,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAcxB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACpC,IAAI,EAAE,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,GAC7B,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAExB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { rejectOutOfBand } from "../error/reject-out-of-band.js";
|
|
2
|
+
import { throwOutOfBand } from "../error/throw-out-of-band.js";
|
|
3
|
+
/**
|
|
4
|
+
* Calls a function, containing any error it throws — the error still surfaces,
|
|
5
|
+
* out of band (via `queueMicrotask`), instead of propagating to this call's
|
|
6
|
+
* caller.
|
|
7
|
+
*
|
|
8
|
+
* Note: this does not handle promise rejections. For async functions, use
|
|
9
|
+
* {@link catchOutOfBandApplyAsync}.
|
|
10
|
+
*
|
|
11
|
+
* @param func The function to call.
|
|
12
|
+
* @param args Arguments to pass to it.
|
|
13
|
+
* @returns The function's result, or `undefined` if it threw.
|
|
14
|
+
*/
|
|
15
|
+
export function catchOutOfBandApply(func, args) {
|
|
16
|
+
try {
|
|
17
|
+
return func.apply(undefined, args);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
throwOutOfBand(error);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Calls a function, containing any error it throws or rejects with — the error
|
|
25
|
+
* still surfaces, out of band, instead of propagating to this call's caller.
|
|
26
|
+
*
|
|
27
|
+
* @param func The function to call.
|
|
28
|
+
* @param args Arguments to pass to it.
|
|
29
|
+
* @returns The function's result, or `undefined` if it threw or rejected.
|
|
30
|
+
*/
|
|
31
|
+
export async function catchOutOfBandApplyAsync(func, args) {
|
|
32
|
+
let result;
|
|
33
|
+
try {
|
|
34
|
+
result = func.apply(undefined, args);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
throwOutOfBand(error);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
return await result;
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
rejectOutOfBand(error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Runs `work`, containing any error it throws. See {@link catchOutOfBandApply}.
|
|
49
|
+
*
|
|
50
|
+
* @param work The action to run.
|
|
51
|
+
* @returns `work`'s result, or `undefined` if it threw.
|
|
52
|
+
*/
|
|
53
|
+
export function catchOutOfBand(work) {
|
|
54
|
+
return catchOutOfBandApply(work, []);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Runs `work`, containing any error it throws or rejects with. See
|
|
58
|
+
* {@link catchOutOfBandApplyAsync}.
|
|
59
|
+
*
|
|
60
|
+
* @param work The action to run.
|
|
61
|
+
* @returns `work`'s result, or `undefined` if it threw or rejected.
|
|
62
|
+
*/
|
|
63
|
+
export function catchOutOfBandAsync(work) {
|
|
64
|
+
return catchOutOfBandApplyAsync(work, []);
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=no-throw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-throw.js","sourceRoot":"","sources":["../../src/function/no-throw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAI/D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CAClC,IAAoB,EACpB,IAAO;IAEP,IAAI,CAAC;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,cAAc,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACF,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC7C,IAA8B,EAC9B,IAAO;IAEP,IAAI,MAA2B,CAAC;IAChC,IAAI,CAAC;QACJ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,cAAc,CAAC,KAAK,CAAC,CAAC;QACtB,OAAO;IACR,CAAC;IAED,IAAI,CAAC;QACJ,OAAO,MAAM,MAAM,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,eAAe,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAI,IAAqB;IACtD,OAAO,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAClC,IAA+B;IAE/B,OAAO,wBAAwB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AsyncCallable, MaybeAsyncCallableNoArgs } from "../types/callable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Wraps an asynchronous function to ensure that only one instance runs at a
|
|
4
|
+
* time, and if called again while running, only one additional call is queued
|
|
5
|
+
* to run immediately after the current one completes.
|
|
6
|
+
*
|
|
7
|
+
* This pattern serializes async operations and queues at most one next call. If
|
|
8
|
+
* multiple calls are made while an operation is in progress, they all share the
|
|
9
|
+
* same promise for the next execution.
|
|
10
|
+
*
|
|
11
|
+
* Useful for preventing overlapping async operations (such as network or file
|
|
12
|
+
* requests) while ensuring that the latest requested operation is not lost.
|
|
13
|
+
*
|
|
14
|
+
* This is a specialized form of serialization with a single-call queue, zero
|
|
15
|
+
* wait time, and no arguments.
|
|
16
|
+
*
|
|
17
|
+
* @param func The asynchronous function to wrap.
|
|
18
|
+
* @returns The wrapped function.
|
|
19
|
+
*/
|
|
20
|
+
export declare function serializeQueueNext<T>(func: MaybeAsyncCallableNoArgs<T>): AsyncCallable<[signal?: AbortSignal | null], T>;
|
|
21
|
+
//# sourceMappingURL=serialize-queue-next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize-queue-next.d.ts","sourceRoot":"","sources":["../../src/function/serialize-queue-next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,wBAAwB,EACxB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EACnC,IAAI,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAC/B,aAAa,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CA0CjD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps an asynchronous function to ensure that only one instance runs at a
|
|
3
|
+
* time, and if called again while running, only one additional call is queued
|
|
4
|
+
* to run immediately after the current one completes.
|
|
5
|
+
*
|
|
6
|
+
* This pattern serializes async operations and queues at most one next call. If
|
|
7
|
+
* multiple calls are made while an operation is in progress, they all share the
|
|
8
|
+
* same promise for the next execution.
|
|
9
|
+
*
|
|
10
|
+
* Useful for preventing overlapping async operations (such as network or file
|
|
11
|
+
* requests) while ensuring that the latest requested operation is not lost.
|
|
12
|
+
*
|
|
13
|
+
* This is a specialized form of serialization with a single-call queue, zero
|
|
14
|
+
* wait time, and no arguments.
|
|
15
|
+
*
|
|
16
|
+
* @param func The asynchronous function to wrap.
|
|
17
|
+
* @returns The wrapped function.
|
|
18
|
+
*/
|
|
19
|
+
export function serializeQueueNext(func) {
|
|
20
|
+
let currentDeferred;
|
|
21
|
+
let nextDeferred;
|
|
22
|
+
const execute = (deferred) => {
|
|
23
|
+
currentDeferred = deferred;
|
|
24
|
+
Promise.try(func)
|
|
25
|
+
.then(deferred.resolve, deferred.reject)
|
|
26
|
+
.finally(() => {
|
|
27
|
+
currentDeferred = undefined;
|
|
28
|
+
// If there's a queued call, execute it next
|
|
29
|
+
if (nextDeferred) {
|
|
30
|
+
const next = nextDeferred;
|
|
31
|
+
nextDeferred = undefined;
|
|
32
|
+
execute(next);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
return () => {
|
|
37
|
+
let deferred = Promise.withResolvers();
|
|
38
|
+
// If there's already a call in progress, queue this one
|
|
39
|
+
if (currentDeferred) {
|
|
40
|
+
// If there's already a next call queued, use its deferred
|
|
41
|
+
if (nextDeferred) {
|
|
42
|
+
deferred = nextDeferred;
|
|
43
|
+
}
|
|
44
|
+
// Else, queue this call as the next one
|
|
45
|
+
else {
|
|
46
|
+
nextDeferred = deferred;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// No call in progress, execute immediately
|
|
50
|
+
else {
|
|
51
|
+
execute(deferred);
|
|
52
|
+
}
|
|
53
|
+
return deferred.promise;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=serialize-queue-next.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize-queue-next.js","sourceRoot":"","sources":["../../src/function/serialize-queue-next.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kBAAkB,CACjC,IAAiC;IAEjC,IAAI,eAAoD,CAAC;IACzD,IAAI,YAAiD,CAAC;IAEtD,MAAM,OAAO,GAAG,CAAC,QAAiC,EAAQ,EAAE;QAC3D,eAAe,GAAG,QAAQ,CAAC;QAE3B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC;aACvC,OAAO,CAAC,GAAG,EAAE;YACb,eAAe,GAAG,SAAS,CAAC;YAE5B,4CAA4C;YAC5C,IAAI,YAAY,EAAE,CAAC;gBAClB,MAAM,IAAI,GAAG,YAAY,CAAC;gBAC1B,YAAY,GAAG,SAAS,CAAC;gBACzB,OAAO,CAAC,IAAI,CAAC,CAAC;YACf,CAAC;QACF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,GAAG,EAAE;QACX,IAAI,QAAQ,GAAG,OAAO,CAAC,aAAa,EAAK,CAAC;QAE1C,wDAAwD;QACxD,IAAI,eAAe,EAAE,CAAC;YACrB,0DAA0D;YAC1D,IAAI,YAAY,EAAE,CAAC;gBAClB,QAAQ,GAAG,YAAY,CAAC;YACzB,CAAC;YACD,wCAAwC;iBACnC,CAAC;gBACL,YAAY,GAAG,QAAQ,CAAC;YACzB,CAAC;QACF,CAAC;QACD,2CAA2C;aACtC,CAAC;YACL,OAAO,CAAC,QAAQ,CAAC,CAAC;QACnB,CAAC;QAED,OAAO,QAAQ,CAAC,OAAO,CAAC;IACzB,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MaybePromiseLike } from "../types/promise.js";
|
|
2
|
+
/**
|
|
3
|
+
* Runs `work`, discarding any error it throws or rejects with.
|
|
4
|
+
*
|
|
5
|
+
* Unlike {@link catchOutOfBandAsync}, which still surfaces the error out of band
|
|
6
|
+
* via `queueMicrotask`, this truly discards it — for a best-effort action whose
|
|
7
|
+
* failure must never be reported at all (e.g. a `catch` block's own teardown,
|
|
8
|
+
* which must not mask the failure that made it necessary in the first place).
|
|
9
|
+
*
|
|
10
|
+
* @param work Action to run. Omitted (or `null`) is a no-op.
|
|
11
|
+
* @returns The resolved value, or `undefined` if `work` threw or rejected.
|
|
12
|
+
*/
|
|
13
|
+
export declare function catchSilentlyAsync<T>(work?: (() => MaybePromiseLike<T>) | null): Promise<T | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Runs `work`, discarding any error it throws. See {@link catchSilentlyAsync}.
|
|
16
|
+
*
|
|
17
|
+
* @param work Action to run. Omitted (or `null`) is a no-op.
|
|
18
|
+
* @returns `work`'s result, or `undefined` if it threw.
|
|
19
|
+
*/
|
|
20
|
+
export declare function catchSilently<T>(work?: (() => T) | null): T | undefined;
|
|
21
|
+
//# sourceMappingURL=settle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle.d.ts","sourceRoot":"","sources":["../../src/function/settle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EACzC,IAAI,CAAC,EAAE,CAAC,MAAM,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GACvC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAMxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS,CAMvE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs `work`, discarding any error it throws or rejects with.
|
|
3
|
+
*
|
|
4
|
+
* Unlike {@link catchOutOfBandAsync}, which still surfaces the error out of band
|
|
5
|
+
* via `queueMicrotask`, this truly discards it — for a best-effort action whose
|
|
6
|
+
* failure must never be reported at all (e.g. a `catch` block's own teardown,
|
|
7
|
+
* which must not mask the failure that made it necessary in the first place).
|
|
8
|
+
*
|
|
9
|
+
* @param work Action to run. Omitted (or `null`) is a no-op.
|
|
10
|
+
* @returns The resolved value, or `undefined` if `work` threw or rejected.
|
|
11
|
+
*/
|
|
12
|
+
export async function catchSilentlyAsync(work) {
|
|
13
|
+
try {
|
|
14
|
+
return await work?.();
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Runs `work`, discarding any error it throws. See {@link catchSilentlyAsync}.
|
|
22
|
+
*
|
|
23
|
+
* @param work Action to run. Omitted (or `null`) is a no-op.
|
|
24
|
+
* @returns `work`'s result, or `undefined` if it threw.
|
|
25
|
+
*/
|
|
26
|
+
export function catchSilently(work) {
|
|
27
|
+
try {
|
|
28
|
+
return work?.();
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=settle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle.js","sourceRoot":"","sources":["../../src/function/settle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACvC,IAAyC;IAEzC,IAAI,CAAC;QACJ,OAAO,MAAM,IAAI,EAAE,EAAE,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAI,IAAuB;IACvD,IAAI,CAAC;QACJ,OAAO,IAAI,EAAE,EAAE,CAAC;IACjB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Support for functions that accept either a single array or the values
|
|
3
|
+
* themselves.
|
|
4
|
+
*
|
|
5
|
+
* The variadic form reads well for a handful of literals — `mean(1, 2, 3)` —
|
|
6
|
+
* but it is unusable on real data: spreading builds a fresh argument list, and
|
|
7
|
+
* V8 throws `RangeError` somewhere past 100 000 arguments. Offering both shapes
|
|
8
|
+
* costs one overload and one call to {@link fromVariadicArgs}.
|
|
9
|
+
*
|
|
10
|
+
* It only works for functions that accept primitive values or objects that are
|
|
11
|
+
* not themselves arrays. The two shapes are distinguished by looking at the
|
|
12
|
+
* first argument, so `VariadicArgs<[]>` would be ambiguous.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* export function sum(values: readonly number[]): number;
|
|
17
|
+
* export function sum(...values: number[]): number;
|
|
18
|
+
* export function sum(...args: VariadicArgs<number>): number {
|
|
19
|
+
* const values = fromVariadicArgs(args);
|
|
20
|
+
* // …
|
|
21
|
+
* }
|
|
22
|
+
* ```;
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Rest parameter type for a function overloaded to accept an array or loose
|
|
26
|
+
* values.
|
|
27
|
+
*
|
|
28
|
+
* @template T The element type. Must not itself be an array type: the two
|
|
29
|
+
* shapes are told apart by looking at the first argument, so
|
|
30
|
+
* `VariadicArgs<number[]>` would be ambiguous.
|
|
31
|
+
*/
|
|
32
|
+
export type VariadicArgs<T> = [readonly T[]] | T[];
|
|
33
|
+
/**
|
|
34
|
+
* Reduces either accepted argument shape to a single array.
|
|
35
|
+
*
|
|
36
|
+
* @param args The raw rest arguments.
|
|
37
|
+
* @returns The values. The array passed by the caller is returned as-is, not
|
|
38
|
+
* copied, so a function that reorders its input must take its own copy.
|
|
39
|
+
*/
|
|
40
|
+
export declare function fromVariadicArgs<T>(args: VariadicArgs<T>): readonly T[];
|
|
41
|
+
//# sourceMappingURL=variadic-args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variadic-args.d.ts","sourceRoot":"","sources":["../../src/function/variadic-args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,CAIvE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Support for functions that accept either a single array or the values
|
|
3
|
+
* themselves.
|
|
4
|
+
*
|
|
5
|
+
* The variadic form reads well for a handful of literals — `mean(1, 2, 3)` —
|
|
6
|
+
* but it is unusable on real data: spreading builds a fresh argument list, and
|
|
7
|
+
* V8 throws `RangeError` somewhere past 100 000 arguments. Offering both shapes
|
|
8
|
+
* costs one overload and one call to {@link fromVariadicArgs}.
|
|
9
|
+
*
|
|
10
|
+
* It only works for functions that accept primitive values or objects that are
|
|
11
|
+
* not themselves arrays. The two shapes are distinguished by looking at the
|
|
12
|
+
* first argument, so `VariadicArgs<[]>` would be ambiguous.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* export function sum(values: readonly number[]): number;
|
|
17
|
+
* export function sum(...values: number[]): number;
|
|
18
|
+
* export function sum(...args: VariadicArgs<number>): number {
|
|
19
|
+
* const values = fromVariadicArgs(args);
|
|
20
|
+
* // …
|
|
21
|
+
* }
|
|
22
|
+
* ```;
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Reduces either accepted argument shape to a single array.
|
|
26
|
+
*
|
|
27
|
+
* @param args The raw rest arguments.
|
|
28
|
+
* @returns The values. The array passed by the caller is returned as-is, not
|
|
29
|
+
* copied, so a function that reorders its input must take its own copy.
|
|
30
|
+
*/
|
|
31
|
+
export function fromVariadicArgs(args) {
|
|
32
|
+
return args.length === 1 && Array.isArray(args[0])
|
|
33
|
+
? args[0]
|
|
34
|
+
: args;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=variadic-args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variadic-args.js","sourceRoot":"","sources":["../../src/function/variadic-args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAYH;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAI,IAAqB;IACxD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjD,CAAC,CAAE,IAAI,CAAC,CAAC,CAAkB;QAC3B,CAAC,CAAE,IAAY,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MaybeAsyncPredicate } from "../types/callable.js";
|
|
2
|
+
export type WaitForOptions = {
|
|
3
|
+
signal?: AbortSignal | null;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const WAIT_FOR_DEFAULT_OPTIONS: Required<WaitForOptions>;
|
|
7
|
+
/**
|
|
8
|
+
* Waits until the provided condition function returns true.
|
|
9
|
+
*
|
|
10
|
+
* The condition function can be synchronous or asynchronous (returning a
|
|
11
|
+
* Promise). The function checks the condition at regular intervals specified by
|
|
12
|
+
* `intervalMs`.
|
|
13
|
+
*
|
|
14
|
+
* Note: This function shouldn't be used inplace of the `vi.waitFor` function
|
|
15
|
+
* from Vitest. This function is meant to be used in non-test code.
|
|
16
|
+
*
|
|
17
|
+
* @param predicate A function that returns a boolean or a Promise that resolves
|
|
18
|
+
* to a boolean.
|
|
19
|
+
* @param options Options for configuring the wait behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function waitFor(predicate: MaybeAsyncPredicate, options?: WaitForOptions): Promise<void>;
|
|
22
|
+
//# sourceMappingURL=wait-for.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for.d.ts","sourceRoot":"","sources":["../../src/function/wait-for.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG;IAE5B,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAG5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,cAAc,CAG7D,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAsB,OAAO,CAC5B,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defaults } from "../object/defaults.js";
|
|
2
|
+
import { sleep } from "../time/sleep.js";
|
|
3
|
+
export const WAIT_FOR_DEFAULT_OPTIONS = {
|
|
4
|
+
signal: null,
|
|
5
|
+
intervalMs: 50,
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Waits until the provided condition function returns true.
|
|
9
|
+
*
|
|
10
|
+
* The condition function can be synchronous or asynchronous (returning a
|
|
11
|
+
* Promise). The function checks the condition at regular intervals specified by
|
|
12
|
+
* `intervalMs`.
|
|
13
|
+
*
|
|
14
|
+
* Note: This function shouldn't be used inplace of the `vi.waitFor` function
|
|
15
|
+
* from Vitest. This function is meant to be used in non-test code.
|
|
16
|
+
*
|
|
17
|
+
* @param predicate A function that returns a boolean or a Promise that resolves
|
|
18
|
+
* to a boolean.
|
|
19
|
+
* @param options Options for configuring the wait behavior.
|
|
20
|
+
*/
|
|
21
|
+
export async function waitFor(predicate, options) {
|
|
22
|
+
const effectiveOptions = defaults(options, WAIT_FOR_DEFAULT_OPTIONS);
|
|
23
|
+
while (!(await predicate())) {
|
|
24
|
+
await sleep(effectiveOptions.intervalMs, effectiveOptions.signal);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=wait-for.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for.js","sourceRoot":"","sources":["../../src/function/wait-for.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAWzC,MAAM,CAAC,MAAM,wBAAwB,GAA6B;IACjE,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,EAAE;CACd,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC5B,SAA8B,EAC9B,OAAwB;IAExB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC,CAAC;IAErE,OAAO,CAAC,CAAC,MAAM,SAAS,EAAE,CAAC,EAAE,CAAC;QAC7B,MAAM,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAggregateError } from "../types/error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Test if value is AggregateError-like (has name, message and errors
|
|
4
|
+
* properties)
|
|
5
|
+
*/
|
|
6
|
+
export declare function isAggregateErrorLike(value: unknown): value is IAggregateError;
|
|
7
|
+
//# sourceMappingURL=is-aggregate-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-aggregate-error.d.ts","sourceRoot":"","sources":["../../src/guards/is-aggregate-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE7E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isErrorLike } from "./is-error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Test if value is AggregateError-like (has name, message and errors
|
|
4
|
+
* properties)
|
|
5
|
+
*/
|
|
6
|
+
export function isAggregateErrorLike(value) {
|
|
7
|
+
return isErrorLike(value) && "errors" in value;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=is-aggregate-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-aggregate-error.js","sourceRoot":"","sources":["../../src/guards/is-aggregate-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IAClD,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,QAAQ,IAAI,KAAK,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a value is an `ArrayBuffer`.
|
|
3
|
+
*
|
|
4
|
+
* A `SharedArrayBuffer` does not pass — the two are distinct types with
|
|
5
|
+
* distinct ownership semantics. Use `isSharedArrayBuffer` for that one.
|
|
6
|
+
*
|
|
7
|
+
* Realm-bound: an `ArrayBuffer` built in another realm (worker, iframe, vm
|
|
8
|
+
* context) is not recognised.
|
|
9
|
+
*
|
|
10
|
+
* @param value The value to check
|
|
11
|
+
* @returns True if the value is an `ArrayBuffer`
|
|
12
|
+
*/
|
|
13
|
+
export declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
|
|
14
|
+
//# sourceMappingURL=is-array-buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-array-buffer.d.ts","sourceRoot":"","sources":["../../src/guards/is-array-buffer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a value is an `ArrayBuffer`.
|
|
3
|
+
*
|
|
4
|
+
* A `SharedArrayBuffer` does not pass — the two are distinct types with
|
|
5
|
+
* distinct ownership semantics. Use `isSharedArrayBuffer` for that one.
|
|
6
|
+
*
|
|
7
|
+
* Realm-bound: an `ArrayBuffer` built in another realm (worker, iframe, vm
|
|
8
|
+
* context) is not recognised.
|
|
9
|
+
*
|
|
10
|
+
* @param value The value to check
|
|
11
|
+
* @returns True if the value is an `ArrayBuffer`
|
|
12
|
+
*/
|
|
13
|
+
export function isArrayBuffer(value) {
|
|
14
|
+
return value instanceof ArrayBuffer;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=is-array-buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-array-buffer.js","sourceRoot":"","sources":["../../src/guards/is-array-buffer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC3C,OAAO,KAAK,YAAY,WAAW,CAAC;AACrC,CAAC"}
|