@mainsail/utils 0.0.1-alpha.11 → 0.0.1-alpha.13
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/assign.d.ts.map +1 -1
- package/distribution/assign.js +1 -5
- package/distribution/assign.js.map +1 -1
- package/distribution/at.d.ts.map +1 -1
- package/distribution/at.js +3 -7
- package/distribution/at.js.map +1 -1
- package/distribution/base64.js +1 -4
- package/distribution/base64.js.map +1 -1
- package/distribution/big-number.js +1 -5
- package/distribution/big-number.js.map +1 -1
- package/distribution/binary.js +3 -6
- package/distribution/binary.js.map +1 -1
- package/distribution/byte-buffer.d.ts +1 -1
- package/distribution/byte-buffer.js +1 -5
- package/distribution/byte-buffer.js.map +1 -1
- package/distribution/camel-case.js +3 -7
- package/distribution/camel-case.js.map +1 -1
- package/distribution/capped-map.js +1 -5
- package/distribution/capped-map.js.map +1 -1
- package/distribution/capped-set.js +2 -6
- package/distribution/capped-set.js.map +1 -1
- package/distribution/cast-array.d.ts.map +1 -1
- package/distribution/cast-array.js +10 -14
- package/distribution/cast-array.js.map +1 -1
- package/distribution/chars.js +1 -5
- package/distribution/chars.js.map +1 -1
- package/distribution/chunk.d.ts.map +1 -1
- package/distribution/chunk.js +3 -7
- package/distribution/chunk.js.map +1 -1
- package/distribution/clone-array.d.ts.map +1 -1
- package/distribution/clone-array.js +1 -5
- package/distribution/clone-array.js.map +1 -1
- package/distribution/clone-deep.d.ts.map +1 -1
- package/distribution/clone-deep.js +2 -9
- package/distribution/clone-deep.js.map +1 -1
- package/distribution/clone-object.d.ts.map +1 -1
- package/distribution/clone-object.js +1 -5
- package/distribution/clone-object.js.map +1 -1
- package/distribution/clone.d.ts.map +1 -1
- package/distribution/clone.js +4 -8
- package/distribution/clone.js.map +1 -1
- package/distribution/collection.js +14 -18
- package/distribution/collection.js.map +1 -1
- package/distribution/concat.d.ts.map +1 -1
- package/distribution/concat.js +3 -7
- package/distribution/concat.js.map +1 -1
- package/distribution/constant-case.js +2 -6
- package/distribution/constant-case.js.map +1 -1
- package/distribution/dot-case.js +2 -6
- package/distribution/dot-case.js.map +1 -1
- package/distribution/dot-env.js +5 -8
- package/distribution/dot-env.js.map +1 -1
- package/distribution/every.d.ts +1 -1
- package/distribution/every.d.ts.map +1 -1
- package/distribution/every.js +1 -5
- package/distribution/every.js.map +1 -1
- package/distribution/expand-tilde.js +6 -10
- package/distribution/expand-tilde.js.map +1 -1
- package/distribution/extension.js +2 -6
- package/distribution/extension.js.map +1 -1
- package/distribution/fill.d.ts.map +1 -1
- package/distribution/fill.js +1 -5
- package/distribution/fill.js.map +1 -1
- package/distribution/filter-array.d.ts +1 -1
- package/distribution/filter-array.d.ts.map +1 -1
- package/distribution/filter-array.js +1 -5
- package/distribution/filter-array.js.map +1 -1
- package/distribution/filter-object.d.ts +1 -1
- package/distribution/filter-object.d.ts.map +1 -1
- package/distribution/filter-object.js +1 -5
- package/distribution/filter-object.js.map +1 -1
- package/distribution/filter.d.ts +1 -1
- package/distribution/filter.d.ts.map +1 -1
- package/distribution/filter.js +4 -8
- package/distribution/filter.js.map +1 -1
- package/distribution/find-index.d.ts +1 -1
- package/distribution/find-index.d.ts.map +1 -1
- package/distribution/find-index.js +1 -5
- package/distribution/find-index.js.map +1 -1
- package/distribution/find-key.d.ts +1 -1
- package/distribution/find-key.d.ts.map +1 -1
- package/distribution/find-key.js +2 -6
- package/distribution/find-key.js.map +1 -1
- package/distribution/find.d.ts +1 -1
- package/distribution/find.d.ts.map +1 -1
- package/distribution/find.js +1 -5
- package/distribution/find.js.map +1 -1
- package/distribution/first-map-entry.d.ts.map +1 -1
- package/distribution/first-map-entry.js +1 -5
- package/distribution/first-map-entry.js.map +1 -1
- package/distribution/first-map-key.d.ts.map +1 -1
- package/distribution/first-map-key.js +2 -6
- package/distribution/first-map-key.js.map +1 -1
- package/distribution/first-map-value.d.ts.map +1 -1
- package/distribution/first-map-value.js +2 -6
- package/distribution/first-map-value.js.map +1 -1
- package/distribution/flatten.d.ts.map +1 -1
- package/distribution/flatten.js +1 -5
- package/distribution/flatten.js.map +1 -1
- package/distribution/format-number.js +1 -5
- package/distribution/format-number.js.map +1 -1
- package/distribution/format-string.js +1 -5
- package/distribution/format-string.js.map +1 -1
- package/distribution/get-path-segments.js +1 -5
- package/distribution/get-path-segments.js.map +1 -1
- package/distribution/get-type.js +1 -5
- package/distribution/get-type.js.map +1 -1
- package/distribution/get.d.ts +1 -1
- package/distribution/get.d.ts.map +1 -1
- package/distribution/get.js +8 -12
- package/distribution/get.js.map +1 -1
- package/distribution/group-by.d.ts +1 -1
- package/distribution/group-by.d.ts.map +1 -1
- package/distribution/group-by.js +1 -5
- package/distribution/group-by.js.map +1 -1
- package/distribution/has-property.d.ts.map +1 -1
- package/distribution/has-property.js +1 -5
- package/distribution/has-property.js.map +1 -1
- package/distribution/has-some-property.d.ts.map +1 -1
- package/distribution/has-some-property.js +3 -7
- package/distribution/has-some-property.js.map +1 -1
- package/distribution/has.d.ts.map +1 -1
- package/distribution/has.js +7 -11
- package/distribution/has.js.map +1 -1
- package/distribution/hash-string.js +1 -5
- package/distribution/hash-string.js.map +1 -1
- package/distribution/head.d.ts.map +1 -1
- package/distribution/head.js +1 -5
- package/distribution/head.js.map +1 -1
- package/distribution/header-case.js +3 -7
- package/distribution/header-case.js.map +1 -1
- package/distribution/hex.js +1 -4
- package/distribution/hex.js.map +1 -1
- package/distribution/http.d.ts +1 -1
- package/distribution/http.js +12 -16
- package/distribution/http.js.map +1 -1
- package/distribution/immutable/index.d.ts +3 -3
- package/distribution/immutable/index.d.ts.map +1 -1
- package/distribution/immutable/index.js +3 -19
- package/distribution/immutable/index.js.map +1 -1
- package/distribution/immutable/order-by.d.ts +1 -1
- package/distribution/immutable/order-by.d.ts.map +1 -1
- package/distribution/immutable/order-by.js +2 -6
- package/distribution/immutable/order-by.js.map +1 -1
- package/distribution/immutable/sort-by-desc.d.ts.map +1 -1
- package/distribution/immutable/sort-by-desc.js +2 -6
- package/distribution/immutable/sort-by-desc.js.map +1 -1
- package/distribution/immutable/sort-by.d.ts.map +1 -1
- package/distribution/immutable/sort-by.js +2 -6
- package/distribution/immutable/sort-by.js.map +1 -1
- package/distribution/includes.d.ts.map +1 -1
- package/distribution/includes.js +7 -11
- package/distribution/includes.js.map +1 -1
- package/distribution/index-of.d.ts.map +1 -1
- package/distribution/index-of.js +1 -5
- package/distribution/index-of.js.map +1 -1
- package/distribution/index.d.ts +190 -191
- package/distribution/index.d.ts.map +1 -1
- package/distribution/index.js +190 -220
- package/distribution/index.js.map +1 -1
- package/distribution/internal/compound-words.js +6 -10
- package/distribution/internal/compound-words.js.map +1 -1
- package/distribution/internal/index.d.ts +2 -2
- package/distribution/internal/index.d.ts.map +1 -1
- package/distribution/internal/index.js +2 -18
- package/distribution/internal/index.js.map +1 -1
- package/distribution/internal/types.js +1 -2
- package/distribution/intersection.d.ts.map +1 -1
- package/distribution/intersection.js +1 -5
- package/distribution/intersection.js.map +1 -1
- package/distribution/is-arguments.js +2 -6
- package/distribution/is-arguments.js.map +1 -1
- package/distribution/is-array-of-type.js +2 -6
- package/distribution/is-array-of-type.js.map +1 -1
- package/distribution/is-array.js +1 -5
- package/distribution/is-array.js.map +1 -1
- package/distribution/is-async-function.js +2 -6
- package/distribution/is-async-function.js.map +1 -1
- package/distribution/is-between.js +1 -5
- package/distribution/is-between.js.map +1 -1
- package/distribution/is-bigint.js +1 -5
- package/distribution/is-bigint.js.map +1 -1
- package/distribution/is-boolean-array.js +2 -6
- package/distribution/is-boolean-array.js.map +1 -1
- package/distribution/is-boolean.js +1 -5
- package/distribution/is-boolean.js.map +1 -1
- package/distribution/is-buffer.js +1 -5
- package/distribution/is-buffer.js.map +1 -1
- package/distribution/is-constructor.js +1 -5
- package/distribution/is-constructor.js.map +1 -1
- package/distribution/is-date.js +1 -5
- package/distribution/is-date.js.map +1 -1
- package/distribution/is-empty-array.d.ts.map +1 -1
- package/distribution/is-empty-array.js +2 -6
- package/distribution/is-empty-array.js.map +1 -1
- package/distribution/is-empty-map.d.ts.map +1 -1
- package/distribution/is-empty-map.js +2 -6
- package/distribution/is-empty-map.js.map +1 -1
- package/distribution/is-empty-object.js +2 -6
- package/distribution/is-empty-object.js.map +1 -1
- package/distribution/is-empty-set.d.ts.map +1 -1
- package/distribution/is-empty-set.js +2 -6
- package/distribution/is-empty-set.js.map +1 -1
- package/distribution/is-empty.d.ts.map +1 -1
- package/distribution/is-empty.js +1 -5
- package/distribution/is-empty.js.map +1 -1
- package/distribution/is-enumerable.d.ts.map +1 -1
- package/distribution/is-enumerable.js +1 -5
- package/distribution/is-enumerable.js.map +1 -1
- package/distribution/is-equal.js +1 -8
- package/distribution/is-equal.js.map +1 -1
- package/distribution/is-error.js +1 -5
- package/distribution/is-error.js.map +1 -1
- package/distribution/is-false.js +1 -5
- package/distribution/is-false.js.map +1 -1
- package/distribution/is-function.js +3 -7
- package/distribution/is-function.js.map +1 -1
- package/distribution/is-git.js +1 -5
- package/distribution/is-git.js.map +1 -1
- package/distribution/is-greater-than-or-equal.js +1 -5
- package/distribution/is-greater-than-or-equal.js.map +1 -1
- package/distribution/is-greater-than.js +1 -5
- package/distribution/is-greater-than.js.map +1 -1
- package/distribution/is-less-than-or-equal.js +1 -5
- package/distribution/is-less-than-or-equal.js.map +1 -1
- package/distribution/is-less-than.js +1 -5
- package/distribution/is-less-than.js.map +1 -1
- package/distribution/is-map.js +1 -5
- package/distribution/is-map.js.map +1 -1
- package/distribution/is-match.js +1 -5
- package/distribution/is-match.js.map +1 -1
- package/distribution/is-negative-zero.js +1 -5
- package/distribution/is-negative-zero.js.map +1 -1
- package/distribution/is-negative.js +2 -6
- package/distribution/is-negative.js.map +1 -1
- package/distribution/is-nil.js +2 -6
- package/distribution/is-nil.js.map +1 -1
- package/distribution/is-not-between.js +2 -6
- package/distribution/is-not-between.js.map +1 -1
- package/distribution/is-not-equal.d.ts.map +1 -1
- package/distribution/is-not-equal.js +2 -6
- package/distribution/is-not-equal.js.map +1 -1
- package/distribution/is-null.js +1 -5
- package/distribution/is-null.js.map +1 -1
- package/distribution/is-number-array.js +2 -6
- package/distribution/is-number-array.js.map +1 -1
- package/distribution/is-number.js +1 -5
- package/distribution/is-number.js.map +1 -1
- package/distribution/is-object.js +1 -5
- package/distribution/is-object.js.map +1 -1
- package/distribution/is-positive-zero.js +1 -5
- package/distribution/is-positive-zero.js.map +1 -1
- package/distribution/is-positive.js +2 -6
- package/distribution/is-positive.js.map +1 -1
- package/distribution/is-promise.js +1 -5
- package/distribution/is-promise.js.map +1 -1
- package/distribution/is-reg-exp.js +1 -5
- package/distribution/is-reg-exp.js.map +1 -1
- package/distribution/is-set.js +1 -5
- package/distribution/is-set.js.map +1 -1
- package/distribution/is-ssh.js +3 -7
- package/distribution/is-ssh.js.map +1 -1
- package/distribution/is-string-array.js +2 -6
- package/distribution/is-string-array.js.map +1 -1
- package/distribution/is-string.js +1 -5
- package/distribution/is-string.js.map +1 -1
- package/distribution/is-symbol.js +1 -5
- package/distribution/is-symbol.js.map +1 -1
- package/distribution/is-sync-function.js +2 -6
- package/distribution/is-sync-function.js.map +1 -1
- package/distribution/is-true.js +1 -5
- package/distribution/is-true.js.map +1 -1
- package/distribution/is-undefined.js +1 -5
- package/distribution/is-undefined.js.map +1 -1
- package/distribution/is-uri.js +1 -5
- package/distribution/is-uri.js.map +1 -1
- package/distribution/is-url.d.ts +1 -3
- package/distribution/is-url.d.ts.map +1 -1
- package/distribution/is-url.js +9 -6
- package/distribution/is-url.js.map +1 -1
- package/distribution/is-weak-map.js +1 -5
- package/distribution/is-weak-map.js.map +1 -1
- package/distribution/is-weak-set.js +1 -5
- package/distribution/is-weak-set.js.map +1 -1
- package/distribution/kebab-case.js +2 -6
- package/distribution/kebab-case.js.map +1 -1
- package/distribution/key-by.d.ts +1 -1
- package/distribution/key-by.d.ts.map +1 -1
- package/distribution/key-by.js +1 -5
- package/distribution/key-by.js.map +1 -1
- package/distribution/keys-in.d.ts.map +1 -1
- package/distribution/keys-in.js +2 -6
- package/distribution/keys-in.js.map +1 -1
- package/distribution/keys.d.ts.map +1 -1
- package/distribution/keys.js +1 -5
- package/distribution/keys.js.map +1 -1
- package/distribution/last-index-of.d.ts.map +1 -1
- package/distribution/last-index-of.js +1 -5
- package/distribution/last-index-of.js.map +1 -1
- package/distribution/last-map-entry.d.ts.map +1 -1
- package/distribution/last-map-entry.js +1 -5
- package/distribution/last-map-entry.js.map +1 -1
- package/distribution/last-map-key.d.ts.map +1 -1
- package/distribution/last-map-key.js +2 -6
- package/distribution/last-map-key.js.map +1 -1
- package/distribution/last-map-value.d.ts.map +1 -1
- package/distribution/last-map-value.js +2 -6
- package/distribution/last-map-value.js.map +1 -1
- package/distribution/last.d.ts.map +1 -1
- package/distribution/last.js +1 -5
- package/distribution/last.js.map +1 -1
- package/distribution/lower-case.js +2 -6
- package/distribution/lower-case.js.map +1 -1
- package/distribution/lower-first.js +1 -5
- package/distribution/lower-first.js.map +1 -1
- package/distribution/map-array.d.ts +1 -1
- package/distribution/map-array.d.ts.map +1 -1
- package/distribution/map-array.js +1 -5
- package/distribution/map-array.js.map +1 -1
- package/distribution/map-object.d.ts +1 -1
- package/distribution/map-object.d.ts.map +1 -1
- package/distribution/map-object.js +1 -5
- package/distribution/map-object.js.map +1 -1
- package/distribution/map-values.d.ts +1 -1
- package/distribution/map-values.d.ts.map +1 -1
- package/distribution/map-values.js +1 -5
- package/distribution/map-values.js.map +1 -1
- package/distribution/map.d.ts +1 -1
- package/distribution/map.d.ts.map +1 -1
- package/distribution/map.js +4 -8
- package/distribution/map.js.map +1 -1
- package/distribution/match.d.ts.map +1 -1
- package/distribution/match.js +1 -5
- package/distribution/match.js.map +1 -1
- package/distribution/max-by.d.ts +1 -1
- package/distribution/max-by.d.ts.map +1 -1
- package/distribution/max-by.js +3 -7
- package/distribution/max-by.js.map +1 -1
- package/distribution/max.js +1 -5
- package/distribution/max.js.map +1 -1
- package/distribution/merge.js +1 -8
- package/distribution/merge.js.map +1 -1
- package/distribution/min-by.d.ts +1 -1
- package/distribution/min-by.d.ts.map +1 -1
- package/distribution/min-by.js +3 -7
- package/distribution/min-by.js.map +1 -1
- package/distribution/min.js +1 -5
- package/distribution/min.js.map +1 -1
- package/distribution/nsect.js +5 -12
- package/distribution/nsect.js.map +1 -1
- package/distribution/number-array.js +1 -5
- package/distribution/number-array.js.map +1 -1
- package/distribution/number-to-hex.js +1 -5
- package/distribution/number-to-hex.js.map +1 -1
- package/distribution/omit-by.d.ts +1 -1
- package/distribution/omit-by.d.ts.map +1 -1
- package/distribution/omit-by.js +2 -6
- package/distribution/omit-by.js.map +1 -1
- package/distribution/order-by.d.ts +1 -1
- package/distribution/order-by.d.ts.map +1 -1
- package/distribution/order-by.js +9 -13
- package/distribution/order-by.js.map +1 -1
- package/distribution/ordinal.js +1 -5
- package/distribution/ordinal.js.map +1 -1
- package/distribution/parse-git-url.js +6 -10
- package/distribution/parse-git-url.js.map +1 -1
- package/distribution/parse-uri.js +3 -7
- package/distribution/parse-uri.js.map +1 -1
- package/distribution/parse.d.ts.map +1 -1
- package/distribution/parse.js +2 -6
- package/distribution/parse.js.map +1 -1
- package/distribution/partition.d.ts +1 -1
- package/distribution/partition.d.ts.map +1 -1
- package/distribution/partition.js +1 -5
- package/distribution/partition.js.map +1 -1
- package/distribution/pascal-case.js +3 -7
- package/distribution/pascal-case.js.map +1 -1
- package/distribution/path-case.js +2 -6
- package/distribution/path-case.js.map +1 -1
- package/distribution/pick-by.d.ts +1 -1
- package/distribution/pick-by.d.ts.map +1 -1
- package/distribution/pick-by.js +2 -6
- package/distribution/pick-by.js.map +1 -1
- package/distribution/pick.d.ts.map +1 -1
- package/distribution/pick.js +1 -5
- package/distribution/pick.js.map +1 -1
- package/distribution/pluck.d.ts.map +1 -1
- package/distribution/pluck.js +1 -5
- package/distribution/pluck.js.map +1 -1
- package/distribution/pluralize.js +1 -5
- package/distribution/pluralize.js.map +1 -1
- package/distribution/pretty-bytes.js +1 -5
- package/distribution/pretty-bytes.js.map +1 -1
- package/distribution/pretty-time.js +4 -8
- package/distribution/pretty-time.js.map +1 -1
- package/distribution/protocols.js +1 -5
- package/distribution/protocols.js.map +1 -1
- package/distribution/pull-all-by.d.ts +1 -1
- package/distribution/pull-all-by.d.ts.map +1 -1
- package/distribution/pull-all-by.js +3 -7
- package/distribution/pull-all-by.js.map +1 -1
- package/distribution/pull-all.d.ts.map +1 -1
- package/distribution/pull-all.js +2 -6
- package/distribution/pull-all.js.map +1 -1
- package/distribution/pull.d.ts.map +1 -1
- package/distribution/pull.js +2 -6
- package/distribution/pull.js.map +1 -1
- package/distribution/random-base64.js +2 -6
- package/distribution/random-base64.js.map +1 -1
- package/distribution/random-bits.d.ts +1 -1
- package/distribution/random-bits.js +2 -6
- package/distribution/random-bits.js.map +1 -1
- package/distribution/random-hex.js +2 -6
- package/distribution/random-hex.js.map +1 -1
- package/distribution/random-number.js +1 -5
- package/distribution/random-number.js.map +1 -1
- package/distribution/reduce-array.d.ts +1 -1
- package/distribution/reduce-array.d.ts.map +1 -1
- package/distribution/reduce-array.js +1 -5
- package/distribution/reduce-array.js.map +1 -1
- package/distribution/reduce-object.d.ts +1 -1
- package/distribution/reduce-object.d.ts.map +1 -1
- package/distribution/reduce-object.js +1 -5
- package/distribution/reduce-object.js.map +1 -1
- package/distribution/reduce-right-array.d.ts +1 -1
- package/distribution/reduce-right-array.d.ts.map +1 -1
- package/distribution/reduce-right-array.js +1 -5
- package/distribution/reduce-right-array.js.map +1 -1
- package/distribution/reduce-right-object.d.ts +2 -2
- package/distribution/reduce-right-object.d.ts.map +1 -1
- package/distribution/reduce-right-object.js +1 -5
- package/distribution/reduce-right-object.js.map +1 -1
- package/distribution/reduce-right.d.ts +1 -1
- package/distribution/reduce-right.d.ts.map +1 -1
- package/distribution/reduce-right.js +6 -10
- package/distribution/reduce-right.js.map +1 -1
- package/distribution/reduce.d.ts +1 -1
- package/distribution/reduce.d.ts.map +1 -1
- package/distribution/reduce.js +4 -8
- package/distribution/reduce.js.map +1 -1
- package/distribution/reject.d.ts +1 -1
- package/distribution/reject.d.ts.map +1 -1
- package/distribution/reject.js +2 -6
- package/distribution/reject.js.map +1 -1
- package/distribution/reverse.js +1 -5
- package/distribution/reverse.js.map +1 -1
- package/distribution/sample.d.ts.map +1 -1
- package/distribution/sample.js +1 -5
- package/distribution/sample.js.map +1 -1
- package/distribution/semver.js +5 -9
- package/distribution/semver.js.map +1 -1
- package/distribution/set.d.ts.map +1 -1
- package/distribution/set.js +7 -11
- package/distribution/set.js.map +1 -1
- package/distribution/shuffle.d.ts.map +1 -1
- package/distribution/shuffle.js +3 -7
- package/distribution/shuffle.js.map +1 -1
- package/distribution/sleep.d.ts +1 -1
- package/distribution/sleep.js +2 -5
- package/distribution/sleep.js.map +1 -1
- package/distribution/slice.d.ts.map +1 -1
- package/distribution/slice.js +1 -5
- package/distribution/slice.js.map +1 -1
- package/distribution/snake-case.js +2 -6
- package/distribution/snake-case.js.map +1 -1
- package/distribution/some.d.ts +1 -1
- package/distribution/some.d.ts.map +1 -1
- package/distribution/some.js +1 -5
- package/distribution/some.js.map +1 -1
- package/distribution/sort-by-desc.d.ts.map +1 -1
- package/distribution/sort-by-desc.js +2 -6
- package/distribution/sort-by-desc.js.map +1 -1
- package/distribution/sort-by.d.ts.map +1 -1
- package/distribution/sort-by.js +2 -6
- package/distribution/sort-by.js.map +1 -1
- package/distribution/start-case.js +3 -7
- package/distribution/start-case.js.map +1 -1
- package/distribution/stringify.d.ts.map +1 -1
- package/distribution/stringify.js +1 -5
- package/distribution/stringify.js.map +1 -1
- package/distribution/tail.d.ts.map +1 -1
- package/distribution/tail.js +2 -6
- package/distribution/tail.js.map +1 -1
- package/distribution/take.d.ts.map +1 -1
- package/distribution/take.js +2 -6
- package/distribution/take.js.map +1 -1
- package/distribution/to-lower.d.ts.map +1 -1
- package/distribution/to-lower.js +2 -6
- package/distribution/to-lower.js.map +1 -1
- package/distribution/to-string.d.ts.map +1 -1
- package/distribution/to-string.js +5 -9
- package/distribution/to-string.js.map +1 -1
- package/distribution/to-upper.d.ts.map +1 -1
- package/distribution/to-upper.js +2 -6
- package/distribution/to-upper.js.map +1 -1
- package/distribution/trim-trailing-slash.js +1 -5
- package/distribution/trim-trailing-slash.js.map +1 -1
- package/distribution/truncate.js +3 -7
- package/distribution/truncate.js.map +1 -1
- package/distribution/union-by.d.ts.map +1 -1
- package/distribution/union-by.js +4 -8
- package/distribution/union-by.js.map +1 -1
- package/distribution/union.d.ts.map +1 -1
- package/distribution/union.js +3 -7
- package/distribution/union.js.map +1 -1
- package/distribution/uniq-by.d.ts +1 -1
- package/distribution/uniq-by.d.ts.map +1 -1
- package/distribution/uniq-by.js +1 -5
- package/distribution/uniq-by.js.map +1 -1
- package/distribution/uniq.d.ts.map +1 -1
- package/distribution/uniq.js +3 -7
- package/distribution/uniq.js.map +1 -1
- package/distribution/unset.d.ts.map +1 -1
- package/distribution/unset.js +7 -11
- package/distribution/unset.js.map +1 -1
- package/distribution/upper-case.js +2 -6
- package/distribution/upper-case.js.map +1 -1
- package/distribution/upper-first.js +1 -5
- package/distribution/upper-first.js.map +1 -1
- package/distribution/validator-set-pack.js +2 -7
- package/distribution/validator-set-pack.js.map +1 -1
- package/distribution/words.js +1 -5
- package/distribution/words.js.map +1 -1
- package/distribution/zip-object.d.ts.map +1 -1
- package/distribution/zip-object.js +1 -5
- package/distribution/zip-object.js.map +1 -1
- package/package.json +9 -3
- package/distribution/safe-equal.d.ts +0 -2
- package/distribution/safe-equal.d.ts.map +0 -1
- package/distribution/safe-equal.js +0 -14
- package/distribution/safe-equal.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant-case.js","sourceRoot":"","sources":["../source/constant-case.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constant-case.js","sourceRoot":"","sources":["../source/constant-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAsB,EAAE,CACjE,aAAa,CACZ,KAAK,EACL,CAAC,MAAc,EAAE,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CACjG,CAAC"}
|
package/distribution/dot-case.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.dotCase = void 0;
|
|
4
|
-
const internal_1 = require("./internal");
|
|
5
|
-
const dotCase = (value) => (0, internal_1.compoundWords)(value, (result, word, index) => result + (index ? "." : "") + word);
|
|
6
|
-
exports.dotCase = dotCase;
|
|
1
|
+
import { compoundWords } from "./internal/compound-words.js";
|
|
2
|
+
export const dotCase = (value) => compoundWords(value, (result, word, index) => result + (index ? "." : "") + word);
|
|
7
3
|
//# sourceMappingURL=dot-case.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot-case.js","sourceRoot":"","sources":["../source/dot-case.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dot-case.js","sourceRoot":"","sources":["../source/dot-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAsB,EAAE,CAC5D,aAAa,CAAC,KAAK,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC"}
|
package/distribution/dot-env.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.dotenv = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const is_string_1 = require("./is-string");
|
|
1
|
+
import { readFileSync } from "fs";
|
|
2
|
+
import { isString } from "./is-string.js";
|
|
6
3
|
const parse = (contents) => {
|
|
7
4
|
const result = {};
|
|
8
5
|
for (const line of contents.toString().split("\n")) {
|
|
@@ -26,14 +23,14 @@ const parse = (contents) => {
|
|
|
26
23
|
}
|
|
27
24
|
return result;
|
|
28
25
|
};
|
|
29
|
-
const parseFile = (file) => parse(
|
|
26
|
+
const parseFile = (file) => parse(readFileSync(file).toString());
|
|
30
27
|
const stringify = (pairs) => {
|
|
31
28
|
const contents = [];
|
|
32
29
|
for (const key of Object.keys(pairs).filter(Boolean)) {
|
|
33
30
|
const value = pairs[key];
|
|
34
|
-
contents.push(
|
|
31
|
+
contents.push(isString(value) ? `${key}="${value}"` : `${key}=${value}`);
|
|
35
32
|
}
|
|
36
33
|
return contents.join("\n");
|
|
37
34
|
};
|
|
38
|
-
|
|
35
|
+
export const dotenv = { parse, parseFile, stringify };
|
|
39
36
|
//# sourceMappingURL=dot-env.js.map
|
|
@@ -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":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAGlC,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,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC;iBAAM,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9C,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,KAAK,MAAM,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACP,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACrB,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,IAAY,EAA6B,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;AAEpG,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE;IAC3C,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACtD,MAAM,KAAK,GAAW,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
package/distribution/every.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"every.d.ts","sourceRoot":"","sources":["../source/every.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"every.d.ts","sourceRoot":"","sources":["../source/every.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,KAAK,eAAgB,CAAC,EAAE,YAAY,iBAAiB,KAAG,OAQpE,CAAC"}
|
package/distribution/every.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.every = void 0;
|
|
4
|
-
const every = (subject, iterator) => {
|
|
1
|
+
export const every = (subject, iterator) => {
|
|
5
2
|
for (let index = 0; index < subject.length; index++) {
|
|
6
3
|
if (!iterator(subject[index], index, subject)) {
|
|
7
4
|
return false;
|
|
@@ -9,5 +6,4 @@ const every = (subject, iterator) => {
|
|
|
9
6
|
}
|
|
10
7
|
return true;
|
|
11
8
|
};
|
|
12
|
-
exports.every = every;
|
|
13
9
|
//# sourceMappingURL=every.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"every.js","sourceRoot":"","sources":["../source/every.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"every.js","sourceRoot":"","sources":["../source/every.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAI,OAAY,EAAE,QAA2B,EAAW,EAAE;IAC9E,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACrD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;YAC/C,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.expandTilde = void 0;
|
|
4
|
-
const os_1 = require("os");
|
|
5
|
-
const path_1 = require("path");
|
|
1
|
+
import { homedir } from "os";
|
|
2
|
+
import { join } from "path";
|
|
6
3
|
// https://www.ibm.com/support/knowledgecenter/en/SSVJJU_6.4.0/com.ibm.IBMDS.doc_6.4/r_cr_asciicharset.html
|
|
7
|
-
const expandTilde = (path) => {
|
|
8
|
-
const home =
|
|
4
|
+
export const expandTilde = (path) => {
|
|
5
|
+
const home = homedir();
|
|
9
6
|
if (path.codePointAt(0) === 126) {
|
|
10
7
|
if (path.codePointAt(1) === 43) {
|
|
11
|
-
return
|
|
8
|
+
return join(process.cwd(), path.slice(2));
|
|
12
9
|
}
|
|
13
|
-
return
|
|
10
|
+
return join(home, path.slice(1));
|
|
14
11
|
}
|
|
15
12
|
return path;
|
|
16
13
|
};
|
|
17
|
-
exports.expandTilde = expandTilde;
|
|
18
14
|
//# sourceMappingURL=expand-tilde.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand-tilde.js","sourceRoot":"","sources":["../source/expand-tilde.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expand-tilde.js","sourceRoot":"","sources":["../source/expand-tilde.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,2GAA2G;AAC3G,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAU,EAAE;IACnD,MAAM,IAAI,GAAW,OAAO,EAAE,CAAC;IAE/B,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;QACjC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.extension = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
const extension = (path) => (0, path_1.extname)(path).slice(1) || undefined;
|
|
6
|
-
exports.extension = extension;
|
|
1
|
+
import { extname } from "path";
|
|
2
|
+
export const extension = (path) => extname(path).slice(1) || undefined;
|
|
7
3
|
//# sourceMappingURL=extension.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../source/extension.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../source/extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAsB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../source/fill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../source/fill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,kBAAmB,CAAC,EAAE,SAAS,CAAC,UAAU,MAAM,QAAQ,MAAM,KAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAgBxF,CAAC"}
|
package/distribution/fill.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fill = void 0;
|
|
4
|
-
const fill = (subject, value, start, end) => {
|
|
1
|
+
export const fill = (subject, value, start, end) => {
|
|
5
2
|
if (start === undefined) {
|
|
6
3
|
start = 0;
|
|
7
4
|
}
|
|
@@ -14,5 +11,4 @@ const fill = (subject, value, start, end) => {
|
|
|
14
11
|
}
|
|
15
12
|
return results;
|
|
16
13
|
};
|
|
17
|
-
exports.fill = fill;
|
|
18
14
|
//# sourceMappingURL=fill.js.map
|
package/distribution/fill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.js","sourceRoot":"","sources":["../source/fill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fill.js","sourceRoot":"","sources":["../source/fill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAO,OAAY,EAAE,KAAQ,EAAE,KAAc,EAAE,GAAY,EAAa,EAAE;IAC7F,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACzB,KAAK,GAAG,CAAC,CAAC;IACX,CAAC;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACtB,CAAC;IAED,MAAM,OAAO,GAAc,CAAC,GAAG,OAAO,CAAC,CAAC;IAExC,KAAK,IAAI,KAAK,GAAG,KAAK,EAAE,KAAK,GAAG,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC;QAC9C,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-array.d.ts","sourceRoot":"","sources":["../source/filter-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter-array.d.ts","sourceRoot":"","sources":["../source/filter-array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,WAAW,gBAAiB,CAAC,EAAE,YAAY,iBAAiB,KAAG,CAAC,EAU5E,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterArray = void 0;
|
|
4
|
-
const filterArray = (iterable, iteratee) => {
|
|
1
|
+
export const filterArray = (iterable, iteratee) => {
|
|
5
2
|
const result = [];
|
|
6
3
|
for (let index = 0; index < iterable.length; index++) {
|
|
7
4
|
if (iteratee(iterable[index], index, iterable)) {
|
|
@@ -10,5 +7,4 @@ const filterArray = (iterable, iteratee) => {
|
|
|
10
7
|
}
|
|
11
8
|
return result;
|
|
12
9
|
};
|
|
13
|
-
exports.filterArray = filterArray;
|
|
14
10
|
//# sourceMappingURL=filter-array.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-array.js","sourceRoot":"","sources":["../source/filter-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-array.js","sourceRoot":"","sources":["../source/filter-array.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAI,QAAa,EAAE,QAA2B,EAAO,EAAE;IACjF,MAAM,MAAM,GAAQ,EAAE,CAAC;IAEvB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;YAChD,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9B,CAAC;IACF,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-object.d.ts","sourceRoot":"","sources":["../source/filter-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter-object.d.ts","sourceRoot":"","sources":["../source/filter-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,YAAY,2BAA4B,CAAC,YAAY,iBAAiB,KAAG,CAcrF,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterObject = void 0;
|
|
4
|
-
const filterObject = (iterable, iteratee) => {
|
|
1
|
+
export const filterObject = (iterable, iteratee) => {
|
|
5
2
|
const keys = Object.keys(iterable);
|
|
6
3
|
const length = keys.length;
|
|
7
4
|
const result = {};
|
|
@@ -13,5 +10,4 @@ const filterObject = (iterable, iteratee) => {
|
|
|
13
10
|
}
|
|
14
11
|
return result;
|
|
15
12
|
};
|
|
16
|
-
exports.filterObject = filterObject;
|
|
17
13
|
//# sourceMappingURL=filter-object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-object.js","sourceRoot":"","sources":["../source/filter-object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-object.js","sourceRoot":"","sources":["../source/filter-object.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAe,QAAW,EAAE,QAA2B,EAAK,EAAE;IACzF,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,MAAM,MAAM,GAAW,IAAI,CAAC,MAAM,CAAC;IACnC,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAExB,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC;YAC5C,MAAM,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;IACF,CAAC;IAED,OAAO,MAAW,CAAC;AACpB,CAAC,CAAC"}
|
package/distribution/filter.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../source/filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../source/filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,eAAO,MAAM,MAAM,2BAA4B,CAAC,GAAG,CAAC,EAAE,YAAY,iBAAiB,KAAG,CAAC,GAAG,CAAC,EACJ,CAAC"}
|
package/distribution/filter.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const filter_object_1 = require("./filter-object");
|
|
6
|
-
const is_array_1 = require("./is-array");
|
|
7
|
-
const filter = (iterable, iteratee) => (0, is_array_1.isArray)(iterable) ? (0, filter_array_1.filterArray)(iterable, iteratee) : (0, filter_object_1.filterObject)(iterable, iteratee);
|
|
8
|
-
exports.filter = filter;
|
|
1
|
+
import { filterArray } from "./filter-array.js";
|
|
2
|
+
import { filterObject } from "./filter-object.js";
|
|
3
|
+
import { isArray } from "./is-array.js";
|
|
4
|
+
export const filter = (iterable, iteratee) => isArray(iterable) ? filterArray(iterable, iteratee) : filterObject(iterable, iteratee);
|
|
9
5
|
//# sourceMappingURL=filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../source/filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../source/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAe,QAAiB,EAAE,QAA2B,EAAW,EAAE,CAC/F,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-index.d.ts","sourceRoot":"","sources":["../source/find-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"find-index.d.ts","sourceRoot":"","sources":["../source/find-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,SAAS,gBAAiB,CAAC,EAAE,YAAY,iBAAiB,KAAG,MAQzE,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findIndex = void 0;
|
|
4
|
-
const findIndex = (iterable, iteratee) => {
|
|
1
|
+
export const findIndex = (iterable, iteratee) => {
|
|
5
2
|
for (let index = 0; index < iterable.length; index++) {
|
|
6
3
|
if (iteratee(iterable[index], index, iterable)) {
|
|
7
4
|
return index;
|
|
@@ -9,5 +6,4 @@ const findIndex = (iterable, iteratee) => {
|
|
|
9
6
|
}
|
|
10
7
|
return -1;
|
|
11
8
|
};
|
|
12
|
-
exports.findIndex = findIndex;
|
|
13
9
|
//# sourceMappingURL=find-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-index.js","sourceRoot":"","sources":["../source/find-index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-index.js","sourceRoot":"","sources":["../source/find-index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAI,QAAa,EAAE,QAA2B,EAAU,EAAE;IAClF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-key.d.ts","sourceRoot":"","sources":["../source/find-key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"find-key.d.ts","sourceRoot":"","sources":["../source/find-key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,OAAO,2BAA4B,CAAC,YAAY,iBAAiB,KAAG,MAChC,CAAC"}
|
package/distribution/find-key.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.findKey = void 0;
|
|
4
|
-
const filter_object_1 = require("./filter-object");
|
|
5
|
-
const findKey = (iterable, iteratee) => Object.keys((0, filter_object_1.filterObject)(iterable, iteratee))[0];
|
|
6
|
-
exports.findKey = findKey;
|
|
1
|
+
import { filterObject } from "./filter-object.js";
|
|
2
|
+
export const findKey = (iterable, iteratee) => Object.keys(filterObject(iterable, iteratee))[0];
|
|
7
3
|
//# sourceMappingURL=find-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-key.js","sourceRoot":"","sources":["../source/find-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-key.js","sourceRoot":"","sources":["../source/find-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAe,QAAW,EAAE,QAA2B,EAAU,EAAE,CACzF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/distribution/find.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,IAAI,gBAAiB,CAAC,EAAE,YAAY,iBAAiB,KAAG,CAAC,GAAG,SAUxE,CAAC"}
|
package/distribution/find.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.find = void 0;
|
|
4
|
-
const find = (iterable, iteratee) => {
|
|
1
|
+
export const find = (iterable, iteratee) => {
|
|
5
2
|
for (let index = 0; index < iterable.length; index++) {
|
|
6
3
|
const item = iterable[index];
|
|
7
4
|
if (iteratee(item, index, iterable)) {
|
|
@@ -10,5 +7,4 @@ const find = (iterable, iteratee) => {
|
|
|
10
7
|
}
|
|
11
8
|
return undefined;
|
|
12
9
|
};
|
|
13
|
-
exports.find = find;
|
|
14
10
|
//# sourceMappingURL=find.js.map
|
package/distribution/find.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../source/find.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAI,QAAa,EAAE,QAA2B,EAAiB,EAAE;IACpF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,IAAI,GAAM,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEhC,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-entry.d.ts","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"first-map-entry.d.ts","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,cAAe,IAAI,CAAC,EAAE,CAAC,CAAC,KAAG,CAAC,CAAC,EAAE,CAAC,CAAgB,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.firstMapEntry = void 0;
|
|
4
|
-
const firstMapEntry = (map) => [...map][0];
|
|
5
|
-
exports.firstMapEntry = firstMapEntry;
|
|
1
|
+
export const firstMapEntry = (map) => [...map][0];
|
|
6
2
|
//# sourceMappingURL=first-map-entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-entry.js","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"first-map-entry.js","sourceRoot":"","sources":["../source/first-map-entry.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAO,GAAc,EAAU,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-key.d.ts","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"first-map-key.d.ts","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,cAAe,IAAI,CAAC,EAAE,CAAC,CAAC,KAAG,CAA0B,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.firstMapKey = void 0;
|
|
4
|
-
const first_map_entry_1 = require("./first-map-entry");
|
|
5
|
-
const firstMapKey = (map) => (0, first_map_entry_1.firstMapEntry)(map)[0];
|
|
6
|
-
exports.firstMapKey = firstMapKey;
|
|
1
|
+
import { firstMapEntry } from "./first-map-entry.js";
|
|
2
|
+
export const firstMapKey = (map) => firstMapEntry(map)[0];
|
|
7
3
|
//# sourceMappingURL=first-map-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-key.js","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"first-map-key.js","sourceRoot":"","sources":["../source/first-map-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAO,GAAc,EAAK,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-value.d.ts","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"first-map-value.d.ts","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,cAAe,IAAI,CAAC,EAAE,CAAC,CAAC,KAAG,CAA0B,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.firstMapValue = void 0;
|
|
4
|
-
const first_map_entry_1 = require("./first-map-entry");
|
|
5
|
-
const firstMapValue = (map) => (0, first_map_entry_1.firstMapEntry)(map)[1];
|
|
6
|
-
exports.firstMapValue = firstMapValue;
|
|
1
|
+
import { firstMapEntry } from "./first-map-entry.js";
|
|
2
|
+
export const firstMapValue = (map) => firstMapEntry(map)[1];
|
|
7
3
|
//# sourceMappingURL=first-map-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-map-value.js","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"first-map-value.js","sourceRoot":"","sources":["../source/first-map-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAO,GAAc,EAAK,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO,gBAAiB,CAAC,EAAE,KAAG,CAAC,EAAwB,CAAC"}
|
package/distribution/flatten.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flatten = void 0;
|
|
4
1
|
const flat = (iterable, stash) => {
|
|
5
2
|
for (const element of iterable) {
|
|
6
3
|
Array.isArray(element) ? flat(element, stash) : stash.push(element);
|
|
7
4
|
}
|
|
8
5
|
return stash;
|
|
9
6
|
};
|
|
10
|
-
const flatten = (iterable) => flat(iterable, []);
|
|
11
|
-
exports.flatten = flatten;
|
|
7
|
+
export const flatten = (iterable) => flat(iterable, []);
|
|
12
8
|
//# sourceMappingURL=flatten.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten.js","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flatten.js","sourceRoot":"","sources":["../source/flatten.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,CAAI,QAAa,EAAE,KAAU,EAAO,EAAE;IAClD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAChC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAI,QAAa,EAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatNumber = void 0;
|
|
4
|
-
const formatNumber = (value, locales, options) => new Intl.NumberFormat(locales, options).format(value);
|
|
5
|
-
exports.formatNumber = formatNumber;
|
|
1
|
+
export const formatNumber = (value, locales, options) => new Intl.NumberFormat(locales, options).format(value);
|
|
6
2
|
//# sourceMappingURL=format-number.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-number.js","sourceRoot":"","sources":["../source/format-number.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-number.js","sourceRoot":"","sources":["../source/format-number.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,OAA2B,EAAE,OAAkC,EAAU,EAAE,CACtH,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatString = void 0;
|
|
4
|
-
const formatString = (...arguments_) => {
|
|
1
|
+
export const formatString = (...arguments_) => {
|
|
5
2
|
let output = arguments_[0];
|
|
6
3
|
arguments_.shift();
|
|
7
4
|
for (const [index, element] of arguments_.entries()) {
|
|
@@ -9,5 +6,4 @@ const formatString = (...arguments_) => {
|
|
|
9
6
|
}
|
|
10
7
|
return output;
|
|
11
8
|
};
|
|
12
|
-
exports.formatString = formatString;
|
|
13
9
|
//# sourceMappingURL=format-string.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-string.js","sourceRoot":"","sources":["../source/format-string.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-string.js","sourceRoot":"","sources":["../source/format-string.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,UAAiB,EAAU,EAAE;IAC5D,IAAI,MAAM,GAAW,UAAU,CAAC,CAAC,CAAC,CAAC;IAEnC,UAAU,CAAC,KAAK,EAAE,CAAC;IAEnB,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;QACrD,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,GAAG,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPathSegments = void 0;
|
|
4
1
|
const disallowedKeys = new Set(["__proto__", "prototype", "constructor"]);
|
|
5
|
-
const getPathSegments = (value) => {
|
|
2
|
+
export const getPathSegments = (value) => {
|
|
6
3
|
const segments = Array.isArray(value) ? value : value.split(".");
|
|
7
4
|
return segments.some((segment) => disallowedKeys.has(segment)) ? [] : segments;
|
|
8
5
|
};
|
|
9
|
-
exports.getPathSegments = getPathSegments;
|
|
10
6
|
//# sourceMappingURL=get-path-segments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-path-segments.js","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-path-segments.js","sourceRoot":"","sources":["../source/get-path-segments.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAwB,EAAY,EAAE;IACrE,MAAM,QAAQ,GAAa,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE3E,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;AACxF,CAAC,CAAC"}
|
package/distribution/get-type.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getType = void 0;
|
|
4
|
-
const getType = (value) => Object.prototype.toString.call(value);
|
|
5
|
-
exports.getType = getType;
|
|
1
|
+
export const getType = (value) => Object.prototype.toString.call(value);
|
|
6
2
|
//# sourceMappingURL=get-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-type.js","sourceRoot":"","sources":["../source/get-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-type.js","sourceRoot":"","sources":["../source/get-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC"}
|
package/distribution/get.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const get: <T, V>(object: T, path: string | string[], defaultValue?: V
|
|
1
|
+
export declare const get: <T, V>(object: T, path: string | string[], defaultValue?: V) => V | undefined;
|
|
2
2
|
//# sourceMappingURL=get.d.ts.map
|
|
@@ -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,iBAAkB,CAAC,QAAQ,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,KAAG,CAAC,GAAG,SAwBpF,CAAC"}
|
package/distribution/get.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const is_string_1 = require("./is-string");
|
|
8
|
-
const get = (object, path, defaultValue) => {
|
|
9
|
-
if (!(0, is_object_1.isObject)(object) || !(0, is_string_1.isString)(path)) {
|
|
1
|
+
import { getPathSegments } from "./get-path-segments.js";
|
|
2
|
+
import { isEnumerable } from "./is-enumerable.js";
|
|
3
|
+
import { isObject } from "./is-object.js";
|
|
4
|
+
import { isString } from "./is-string.js";
|
|
5
|
+
export const get = (object, path, defaultValue) => {
|
|
6
|
+
if (!isObject(object) || !isString(path)) {
|
|
10
7
|
return defaultValue;
|
|
11
8
|
}
|
|
12
|
-
const pathSegments =
|
|
9
|
+
const pathSegments = getPathSegments(path);
|
|
13
10
|
for (let index = 0; index < pathSegments.length; index++) {
|
|
14
|
-
if (!
|
|
11
|
+
if (!isEnumerable(object, pathSegments[index])) {
|
|
15
12
|
return defaultValue;
|
|
16
13
|
}
|
|
17
14
|
object = object[pathSegments[index]];
|
|
@@ -24,5 +21,4 @@ const get = (object, path, defaultValue) => {
|
|
|
24
21
|
}
|
|
25
22
|
return object;
|
|
26
23
|
};
|
|
27
|
-
exports.get = get;
|
|
28
24
|
//# sourceMappingURL=get.js.map
|
package/distribution/get.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../source/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,GAAG,GAAG,CAAO,MAAS,EAAE,IAAuB,EAAE,YAAgB,EAAiB,EAAE;IAChG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,MAAM,YAAY,GAAa,eAAe,CAAC,IAAI,CAAC,CAAC;IAErD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1D,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAChD,OAAO,YAAY,CAAC;QACrB,CAAC;QAED,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAErC,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAC7C,IAAI,KAAK,KAAK,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvC,OAAO,YAAY,CAAC;YACrB,CAAC;YAED,MAAM;QACP,CAAC;IACF,CAAC;IAED,OAAO,MAAsB,CAAC;AAC/B,CAAC,CAAC"}
|