@mainsail/utils 0.0.1-evm.5 → 0.0.1-evm.50
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/distribution/assert.d.ts +14 -0
- package/distribution/assert.d.ts.map +1 -0
- package/distribution/assert.js +18 -0
- package/distribution/assert.js.map +1 -0
- package/distribution/byte-buffer.d.ts +0 -1
- package/distribution/byte-buffer.d.ts.map +1 -1
- package/distribution/byte-buffer.js +37 -51
- package/distribution/byte-buffer.js.map +1 -1
- package/distribution/chunk.d.ts.map +1 -1
- package/distribution/clone-deep.d.ts.map +1 -1
- package/distribution/clone-deep.js +2 -2
- package/distribution/clone-deep.js.map +1 -1
- package/distribution/dot-env.d.ts +1 -1
- package/distribution/dot-env.d.ts.map +1 -1
- package/distribution/dot-env.js.map +1 -1
- package/distribution/ensure-error.d.ts +2 -0
- package/distribution/ensure-error.d.ts.map +1 -0
- package/distribution/ensure-error.js +21 -0
- package/distribution/ensure-error.js.map +1 -0
- package/distribution/expand-tilde.d.ts.map +1 -1
- package/distribution/format-ecdsa-signature.d.ts +2 -0
- package/distribution/format-ecdsa-signature.d.ts.map +1 -0
- package/distribution/format-ecdsa-signature.js +2 -0
- package/distribution/format-ecdsa-signature.js.map +1 -0
- package/distribution/get-path-segments.d.ts.map +1 -1
- package/distribution/get.d.ts.map +1 -1
- package/distribution/group-by.d.ts +2 -2
- package/distribution/group-by.d.ts.map +1 -1
- package/distribution/group-by.js +4 -4
- package/distribution/group-by.js.map +1 -1
- package/distribution/has.d.ts.map +1 -1
- package/distribution/http.d.ts +8 -8
- package/distribution/http.d.ts.map +1 -1
- package/distribution/http.js +28 -10
- package/distribution/http.js.map +1 -1
- package/distribution/index.d.ts +11 -159
- package/distribution/index.d.ts.map +1 -1
- package/distribution/index.js +11 -159
- package/distribution/index.js.map +1 -1
- package/distribution/internal/index.d.ts +0 -1
- package/distribution/internal/index.d.ts.map +1 -1
- package/distribution/internal/index.js +0 -1
- package/distribution/internal/index.js.map +1 -1
- package/distribution/internal/types.d.ts +2 -2
- package/distribution/internal/types.d.ts.map +1 -1
- package/distribution/ip-address.d.ts +5 -0
- package/distribution/ip-address.d.ts.map +1 -0
- package/distribution/ip-address.js +18 -0
- package/distribution/ip-address.js.map +1 -0
- package/distribution/is-array.d.ts.map +1 -1
- package/distribution/is-blacklisted.d.ts +2 -0
- package/distribution/is-blacklisted.d.ts.map +1 -0
- package/distribution/is-blacklisted.js +17 -0
- package/distribution/is-blacklisted.js.map +1 -0
- package/distribution/is-empty.d.ts +1 -1
- package/distribution/is-empty.d.ts.map +1 -1
- package/distribution/is-empty.js +7 -4
- package/distribution/is-empty.js.map +1 -1
- package/distribution/is-enumerable.d.ts.map +1 -1
- package/distribution/is-object.d.ts.map +1 -1
- package/distribution/is-string.d.ts.map +1 -1
- package/distribution/is-whitelisted.d.ts +2 -0
- package/distribution/is-whitelisted.d.ts.map +1 -0
- package/distribution/is-whitelisted.js +17 -0
- package/distribution/is-whitelisted.js.map +1 -0
- package/distribution/lock.d.ts +6 -0
- package/distribution/lock.d.ts.map +1 -0
- package/distribution/lock.js +45 -0
- package/distribution/lock.js.map +1 -0
- package/distribution/map-array.d.ts +1 -2
- package/distribution/map-array.d.ts.map +1 -1
- package/distribution/map-array.js.map +1 -1
- package/distribution/map-object.d.ts +1 -2
- package/distribution/map-object.d.ts.map +1 -1
- package/distribution/map-object.js.map +1 -1
- package/distribution/map.d.ts +1 -2
- package/distribution/map.d.ts.map +1 -1
- package/distribution/map.js +7 -1
- package/distribution/map.js.map +1 -1
- package/distribution/min-by.d.ts +2 -2
- package/distribution/min-by.d.ts.map +1 -1
- package/distribution/min-by.js.map +1 -1
- package/distribution/order-by.d.ts +2 -2
- package/distribution/order-by.d.ts.map +1 -1
- package/distribution/order-by.js +11 -12
- package/distribution/order-by.js.map +1 -1
- package/distribution/pluralize.d.ts.map +1 -1
- package/distribution/pretty-bytes.d.ts.map +1 -1
- package/distribution/pretty-time.d.ts.map +1 -1
- package/distribution/random-number.d.ts.map +1 -1
- package/distribution/semver.d.ts.map +1 -1
- package/distribution/semver.js +5 -5
- package/distribution/semver.js.map +1 -1
- package/distribution/set-timeout-async.d.ts +2 -0
- package/distribution/set-timeout-async.d.ts.map +1 -0
- package/distribution/set-timeout-async.js +6 -0
- package/distribution/set-timeout-async.js.map +1 -0
- package/distribution/set.d.ts.map +1 -1
- package/distribution/set.js +1 -0
- package/distribution/set.js.map +1 -1
- package/distribution/shuffle.d.ts.map +1 -1
- package/distribution/shuffle.js +5 -7
- package/distribution/shuffle.js.map +1 -1
- package/distribution/sleep.d.ts +1 -2
- package/distribution/sleep.d.ts.map +1 -1
- package/distribution/slice.d.ts.map +1 -1
- package/distribution/slice.js +1 -1
- package/distribution/slice.js.map +1 -1
- package/distribution/string-case.d.ts +3 -0
- package/distribution/string-case.d.ts.map +1 -0
- package/distribution/string-case.js +51 -0
- package/distribution/string-case.js.map +1 -0
- package/distribution/take.d.ts.map +1 -1
- package/distribution/unset.d.ts.map +1 -1
- package/distribution/validator-set-pack.d.ts.map +1 -1
- package/distribution/validator-set-pack.js +13 -3
- package/distribution/validator-set-pack.js.map +1 -1
- package/package.json +15 -23
- package/distribution/assign.d.ts +0 -2
- package/distribution/assign.d.ts.map +0 -1
- package/distribution/assign.js +0 -10
- package/distribution/assign.js.map +0 -1
- package/distribution/at.d.ts +0 -2
- package/distribution/at.d.ts.map +0 -1
- package/distribution/at.js +0 -4
- package/distribution/at.js.map +0 -1
- package/distribution/base64.d.ts +0 -5
- package/distribution/base64.d.ts.map +0 -1
- package/distribution/base64.js +0 -4
- package/distribution/base64.js.map +0 -1
- package/distribution/big-number.d.ts +0 -30
- package/distribution/big-number.d.ts.map +0 -1
- package/distribution/big-number.js +0 -77
- package/distribution/big-number.js.map +0 -1
- package/distribution/binary.d.ts +0 -5
- package/distribution/binary.d.ts.map +0 -1
- package/distribution/binary.js +0 -10
- package/distribution/binary.js.map +0 -1
- package/distribution/camel-case.d.ts +0 -2
- package/distribution/camel-case.d.ts.map +0 -1
- package/distribution/camel-case.js +0 -4
- package/distribution/camel-case.js.map +0 -1
- package/distribution/capped-map.d.ts +0 -17
- package/distribution/capped-map.d.ts.map +0 -1
- package/distribution/capped-map.js +0 -64
- package/distribution/capped-map.js.map +0 -1
- package/distribution/capped-set.d.ts +0 -7
- package/distribution/capped-set.d.ts.map +0 -1
- package/distribution/capped-set.js +0 -32
- package/distribution/capped-set.js.map +0 -1
- package/distribution/cast-array.d.ts +0 -2
- package/distribution/cast-array.d.ts.map +0 -1
- package/distribution/cast-array.js +0 -21
- package/distribution/cast-array.js.map +0 -1
- package/distribution/chars.d.ts +0 -2
- package/distribution/chars.d.ts.map +0 -1
- package/distribution/chars.js +0 -2
- package/distribution/chars.js.map +0 -1
- package/distribution/clone-array.d.ts +0 -2
- package/distribution/clone-array.d.ts.map +0 -1
- package/distribution/clone-array.js +0 -8
- package/distribution/clone-array.js.map +0 -1
- package/distribution/clone-object.d.ts +0 -2
- package/distribution/clone-object.d.ts.map +0 -1
- package/distribution/clone-object.js +0 -9
- package/distribution/clone-object.js.map +0 -1
- package/distribution/clone.d.ts +0 -2
- package/distribution/clone.d.ts.map +0 -1
- package/distribution/clone.js +0 -5
- package/distribution/clone.js.map +0 -1
- package/distribution/collection.d.ts +0 -20
- package/distribution/collection.d.ts.map +0 -1
- package/distribution/collection.js +0 -79
- package/distribution/collection.js.map +0 -1
- package/distribution/concat.d.ts +0 -2
- package/distribution/concat.d.ts.map +0 -1
- package/distribution/concat.js +0 -17
- package/distribution/concat.js.map +0 -1
- package/distribution/constant-case.d.ts +0 -2
- package/distribution/constant-case.d.ts.map +0 -1
- package/distribution/constant-case.js +0 -3
- package/distribution/constant-case.js.map +0 -1
- package/distribution/dot-case.d.ts +0 -2
- package/distribution/dot-case.d.ts.map +0 -1
- package/distribution/dot-case.js +0 -3
- package/distribution/dot-case.js.map +0 -1
- package/distribution/every.d.ts +0 -3
- package/distribution/every.d.ts.map +0 -1
- package/distribution/every.js +0 -9
- package/distribution/every.js.map +0 -1
- package/distribution/extension.d.ts +0 -2
- package/distribution/extension.d.ts.map +0 -1
- package/distribution/extension.js +0 -3
- package/distribution/extension.js.map +0 -1
- package/distribution/fill.d.ts +0 -2
- package/distribution/fill.d.ts.map +0 -1
- package/distribution/fill.js +0 -14
- package/distribution/fill.js.map +0 -1
- package/distribution/filter-array.d.ts +0 -3
- package/distribution/filter-array.d.ts.map +0 -1
- package/distribution/filter-array.js +0 -10
- package/distribution/filter-array.js.map +0 -1
- package/distribution/filter-object.d.ts +0 -3
- package/distribution/filter-object.d.ts.map +0 -1
- package/distribution/filter-object.js +0 -13
- package/distribution/filter-object.js.map +0 -1
- package/distribution/filter.d.ts +0 -3
- package/distribution/filter.d.ts.map +0 -1
- package/distribution/filter.js +0 -5
- package/distribution/filter.js.map +0 -1
- package/distribution/find-index.d.ts +0 -3
- package/distribution/find-index.d.ts.map +0 -1
- package/distribution/find-index.js +0 -9
- package/distribution/find-index.js.map +0 -1
- package/distribution/find-key.d.ts +0 -3
- package/distribution/find-key.d.ts.map +0 -1
- package/distribution/find-key.js +0 -3
- package/distribution/find-key.js.map +0 -1
- package/distribution/find.d.ts +0 -3
- package/distribution/find.d.ts.map +0 -1
- package/distribution/find.js +0 -10
- package/distribution/find.js.map +0 -1
- package/distribution/first-map-entry.d.ts +0 -2
- package/distribution/first-map-entry.d.ts.map +0 -1
- package/distribution/first-map-entry.js +0 -2
- package/distribution/first-map-entry.js.map +0 -1
- package/distribution/first-map-key.d.ts +0 -2
- package/distribution/first-map-key.d.ts.map +0 -1
- package/distribution/first-map-key.js +0 -3
- package/distribution/first-map-key.js.map +0 -1
- package/distribution/first-map-value.d.ts +0 -2
- package/distribution/first-map-value.d.ts.map +0 -1
- package/distribution/first-map-value.js +0 -3
- package/distribution/first-map-value.js.map +0 -1
- package/distribution/flatten.d.ts +0 -2
- package/distribution/flatten.d.ts.map +0 -1
- package/distribution/flatten.js +0 -8
- package/distribution/flatten.js.map +0 -1
- package/distribution/format-number.d.ts +0 -2
- package/distribution/format-number.d.ts.map +0 -1
- package/distribution/format-number.js +0 -2
- package/distribution/format-number.js.map +0 -1
- package/distribution/format-string.d.ts +0 -2
- package/distribution/format-string.d.ts.map +0 -1
- package/distribution/format-string.js +0 -9
- package/distribution/format-string.js.map +0 -1
- package/distribution/get-type.d.ts +0 -2
- package/distribution/get-type.d.ts.map +0 -1
- package/distribution/get-type.js +0 -2
- package/distribution/get-type.js.map +0 -1
- package/distribution/has-property.d.ts +0 -2
- package/distribution/has-property.d.ts.map +0 -1
- package/distribution/has-property.js +0 -2
- package/distribution/has-property.js.map +0 -1
- package/distribution/has-some-property.d.ts +0 -2
- package/distribution/has-some-property.d.ts.map +0 -1
- package/distribution/has-some-property.js +0 -4
- package/distribution/has-some-property.js.map +0 -1
- package/distribution/hash-string.d.ts +0 -2
- package/distribution/hash-string.d.ts.map +0 -1
- package/distribution/hash-string.js +0 -9
- package/distribution/hash-string.js.map +0 -1
- package/distribution/head.d.ts +0 -2
- package/distribution/head.d.ts.map +0 -1
- package/distribution/head.js +0 -2
- package/distribution/head.js.map +0 -1
- package/distribution/header-case.d.ts +0 -2
- package/distribution/header-case.d.ts.map +0 -1
- package/distribution/header-case.js +0 -4
- package/distribution/header-case.js.map +0 -1
- package/distribution/hex.d.ts +0 -5
- package/distribution/hex.d.ts.map +0 -1
- package/distribution/hex.js +0 -4
- package/distribution/hex.js.map +0 -1
- package/distribution/immutable/index.d.ts +0 -4
- package/distribution/immutable/index.d.ts.map +0 -1
- package/distribution/immutable/index.js +0 -4
- package/distribution/immutable/index.js.map +0 -1
- package/distribution/immutable/order-by.d.ts +0 -3
- package/distribution/immutable/order-by.d.ts.map +0 -1
- package/distribution/immutable/order-by.js +0 -3
- package/distribution/immutable/order-by.js.map +0 -1
- package/distribution/immutable/sort-by-desc.d.ts +0 -3
- package/distribution/immutable/sort-by-desc.d.ts.map +0 -1
- package/distribution/immutable/sort-by-desc.js +0 -3
- package/distribution/immutable/sort-by-desc.js.map +0 -1
- package/distribution/immutable/sort-by.d.ts +0 -3
- package/distribution/immutable/sort-by.d.ts.map +0 -1
- package/distribution/immutable/sort-by.js +0 -3
- package/distribution/immutable/sort-by.js.map +0 -1
- package/distribution/includes.d.ts +0 -2
- package/distribution/includes.d.ts.map +0 -1
- package/distribution/includes.js +0 -16
- package/distribution/includes.js.map +0 -1
- package/distribution/index-of.d.ts +0 -2
- package/distribution/index-of.d.ts.map +0 -1
- package/distribution/index-of.js +0 -20
- package/distribution/index-of.js.map +0 -1
- package/distribution/internal/compound-words.d.ts +0 -2
- package/distribution/internal/compound-words.d.ts.map +0 -1
- package/distribution/internal/compound-words.js +0 -11
- package/distribution/internal/compound-words.js.map +0 -1
- package/distribution/intersection.d.ts +0 -2
- package/distribution/intersection.d.ts.map +0 -1
- package/distribution/intersection.js +0 -13
- package/distribution/intersection.js.map +0 -1
- package/distribution/is-arguments.d.ts +0 -2
- package/distribution/is-arguments.d.ts.map +0 -1
- package/distribution/is-arguments.js +0 -3
- package/distribution/is-arguments.js.map +0 -1
- package/distribution/is-array-of-type.d.ts +0 -2
- package/distribution/is-array-of-type.d.ts.map +0 -1
- package/distribution/is-array-of-type.js +0 -3
- package/distribution/is-array-of-type.js.map +0 -1
- package/distribution/is-async-function.d.ts +0 -2
- package/distribution/is-async-function.d.ts.map +0 -1
- package/distribution/is-async-function.js +0 -3
- package/distribution/is-async-function.js.map +0 -1
- package/distribution/is-between.d.ts +0 -2
- package/distribution/is-between.d.ts.map +0 -1
- package/distribution/is-between.js +0 -2
- package/distribution/is-between.js.map +0 -1
- package/distribution/is-bigint.d.ts +0 -2
- package/distribution/is-bigint.d.ts.map +0 -1
- package/distribution/is-bigint.js +0 -2
- package/distribution/is-bigint.js.map +0 -1
- package/distribution/is-boolean-array.d.ts +0 -2
- package/distribution/is-boolean-array.d.ts.map +0 -1
- package/distribution/is-boolean-array.js +0 -3
- package/distribution/is-boolean-array.js.map +0 -1
- package/distribution/is-boolean.d.ts +0 -2
- package/distribution/is-boolean.d.ts.map +0 -1
- package/distribution/is-boolean.js +0 -2
- package/distribution/is-boolean.js.map +0 -1
- package/distribution/is-buffer.d.ts +0 -2
- package/distribution/is-buffer.d.ts.map +0 -1
- package/distribution/is-buffer.js +0 -2
- package/distribution/is-buffer.js.map +0 -1
- package/distribution/is-constructor.d.ts +0 -2
- package/distribution/is-constructor.d.ts.map +0 -1
- package/distribution/is-constructor.js +0 -2
- package/distribution/is-constructor.js.map +0 -1
- package/distribution/is-date.d.ts +0 -2
- package/distribution/is-date.d.ts.map +0 -1
- package/distribution/is-date.js +0 -2
- package/distribution/is-date.js.map +0 -1
- package/distribution/is-empty-array.d.ts +0 -2
- package/distribution/is-empty-array.d.ts.map +0 -1
- package/distribution/is-empty-array.js +0 -3
- package/distribution/is-empty-array.js.map +0 -1
- package/distribution/is-empty-map.d.ts +0 -2
- package/distribution/is-empty-map.d.ts.map +0 -1
- package/distribution/is-empty-map.js +0 -3
- package/distribution/is-empty-map.js.map +0 -1
- package/distribution/is-empty-object.d.ts +0 -2
- package/distribution/is-empty-object.d.ts.map +0 -1
- package/distribution/is-empty-object.js +0 -3
- package/distribution/is-empty-object.js.map +0 -1
- package/distribution/is-empty-set.d.ts +0 -2
- package/distribution/is-empty-set.d.ts.map +0 -1
- package/distribution/is-empty-set.js +0 -3
- package/distribution/is-empty-set.js.map +0 -1
- package/distribution/is-equal.d.ts +0 -3
- package/distribution/is-equal.d.ts.map +0 -1
- package/distribution/is-equal.js +0 -2
- package/distribution/is-equal.js.map +0 -1
- package/distribution/is-error.d.ts +0 -2
- package/distribution/is-error.d.ts.map +0 -1
- package/distribution/is-error.js +0 -2
- package/distribution/is-error.js.map +0 -1
- package/distribution/is-false.d.ts +0 -2
- package/distribution/is-false.d.ts.map +0 -1
- package/distribution/is-false.js +0 -2
- package/distribution/is-false.js.map +0 -1
- package/distribution/is-function.d.ts +0 -2
- package/distribution/is-function.d.ts.map +0 -1
- package/distribution/is-function.js +0 -4
- package/distribution/is-function.js.map +0 -1
- package/distribution/is-git.d.ts +0 -2
- package/distribution/is-git.d.ts.map +0 -1
- package/distribution/is-git.js +0 -2
- package/distribution/is-git.js.map +0 -1
- package/distribution/is-greater-than-or-equal.d.ts +0 -2
- package/distribution/is-greater-than-or-equal.d.ts.map +0 -1
- package/distribution/is-greater-than-or-equal.js +0 -2
- package/distribution/is-greater-than-or-equal.js.map +0 -1
- package/distribution/is-greater-than.d.ts +0 -2
- package/distribution/is-greater-than.d.ts.map +0 -1
- package/distribution/is-greater-than.js +0 -2
- package/distribution/is-greater-than.js.map +0 -1
- package/distribution/is-less-than-or-equal.d.ts +0 -2
- package/distribution/is-less-than-or-equal.d.ts.map +0 -1
- package/distribution/is-less-than-or-equal.js +0 -2
- package/distribution/is-less-than-or-equal.js.map +0 -1
- package/distribution/is-less-than.d.ts +0 -2
- package/distribution/is-less-than.d.ts.map +0 -1
- package/distribution/is-less-than.js +0 -2
- package/distribution/is-less-than.js.map +0 -1
- package/distribution/is-map.d.ts +0 -2
- package/distribution/is-map.d.ts.map +0 -1
- package/distribution/is-map.js +0 -2
- package/distribution/is-map.js.map +0 -1
- package/distribution/is-match.d.ts +0 -2
- package/distribution/is-match.d.ts.map +0 -1
- package/distribution/is-match.js +0 -2
- package/distribution/is-match.js.map +0 -1
- package/distribution/is-negative-zero.d.ts +0 -2
- package/distribution/is-negative-zero.d.ts.map +0 -1
- package/distribution/is-negative-zero.js +0 -2
- package/distribution/is-negative-zero.js.map +0 -1
- package/distribution/is-negative.d.ts +0 -2
- package/distribution/is-negative.d.ts.map +0 -1
- package/distribution/is-negative.js +0 -3
- package/distribution/is-negative.js.map +0 -1
- package/distribution/is-nil.d.ts +0 -2
- package/distribution/is-nil.d.ts.map +0 -1
- package/distribution/is-nil.js +0 -3
- package/distribution/is-nil.js.map +0 -1
- package/distribution/is-not-between.d.ts +0 -2
- package/distribution/is-not-between.d.ts.map +0 -1
- package/distribution/is-not-between.js +0 -3
- package/distribution/is-not-between.js.map +0 -1
- package/distribution/is-not-equal.d.ts +0 -2
- package/distribution/is-not-equal.d.ts.map +0 -1
- package/distribution/is-not-equal.js +0 -3
- package/distribution/is-not-equal.js.map +0 -1
- package/distribution/is-null.d.ts +0 -2
- package/distribution/is-null.d.ts.map +0 -1
- package/distribution/is-null.js +0 -2
- package/distribution/is-null.js.map +0 -1
- package/distribution/is-number-array.d.ts +0 -2
- package/distribution/is-number-array.d.ts.map +0 -1
- package/distribution/is-number-array.js +0 -3
- package/distribution/is-number-array.js.map +0 -1
- package/distribution/is-number.d.ts +0 -2
- package/distribution/is-number.d.ts.map +0 -1
- package/distribution/is-number.js +0 -2
- package/distribution/is-number.js.map +0 -1
- package/distribution/is-positive-zero.d.ts +0 -2
- package/distribution/is-positive-zero.d.ts.map +0 -1
- package/distribution/is-positive-zero.js +0 -2
- package/distribution/is-positive-zero.js.map +0 -1
- package/distribution/is-positive.d.ts +0 -2
- package/distribution/is-positive.d.ts.map +0 -1
- package/distribution/is-positive.js +0 -3
- package/distribution/is-positive.js.map +0 -1
- package/distribution/is-promise.d.ts +0 -2
- package/distribution/is-promise.d.ts.map +0 -1
- package/distribution/is-promise.js +0 -2
- package/distribution/is-promise.js.map +0 -1
- package/distribution/is-reg-exp.d.ts +0 -2
- package/distribution/is-reg-exp.d.ts.map +0 -1
- package/distribution/is-reg-exp.js +0 -2
- package/distribution/is-reg-exp.js.map +0 -1
- package/distribution/is-set.d.ts +0 -2
- package/distribution/is-set.d.ts.map +0 -1
- package/distribution/is-set.js +0 -2
- package/distribution/is-set.js.map +0 -1
- package/distribution/is-ssh.d.ts +0 -2
- package/distribution/is-ssh.d.ts.map +0 -1
- package/distribution/is-ssh.js +0 -10
- package/distribution/is-ssh.js.map +0 -1
- package/distribution/is-string-array.d.ts +0 -2
- package/distribution/is-string-array.d.ts.map +0 -1
- package/distribution/is-string-array.js +0 -3
- package/distribution/is-string-array.js.map +0 -1
- package/distribution/is-symbol.d.ts +0 -2
- package/distribution/is-symbol.d.ts.map +0 -1
- package/distribution/is-symbol.js +0 -2
- package/distribution/is-symbol.js.map +0 -1
- package/distribution/is-sync-function.d.ts +0 -2
- package/distribution/is-sync-function.d.ts.map +0 -1
- package/distribution/is-sync-function.js +0 -3
- package/distribution/is-sync-function.js.map +0 -1
- package/distribution/is-true.d.ts +0 -2
- package/distribution/is-true.d.ts.map +0 -1
- package/distribution/is-true.js +0 -2
- package/distribution/is-true.js.map +0 -1
- package/distribution/is-undefined.d.ts +0 -2
- package/distribution/is-undefined.d.ts.map +0 -1
- package/distribution/is-undefined.js +0 -2
- package/distribution/is-undefined.js.map +0 -1
- package/distribution/is-uri.d.ts +0 -2
- package/distribution/is-uri.d.ts.map +0 -1
- package/distribution/is-uri.js +0 -2
- package/distribution/is-uri.js.map +0 -1
- package/distribution/is-url.d.ts +0 -2
- package/distribution/is-url.d.ts.map +0 -1
- package/distribution/is-url.js +0 -10
- package/distribution/is-url.js.map +0 -1
- package/distribution/is-weak-map.d.ts +0 -2
- package/distribution/is-weak-map.d.ts.map +0 -1
- package/distribution/is-weak-map.js +0 -2
- package/distribution/is-weak-map.js.map +0 -1
- package/distribution/is-weak-set.d.ts +0 -2
- package/distribution/is-weak-set.d.ts.map +0 -1
- package/distribution/is-weak-set.js +0 -2
- package/distribution/is-weak-set.js.map +0 -1
- package/distribution/kebab-case.d.ts +0 -2
- package/distribution/kebab-case.d.ts.map +0 -1
- package/distribution/kebab-case.js +0 -3
- package/distribution/kebab-case.js.map +0 -1
- package/distribution/key-by.d.ts +0 -3
- package/distribution/key-by.d.ts.map +0 -1
- package/distribution/key-by.js +0 -5
- package/distribution/key-by.js.map +0 -1
- package/distribution/keys-in.d.ts +0 -2
- package/distribution/keys-in.d.ts.map +0 -1
- package/distribution/keys-in.js +0 -5
- package/distribution/keys-in.js.map +0 -1
- package/distribution/keys.d.ts +0 -2
- package/distribution/keys.d.ts.map +0 -1
- package/distribution/keys.js +0 -2
- package/distribution/keys.js.map +0 -1
- package/distribution/last-index-of.d.ts +0 -2
- package/distribution/last-index-of.d.ts.map +0 -1
- package/distribution/last-index-of.js +0 -17
- package/distribution/last-index-of.js.map +0 -1
- package/distribution/last-map-entry.d.ts +0 -2
- package/distribution/last-map-entry.d.ts.map +0 -1
- package/distribution/last-map-entry.js +0 -2
- package/distribution/last-map-entry.js.map +0 -1
- package/distribution/last-map-key.d.ts +0 -2
- package/distribution/last-map-key.d.ts.map +0 -1
- package/distribution/last-map-key.js +0 -3
- package/distribution/last-map-key.js.map +0 -1
- package/distribution/last-map-value.d.ts +0 -2
- package/distribution/last-map-value.d.ts.map +0 -1
- package/distribution/last-map-value.js +0 -3
- package/distribution/last-map-value.js.map +0 -1
- package/distribution/last.d.ts +0 -2
- package/distribution/last.d.ts.map +0 -1
- package/distribution/last.js +0 -3
- package/distribution/last.js.map +0 -1
- package/distribution/lower-case.d.ts +0 -2
- package/distribution/lower-case.d.ts.map +0 -1
- package/distribution/lower-case.js +0 -3
- package/distribution/lower-case.js.map +0 -1
- package/distribution/lower-first.d.ts +0 -2
- package/distribution/lower-first.d.ts.map +0 -1
- package/distribution/lower-first.js +0 -2
- package/distribution/lower-first.js.map +0 -1
- package/distribution/map-values.d.ts +0 -3
- package/distribution/map-values.d.ts.map +0 -1
- package/distribution/map-values.js +0 -9
- package/distribution/map-values.js.map +0 -1
- package/distribution/match.d.ts +0 -2
- package/distribution/match.d.ts.map +0 -1
- package/distribution/match.js +0 -9
- package/distribution/match.js.map +0 -1
- package/distribution/max-by.d.ts +0 -3
- package/distribution/max-by.d.ts.map +0 -1
- package/distribution/max-by.js +0 -14
- package/distribution/max-by.js.map +0 -1
- package/distribution/max.d.ts +0 -2
- package/distribution/max.d.ts.map +0 -1
- package/distribution/max.js +0 -8
- package/distribution/max.js.map +0 -1
- package/distribution/min.d.ts +0 -2
- package/distribution/min.d.ts.map +0 -1
- package/distribution/min.js +0 -8
- package/distribution/min.js.map +0 -1
- package/distribution/nsect.d.ts +0 -8
- package/distribution/nsect.d.ts.map +0 -1
- package/distribution/nsect.js +0 -92
- package/distribution/nsect.js.map +0 -1
- package/distribution/number-array.d.ts +0 -2
- package/distribution/number-array.d.ts.map +0 -1
- package/distribution/number-array.js +0 -2
- package/distribution/number-array.js.map +0 -1
- package/distribution/number-to-hex.d.ts +0 -2
- package/distribution/number-to-hex.d.ts.map +0 -1
- package/distribution/number-to-hex.js +0 -5
- package/distribution/number-to-hex.js.map +0 -1
- package/distribution/omit-by.d.ts +0 -3
- package/distribution/omit-by.d.ts.map +0 -1
- package/distribution/omit-by.js +0 -3
- package/distribution/omit-by.js.map +0 -1
- package/distribution/ordinal.d.ts +0 -2
- package/distribution/ordinal.d.ts.map +0 -1
- package/distribution/ordinal.js +0 -3
- package/distribution/ordinal.js.map +0 -1
- package/distribution/parse-git-url.d.ts +0 -8
- package/distribution/parse-git-url.d.ts.map +0 -1
- package/distribution/parse-git-url.js +0 -33
- package/distribution/parse-git-url.js.map +0 -1
- package/distribution/parse-uri.d.ts +0 -10
- package/distribution/parse-uri.d.ts.map +0 -1
- package/distribution/parse-uri.js +0 -15
- package/distribution/parse-uri.js.map +0 -1
- package/distribution/parse.d.ts +0 -2
- package/distribution/parse.d.ts.map +0 -1
- package/distribution/parse.js +0 -3
- package/distribution/parse.js.map +0 -1
- package/distribution/partition.d.ts +0 -3
- package/distribution/partition.d.ts.map +0 -1
- package/distribution/partition.js +0 -5
- package/distribution/partition.js.map +0 -1
- package/distribution/pascal-case.d.ts +0 -2
- package/distribution/pascal-case.d.ts.map +0 -1
- package/distribution/pascal-case.js +0 -4
- package/distribution/pascal-case.js.map +0 -1
- package/distribution/path-case.d.ts +0 -2
- package/distribution/path-case.d.ts.map +0 -1
- package/distribution/path-case.js +0 -3
- package/distribution/path-case.js.map +0 -1
- package/distribution/pick-by.d.ts +0 -3
- package/distribution/pick-by.d.ts.map +0 -1
- package/distribution/pick-by.js +0 -3
- package/distribution/pick-by.js.map +0 -1
- package/distribution/pick.d.ts +0 -2
- package/distribution/pick.d.ts.map +0 -1
- package/distribution/pick.js +0 -8
- package/distribution/pick.js.map +0 -1
- package/distribution/pluck.d.ts +0 -2
- package/distribution/pluck.d.ts.map +0 -1
- package/distribution/pluck.js +0 -11
- package/distribution/pluck.js.map +0 -1
- package/distribution/protocols.d.ts +0 -2
- package/distribution/protocols.d.ts.map +0 -1
- package/distribution/protocols.js +0 -5
- package/distribution/protocols.js.map +0 -1
- package/distribution/pull-all-by.d.ts +0 -3
- package/distribution/pull-all-by.d.ts.map +0 -1
- package/distribution/pull-all-by.js +0 -12
- package/distribution/pull-all-by.js.map +0 -1
- package/distribution/pull-all.d.ts +0 -2
- package/distribution/pull-all.d.ts.map +0 -1
- package/distribution/pull-all.js +0 -3
- package/distribution/pull-all.js.map +0 -1
- package/distribution/pull.d.ts +0 -2
- package/distribution/pull.d.ts.map +0 -1
- package/distribution/pull.js +0 -3
- package/distribution/pull.js.map +0 -1
- package/distribution/random-base64.d.ts +0 -2
- package/distribution/random-base64.d.ts.map +0 -1
- package/distribution/random-base64.js +0 -7
- package/distribution/random-base64.js.map +0 -1
- package/distribution/random-bits.d.ts +0 -3
- package/distribution/random-bits.d.ts.map +0 -1
- package/distribution/random-bits.js +0 -3
- package/distribution/random-bits.js.map +0 -1
- package/distribution/random-hex.d.ts +0 -2
- package/distribution/random-hex.d.ts.map +0 -1
- package/distribution/random-hex.js +0 -5
- package/distribution/random-hex.js.map +0 -1
- package/distribution/reduce-array.d.ts +0 -3
- package/distribution/reduce-array.d.ts.map +0 -1
- package/distribution/reduce-array.js +0 -8
- package/distribution/reduce-array.js.map +0 -1
- package/distribution/reduce-object.d.ts +0 -3
- package/distribution/reduce-object.d.ts.map +0 -1
- package/distribution/reduce-object.js +0 -9
- package/distribution/reduce-object.js.map +0 -1
- package/distribution/reduce-right-array.d.ts +0 -3
- package/distribution/reduce-right-array.d.ts.map +0 -1
- package/distribution/reduce-right-array.js +0 -8
- package/distribution/reduce-right-array.js.map +0 -1
- package/distribution/reduce-right-object.d.ts +0 -3
- package/distribution/reduce-right-object.d.ts.map +0 -1
- package/distribution/reduce-right-object.js +0 -10
- package/distribution/reduce-right-object.js.map +0 -1
- package/distribution/reduce-right.d.ts +0 -3
- package/distribution/reduce-right.d.ts.map +0 -1
- package/distribution/reduce-right.js +0 -7
- package/distribution/reduce-right.js.map +0 -1
- package/distribution/reduce.d.ts +0 -3
- package/distribution/reduce.d.ts.map +0 -1
- package/distribution/reduce.js +0 -5
- package/distribution/reduce.js.map +0 -1
- package/distribution/reject.d.ts +0 -3
- package/distribution/reject.d.ts.map +0 -1
- package/distribution/reject.js +0 -3
- package/distribution/reject.js.map +0 -1
- package/distribution/reverse.d.ts +0 -2
- package/distribution/reverse.d.ts.map +0 -1
- package/distribution/reverse.js +0 -2
- package/distribution/reverse.js.map +0 -1
- package/distribution/sample.d.ts +0 -2
- package/distribution/sample.d.ts.map +0 -1
- package/distribution/sample.js +0 -2
- package/distribution/sample.js.map +0 -1
- package/distribution/snake-case.d.ts +0 -2
- package/distribution/snake-case.d.ts.map +0 -1
- package/distribution/snake-case.js +0 -3
- package/distribution/snake-case.js.map +0 -1
- package/distribution/some.d.ts +0 -3
- package/distribution/some.d.ts.map +0 -1
- package/distribution/some.js +0 -9
- package/distribution/some.js.map +0 -1
- package/distribution/sort-by-desc.d.ts +0 -3
- package/distribution/sort-by-desc.d.ts.map +0 -1
- package/distribution/sort-by-desc.js +0 -3
- package/distribution/sort-by-desc.js.map +0 -1
- package/distribution/sort-by.d.ts +0 -3
- package/distribution/sort-by.d.ts.map +0 -1
- package/distribution/sort-by.js +0 -3
- package/distribution/sort-by.js.map +0 -1
- package/distribution/start-case.d.ts +0 -2
- package/distribution/start-case.d.ts.map +0 -1
- package/distribution/start-case.js +0 -4
- package/distribution/start-case.js.map +0 -1
- package/distribution/stringify.d.ts +0 -2
- package/distribution/stringify.d.ts.map +0 -1
- package/distribution/stringify.js +0 -9
- package/distribution/stringify.js.map +0 -1
- package/distribution/tail.d.ts +0 -2
- package/distribution/tail.d.ts.map +0 -1
- package/distribution/tail.js +0 -3
- package/distribution/tail.js.map +0 -1
- package/distribution/to-lower.d.ts +0 -2
- package/distribution/to-lower.d.ts.map +0 -1
- package/distribution/to-lower.js +0 -3
- package/distribution/to-lower.js.map +0 -1
- package/distribution/to-string.d.ts +0 -2
- package/distribution/to-string.d.ts.map +0 -1
- package/distribution/to-string.js +0 -9
- package/distribution/to-string.js.map +0 -1
- package/distribution/to-upper.d.ts +0 -2
- package/distribution/to-upper.d.ts.map +0 -1
- package/distribution/to-upper.js +0 -3
- package/distribution/to-upper.js.map +0 -1
- package/distribution/trim-trailing-slash.d.ts +0 -2
- package/distribution/trim-trailing-slash.d.ts.map +0 -1
- package/distribution/trim-trailing-slash.js +0 -2
- package/distribution/trim-trailing-slash.js.map +0 -1
- package/distribution/truncate.d.ts +0 -6
- package/distribution/truncate.d.ts.map +0 -1
- package/distribution/truncate.js +0 -28
- package/distribution/truncate.js.map +0 -1
- package/distribution/union-by.d.ts +0 -2
- package/distribution/union-by.d.ts.map +0 -1
- package/distribution/union-by.js +0 -7
- package/distribution/union-by.js.map +0 -1
- package/distribution/union.d.ts +0 -2
- package/distribution/union.d.ts.map +0 -1
- package/distribution/union.js +0 -4
- package/distribution/union.js.map +0 -1
- package/distribution/uniq-by.d.ts +0 -3
- package/distribution/uniq-by.d.ts.map +0 -1
- package/distribution/uniq-by.js +0 -14
- package/distribution/uniq-by.js.map +0 -1
- package/distribution/uniq.d.ts +0 -2
- package/distribution/uniq.d.ts.map +0 -1
- package/distribution/uniq.js +0 -12
- package/distribution/uniq.js.map +0 -1
- package/distribution/upper-case.d.ts +0 -2
- package/distribution/upper-case.d.ts.map +0 -1
- package/distribution/upper-case.js +0 -3
- package/distribution/upper-case.js.map +0 -1
- package/distribution/upper-first.d.ts +0 -2
- package/distribution/upper-first.d.ts.map +0 -1
- package/distribution/upper-first.js +0 -2
- package/distribution/upper-first.js.map +0 -1
- package/distribution/words.d.ts +0 -2
- package/distribution/words.d.ts.map +0 -1
- package/distribution/words.js +0 -2
- package/distribution/words.js.map +0 -1
- package/distribution/zip-object.d.ts +0 -2
- package/distribution/zip-object.d.ts.map +0 -1
- package/distribution/zip-object.js +0 -8
- package/distribution/zip-object.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Assert = {
|
|
2
|
+
array<T>(value: unknown): asserts value is Array<T>;
|
|
3
|
+
bigint(value: unknown): asserts value is bigint;
|
|
4
|
+
boolean(value: unknown): asserts value is boolean;
|
|
5
|
+
buffer(value: unknown): asserts value is Buffer;
|
|
6
|
+
defined<T>(value: undefined | null | T): asserts value is NonNullable<T>;
|
|
7
|
+
number(value: unknown): asserts value is number;
|
|
8
|
+
object(value: unknown): asserts value is Record<string, unknown>;
|
|
9
|
+
string(value: unknown): asserts value is string;
|
|
10
|
+
symbol(value: unknown): asserts value is symbol;
|
|
11
|
+
undefined(value: unknown): asserts value is undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const assert: Assert;
|
|
14
|
+
//# sourceMappingURL=assert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../source/assert.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,MAAM,GAAG;IACpB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;IAChD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;IAChD,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;IAChD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;IAChD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC;IAChD,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAapB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const assertType = (condition, description) => {
|
|
2
|
+
if (!condition) {
|
|
3
|
+
throw new Error(`Expected value which is "${description}".`);
|
|
4
|
+
}
|
|
5
|
+
};
|
|
6
|
+
export const assert = {
|
|
7
|
+
array: (value) => assertType(Array.isArray(value), "array"),
|
|
8
|
+
bigint: (value) => assertType(typeof value === "bigint", "bigint"),
|
|
9
|
+
boolean: (value) => assertType(typeof value === "boolean", "boolean"),
|
|
10
|
+
buffer: (value) => assertType(value instanceof Buffer, "buffer"),
|
|
11
|
+
defined: (value) => assertType(value !== undefined && value !== null, "non-null and non-undefined"),
|
|
12
|
+
number: (value) => assertType(typeof value === "number", "number"),
|
|
13
|
+
object: (value) => assertType(typeof value === "object", "object"),
|
|
14
|
+
string: (value) => assertType(typeof value === "string", "string"),
|
|
15
|
+
symbol: (value) => assertType(typeof value === "symbol", "symbol"),
|
|
16
|
+
undefined: (value) => assertType(value === undefined, "undefined"),
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=assert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../source/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AAS,EAAE,CAAC,KAAc,EAA8B,EAAE,CAAC,UAAU,CAAC,KAAK,KAAK,SAAS,EAAE,WAAW,CAAC;CACvG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"byte-buffer.d.ts","sourceRoot":"","sources":["../source/byte-buffer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"byte-buffer.d.ts","sourceRoot":"","sources":["../source/byte-buffer.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;;IAKtB,OAAO;WAIO,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;WAIlC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU;IAI7C,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,SAAS,IAAI,MAAM;IAMnB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,IAAI,MAAM;IAMpB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,IAAI,MAAM;IAMpB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAUhC,UAAU,IAAI,MAAM;IAMpB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQhC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAcjC,UAAU,IAAI,MAAM;IAMpB,WAAW,IAAI,MAAM;IAMrB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAgB/B,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAkBjC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI/B,YAAY,IAAI,MAAM;IAItB,kBAAkB,IAAI,MAAM;IAI5B,SAAS,IAAI,MAAM;IAInB,eAAe,IAAI,MAAM;IAIzB,IAAI,IAAI,IAAI;IAIZ,KAAK,IAAI,IAAI;IAIb,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ1B,QAAQ,IAAI,MAAM;CAGzB"}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _ByteBuffer_buffer, _ByteBuffer_offset, _ByteBuffer_marker;
|
|
13
|
-
import { ethers } from "ethers";
|
|
14
|
-
import { BigNumber } from "./big-number.js";
|
|
1
|
+
import { bytesToBigInt, padBytes, toBytes, trim } from "viem";
|
|
15
2
|
export class ByteBuffer {
|
|
3
|
+
#buffer;
|
|
4
|
+
#offset = 0;
|
|
5
|
+
#marker = 0;
|
|
16
6
|
constructor(buffer) {
|
|
17
|
-
|
|
18
|
-
_ByteBuffer_offset.set(this, 0);
|
|
19
|
-
_ByteBuffer_marker.set(this, 0);
|
|
20
|
-
__classPrivateFieldSet(this, _ByteBuffer_buffer, buffer, "f");
|
|
7
|
+
this.#buffer = buffer;
|
|
21
8
|
}
|
|
22
9
|
static fromSize(size) {
|
|
23
10
|
return new ByteBuffer(Buffer.alloc(size));
|
|
@@ -26,66 +13,66 @@ export class ByteBuffer {
|
|
|
26
13
|
return new ByteBuffer(buffer);
|
|
27
14
|
}
|
|
28
15
|
writeUint8(value) {
|
|
29
|
-
|
|
16
|
+
this.#offset = this.#buffer.writeUInt8(value, this.#offset);
|
|
30
17
|
}
|
|
31
18
|
readUint8() {
|
|
32
|
-
const value =
|
|
33
|
-
|
|
19
|
+
const value = this.#buffer.readUInt8(this.#offset);
|
|
20
|
+
this.#offset += 1;
|
|
34
21
|
return value;
|
|
35
22
|
}
|
|
36
23
|
writeUint16(value) {
|
|
37
|
-
|
|
24
|
+
this.#offset = this.#buffer.writeUInt16LE(value, this.#offset);
|
|
38
25
|
}
|
|
39
26
|
readUint16() {
|
|
40
|
-
const value =
|
|
41
|
-
|
|
27
|
+
const value = this.#buffer.readUInt16LE(this.#offset);
|
|
28
|
+
this.#offset += 2;
|
|
42
29
|
return value;
|
|
43
30
|
}
|
|
44
31
|
writeUint32(value) {
|
|
45
|
-
|
|
32
|
+
this.#offset = this.#buffer.writeUInt32LE(value, this.#offset);
|
|
46
33
|
}
|
|
47
34
|
readUint32() {
|
|
48
|
-
const value =
|
|
49
|
-
|
|
35
|
+
const value = this.#buffer.readUInt32LE(this.#offset);
|
|
36
|
+
this.#offset += 4;
|
|
50
37
|
return value;
|
|
51
38
|
}
|
|
52
39
|
writeUint48(value) {
|
|
53
40
|
if (value < 0 || value > 2 ** 48 - 1) {
|
|
54
41
|
throw new Error(`The value of "value" is out of range. It must be >= 0 and <= ${2 ** 48 - 1}. Received ${value}`);
|
|
55
42
|
}
|
|
56
|
-
|
|
43
|
+
this.#offset = this.#buffer.writeUIntLE(value, this.#offset, 6);
|
|
57
44
|
}
|
|
58
45
|
readUint48() {
|
|
59
|
-
const value =
|
|
60
|
-
|
|
46
|
+
const value = this.#buffer.readUIntLE(this.#offset, 6);
|
|
47
|
+
this.#offset += 6;
|
|
61
48
|
return value;
|
|
62
49
|
}
|
|
63
50
|
writeUint64(value) {
|
|
64
51
|
if (typeof value !== "bigint") {
|
|
65
52
|
value = BigInt(value);
|
|
66
53
|
}
|
|
67
|
-
|
|
54
|
+
this.#offset = this.#buffer.writeBigUInt64LE(value, this.#offset);
|
|
68
55
|
}
|
|
69
56
|
writeUint256(value) {
|
|
70
57
|
if (typeof value !== "bigint") {
|
|
71
58
|
value = BigInt(value);
|
|
72
59
|
}
|
|
73
|
-
const bytes =
|
|
60
|
+
const bytes = toBytes(value);
|
|
74
61
|
if (bytes.byteLength > 32) {
|
|
75
62
|
throw new Error("value must fit into uint256");
|
|
76
63
|
}
|
|
77
|
-
const padded =
|
|
78
|
-
this.writeBytes(Buffer.from(
|
|
64
|
+
const padded = padBytes(bytes, { size: 32 });
|
|
65
|
+
this.writeBytes(Buffer.from(padded));
|
|
79
66
|
}
|
|
80
67
|
readUint64() {
|
|
81
|
-
const value =
|
|
82
|
-
|
|
68
|
+
const value = this.#buffer.readBigUInt64LE(this.#offset);
|
|
69
|
+
this.#offset += 8;
|
|
83
70
|
return value;
|
|
84
71
|
}
|
|
85
72
|
readUint256() {
|
|
86
73
|
const bytes = this.readBytes(32);
|
|
87
|
-
const parsed =
|
|
88
|
-
return
|
|
74
|
+
const parsed = trim(bytes, { dir: "left" });
|
|
75
|
+
return bytesToBigInt(parsed);
|
|
89
76
|
}
|
|
90
77
|
writeBytes(value) {
|
|
91
78
|
if (value.length > this.getRemainderLength()) {
|
|
@@ -97,7 +84,7 @@ export class ByteBuffer {
|
|
|
97
84
|
(value.length - this.getRemainderLength()) +
|
|
98
85
|
")");
|
|
99
86
|
}
|
|
100
|
-
|
|
87
|
+
this.#offset += value.copy(this.#buffer, this.#offset);
|
|
101
88
|
}
|
|
102
89
|
readBytes(length) {
|
|
103
90
|
if (length > this.getRemainderLength()) {
|
|
@@ -109,40 +96,39 @@ export class ByteBuffer {
|
|
|
109
96
|
(length - this.getRemainderLength()) +
|
|
110
97
|
")");
|
|
111
98
|
}
|
|
112
|
-
const value =
|
|
113
|
-
|
|
99
|
+
const value = this.#buffer.subarray(this.#offset, this.#offset + length);
|
|
100
|
+
this.#offset += length;
|
|
114
101
|
return value;
|
|
115
102
|
}
|
|
116
103
|
readHex(length) {
|
|
117
104
|
return this.readBytes(length);
|
|
118
105
|
}
|
|
119
106
|
getRemainder() {
|
|
120
|
-
return
|
|
107
|
+
return this.#buffer.subarray(this.#offset);
|
|
121
108
|
}
|
|
122
109
|
getRemainderLength() {
|
|
123
|
-
return
|
|
110
|
+
return this.#buffer.length - this.#offset;
|
|
124
111
|
}
|
|
125
112
|
getResult() {
|
|
126
|
-
return
|
|
113
|
+
return this.#buffer.subarray(0, this.#offset);
|
|
127
114
|
}
|
|
128
115
|
getResultLength() {
|
|
129
|
-
return
|
|
116
|
+
return this.#offset;
|
|
130
117
|
}
|
|
131
118
|
mark() {
|
|
132
|
-
|
|
119
|
+
this.#marker = this.#offset;
|
|
133
120
|
}
|
|
134
121
|
reset() {
|
|
135
|
-
|
|
122
|
+
this.#offset = this.#marker ?? 0;
|
|
136
123
|
}
|
|
137
124
|
skip(length) {
|
|
138
|
-
if (length < -
|
|
125
|
+
if (length < -this.#offset || length > this.getRemainderLength()) {
|
|
139
126
|
throw new Error("Jump over buffer boundary.");
|
|
140
127
|
}
|
|
141
|
-
|
|
128
|
+
this.#offset += length;
|
|
142
129
|
}
|
|
143
130
|
toBuffer() {
|
|
144
|
-
return Buffer.from(
|
|
131
|
+
return Buffer.from(this.#buffer.buffer);
|
|
145
132
|
}
|
|
146
133
|
}
|
|
147
|
-
_ByteBuffer_buffer = new WeakMap(), _ByteBuffer_offset = new WeakMap(), _ByteBuffer_marker = new WeakMap();
|
|
148
134
|
//# sourceMappingURL=byte-buffer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"byte-buffer.js","sourceRoot":"","sources":["../source/byte-buffer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"byte-buffer.js","sourceRoot":"","sources":["../source/byte-buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM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I,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.d.ts","sourceRoot":"","sources":["../source/chunk.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"chunk.d.ts","sourceRoot":"","sources":["../source/chunk.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,WAAW,MAAM,KAAG,CAAC,EAAE,EAgB9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-deep.d.ts","sourceRoot":"","sources":["../source/clone-deep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"clone-deep.d.ts","sourceRoot":"","sources":["../source/clone-deep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,QAAQ,CAAC,KAAG,CAAiB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export const cloneDeep = (object) =>
|
|
1
|
+
import { copy } from "fast-copy";
|
|
2
|
+
export const cloneDeep = (object) => copy(object);
|
|
3
3
|
//# sourceMappingURL=clone-deep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-deep.js","sourceRoot":"","sources":["../source/clone-deep.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"clone-deep.js","sourceRoot":"","sources":["../source/clone-deep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAI,MAAS,EAAK,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot-env.d.ts","sourceRoot":"","sources":["../source/dot-env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dot-env.d.ts","sourceRoot":"","sources":["../source/dot-env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA+C3C,eAAO,MAAM,MAAM;sBAzCM,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;sBA2BlC,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;uBAEjC,MAAM,KAAG,MAAM;CAYY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot-env.js","sourceRoot":"","sources":["../source/dot-env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dot-env.js","sourceRoot":"","sources":["../source/dot-env.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,KAAK,GAAG,CAAC,QAAgB,EAA6B,EAAE;IAC7D,MAAM,MAAM,GAA8B,EAAE,CAAC;IAE7C,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,MAAM,OAAO,GAA2B,IAAI,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAErF,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,SAAS;QACV,CAAC;QAED,MAAM,GAAG,GAAW,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACtC,MAAM,KAAK,GAAW,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;QAElE,IAAI,GAAG,IAAI,KAAK,EAAE,CAAC;YAClB,IAAI,IAAI,MA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source/ensure-error.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAiB5C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Normalizes an unknown thrown value into an Error. `throw` accepts any value in
|
|
2
|
+
// JavaScript, so a caught value is never guaranteed to be an Error. This narrows
|
|
3
|
+
// it safely and never throws itself.
|
|
4
|
+
export const ensureError = (value) => {
|
|
5
|
+
if (value instanceof Error) {
|
|
6
|
+
return value;
|
|
7
|
+
}
|
|
8
|
+
if (typeof value === "string") {
|
|
9
|
+
return new Error(value);
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
// JSON.stringify returns undefined for symbols/functions/undefined, so fall
|
|
13
|
+
// back to String() for those. It also throws on bigint/circular references,
|
|
14
|
+
// which the catch handles.
|
|
15
|
+
return new Error(JSON.stringify(value) ?? String(value));
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return new Error(String(value));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ensure-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-error.js","sourceRoot":"","sources":["../source/ensure-error.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,iFAAiF;AACjF,qCAAqC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAS,EAAE;IACpD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED,IAAI,CAAC;QACJ,4EAA4E;QAC5E,4EAA4E;QAC5E,2BAA2B;QAC3B,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand-tilde.d.ts","sourceRoot":"","sources":["../source/expand-tilde.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"expand-tilde.d.ts","sourceRoot":"","sources":["../source/expand-tilde.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAY1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-ecdsa-signature.d.ts","sourceRoot":"","sources":["../source/format-ecdsa-signature.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-ecdsa-signature.js","sourceRoot":"","sources":["../source/format-ecdsa-signature.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAU,EAAE,CAC/E,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-path-segments.d.ts","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"get-path-segments.d.ts","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,KAAG,MAAM,EAIhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,GAAI,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,MAAM,EAAE,EAAE,eAAe,CAAC,KAAG,CAAC,GAAG,SAwBpF,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FunctionReturning } from "./internal/index.js";
|
|
2
|
-
export declare const groupBy: <T>(iterable: T[], iteratee: FunctionReturning) =>
|
|
1
|
+
import type { FunctionReturning } from "./internal/index.js";
|
|
2
|
+
export declare const groupBy: <T, K extends PropertyKey>(iterable: T[], iteratee: FunctionReturning<[T], K>) => Record<K, T[]>;
|
|
3
3
|
//# sourceMappingURL=group-by.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,CAAC,SAAS,WAAW,EAC/C,UAAU,CAAC,EAAE,EACb,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KACjC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAcf,CAAC"}
|
package/distribution/group-by.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export const groupBy = (iterable, iteratee) => {
|
|
2
2
|
const groupedValues = {};
|
|
3
3
|
for (const value of iterable) {
|
|
4
|
-
const
|
|
5
|
-
if (!groupedValues[
|
|
6
|
-
groupedValues[
|
|
4
|
+
const key = iteratee(value);
|
|
5
|
+
if (!groupedValues[key]) {
|
|
6
|
+
groupedValues[key] = [];
|
|
7
7
|
}
|
|
8
|
-
groupedValues[
|
|
8
|
+
groupedValues[key].push(value);
|
|
9
9
|
}
|
|
10
10
|
return groupedValues;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-by.js","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"group-by.js","sourceRoot":"","sources":["../source/group-by.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,CACtB,QAAa,EACb,QAAmC,EAClB,EAAE;IACnB,MAAM,aAAa,GAAG,EAAoB,CAAC;IAE3C,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE5B,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;QACzB,CAAC;QAED,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,aAAa,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has.d.ts","sourceRoot":"","sources":["../source/has.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"has.d.ts","sourceRoot":"","sources":["../source/has.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,GAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,MAAM,EAAE,KAAG,OAoB3D,CAAC"}
|
package/distribution/http.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import type { RequestOptions } from "http";
|
|
2
|
+
import type { JsonArray, JsonObject, Primitive } from "type-fest";
|
|
3
|
+
export type HttpBody = Record<string, Primitive | JsonObject | JsonArray>;
|
|
4
4
|
export type HttpOptions = RequestOptions & {
|
|
5
5
|
maxContentLength?: number;
|
|
6
|
-
body?:
|
|
6
|
+
body?: HttpBody;
|
|
7
7
|
};
|
|
8
|
-
export type HttpResponse = {
|
|
8
|
+
export type HttpResponse<T = unknown> = {
|
|
9
9
|
method: string | undefined;
|
|
10
10
|
statusCode: number | undefined;
|
|
11
11
|
statusMessage: string | undefined;
|
|
12
|
-
data:
|
|
12
|
+
data: T;
|
|
13
13
|
headers: string[];
|
|
14
14
|
};
|
|
15
15
|
export declare class HttpError extends Error {
|
|
@@ -17,10 +17,10 @@ export declare class HttpError extends Error {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const http: {
|
|
19
19
|
delete: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
|
|
20
|
-
get: (url: string, options?: HttpOptions) => Promise<HttpResponse
|
|
20
|
+
get: <T>(url: string, options?: HttpOptions) => Promise<HttpResponse<T>>;
|
|
21
21
|
head: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
|
|
22
22
|
patch: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
|
|
23
|
-
post: (url: string, options?: HttpOptions) => Promise<HttpResponse
|
|
23
|
+
post: <T>(url: string, options?: HttpOptions) => Promise<HttpResponse<T>>;
|
|
24
24
|
put: (url: string, options?: HttpOptions) => Promise<HttpResponse>;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../source/http.ts"],"names":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AC"}
|
package/distribution/http.js
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
1
|
-
import { globalAgent } from "http";
|
|
2
|
-
import { request } from "https";
|
|
3
|
-
import {
|
|
1
|
+
import { globalAgent as httpGlobalAgent, request as httpRequest } from "http";
|
|
2
|
+
import { globalAgent as httpsGlobalAgent, request as httpsRequest } from "https";
|
|
3
|
+
import { URL } from "url";
|
|
4
|
+
import { ensureError } from "./ensure-error.js";
|
|
4
5
|
import { isObject } from "./is-object.js";
|
|
5
|
-
import { isUndefined } from "./is-undefined.js";
|
|
6
6
|
const sendRequest = (method, url, options) => new Promise((resolve, reject) => {
|
|
7
7
|
if (!isObject(options)) {
|
|
8
8
|
options = {};
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
const parsedUrl = new URL(url);
|
|
11
|
+
if (!parsedUrl) {
|
|
12
|
+
throw new Error("failed to parseURL");
|
|
13
|
+
}
|
|
14
|
+
const { globalAgent, request } = parsedUrl.protocol === "https:"
|
|
15
|
+
? { globalAgent: httpsGlobalAgent, request: httpsRequest }
|
|
16
|
+
: { globalAgent: httpGlobalAgent, request: httpRequest };
|
|
17
|
+
options = { ...options };
|
|
18
|
+
options.host = parsedUrl.host;
|
|
19
|
+
options.hostname = parsedUrl.hostname;
|
|
20
|
+
options.port = parsedUrl.port;
|
|
21
|
+
options.protocol = parsedUrl.protocol;
|
|
11
22
|
options.method = method.toLowerCase();
|
|
12
|
-
if (
|
|
23
|
+
if (parsedUrl.pathname) {
|
|
24
|
+
options.path = parsedUrl.pathname;
|
|
25
|
+
}
|
|
26
|
+
if (parsedUrl.search) {
|
|
27
|
+
options.path += parsedUrl.search;
|
|
28
|
+
}
|
|
29
|
+
if (options.protocol === "http:" || options.protocol === "https:") {
|
|
13
30
|
options.agent = globalAgent;
|
|
14
31
|
}
|
|
15
|
-
if (
|
|
32
|
+
if (options.timeout === undefined) {
|
|
16
33
|
options.timeout = 1500;
|
|
17
34
|
}
|
|
18
35
|
const maxContentLength = options.maxContentLength ?? Number.MAX_SAFE_INTEGER;
|
|
@@ -41,7 +58,8 @@ const sendRequest = (method, url, options) => new Promise((resolve, reject) => {
|
|
|
41
58
|
try {
|
|
42
59
|
accumulator = JSON.parse(accumulator);
|
|
43
60
|
}
|
|
44
|
-
catch (
|
|
61
|
+
catch (rawError) {
|
|
62
|
+
const error = ensureError(rawError);
|
|
45
63
|
return reject(new HttpError(response, error));
|
|
46
64
|
}
|
|
47
65
|
}
|
|
@@ -55,9 +73,9 @@ const sendRequest = (method, url, options) => new Promise((resolve, reject) => {
|
|
|
55
73
|
});
|
|
56
74
|
});
|
|
57
75
|
request_.on("error", reject);
|
|
58
|
-
request_.on("timeout", () => request_.
|
|
76
|
+
request_.on("timeout", () => request_.destroy(new Error("Request timed out")));
|
|
59
77
|
if (options.body) {
|
|
60
|
-
const body = JSON.stringify(options.body);
|
|
78
|
+
const body = JSON.stringify(options.body, (_, value) => typeof value === "bigint" ? value.toString() : value);
|
|
61
79
|
request_.setHeader("content-type", "application/json");
|
|
62
80
|
request_.setHeader("content-length", Buffer.byteLength(body));
|
|
63
81
|
request_.write(body);
|
package/distribution/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../source/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../source/http.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,MAAM,CAAC;AAC9E,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,GAAG,CAAI,MA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