@design-edito/tools 0.2.39 → 0.2.41
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/agnostic/arrays/dedupe/index.d.ts +7 -0
- package/agnostic/arrays/dedupe/index.js +10 -0
- package/agnostic/arrays/find-duplicates/index.d.ts +14 -0
- package/agnostic/arrays/find-duplicates/index.js +24 -5
- package/agnostic/arrays/find-duplicates/index.test.d.ts +1 -0
- package/agnostic/arrays/is-array-of/index.d.ts +15 -4
- package/agnostic/arrays/is-array-of/index.js +23 -4
- package/agnostic/arrays/is-array-of/index.test.d.ts +1 -0
- package/agnostic/arrays/make/index.d.ts +8 -0
- package/agnostic/arrays/make/index.js +6 -4
- package/agnostic/arrays/make/index.test.d.ts +1 -0
- package/agnostic/arrays/random-pick/index.d.ts +20 -0
- package/agnostic/arrays/random-pick/index.js +2 -10
- package/agnostic/arrays/random-pick/index.test.d.ts +1 -0
- package/agnostic/arrays/shuffle/index.d.ts +8 -0
- package/agnostic/arrays/shuffle/index.js +11 -4
- package/agnostic/arrays/shuffle/index.test.d.ts +1 -0
- package/agnostic/booleans/is-falsy/index.d.ts +17 -0
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/booleans/is-falsy/index.test.d.ts +1 -0
- package/agnostic/colors/channels/index.d.ts +34 -0
- package/agnostic/colors/channels/index.js +5 -5
- package/agnostic/colors/channels/index.test.d.ts +1 -0
- package/agnostic/colors/contrast/index.d.ts +8 -0
- package/agnostic/colors/contrast/index.js +26 -7
- package/agnostic/colors/contrast/index.test.d.ts +1 -0
- package/agnostic/colors/convert/index.d.ts +144 -0
- package/agnostic/colors/convert/index.js +4 -4
- package/agnostic/colors/convert/index.test.d.ts +1 -0
- package/agnostic/colors/distance/index.d.ts +8 -0
- package/agnostic/colors/distance/index.js +49 -6
- package/agnostic/colors/distance/index.test.d.ts +1 -0
- package/agnostic/colors/grayscale/index.d.ts +9 -1
- package/agnostic/colors/grayscale/index.js +155 -6
- package/agnostic/colors/grayscale/index.test.d.ts +1 -0
- package/agnostic/colors/invert/index.d.ts +8 -0
- package/agnostic/colors/invert/index.js +45 -7
- package/agnostic/colors/invert/index.test.d.ts +1 -0
- package/agnostic/colors/lerp/index.d.ts +12 -1
- package/agnostic/colors/lerp/index.js +96 -6
- package/agnostic/colors/lerp/index.test.d.ts +1 -0
- package/agnostic/colors/luminance/index.d.ts +7 -0
- package/agnostic/colors/luminance/index.js +5 -5
- package/agnostic/colors/luminance/index.test.d.ts +1 -0
- package/agnostic/colors/palette/index.d.ts +10 -1
- package/agnostic/colors/palette/index.js +103 -8
- package/agnostic/colors/palette/index.test.d.ts +1 -0
- package/agnostic/colors/rotate/index.d.ts +10 -1
- package/agnostic/colors/rotate/index.js +6 -6
- package/agnostic/colors/rotate/index.test.d.ts +1 -0
- package/agnostic/colors/tidy/index.d.ts +9 -1
- package/agnostic/colors/tidy/index.js +4 -4
- package/agnostic/colors/tidy/index.test.d.ts +1 -0
- package/agnostic/colors/typechecks/index.d.ts +60 -0
- package/agnostic/colors/typechecks/index.js +3 -3
- package/agnostic/colors/typechecks/index.test.d.ts +1 -0
- package/agnostic/colors/types.d.ts +106 -0
- package/agnostic/colors/types.js +2 -2
- package/agnostic/css/bem/index.d.ts +29 -6
- package/agnostic/css/bem/index.js +155 -6
- package/agnostic/css/generate-nice-color/index.d.ts +8 -2
- package/agnostic/css/generate-nice-color/index.js +70 -5
- package/agnostic/css/generate-nice-color/index.test.d.ts +1 -0
- package/agnostic/css/is-valid-css-class-name/index.d.ts +11 -0
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/is-valid-css-class-name/index.test.d.ts +1 -0
- package/agnostic/css/styles-set/index.js +167 -15
- package/agnostic/errors/register/index.d.ts +31 -33
- package/agnostic/errors/register/index.js +49 -5
- package/agnostic/errors/unknown-to-string/index.d.ts +6 -0
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/errors/unknown-to-string/index.test.d.ts +1 -0
- package/agnostic/html/get-node-ancestors/index.d.ts +12 -0
- package/agnostic/html/get-node-ancestors/index.js +3 -2
- package/agnostic/html/get-node-ancestors/index.test.d.ts +1 -0
- package/agnostic/html/get-position-inside-parent/index.d.ts +8 -0
- package/agnostic/html/get-position-inside-parent/index.js +8 -4
- package/agnostic/html/get-position-inside-parent/index.test.d.ts +1 -0
- package/agnostic/html/hyper-json/cast/index.js +13 -13
- package/agnostic/html/hyper-json/index.js +41 -17
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +13 -13
- package/agnostic/html/hyper-json/transformer/index.d.ts +1 -1
- package/agnostic/html/hyper-json/transformer/index.js +3 -3
- package/agnostic/html/hyper-json/tree/index.js +13 -13
- package/agnostic/html/hyper-json/types/index.d.ts +1 -1
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
- package/agnostic/html/hyper-json/utils/index.js +13 -13
- package/agnostic/html/insert-node/index.d.ts +17 -0
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/insert-node/index.test.d.ts +1 -0
- package/agnostic/html/placeholders/index.d.ts +7 -9
- package/agnostic/html/placeholders/index.js +37 -5
- package/agnostic/html/replace-in-element/index.d.ts +14 -0
- package/agnostic/html/replace-in-element/index.js +3 -2
- package/agnostic/html/replace-in-element/index.test.d.ts +1 -0
- package/agnostic/html/selector-to-element/index.d.ts +16 -1
- package/agnostic/html/selector-to-element/index.js +30 -11
- package/agnostic/html/selector-to-element/index.test.d.ts +1 -0
- package/agnostic/html/string-to-nodes/index.d.ts +14 -7
- package/agnostic/html/string-to-nodes/index.js +16 -12
- package/agnostic/html/string-to-nodes/index.test.d.ts +1 -0
- package/agnostic/misc/assert/index.d.ts +5 -7
- package/agnostic/misc/assert/index.js +61 -8
- package/agnostic/misc/cast/index.d.ts +81 -10
- package/agnostic/misc/cast/index.js +18 -4
- package/agnostic/misc/cast/index.test.d.ts +1 -0
- package/agnostic/misc/connection/index.d.ts +26 -0
- package/agnostic/misc/connection/index.js +39 -0
- package/agnostic/misc/connection/index.test.d.ts +1 -0
- package/agnostic/misc/crawler/index.d.ts +63 -16
- package/agnostic/misc/crawler/index.js +32 -5
- package/agnostic/misc/crawler/index.test.d.ts +1 -0
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +12 -2
- package/agnostic/misc/crossenv/detect-runtime/index.js +14 -5
- package/agnostic/misc/crossenv/detect-runtime/index.test.d.ts +1 -0
- package/agnostic/misc/crossenv/types.d.ts +40 -0
- package/agnostic/misc/crossenv/types.js +7 -0
- package/agnostic/misc/crossenv/window/index.d.ts +28 -7
- package/agnostic/misc/crossenv/window/index.js +10 -4
- package/agnostic/misc/crossenv/window/index.test.d.ts +1 -0
- package/agnostic/misc/data-size/index.d.ts +43 -21
- package/agnostic/misc/data-size/index.js +270 -34
- package/agnostic/misc/data-size/index.test.d.ts +1 -0
- package/agnostic/misc/data-size/types.d.ts +37 -0
- package/agnostic/misc/elo/index.d.ts +28 -30
- package/agnostic/misc/elo/index.js +27 -30
- package/agnostic/misc/is-constructor-function/index.d.ts +11 -0
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-constructor-function/index.test.d.ts +1 -0
- package/agnostic/misc/is-nullish/index.d.ts +22 -0
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/is-nullish/index.test.d.ts +1 -0
- package/agnostic/misc/logs/logger/index.js +109 -4
- package/agnostic/misc/logs/make-text-block/index.js +1 -1
- package/agnostic/misc/logs/styles/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.d.ts +3 -5
- package/agnostic/misc/lorem-ipsum/index.js +187 -23
- package/agnostic/misc/lorem-ipsum/index.test.d.ts +1 -0
- package/agnostic/misc/normalize-extension/index.d.ts +10 -0
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/normalize-extension/index.test.d.ts +1 -0
- package/agnostic/misc/outcome/index.d.ts +56 -15
- package/agnostic/misc/outcome/index.js +8 -4
- package/agnostic/misc/outcome/index.test.d.ts +1 -0
- package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/absolute-modulo/index.test.d.ts +1 -0
- package/agnostic/numbers/approximate-rational/index.d.ts +22 -0
- package/agnostic/numbers/approximate-rational/index.js +72 -0
- package/agnostic/numbers/approximate-rational/index.test.d.ts +1 -0
- package/agnostic/numbers/clamp/index.d.ts +8 -0
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/clamp/index.test.d.ts +1 -0
- package/agnostic/numbers/interpolate/index.d.ts +20 -1
- package/agnostic/numbers/interpolate/index.js +12 -7
- package/agnostic/numbers/interpolate/index.test.d.ts +1 -0
- package/agnostic/numbers/responsive-harmonics/index.d.ts +20 -0
- package/agnostic/numbers/responsive-harmonics/index.js +49 -5
- package/agnostic/numbers/round/index.d.ts +24 -3
- package/agnostic/numbers/round/index.js +2 -2
- package/agnostic/numbers/round/index.test.d.ts +1 -0
- package/agnostic/objects/deep-get-property/index.d.ts +8 -0
- package/agnostic/objects/deep-get-property/index.js +23 -4
- package/agnostic/objects/enums/is-in-enum/index.d.ts +10 -0
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.d.ts +6 -0
- package/agnostic/objects/flatten-getters/index.js +19 -4
- package/agnostic/objects/is-object/index.d.ts +12 -0
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.d.ts +6 -0
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.d.ts +27 -0
- package/agnostic/objects/record-format/index.js +15 -4
- package/agnostic/objects/record-map/index.d.ts +9 -0
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.d.ts +11 -3
- package/agnostic/objects/validation/index.js +9 -5
- package/agnostic/optim/memoize/index.d.ts +10 -1
- package/agnostic/optim/memoize/index.js +16 -4
- package/agnostic/optim/throttle-debounce/index.js +110 -5
- package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
- package/agnostic/random/hex-char/index.d.ts +2 -0
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/random/index.d.ts +14 -0
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.d.ts +18 -0
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.d.ts +95 -24
- package/agnostic/regexps/index.js +86 -5
- package/agnostic/sanitization/file-name/index.d.ts +13 -0
- package/agnostic/sanitization/file-name/index.js +7 -0
- package/agnostic/sanitization/html/index.d.ts +61 -0
- package/agnostic/sanitization/html/index.js +121 -0
- package/agnostic/sanitization/path/index.d.ts +11 -0
- package/agnostic/sanitization/path/index.js +14 -0
- package/agnostic/sanitization/types.d.ts +37 -0
- package/agnostic/sanitization/types.js +0 -0
- package/agnostic/sanitization/user-input/index.d.ts +13 -0
- package/agnostic/sanitization/user-input/index.js +23 -0
- package/agnostic/strings/char-codes/index.d.ts +82 -17
- package/agnostic/strings/char-codes/index.js +68 -5
- package/agnostic/strings/matches/index.d.ts +24 -0
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.d.ts +22 -0
- package/agnostic/strings/normalize-indent/index.js +16 -4
- package/agnostic/strings/parse-table/index.d.ts +123 -66
- package/agnostic/strings/parse-table/index.js +83 -4
- package/agnostic/strings/replace-all/index.d.ts +20 -0
- package/agnostic/strings/replace-all/index.js +2 -2
- package/agnostic/strings/to-alphanum/index.d.ts +18 -0
- package/agnostic/strings/to-alphanum/index.js +8 -4
- package/agnostic/strings/trim/index.d.ts +18 -0
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.d.ts +47 -0
- package/agnostic/time/dates/format-date/index.js +58 -4
- package/agnostic/time/duration/index.d.ts +38 -25
- package/agnostic/time/duration/index.js +110 -5
- package/agnostic/time/timeout/index.d.ts +8 -0
- package/agnostic/time/timeout/index.js +16 -4
- package/agnostic/time/transitions/index.d.ts +73 -40
- package/agnostic/time/transitions/index.js +158 -5
- package/agnostic/time/wait/index.d.ts +6 -0
- package/agnostic/time/wait/index.js +1 -1
- package/agnostic/typescript/types.d.ts +37 -0
- package/agnostic/typescript/types.js +0 -0
- package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
- package/chunks/{chunk-LUPVHC73.js → chunk-3MPXVP4L.js} +11 -3
- package/chunks/chunk-4WE2WEXL.js +12 -0
- package/chunks/{chunk-FF5NURFO.js → chunk-54KPQCVI.js} +6 -13
- package/chunks/{chunk-SRXNICSE.js → chunk-5CFQCSKJ.js} +6 -5
- package/chunks/{chunk-FKDPPFHV.js → chunk-5NTPCRFH.js} +1 -11
- package/chunks/{chunk-IV75M3KE.js → chunk-5O52VUI6.js} +6 -13
- package/chunks/{chunk-4XSDRT23.js → chunk-5X76KDYN.js} +7 -14
- package/chunks/{chunk-RHKFMXM3.js → chunk-65BFQP3T.js} +6 -5
- package/chunks/{chunk-7J7CYOXU.js → chunk-66BURDRK.js} +8 -15
- package/chunks/{chunk-ZEZCYPLQ.js → chunk-6BGIDRU5.js} +7 -14
- package/chunks/{chunk-D5CCWCEI.js → chunk-6KOJFWH3.js} +1 -1
- package/chunks/{chunk-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
- package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
- package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
- package/chunks/{chunk-IYQV2LP4.js → chunk-ALLCYHRY.js} +323 -321
- package/chunks/{chunk-CVDCTI7F.js → chunk-AOEOW5XW.js} +7 -14
- package/chunks/{chunk-QSU3CVGF.js → chunk-ASWI3EO6.js} +6 -5
- package/chunks/{chunk-QWZ4ZNFA.js → chunk-AV373PHY.js} +8 -15
- package/chunks/{chunk-VROZGPC5.js → chunk-AXMAF3J2.js} +7 -14
- package/chunks/{chunk-QTA7ZEVX.js → chunk-AYGAQQXD.js} +6 -5
- package/chunks/chunk-BHGRXDTS.js +28 -0
- package/chunks/{chunk-CNYSX2L2.js → chunk-BQABPH3I.js} +7 -14
- package/chunks/{chunk-WV5N7ESL.js → chunk-BQXTV2GG.js} +9 -16
- package/chunks/{chunk-37TRFYZT.js → chunk-BXFRBV67.js} +6 -13
- package/chunks/{chunk-3CLGBOHN.js → chunk-DBNCEHTT.js} +6 -13
- package/chunks/{chunk-HRNDUTZE.js → chunk-DBZAJJUF.js} +8 -15
- package/chunks/{chunk-SXRWMH3U.js → chunk-DUCLFPGE.js} +5 -5
- package/chunks/{chunk-UK2F7CWI.js → chunk-EBQRPRRC.js} +6 -13
- package/chunks/{chunk-TGVYEQIA.js → chunk-EEPLTO3E.js} +7 -14
- package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
- package/chunks/{chunk-REZC75LB.js → chunk-FH74QWR6.js} +10 -18
- package/chunks/{chunk-FD5WR2A5.js → chunk-FM3HGCFL.js} +8 -15
- package/chunks/{chunk-W3RXHN5I.js → chunk-FSI422YG.js} +6 -13
- package/chunks/{chunk-STPN5KZL.js → chunk-FXISVWGE.js} +10 -9
- package/chunks/{chunk-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
- package/chunks/{chunk-P5JJOC5K.js → chunk-HMPY32F7.js} +10 -9
- package/chunks/chunk-HYPEWMYZ.js +10 -0
- package/chunks/{chunk-V3L55I2S.js → chunk-IBQQCUYV.js} +6 -13
- package/chunks/{chunk-2HJPX7E3.js → chunk-IK2S6ZYP.js} +6 -5
- package/chunks/{chunk-V3GX7SIJ.js → chunk-ISJONMNA.js} +1 -13
- package/chunks/{chunk-ZJTWDCNZ.js → chunk-J5D4OQ5U.js} +6 -13
- package/chunks/{chunk-67V4BGOB.js → chunk-JDINERKY.js} +1 -1
- package/chunks/{chunk-ZSUG52DO.js → chunk-JFXEMK66.js} +6 -13
- package/chunks/{chunk-RWO53U4X.js → chunk-JN2UETL4.js} +7 -14
- package/chunks/chunk-JU23NBY2.js +22 -0
- package/chunks/{chunk-BKO7GLC2.js → chunk-JVMFT3IT.js} +7 -6
- package/chunks/{chunk-AQBJ6HNB.js → chunk-K5UF634H.js} +1 -5
- package/chunks/{chunk-7UGMWTP5.js → chunk-KRYJVBO5.js} +1 -10
- package/chunks/{chunk-DZ2T5DTY.js → chunk-LFHDJTZJ.js} +1 -1
- package/chunks/{chunk-3G6FOHII.js → chunk-MHNUCHPP.js} +6 -5
- package/chunks/{chunk-NCYE5WML.js → chunk-MSAAQTCE.js} +1 -1
- package/chunks/{chunk-CLLJV343.js → chunk-MZYCKOLN.js} +10 -9
- package/chunks/{chunk-5VHFXWFM.js → chunk-NEMHJSNM.js} +6 -13
- package/chunks/{chunk-BWYH445G.js → chunk-NIIAUOBO.js} +6 -13
- package/chunks/{chunk-HFZGH6V2.js → chunk-NR7STUY3.js} +6 -5
- package/chunks/{chunk-2JH4TCT2.js → chunk-O66PEU62.js} +6 -13
- package/chunks/{chunk-QH64MYGA.js → chunk-O7UCJNVF.js} +7 -14
- package/chunks/{chunk-WAHPAZQS.js → chunk-OF2W4ZRG.js} +6 -13
- package/chunks/{chunk-P26Y7YUA.js → chunk-PTJO2TGI.js} +6 -5
- package/chunks/{chunk-BE7OXZRK.js → chunk-PTN2V757.js} +7 -14
- package/chunks/chunk-QEKI6WGQ.js +27 -0
- package/chunks/{chunk-QWNWZBIO.js → chunk-QFBVETGF.js} +10 -9
- package/chunks/{chunk-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
- package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
- package/chunks/{chunk-FNQAF6CQ.js → chunk-RNXRHCHQ.js} +2 -2
- package/chunks/chunk-ROWPCMQY.js +29 -0
- package/chunks/{chunk-KJAEVOIW.js → chunk-S2I77NEE.js} +8 -15
- package/chunks/{chunk-CWZFRUBS.js → chunk-S6ZFFGWH.js} +7 -14
- package/chunks/{chunk-6IYUA43Q.js → chunk-SBBIQ5UH.js} +7 -14
- package/chunks/{chunk-YVKM7N55.js → chunk-TLWVLCIQ.js} +10 -9
- package/chunks/{chunk-YXLHZ2KW.js → chunk-TTJXJX4E.js} +2 -2
- package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
- package/chunks/{chunk-3LCD73SB.js → chunk-UR5BUIPU.js} +2 -2
- package/chunks/{chunk-QAQZEKIF.js → chunk-USIYKRNX.js} +6 -6
- package/chunks/{chunk-FB3GNE2B.js → chunk-UZ4SWSOZ.js} +8 -15
- package/chunks/{chunk-4XBUJAQU.js → chunk-VU6JYR3W.js} +7 -14
- package/chunks/{chunk-FE4DECBU.js → chunk-VYDUHDXW.js} +7 -14
- package/chunks/{chunk-BSUQNHAM.js → chunk-W5VY535B.js} +7 -14
- package/chunks/chunk-XCBH6NLF.js +42 -0
- package/chunks/chunk-XIIJYVJZ.js +15 -0
- package/chunks/{chunk-QDVDHFMZ.js → chunk-Y6FD4ASO.js} +7 -14
- package/chunks/{chunk-C6QTHDDM.js → chunk-YOP6WVCF.js} +7 -14
- package/chunks/chunk-YWSXCFYY.js +61 -0
- package/chunks/chunk-ZKIQ753F.js +23 -0
- package/chunks/{chunk-QLDN574K.js → chunk-ZTPRFEPV.js} +7 -14
- package/components/Comp/index.js +7 -4
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +4 -12
- package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/list/index.js +3 -3
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.js +3 -3
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.js +3 -3
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.js +3 -3
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.js +3 -3
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/move/index.js +3 -3
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +3 -3
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/stat/index.js +3 -3
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.js +3 -3
- package/node/@design-edito/index.d.ts +1 -2
- package/node/@design-edito/index.js +0 -8
- package/node/@express/@multer/index.d.ts +34 -1
- package/node/@express/@multer/index.js +43 -5
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +18 -5
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/copy-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/list/index.js +3 -3
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.js +3 -3
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.js +3 -3
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.js +3 -3
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.js +3 -3
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +24 -5
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.js +20 -5
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/move/index.js +3 -3
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +25 -7
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/stat/index.js +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.js +3 -3
- package/node/cloud-storage/clients/index.d.ts +27 -0
- package/node/cloud-storage/clients/index.js +2 -2
- package/node/cloud-storage/operations/copy-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-dir/index.js +30 -9
- package/node/cloud-storage/operations/copy-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-file/index.js +30 -9
- package/node/cloud-storage/operations/download-file/index.d.ts +50 -1
- package/node/cloud-storage/operations/download-file/index.js +30 -9
- package/node/cloud-storage/operations/exists-file/index.d.ts +44 -1
- package/node/cloud-storage/operations/exists-file/index.js +30 -9
- package/node/cloud-storage/operations/list-dir/index.d.ts +40 -1
- package/node/cloud-storage/operations/list-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-file/index.js +30 -9
- package/node/cloud-storage/operations/remove-dir/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-dir/index.js +30 -9
- package/node/cloud-storage/operations/remove-file/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-file/index.js +30 -9
- package/node/cloud-storage/operations/stat-file/index.d.ts +40 -1
- package/node/cloud-storage/operations/stat-file/index.js +30 -9
- package/node/cloud-storage/operations/upload-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/upload-file/index.js +30 -9
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/buffer/index.js +22 -6
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +3 -3
- package/node/encryption/key/index.js +12 -4
- package/node/files/is-in-directory/index.d.ts +7 -0
- package/node/files/is-in-directory/index.js +8 -4
- package/node/files/read-write/index.d.ts +48 -4
- package/node/files/read-write/index.js +15 -4
- package/node/files/subpaths/index.d.ts +62 -33
- package/node/files/subpaths/index.js +119 -5
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/copy-dir/index.js +3 -3
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/list/index.js +3 -3
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.js +3 -3
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.js +3 -3
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/copy/index.js +3 -3
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/download/index.js +3 -3
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/exists/index.js +3 -3
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/move/index.js +3 -3
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/remove/index.js +3 -3
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/stat/index.js +3 -3
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/file/upload/index.js +3 -3
- package/node/images/create/index.d.ts +6 -0
- package/node/images/create/index.js +12 -17
- package/node/images/format/index.d.ts +36 -1
- package/node/images/format/index.js +240 -43
- package/node/images/metadata/index.d.ts +6 -0
- package/node/images/metadata/index.js +12 -17
- package/node/images/transform/index.d.ts +23 -1
- package/node/images/transform/index.js +198 -38
- package/node/images/transform/operations/blur/index.d.ts +1 -1
- package/node/images/transform/operations/blur/index.js +4 -4
- package/node/images/transform/operations/brighten/index.d.ts +1 -1
- package/node/images/transform/operations/brighten/index.js +4 -4
- package/node/images/transform/operations/extend/index.d.ts +1 -1
- package/node/images/transform/operations/extend/index.js +8 -18
- package/node/images/transform/operations/extract/index.d.ts +1 -1
- package/node/images/transform/operations/extract/index.js +4 -4
- package/node/images/transform/operations/flatten/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.js +8 -18
- package/node/images/transform/operations/flip/index.js +1 -1
- package/node/images/transform/operations/flop/index.js +1 -1
- package/node/images/transform/operations/hue/index.d.ts +1 -1
- package/node/images/transform/operations/hue/index.js +4 -4
- package/node/images/transform/operations/level/index.d.ts +1 -1
- package/node/images/transform/operations/level/index.js +4 -4
- package/node/images/transform/operations/lighten/index.d.ts +1 -1
- package/node/images/transform/operations/lighten/index.js +4 -4
- package/node/images/transform/operations/normalize/index.d.ts +1 -1
- package/node/images/transform/operations/normalize/index.js +4 -4
- package/node/images/transform/operations/overlay/index.d.ts +1 -1
- package/node/images/transform/operations/overlay/index.js +8 -18
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/resize/index.js +8 -18
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.js +8 -18
- package/node/images/transform/operations/saturate/index.d.ts +1 -1
- package/node/images/transform/operations/saturate/index.js +4 -4
- package/node/images/types.d.ts +136 -1
- package/node/images/types.js +2 -2
- package/node/images/utils/index.d.ts +20 -0
- package/node/images/utils/index.js +5 -15
- package/node/process/on-exit/index.d.ts +23 -0
- package/node/process/on-exit/index.js +25 -8
- package/node/process/prompt-continue/index.d.ts +18 -0
- package/node/process/prompt-continue/index.js +1680 -0
- package/node/process/spawner/index.d.ts +18 -0
- package/node/process/spawner/index.js +83 -0
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.js +3 -3
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/list/index.js +3 -3
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.js +3 -3
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.js +3 -3
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/copy/index.js +3 -3
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/download/index.js +3 -3
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/exists/index.js +3 -3
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/move/index.js +3 -3
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/remove/index.js +3 -3
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/stat/index.js +3 -3
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/file/upload/index.js +3 -3
- package/package.json +11 -3
- package/agnostic/arrays/index.d.ts +0 -13
- package/agnostic/arrays/index.js +0 -21
- package/agnostic/booleans/index.d.ts +0 -8
- package/agnostic/booleans/index.js +0 -9
- package/agnostic/colors/index.d.ts +0 -14
- package/agnostic/colors/index.js +0 -107
- package/agnostic/css/bem/BEM.d.ts +0 -29
- package/agnostic/css/bem/getNamesArr.d.ts +0 -2
- package/agnostic/css/index.d.ts +0 -14
- package/agnostic/css/index.js +0 -25
- package/agnostic/errors/index.d.ts +0 -6
- package/agnostic/errors/index.js +0 -9
- package/agnostic/html/index.d.ts +0 -19
- package/agnostic/html/index.js +0 -39
- package/agnostic/html/sanitize/index.d.ts +0 -24
- package/agnostic/html/sanitize/index.js +0 -15
- package/agnostic/index.d.ts +0 -26
- package/agnostic/index.js +0 -144
- package/agnostic/misc/crossenv/index.d.ts +0 -8
- package/agnostic/misc/crossenv/index.js +0 -10
- package/agnostic/misc/crossenv/types/index.d.ts +0 -19
- package/agnostic/misc/crossenv/types/index.js +0 -7
- package/agnostic/misc/get-current-downlink/index.d.ts +0 -1
- package/agnostic/misc/get-current-downlink/index.js +0 -7
- package/agnostic/misc/index.d.ts +0 -25
- package/agnostic/misc/index.js +0 -65
- package/agnostic/misc/logs/index.d.ts +0 -17
- package/agnostic/misc/logs/index.js +0 -10
- package/agnostic/numbers/index.d.ts +0 -13
- package/agnostic/numbers/index.js +0 -12
- package/agnostic/objects/enums/index.d.ts +0 -4
- package/agnostic/objects/enums/index.js +0 -8
- package/agnostic/objects/index.d.ts +0 -19
- package/agnostic/objects/index.js +0 -19
- package/agnostic/optim/index.d.ts +0 -7
- package/agnostic/optim/index.js +0 -9
- package/agnostic/random/index.d.ts +0 -12
- package/agnostic/random/index.js +0 -10
- package/agnostic/sanitization/index.d.ts +0 -3
- package/agnostic/sanitization/index.js +0 -35
- package/agnostic/strings/index.d.ts +0 -19
- package/agnostic/strings/index.js +0 -15
- package/agnostic/time/dates/index.d.ts +0 -4
- package/agnostic/time/dates/index.js +0 -8
- package/agnostic/time/index.d.ts +0 -12
- package/agnostic/time/index.js +0 -30
- package/chunks/chunk-26T64AEI.js +0 -28
- package/chunks/chunk-34U4HX4V.js +0 -73
- package/chunks/chunk-3KZNRSDD.js +0 -112
- package/chunks/chunk-3USAHFOX.js +0 -31
- package/chunks/chunk-42K3MQQ5.js +0 -31
- package/chunks/chunk-45E3E4KW.js +0 -43
- package/chunks/chunk-4RPGLKRQ.js +0 -43
- package/chunks/chunk-536IRELM.js +0 -40
- package/chunks/chunk-5CTAKAIP.js +0 -28
- package/chunks/chunk-6KM4UT6T.js +0 -34
- package/chunks/chunk-6NYUQXJT.js +0 -109
- package/chunks/chunk-6RGDWX4A.js +0 -24
- package/chunks/chunk-6YQGM6N6.js +0 -19
- package/chunks/chunk-7AWTHZLY.js +0 -12
- package/chunks/chunk-7DBNMU6N.js +0 -14
- package/chunks/chunk-7YJ4BB73.js +0 -20
- package/chunks/chunk-A3CDUWGR.js +0 -73
- package/chunks/chunk-AL7ESVX4.js +0 -42
- package/chunks/chunk-ALAGBHFV.js +0 -42
- package/chunks/chunk-ANPXBD2G.js +0 -35
- package/chunks/chunk-AZD3VUWK.js +0 -84
- package/chunks/chunk-B43NYQDI.js +0 -16
- package/chunks/chunk-BDGFY3GP.js +0 -42
- package/chunks/chunk-BGSJ5XCH.js +0 -20
- package/chunks/chunk-BJAYUP7M.js +0 -13
- package/chunks/chunk-BLDUC7TT.js +0 -17
- package/chunks/chunk-COVPTTAD.js +0 -10
- package/chunks/chunk-DKITT7OT.js +0 -296
- package/chunks/chunk-EDVNAV3G.js +0 -72
- package/chunks/chunk-EGBJXHCW.js +0 -47
- package/chunks/chunk-EIIADR7E.js +0 -24
- package/chunks/chunk-ENMBK6H7.js +0 -162
- package/chunks/chunk-EUQFWLAH.js +0 -20
- package/chunks/chunk-F3WCF6DL.js +0 -122
- package/chunks/chunk-FEIKHYDQ.js +0 -20
- package/chunks/chunk-FHLCPVND.js +0 -23
- package/chunks/chunk-FPEW3A27.js +0 -14
- package/chunks/chunk-FR5H2OCV.js +0 -21
- package/chunks/chunk-FVFVKL54.js +0 -32
- package/chunks/chunk-FZOU4OAW.js +0 -13
- package/chunks/chunk-G4ZB72XY.js +0 -257
- package/chunks/chunk-G5RRNREY.js +0 -37
- package/chunks/chunk-GABKKGNI.js +0 -206
- package/chunks/chunk-GL42Q643.js +0 -42
- package/chunks/chunk-GTVOFJKO.js +0 -20
- package/chunks/chunk-HKTNK262.js +0 -23
- package/chunks/chunk-HWVEI3RH.js +0 -31
- package/chunks/chunk-IRTPQATN.js +0 -16
- package/chunks/chunk-JBSS64SA.js +0 -6
- package/chunks/chunk-JMU5PDBD.js +0 -20
- package/chunks/chunk-JQXNEJAP.js +0 -18
- package/chunks/chunk-JTJA7DGW.js +0 -36
- package/chunks/chunk-JWBDZPQG.js +0 -18
- package/chunks/chunk-JZ5MFJQB.js +0 -37
- package/chunks/chunk-KIONYWA7.js +0 -168
- package/chunks/chunk-KWQ4K4GN.js +0 -28
- package/chunks/chunk-KXIA3YGF.js +0 -54
- package/chunks/chunk-KXIEPXDI.js +0 -40
- package/chunks/chunk-L7PIZQFC.js +0 -51
- package/chunks/chunk-LEXQ6E6L.js +0 -31
- package/chunks/chunk-LV2VMOWR.js +0 -18
- package/chunks/chunk-MFIGSRSO.js +0 -103
- package/chunks/chunk-MJQF3YZO.js +0 -21
- package/chunks/chunk-MV473S2C.js +0 -28
- package/chunks/chunk-MVYH3CSJ.js +0 -42
- package/chunks/chunk-N4JGLSGA.js +0 -28
- package/chunks/chunk-NRITRUZW.js +0 -10
- package/chunks/chunk-OC4VIF3N.js +0 -42
- package/chunks/chunk-OJCVOSWP.js +0 -41
- package/chunks/chunk-OKCPVFQW.js +0 -56
- package/chunks/chunk-OKFZJ6DJ.js +0 -9
- package/chunks/chunk-PAIUCLVK.js +0 -35
- package/chunks/chunk-PU7NOIJB.js +0 -16
- package/chunks/chunk-PVRYR5KX.js +0 -21
- package/chunks/chunk-PWNX5TWJ.js +0 -60
- package/chunks/chunk-QCOO4PV5.js +0 -54
- package/chunks/chunk-QHAB6XYD.js +0 -30
- package/chunks/chunk-QHLQVR3E.js +0 -54
- package/chunks/chunk-QKE2IYT5.js +0 -42
- package/chunks/chunk-QVPS2BCJ.js +0 -29
- package/chunks/chunk-R4DZKWSR.js +0 -42
- package/chunks/chunk-RASMASS4.js +0 -111
- package/chunks/chunk-RLAZR3NL.js +0 -8
- package/chunks/chunk-RLJOYG64.js +0 -33
- package/chunks/chunk-S2NMAH7K.js +0 -19
- package/chunks/chunk-S32K7POB.js +0 -29
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SKMCIFS3.js +0 -27
- package/chunks/chunk-SNJJII7A.js +0 -65
- package/chunks/chunk-STW5RKR7.js +0 -175
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-UNXRB2AV.js +0 -16
- package/chunks/chunk-UXEKCYL7.js +0 -28
- package/chunks/chunk-VFJYLXCI.js +0 -23
- package/chunks/chunk-VJJIYJMY.js +0 -13
- package/chunks/chunk-VLC7LRED.js +0 -191
- package/chunks/chunk-VTPRO4NJ.js +0 -10
- package/chunks/chunk-VYW4IADX.js +0 -35
- package/chunks/chunk-VZDUZTW6.js +0 -113
- package/chunks/chunk-WAMSK4A3.js +0 -67
- package/chunks/chunk-WH6BPDAC.js +0 -17
- package/chunks/chunk-WOAYU6LB.js +0 -13
- package/chunks/chunk-WOYF3N4A.js +0 -31
- package/chunks/chunk-WSC3WODJ.js +0 -157
- package/chunks/chunk-WSFCRVEQ.js +0 -9
- package/chunks/chunk-X53BGT33.js +0 -42
- package/chunks/chunk-XB3EGDBI.js +0 -127
- package/chunks/chunk-XBA26Z7E.js +0 -42
- package/chunks/chunk-XPGAVZGK.js +0 -98
- package/chunks/chunk-XR2LNUGW.js +0 -42
- package/chunks/chunk-Y5GGIBPI.js +0 -31
- package/chunks/chunk-YKPA3MQL.js +0 -31
- package/chunks/chunk-YP64J65L.js +0 -17
- package/chunks/chunk-YPTFPS76.js +0 -91
- package/chunks/chunk-YQWZ3EP2.js +0 -60
- package/chunks/chunk-YS6WMSWC.js +0 -15
- package/chunks/chunk-YUP434IY.js +0 -43
- package/chunks/chunk-Z7ZDDBV5.js +0 -18
- package/chunks/chunk-ZBBU2P4D.js +0 -28
- package/chunks/chunk-ZLBSI4TR.js +0 -21
- package/chunks/chunk-ZMT6S52U.js +0 -40
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- package/chunks/chunk-ZYTGT7AE.js +0 -20
- package/components/index.d.ts +0 -4
- package/components/index.js +0 -13
- package/node/@aws-s3/index.d.ts +0 -2
- package/node/@aws-s3/index.js +0 -23
- package/node/@aws-s3/storage/directory/index.d.ts +0 -5
- package/node/@aws-s3/storage/directory/index.js +0 -22
- package/node/@aws-s3/storage/file/index.d.ts +0 -8
- package/node/@aws-s3/storage/file/index.js +0 -34
- package/node/@aws-s3/storage/index.d.ts +0 -3
- package/node/@aws-s3/storage/index.js +0 -25
- package/node/@design-edito/thumbnails/index.js +0 -1
- package/node/@express/index.d.ts +0 -2
- package/node/@express/index.js +0 -10
- package/node/@google-cloud/index.d.ts +0 -2
- package/node/@google-cloud/index.js +0 -30
- package/node/@google-cloud/storage/bucket/index.d.ts +0 -5
- package/node/@google-cloud/storage/bucket/index.js +0 -22
- package/node/@google-cloud/storage/directory/index.d.ts +0 -5
- package/node/@google-cloud/storage/directory/index.js +0 -22
- package/node/@google-cloud/storage/file/index.d.ts +0 -13
- package/node/@google-cloud/storage/file/index.js +0 -54
- package/node/@google-cloud/storage/index.d.ts +0 -4
- package/node/@google-cloud/storage/index.js +0 -35
- package/node/cloud-storage/index.d.ts +0 -3
- package/node/cloud-storage/index.js +0 -69
- package/node/cloud-storage/operations/index.d.ts +0 -12
- package/node/cloud-storage/operations/index.js +0 -95
- package/node/encryption/@aes-256-gcm/index.d.ts +0 -3
- package/node/encryption/@aes-256-gcm/index.js +0 -14
- package/node/encryption/index.d.ts +0 -3
- package/node/encryption/index.js +0 -16
- package/node/files/index.d.ts +0 -7
- package/node/files/index.js +0 -15
- package/node/ftps/directory/index.d.ts +0 -5
- package/node/ftps/directory/index.js +0 -22
- package/node/ftps/file/index.d.ts +0 -8
- package/node/ftps/file/index.js +0 -34
- package/node/ftps/index.d.ts +0 -3
- package/node/ftps/index.js +0 -25
- package/node/images/index.d.ts +0 -6
- package/node/images/index.js +0 -59
- package/node/index.d.ts +0 -12
- package/node/index.js +0 -172
- package/node/process/index.d.ts +0 -6
- package/node/process/index.js +0 -16
- package/node/sftp/directory/index.d.ts +0 -5
- package/node/sftp/directory/index.js +0 -22
- package/node/sftp/file/index.d.ts +0 -8
- package/node/sftp/file/index.js +0 -34
- package/node/sftp/index.d.ts +0 -3
- package/node/sftp/index.js +0 -25
- package/shared/errors/index.d.ts +0 -138
- /package/{node/@design-edito/thumbnails/index.d.ts → agnostic/arrays/dedupe/index.test.d.ts} +0 -0
- /package/{shared/index.d.ts → agnostic/misc/data-size/types.js} +0 -0
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Converts a string into an array of DOM nodes.
|
|
3
|
+
*
|
|
4
|
+
* If sanitization options are provided, the string is first sanitized
|
|
5
|
+
* using `Sanitize.sanitize`.
|
|
6
|
+
*
|
|
7
|
+
* Only element and text nodes are included in the returned array; comment
|
|
8
|
+
* and other node types are ignored.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} inputStr - The input string to convert into nodes.
|
|
11
|
+
* @param {SanitizeHtmlOptions} [options.sanitize] - Sanitization options for the input string.
|
|
12
|
+
* @returns {Node[]} An array of DOM nodes created from the string.
|
|
13
|
+
*/
|
|
14
|
+
export declare function stringToNodes(inputStr: string): Node[];
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
get
|
|
3
|
+
} from "../../../chunks/chunk-ROWPCMQY.js";
|
|
4
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
|
+
|
|
6
|
+
// src/agnostic/html/string-to-nodes/index.ts
|
|
7
|
+
function stringToNodes(inputStr) {
|
|
8
|
+
const window = get();
|
|
9
|
+
const { document, Node } = window;
|
|
10
|
+
const wrapperDiv = document.createElement("div");
|
|
11
|
+
wrapperDiv.innerHTML = inputStr;
|
|
12
|
+
const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
|
|
13
|
+
const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
|
|
14
|
+
return allowedNodeTypes.includes(node.nodeType);
|
|
15
|
+
});
|
|
16
|
+
return nodes;
|
|
17
|
+
}
|
|
14
18
|
export {
|
|
15
19
|
stringToNodes
|
|
16
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {};
|
|
7
|
-
}
|
|
1
|
+
import * as Outcome from '../outcome/index.js';
|
|
2
|
+
type Assertion = (() => boolean) | (() => Promise<boolean>) | boolean;
|
|
3
|
+
export declare function assert(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion> | Record<string, Assertion>): Promise<Outcome.Either<string, string>>;
|
|
4
|
+
export declare function assertVerbose(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion>): Promise<void | Outcome.Success<string>>;
|
|
5
|
+
export {};
|
|
@@ -1,11 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "../../../chunks/chunk-
|
|
2
|
+
makeFailure,
|
|
3
|
+
makeSuccess
|
|
4
|
+
} from "../../../chunks/chunk-QEKI6WGQ.js";
|
|
5
|
+
import {
|
|
6
|
+
unknownToString
|
|
7
|
+
} from "../../../chunks/chunk-FENXVJYO.js";
|
|
8
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
9
|
+
|
|
10
|
+
// src/agnostic/misc/assert/index.ts
|
|
11
|
+
function makeSuccess2(label) {
|
|
12
|
+
const formattedLabel = label.split("\n").join("\n ");
|
|
13
|
+
console.info(`\u2705 SUCCESS:
|
|
14
|
+
${formattedLabel}`);
|
|
15
|
+
}
|
|
16
|
+
function makeFailure2(label) {
|
|
17
|
+
const formattedLabel = label.split("\n").join("\n ");
|
|
18
|
+
throw new Error(`\u{1F6AB} FAILURE:
|
|
19
|
+
${formattedLabel}`);
|
|
20
|
+
}
|
|
21
|
+
async function assert(label, assertion) {
|
|
22
|
+
if (typeof assertion === "boolean") return assertion ? makeSuccess(label) : makeFailure(label);
|
|
23
|
+
else if (typeof assertion === "function") {
|
|
24
|
+
try {
|
|
25
|
+
const result = await assertion();
|
|
26
|
+
if (result === false) return makeFailure(label);
|
|
27
|
+
else return makeSuccess(label);
|
|
28
|
+
} catch (err) {
|
|
29
|
+
const errStr = unknownToString(err);
|
|
30
|
+
return makeFailure(`${label} / ${errStr}`);
|
|
31
|
+
}
|
|
32
|
+
} else {
|
|
33
|
+
let assertions;
|
|
34
|
+
if (Array.isArray(assertion)) {
|
|
35
|
+
assertions = [...assertion].map((a, p) => [`${p}`, a]);
|
|
36
|
+
} else if (assertion instanceof Map) {
|
|
37
|
+
assertions = Array.from(assertion);
|
|
38
|
+
} else {
|
|
39
|
+
assertions = Object.entries(assertion);
|
|
40
|
+
}
|
|
41
|
+
const allAsserted = await Promise.all(assertions.map(([innerLabel, innerAssertion]) => {
|
|
42
|
+
const fullLabel = `${label} / ${innerLabel}`;
|
|
43
|
+
const asserted = assert(fullLabel, innerAssertion);
|
|
44
|
+
return asserted;
|
|
45
|
+
}));
|
|
46
|
+
const allSuccess = allAsserted.every((asserted) => asserted.success);
|
|
47
|
+
if (allSuccess) return makeSuccess(allAsserted.map((e) => e.payload).join("\n"));
|
|
48
|
+
const failures = allAsserted.filter((asserted) => asserted.success === false);
|
|
49
|
+
const failuresStr = failures.map((failure) => failure.error).join("\n ");
|
|
50
|
+
return makeFailure(failuresStr);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async function assertVerbose(label, assertion) {
|
|
54
|
+
const asserted = await assert(label, assertion);
|
|
55
|
+
if (asserted?.success) {
|
|
56
|
+
makeSuccess2(asserted.payload);
|
|
57
|
+
return asserted;
|
|
58
|
+
}
|
|
59
|
+
return makeFailure2(asserted.error);
|
|
60
|
+
}
|
|
9
61
|
export {
|
|
10
|
-
|
|
62
|
+
assert,
|
|
63
|
+
assertVerbose
|
|
11
64
|
};
|
|
@@ -1,10 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Converts a value to a boolean.
|
|
3
|
+
*
|
|
4
|
+
* - Booleans are returned as-is.
|
|
5
|
+
* - Strings equal to `"true"` (case-insensitive, trimmed) are `true`, others `false`.
|
|
6
|
+
* - Other values are coerced using `!isFalsy`.
|
|
7
|
+
*
|
|
8
|
+
* @param {unknown} value - The value to convert.
|
|
9
|
+
* @returns {boolean} The boolean representation of the input.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toBoolean(value: unknown): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a value to a number.
|
|
14
|
+
*
|
|
15
|
+
* - Numbers are returned as-is.
|
|
16
|
+
* - Strings are parsed as floats.
|
|
17
|
+
* - Other values return 0.
|
|
18
|
+
*
|
|
19
|
+
* @param {unknown} value - The value to convert.
|
|
20
|
+
* @returns {number} The numeric representation of the input.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toNumber(value: unknown): number;
|
|
23
|
+
/**
|
|
24
|
+
* Converts a value to a string.
|
|
25
|
+
*
|
|
26
|
+
* - Strings are returned as-is.
|
|
27
|
+
* - Other values are converted using `String()`.
|
|
28
|
+
*
|
|
29
|
+
* @param {unknown} value - The value to convert.
|
|
30
|
+
* @returns {string} The string representation of the input.
|
|
31
|
+
*/
|
|
32
|
+
export declare function toString(value: unknown): string;
|
|
33
|
+
/**
|
|
34
|
+
* Converts any value to `null`.
|
|
35
|
+
*
|
|
36
|
+
* @param {unknown} _value - The input value (ignored).
|
|
37
|
+
* @returns {null} Always returns `null`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function toNull(_value: unknown): null;
|
|
40
|
+
/**
|
|
41
|
+
* Converts a value to an array.
|
|
42
|
+
*
|
|
43
|
+
* - Arrays are returned as-is.
|
|
44
|
+
* - Objects are converted to an array of `[key, value]` pairs.
|
|
45
|
+
* - Other values are wrapped in a single-element array.
|
|
46
|
+
*
|
|
47
|
+
* @param {unknown} value - The value to convert.
|
|
48
|
+
* @returns {Array<unknown>} The array representation of the input.
|
|
49
|
+
*/
|
|
50
|
+
export declare function toArray(value: unknown): Array<unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* Converts a value to an array of numbers.
|
|
53
|
+
*
|
|
54
|
+
* - Uses `toArray` to ensure an array.
|
|
55
|
+
* - Each element is converted to a number using `toNumber`.
|
|
56
|
+
*
|
|
57
|
+
* @param {unknown} value - The value to convert.
|
|
58
|
+
* @returns {number[]} Array of numeric values.
|
|
59
|
+
*/
|
|
60
|
+
export declare function toNumberArr(value: unknown): number[];
|
|
61
|
+
/**
|
|
62
|
+
* Converts a value to a plain object (record).
|
|
63
|
+
*
|
|
64
|
+
* - Keys and values of objects are copied.
|
|
65
|
+
* - Non-object values return an empty object.
|
|
66
|
+
*
|
|
67
|
+
* @param {unknown} value - The value to convert.
|
|
68
|
+
* @returns {Record<string, unknown>} The object representation of the input.
|
|
69
|
+
*/
|
|
70
|
+
export declare function toRecord(value: unknown): Record<string, unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* Converts a value to an `Error` object.
|
|
73
|
+
*
|
|
74
|
+
* - Returns the value if it is already an `Error`.
|
|
75
|
+
* - Strings are used as the error message.
|
|
76
|
+
* - Other values are converted to string and used as the error message.
|
|
77
|
+
*
|
|
78
|
+
* @param {unknown} value - The value to convert.
|
|
79
|
+
* @returns {Error} An `Error` instance representing the input.
|
|
80
|
+
*/
|
|
81
|
+
export declare function toError(value: unknown): Error;
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
toArray,
|
|
3
|
+
toBoolean,
|
|
4
|
+
toError,
|
|
5
|
+
toNull,
|
|
6
|
+
toNumber,
|
|
7
|
+
toNumberArr,
|
|
8
|
+
toRecord,
|
|
9
|
+
toString
|
|
10
|
+
} from "../../../chunks/chunk-YWSXCFYY.js";
|
|
4
11
|
import "../../../chunks/chunk-QXAJXTXV.js";
|
|
5
12
|
import "../../../chunks/chunk-HC6ZOHCS.js";
|
|
6
|
-
import "../../../chunks/chunk-
|
|
13
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
7
14
|
export {
|
|
8
|
-
|
|
15
|
+
toArray,
|
|
16
|
+
toBoolean,
|
|
17
|
+
toError,
|
|
18
|
+
toNull,
|
|
19
|
+
toNumber,
|
|
20
|
+
toNumberArr,
|
|
21
|
+
toRecord,
|
|
22
|
+
toString
|
|
9
23
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a minimal network connection object.
|
|
3
|
+
*
|
|
4
|
+
* @property {number} downlink - Estimated downlink speed in Mbps.
|
|
5
|
+
* @property {'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown'} type - Connection type.
|
|
6
|
+
* @property {'slow-2g' | '2g' | '3g' | '4g'} effectiveType - Effective connection type.
|
|
7
|
+
*/
|
|
8
|
+
export type MinimalConnection = {
|
|
9
|
+
downlink: number;
|
|
10
|
+
type: 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown';
|
|
11
|
+
effectiveType: 'slow-2g' | '2g' | '3g' | '4g';
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the current network connection information from the environment.
|
|
15
|
+
*
|
|
16
|
+
* Uses the `navigator.connection` API or vendor-prefixed alternatives.
|
|
17
|
+
*
|
|
18
|
+
* @returns {MinimalConnection | undefined} A minimal connection object if available, otherwise `undefined`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getConnection(): MinimalConnection | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves the estimated downlink speed of the current network connection.
|
|
23
|
+
*
|
|
24
|
+
* @returns {number | undefined} Downlink speed in Mbps, or `undefined` if not available.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getCurrentDownlink(): number | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
get
|
|
3
|
+
} from "../../../chunks/chunk-ROWPCMQY.js";
|
|
4
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
|
+
|
|
6
|
+
// src/agnostic/misc/connection/index.ts
|
|
7
|
+
function isType(unk) {
|
|
8
|
+
return unk === "bluetooth" || unk === "cellular" || unk === "ethernet" || unk === "none" || unk === "wifi" || unk === "wimax" || unk === "other" || unk === "unknown";
|
|
9
|
+
}
|
|
10
|
+
function isEffectiveType(unk) {
|
|
11
|
+
return unk === "slow-2g" || unk === "2g" || unk === "3g" || unk === "4g";
|
|
12
|
+
}
|
|
13
|
+
function isConnection(unk) {
|
|
14
|
+
if (typeof unk !== "object") return false;
|
|
15
|
+
if (unk === null) return false;
|
|
16
|
+
if (!("downlink" in unk)) return false;
|
|
17
|
+
if (typeof unk.downlink !== "number") return false;
|
|
18
|
+
if (!("type" in unk)) return false;
|
|
19
|
+
if (!isType(unk.type)) return false;
|
|
20
|
+
if (!("effectiveType" in unk)) return false;
|
|
21
|
+
if (!isEffectiveType(unk.effectiveType)) return false;
|
|
22
|
+
unk;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function getConnection() {
|
|
26
|
+
const window = get();
|
|
27
|
+
const navigator = window.navigator;
|
|
28
|
+
if (typeof navigator !== "object" || navigator === null) return void 0;
|
|
29
|
+
const connection = navigator.connection ?? navigator.mozConnection ?? navigator.webkitConnection;
|
|
30
|
+
if (!isConnection(connection)) return void 0;
|
|
31
|
+
return connection;
|
|
32
|
+
}
|
|
33
|
+
function getCurrentDownlink() {
|
|
34
|
+
return getConnection()?.downlink;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
getConnection,
|
|
38
|
+
getCurrentDownlink
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Function that fetches content from a URL asynchronously.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of content returned by the fetcher.
|
|
5
|
+
* @param {string} url - The URL to fetch.
|
|
6
|
+
* @returns {Promise<T>} A promise resolving to the fetched content.
|
|
7
|
+
*/
|
|
8
|
+
export type Fetcher<T> = (url: string) => Promise<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Function that processes fetched content for a given URL.
|
|
11
|
+
*
|
|
12
|
+
* @template T - The type of content provided by the fetcher.
|
|
13
|
+
* @param {string} url - The URL of the content being processed.
|
|
14
|
+
* @param {T} content - The content fetched from the URL.
|
|
15
|
+
* @param {{ push: (...urls: string[]) => void, flush: () => void }} hooks - Hooks for dynamically enqueuing or clearing URLs.
|
|
16
|
+
* @returns {any} The result of processing (ignored by the crawler).
|
|
17
|
+
*/
|
|
18
|
+
export type Processor<T> = (url: string, content: T, hooks: {
|
|
19
|
+
push: (...urls: string[]) => void;
|
|
20
|
+
flush: () => void;
|
|
21
|
+
}) => any;
|
|
22
|
+
/**
|
|
23
|
+
* Optional logging function called during crawling.
|
|
24
|
+
*
|
|
25
|
+
* @param {number} ops - Number of processed URLs so far.
|
|
26
|
+
* @param {string} url - The URL currently being processed.
|
|
27
|
+
* @param {string[]} waitlist - The current waitlist of URLs.
|
|
28
|
+
* @param {Set<string>} processed - Set of URLs already processed.
|
|
29
|
+
*/
|
|
30
|
+
export type Logger = (ops: number, url: string, waitlist: string[], processed: Set<string>) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Configuration options for the crawler.
|
|
33
|
+
*
|
|
34
|
+
* @template T - The type of content returned by the fetcher.
|
|
35
|
+
* @property {number} limit - Maximum number of URLs to process.
|
|
36
|
+
* @property {number | (() => number)} [delayMs] - Optional delay between processing URLs, in milliseconds, or a function returning the delay.
|
|
37
|
+
* @property {Fetcher<T>} fetcher - Function that fetches content for each URL.
|
|
38
|
+
* @property {Processor<T>} processor - Function that processes fetched content.
|
|
39
|
+
* @property {Logger} [logger] - Optional function for logging crawl progress.
|
|
40
|
+
*/
|
|
41
|
+
export type Options<T extends any> = {
|
|
42
|
+
limit: number;
|
|
43
|
+
delayMs?: number | (() => number);
|
|
44
|
+
fetcher: Fetcher<T>;
|
|
45
|
+
processor: Processor<T>;
|
|
46
|
+
logger?: Logger;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Creates a sequential crawler with optional logging and delay.
|
|
50
|
+
*
|
|
51
|
+
* @template T - The type of content returned by the fetcher.
|
|
52
|
+
* @param {Options<T>} options - Crawler configuration options.
|
|
53
|
+
* @returns {{
|
|
54
|
+
* crawl: (startUrl: string) => Promise<void>,
|
|
55
|
+
* push: (url: string) => void,
|
|
56
|
+
* flush: () => void
|
|
57
|
+
* }} An object with methods to start crawling, enqueue URLs, and flush the waitlist.
|
|
58
|
+
*/
|
|
59
|
+
export declare function create<T extends any>(options: Options<T>): {
|
|
60
|
+
crawl: (startUrl: string) => Promise<void>;
|
|
61
|
+
push: (url: string) => void;
|
|
62
|
+
flush: () => void;
|
|
63
|
+
};
|
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
|
|
2
|
+
wait
|
|
3
|
+
} from "../../../chunks/chunk-4CIS3R7T.js";
|
|
4
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
|
+
|
|
6
|
+
// src/agnostic/misc/crawler/index.ts
|
|
7
|
+
function create(options) {
|
|
8
|
+
let ops = 0;
|
|
9
|
+
const waitlist = [];
|
|
10
|
+
const push = (url) => waitlist.push(url);
|
|
11
|
+
const flush = () => {
|
|
12
|
+
waitlist.length = 0;
|
|
13
|
+
};
|
|
14
|
+
const processed = /* @__PURE__ */ new Set();
|
|
15
|
+
const crawl = async (startUrl) => {
|
|
16
|
+
push(startUrl);
|
|
17
|
+
while (waitlist.length > 0 && ops < options.limit) {
|
|
18
|
+
ops++;
|
|
19
|
+
const currentUrl = waitlist[0];
|
|
20
|
+
if (options.logger !== void 0) options.logger(ops, currentUrl, waitlist, processed);
|
|
21
|
+
if (!processed.has(currentUrl)) {
|
|
22
|
+
const content = await options.fetcher(currentUrl);
|
|
23
|
+
await options.processor(currentUrl, content, { push, flush });
|
|
24
|
+
}
|
|
25
|
+
waitlist.shift();
|
|
26
|
+
processed.add(currentUrl);
|
|
27
|
+
const delayMs = typeof options.delayMs === "function" ? options.delayMs() : typeof options.delayMs === "number" ? options.delayMs : 0;
|
|
28
|
+
if (delayMs !== 0) await wait(delayMs);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return { crawl, push, flush };
|
|
32
|
+
}
|
|
6
33
|
export {
|
|
7
|
-
|
|
34
|
+
create
|
|
8
35
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { RuntimeName } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Detects the current JavaScript runtime environment.
|
|
4
|
+
*
|
|
5
|
+
* Checks for Node.js, Browser, Deno, React Native, Electron,
|
|
6
|
+
* Cloudflare Workers, and AWS Lambda.
|
|
7
|
+
*
|
|
8
|
+
* @returns {RuntimeName | null}
|
|
9
|
+
* - The detected runtime as a `RuntimeName` enum value.
|
|
10
|
+
* - `null` if the runtime cannot be determined.
|
|
11
|
+
*/
|
|
12
|
+
export declare function detectRuntime(): RuntimeName | null;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "../../../../chunks/chunk-XIIJYVJZ.js";
|
|
2
|
+
import "../../../../chunks/chunk-XCBH6NLF.js";
|
|
3
|
+
|
|
4
|
+
// src/agnostic/misc/crossenv/detect-runtime/index.ts
|
|
5
|
+
function detectRuntime() {
|
|
6
|
+
if (typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined") return "Node.js" /* NODE */;
|
|
7
|
+
if (typeof window !== "undefined" && typeof window.document !== "undefined") return "Browser" /* BROWSER */;
|
|
8
|
+
if (typeof Deno !== "undefined") return "Deno" /* DENO */;
|
|
9
|
+
if (typeof process !== "undefined" && typeof navigator.userAgent === "string" && /ReactNative/.test(navigator.userAgent)) return "React Native" /* REACT_NATIVE */;
|
|
10
|
+
if (typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.version.electron !== "undefined") return "Electron" /* ELECTRON */;
|
|
11
|
+
if (typeof self !== "undefined" && typeof self.addEventListener === "function" && typeof Headers !== "undefined") return "Cloudflare Workers" /* CLOUDFLARE */;
|
|
12
|
+
if (typeof AWS !== "undefined" && typeof AWS.Lambda !== "undefined") return "AWS Lambda" /* AWS_LAMBDA */;
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
6
15
|
export {
|
|
7
16
|
detectRuntime
|
|
8
17
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the possible runtime environments.
|
|
3
|
+
*
|
|
4
|
+
* - `NODE` : Node.js
|
|
5
|
+
* - `BROWSER` : Web browser
|
|
6
|
+
* - `DENO` : Deno runtime
|
|
7
|
+
* - `REACT_NATIVE` : React Native
|
|
8
|
+
* - `ELECTRON` : Electron
|
|
9
|
+
* - `CLOUDFLARE` : Cloudflare Workers
|
|
10
|
+
* - `AWS_LAMBDA` : AWS Lambda
|
|
11
|
+
*/
|
|
12
|
+
export declare enum RuntimeName {
|
|
13
|
+
NODE = "Node.js",
|
|
14
|
+
BROWSER = "Browser",
|
|
15
|
+
DENO = "Deno",
|
|
16
|
+
REACT_NATIVE = "React Native",
|
|
17
|
+
ELECTRON = "Electron",
|
|
18
|
+
CLOUDFLARE = "Cloudflare Workers",
|
|
19
|
+
AWS_LAMBDA = "AWS Lambda"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Minimal subset of the `window` object, sufficient to work with DOM-like APIs.
|
|
23
|
+
*
|
|
24
|
+
* Provides access to the basic constructors and the document object:
|
|
25
|
+
* - `Node`
|
|
26
|
+
* - `Element`
|
|
27
|
+
* - `Text`
|
|
28
|
+
* - `NodeList`
|
|
29
|
+
* - `Attr`
|
|
30
|
+
* - `document`
|
|
31
|
+
*/
|
|
32
|
+
export interface MinimalWindow {
|
|
33
|
+
Node: typeof Node;
|
|
34
|
+
Element: typeof Element;
|
|
35
|
+
Text: typeof Text;
|
|
36
|
+
NodeList: typeof NodeList;
|
|
37
|
+
Attr: typeof Attr;
|
|
38
|
+
ShadowRoot: typeof ShadowRoot;
|
|
39
|
+
document: Document;
|
|
40
|
+
}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { MinimalWindow } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Checks whether a `window` object exists in the current environment.
|
|
4
|
+
*
|
|
5
|
+
* @returns {boolean} `true` if `window` is present, `false` otherwise.
|
|
6
|
+
*/
|
|
7
|
+
export declare function exists(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Sets a custom `window` object to be used internally.
|
|
10
|
+
*
|
|
11
|
+
* @param {MinimalWindow | null} customWindow - The window object to set, or `null` to unset.
|
|
12
|
+
* @returns {MinimalWindow | null} The window object that was set.
|
|
13
|
+
*/
|
|
14
|
+
export declare function set(customWindow: MinimalWindow | null): MinimalWindow | null;
|
|
15
|
+
/**
|
|
16
|
+
* Resets the internal window reference to the global `window` if it exists,
|
|
17
|
+
* or `null` if no global `window` is available.
|
|
18
|
+
*
|
|
19
|
+
* @returns {MinimalWindow | null} The current internal window object after reset.
|
|
20
|
+
*/
|
|
21
|
+
export declare function unset(): MinimalWindow | null;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the currently set `window` object.
|
|
24
|
+
*
|
|
25
|
+
* @returns {MinimalWindow} The internal window object.
|
|
26
|
+
* @throws Will throw an error if no window has been set and none exists globally.
|
|
27
|
+
*/
|
|
28
|
+
export declare function get(): MinimalWindow;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
exists,
|
|
3
|
+
get,
|
|
4
|
+
set,
|
|
5
|
+
unset
|
|
6
|
+
} from "../../../../chunks/chunk-ROWPCMQY.js";
|
|
7
|
+
import "../../../../chunks/chunk-XCBH6NLF.js";
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
exists,
|
|
10
|
+
get,
|
|
11
|
+
set,
|
|
12
|
+
unset
|
|
7
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|