@design-edito/tools 0.2.37 → 0.2.40
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/colors/channels/index.d.ts +34 -0
- package/agnostic/colors/channels/index.js +6 -6
- package/agnostic/colors/contrast/index.d.ts +8 -0
- package/agnostic/colors/contrast/index.js +27 -8
- package/agnostic/colors/convert/index.d.ts +144 -0
- package/agnostic/colors/convert/index.js +5 -5
- package/agnostic/colors/distance/index.d.ts +8 -0
- package/agnostic/colors/distance/index.js +50 -7
- package/agnostic/colors/grayscale/index.d.ts +9 -1
- package/agnostic/colors/grayscale/index.js +156 -7
- package/agnostic/colors/invert/index.d.ts +8 -0
- package/agnostic/colors/invert/index.js +45 -7
- package/agnostic/colors/lerp/index.d.ts +12 -1
- package/agnostic/colors/lerp/index.js +97 -7
- package/agnostic/colors/luminance/index.d.ts +7 -0
- package/agnostic/colors/luminance/index.js +6 -6
- package/agnostic/colors/palette/index.d.ts +10 -1
- package/agnostic/colors/palette/index.js +104 -9
- package/agnostic/colors/rotate/index.d.ts +10 -1
- package/agnostic/colors/rotate/index.js +7 -7
- package/agnostic/colors/tidy/index.d.ts +9 -1
- package/agnostic/colors/tidy/index.js +5 -5
- package/agnostic/colors/typechecks/index.d.ts +60 -0
- package/agnostic/colors/typechecks/index.js +3 -3
- 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/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/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/html/get-node-ancestors/index.d.ts +12 -0
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- 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/hyper-json/cast/index.js +12 -12
- package/agnostic/html/hyper-json/index.js +40 -16
- 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 +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +16 -14
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +12 -12
- 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 +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +12 -12
- 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 +12 -12
- 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 +12 -12
- package/agnostic/html/insert-node/index.d.ts +17 -0
- package/agnostic/html/insert-node/index.js +1 -1
- 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 +1 -1
- package/agnostic/html/selector-to-element/index.d.ts +16 -1
- package/agnostic/html/selector-to-element/index.js +29 -11
- package/agnostic/html/string-to-nodes/index.d.ts +14 -7
- package/agnostic/html/string-to-nodes/index.js +14 -12
- 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/connection/index.d.ts +26 -0
- package/agnostic/misc/connection/index.js +39 -0
- package/agnostic/misc/crawler/index.d.ts +63 -16
- package/agnostic/misc/crawler/index.js +36 -5
- 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/types.d.ts +39 -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/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-nullish/index.d.ts +22 -0
- package/agnostic/misc/is-nullish/index.js +1 -1
- 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/normalize-extension/index.d.ts +10 -0
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/outcome/index.d.ts +56 -15
- package/agnostic/misc/outcome/index.js +8 -4
- package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.d.ts +8 -0
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/interpolate/index.d.ts +20 -1
- package/agnostic/numbers/interpolate/index.js +12 -7
- 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/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/chunks/{chunk-CLLJV343.js → chunk-27SSMK5F.js} +8 -7
- package/chunks/{chunk-FNQAF6CQ.js → chunk-2QDYPY2O.js} +5 -5
- package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
- package/chunks/chunk-4WE2WEXL.js +12 -0
- package/chunks/{chunk-QWNWZBIO.js → chunk-53ILYMIY.js} +8 -7
- 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-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
- package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
- package/chunks/{chunk-YXLHZ2KW.js → chunk-AKFDKOHE.js} +2 -2
- package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
- 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-3LCD73SB.js → chunk-C4VX4TTP.js} +1 -1
- 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-D5CCWCEI.js → chunk-ENOTZXFS.js} +1 -1
- package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
- package/chunks/{chunk-NCYE5WML.js → chunk-FAAIUU6V.js} +4 -4
- 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-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
- package/chunks/chunk-HOFEVF7T.js +61 -0
- 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-P5JJOC5K.js → chunk-MSJ7WDFX.js} +8 -7
- 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-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
- package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
- 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-NGIZKJDJ.js → chunk-SGGJJ46D.js} +335 -327
- package/chunks/{chunk-YVKM7N55.js → chunk-U225LGOV.js} +8 -7
- package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
- 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-STPN5KZL.js → chunk-WF2JNQV4.js} +8 -7
- 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-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 +13 -18
- package/node/images/format/index.d.ts +36 -1
- package/node/images/format/index.js +241 -44
- package/node/images/metadata/index.d.ts +6 -0
- package/node/images/metadata/index.js +13 -18
- package/node/images/transform/index.d.ts +23 -1
- package/node/images/transform/index.js +199 -39
- 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 +9 -19
- 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 +9 -19
- 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 +9 -19
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/resize/index.js +9 -19
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.js +9 -19
- 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 +6 -16
- 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-34U4HX4V.js +0 -73
- package/chunks/chunk-42K3MQQ5.js +0 -31
- package/chunks/chunk-5CTAKAIP.js +0 -28
- package/chunks/chunk-5ZPVE6NR.js +0 -40
- package/chunks/chunk-63J76ST6.js +0 -191
- package/chunks/chunk-6KM4UT6T.js +0 -34
- package/chunks/chunk-6NYUQXJT.js +0 -109
- package/chunks/chunk-6RGDWX4A.js +0 -24
- package/chunks/chunk-6UXES4W7.js +0 -40
- package/chunks/chunk-6YQGM6N6.js +0 -19
- package/chunks/chunk-73UGWJYI.js +0 -31
- package/chunks/chunk-7AWTHZLY.js +0 -12
- package/chunks/chunk-7DBNMU6N.js +0 -14
- package/chunks/chunk-7NLDR53D.js +0 -16
- 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-ALFP7OQ3.js +0 -24
- package/chunks/chunk-ANPXBD2G.js +0 -35
- 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-BPYICFMX.js +0 -37
- package/chunks/chunk-CKENYYWH.js +0 -28
- package/chunks/chunk-COVPTTAD.js +0 -10
- package/chunks/chunk-DFDH7MGI.js +0 -206
- package/chunks/chunk-DKITT7OT.js +0 -296
- package/chunks/chunk-EDVNAV3G.js +0 -72
- package/chunks/chunk-EGBJXHCW.js +0 -47
- package/chunks/chunk-ENMBK6H7.js +0 -162
- package/chunks/chunk-EZ22Z22X.js +0 -28
- package/chunks/chunk-F3WCF6DL.js +0 -122
- package/chunks/chunk-FHLCPVND.js +0 -23
- package/chunks/chunk-FLE22O3O.js +0 -56
- package/chunks/chunk-FNGETPCZ.js +0 -84
- package/chunks/chunk-FPEW3A27.js +0 -14
- package/chunks/chunk-FR5H2OCV.js +0 -21
- package/chunks/chunk-FZOU4OAW.js +0 -13
- package/chunks/chunk-G4ZB72XY.js +0 -257
- package/chunks/chunk-GL42Q643.js +0 -42
- package/chunks/chunk-GXOIVZUI.js +0 -60
- package/chunks/chunk-GYEO7JZV.js +0 -112
- 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-KIONYWA7.js +0 -168
- package/chunks/chunk-KXIA3YGF.js +0 -54
- package/chunks/chunk-L7PIZQFC.js +0 -51
- package/chunks/chunk-LEXQ6E6L.js +0 -31
- package/chunks/chunk-LGBQWEXH.js +0 -40
- package/chunks/chunk-LV2VMOWR.js +0 -18
- package/chunks/chunk-MFIGSRSO.js +0 -103
- package/chunks/chunk-MJQF3YZO.js +0 -21
- package/chunks/chunk-MVYH3CSJ.js +0 -42
- package/chunks/chunk-NK62JYTD.js +0 -43
- package/chunks/chunk-NRITRUZW.js +0 -10
- package/chunks/chunk-NUPAV2JX.js +0 -20
- package/chunks/chunk-OC4VIF3N.js +0 -42
- package/chunks/chunk-OKFZJ6DJ.js +0 -9
- package/chunks/chunk-OVG5RGI3.js +0 -29
- package/chunks/chunk-OYDCT5KK.js +0 -32
- package/chunks/chunk-PAIUCLVK.js +0 -35
- package/chunks/chunk-PVRYR5KX.js +0 -21
- 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-QTF7LWGT.js +0 -28
- 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-S4VO4PFZ.js +0 -37
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SKMCIFS3.js +0 -27
- package/chunks/chunk-SNJJII7A.js +0 -65
- package/chunks/chunk-TAUQZCR6.js +0 -41
- package/chunks/chunk-TGDJWP5U.js +0 -20
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-U4ORVPZC.js +0 -175
- package/chunks/chunk-UEAMPAHK.js +0 -28
- package/chunks/chunk-UNXRB2AV.js +0 -16
- package/chunks/chunk-V3NHCEO5.js +0 -31
- package/chunks/chunk-VFJYLXCI.js +0 -23
- package/chunks/chunk-VJJIYJMY.js +0 -13
- 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-WJBQ2BO4.js +0 -16
- 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-XPPOIKJL.js +0 -43
- package/chunks/chunk-XR2LNUGW.js +0 -42
- package/chunks/chunk-YFBIPMXD.js +0 -20
- 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-YRZFKMR4.js +0 -20
- 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-ZH3QMMVD.js +0 -28
- package/chunks/chunk-ZLBSI4TR.js +0 -21
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- 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
package/chunks/chunk-DFDH7MGI.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isLightenOperationParams,
|
|
3
|
-
lighten
|
|
4
|
-
} from "./chunk-RHKFMXM3.js";
|
|
5
|
-
import {
|
|
6
|
-
isResizeOperationParams,
|
|
7
|
-
resize
|
|
8
|
-
} from "./chunk-STPN5KZL.js";
|
|
9
|
-
import {
|
|
10
|
-
isNormalizeOperationParams,
|
|
11
|
-
normalize
|
|
12
|
-
} from "./chunk-3G6FOHII.js";
|
|
13
|
-
import {
|
|
14
|
-
isRotateOperationParams,
|
|
15
|
-
rotate
|
|
16
|
-
} from "./chunk-QWNWZBIO.js";
|
|
17
|
-
import {
|
|
18
|
-
hue,
|
|
19
|
-
isHueOperationParams
|
|
20
|
-
} from "./chunk-QSU3CVGF.js";
|
|
21
|
-
import {
|
|
22
|
-
isSaturateOperationParams,
|
|
23
|
-
saturate
|
|
24
|
-
} from "./chunk-QTA7ZEVX.js";
|
|
25
|
-
import {
|
|
26
|
-
isOverlayOperationParams,
|
|
27
|
-
overlay
|
|
28
|
-
} from "./chunk-CLLJV343.js";
|
|
29
|
-
import {
|
|
30
|
-
extend,
|
|
31
|
-
isExtendOperationParams
|
|
32
|
-
} from "./chunk-YVKM7N55.js";
|
|
33
|
-
import {
|
|
34
|
-
brighten,
|
|
35
|
-
isBrightenOperationParams
|
|
36
|
-
} from "./chunk-SRXNICSE.js";
|
|
37
|
-
import {
|
|
38
|
-
flatten,
|
|
39
|
-
isFlattenOperationParams
|
|
40
|
-
} from "./chunk-P5JJOC5K.js";
|
|
41
|
-
import {
|
|
42
|
-
extract,
|
|
43
|
-
isExtractOperationParams
|
|
44
|
-
} from "./chunk-HFZGH6V2.js";
|
|
45
|
-
import {
|
|
46
|
-
flip
|
|
47
|
-
} from "./chunk-WNDMYNDU.js";
|
|
48
|
-
import {
|
|
49
|
-
blur,
|
|
50
|
-
isBlurOperationParams
|
|
51
|
-
} from "./chunk-P26Y7YUA.js";
|
|
52
|
-
import {
|
|
53
|
-
isLevelOperationParams,
|
|
54
|
-
level
|
|
55
|
-
} from "./chunk-2HJPX7E3.js";
|
|
56
|
-
import {
|
|
57
|
-
flop
|
|
58
|
-
} from "./chunk-YA2YCZUF.js";
|
|
59
|
-
import {
|
|
60
|
-
toSharpInstance
|
|
61
|
-
} from "./chunk-D5CCWCEI.js";
|
|
62
|
-
import {
|
|
63
|
-
Outcome
|
|
64
|
-
} from "./chunk-JMU5PDBD.js";
|
|
65
|
-
import {
|
|
66
|
-
isNonNullObject
|
|
67
|
-
} from "./chunk-HQLRJ7XW.js";
|
|
68
|
-
import {
|
|
69
|
-
unknownToString
|
|
70
|
-
} from "./chunk-FENXVJYO.js";
|
|
71
|
-
import {
|
|
72
|
-
__export
|
|
73
|
-
} from "./chunk-WSFCRVEQ.js";
|
|
74
|
-
|
|
75
|
-
// src/node/images/transform/index.ts
|
|
76
|
-
var transform_exports = {};
|
|
77
|
-
__export(transform_exports, {
|
|
78
|
-
isOperationDescriptor: () => isOperationDescriptor,
|
|
79
|
-
transform: () => transform
|
|
80
|
-
});
|
|
81
|
-
var validators = {
|
|
82
|
-
["blur" /* BLUR */]: isBlurOperationParams,
|
|
83
|
-
["brighten" /* BRIGHTEN */]: isBrightenOperationParams,
|
|
84
|
-
["extend" /* EXTEND */]: isExtendOperationParams,
|
|
85
|
-
["extract" /* EXTRACT */]: isExtractOperationParams,
|
|
86
|
-
["flatten" /* FLATTEN */]: isFlattenOperationParams,
|
|
87
|
-
["hue" /* HUE */]: isHueOperationParams,
|
|
88
|
-
["level" /* LEVEL */]: isLevelOperationParams,
|
|
89
|
-
["lighten" /* LIGHTEN */]: isLightenOperationParams,
|
|
90
|
-
["normalize" /* NORMALIZE */]: isNormalizeOperationParams,
|
|
91
|
-
["overlay" /* OVERLAY */]: isOverlayOperationParams,
|
|
92
|
-
["resize" /* RESIZE */]: isResizeOperationParams,
|
|
93
|
-
["rotate" /* ROTATE */]: isRotateOperationParams,
|
|
94
|
-
["saturate" /* SATURATE */]: isSaturateOperationParams
|
|
95
|
-
};
|
|
96
|
-
function isOperationDescriptor(obj) {
|
|
97
|
-
if (!isNonNullObject(obj)) return Outcome.makeFailure("Invalid operation descriptor");
|
|
98
|
-
if (!("name" in obj) || typeof obj.name !== "string") return Outcome.makeFailure("Field named 'name' in operation descriptor is required and must be a string");
|
|
99
|
-
const name = obj.name;
|
|
100
|
-
const validateOperation = (validatorFn) => {
|
|
101
|
-
const result = validatorFn(obj);
|
|
102
|
-
if (result.success) return Outcome.makeSuccess({ name: obj.name, ...result.payload });
|
|
103
|
-
return Outcome.makeFailure(result.error);
|
|
104
|
-
};
|
|
105
|
-
const simpleOperations = /* @__PURE__ */ new Set(["flip" /* FLIP */, "flop" /* FLOP */]);
|
|
106
|
-
if (simpleOperations.has(name)) return Outcome.makeSuccess({ name });
|
|
107
|
-
const validator = validators[name];
|
|
108
|
-
if (validator) return validateOperation(validator);
|
|
109
|
-
return Outcome.makeFailure("Invalid operation descriptor");
|
|
110
|
-
}
|
|
111
|
-
async function transform(input, operationsSequence, limits) {
|
|
112
|
-
let sharpInstance = await toSharpInstance(input);
|
|
113
|
-
const start = Date.now();
|
|
114
|
-
const deadline = limits?.timeoutMs !== void 0 ? start + limits.timeoutMs : void 0;
|
|
115
|
-
const runWithOpTimeout = async (op) => {
|
|
116
|
-
return limits?.opTimeoutMs === void 0 ? op() : Promise.race([op(), new Promise(
|
|
117
|
-
(resolve) => setTimeout(
|
|
118
|
-
() => resolve("op-timeout" /* OP_TIMEOUT */),
|
|
119
|
-
limits.opTimeoutMs
|
|
120
|
-
)
|
|
121
|
-
)]);
|
|
122
|
-
};
|
|
123
|
-
for (const operation of operationsSequence) {
|
|
124
|
-
if (deadline !== void 0 && Date.now() > deadline) return Outcome.makeFailure({
|
|
125
|
-
code: "process-timeout" /* PROCESS_TIMEOUT */,
|
|
126
|
-
details: "Process timed out"
|
|
127
|
-
});
|
|
128
|
-
let result;
|
|
129
|
-
try {
|
|
130
|
-
result = await runWithOpTimeout(async () => {
|
|
131
|
-
switch (operation.name) {
|
|
132
|
-
case "blur" /* BLUR */:
|
|
133
|
-
return blur(sharpInstance, operation);
|
|
134
|
-
case "brighten" /* BRIGHTEN */:
|
|
135
|
-
return brighten(sharpInstance, operation);
|
|
136
|
-
case "extend" /* EXTEND */:
|
|
137
|
-
return extend(sharpInstance, operation);
|
|
138
|
-
case "extract" /* EXTRACT */:
|
|
139
|
-
return extract(sharpInstance, operation);
|
|
140
|
-
case "flatten" /* FLATTEN */:
|
|
141
|
-
return flatten(sharpInstance, operation);
|
|
142
|
-
case "flip" /* FLIP */:
|
|
143
|
-
return flip(sharpInstance);
|
|
144
|
-
case "flop" /* FLOP */:
|
|
145
|
-
return flop(sharpInstance);
|
|
146
|
-
case "hue" /* HUE */:
|
|
147
|
-
return hue(sharpInstance, operation);
|
|
148
|
-
case "level" /* LEVEL */:
|
|
149
|
-
return level(sharpInstance, operation);
|
|
150
|
-
case "lighten" /* LIGHTEN */:
|
|
151
|
-
return lighten(sharpInstance, operation);
|
|
152
|
-
case "normalize" /* NORMALIZE */:
|
|
153
|
-
return normalize(sharpInstance, operation);
|
|
154
|
-
case "overlay" /* OVERLAY */:
|
|
155
|
-
return overlay(sharpInstance, operation);
|
|
156
|
-
case "resize" /* RESIZE */:
|
|
157
|
-
return resize(sharpInstance, operation);
|
|
158
|
-
case "rotate" /* ROTATE */:
|
|
159
|
-
return rotate(sharpInstance, operation);
|
|
160
|
-
case "saturate" /* SATURATE */:
|
|
161
|
-
return saturate(sharpInstance, operation);
|
|
162
|
-
default:
|
|
163
|
-
return sharpInstance;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
} catch (err) {
|
|
167
|
-
return Outcome.makeFailure({
|
|
168
|
-
code: "unknown-error" /* UNKNOWN_ERROR */,
|
|
169
|
-
details: unknownToString(err)
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
if (result === "op-timeout" /* OP_TIMEOUT */) return Outcome.makeFailure({
|
|
173
|
-
code: "op-timeout" /* OP_TIMEOUT */,
|
|
174
|
-
details: "Operation timed out"
|
|
175
|
-
});
|
|
176
|
-
else {
|
|
177
|
-
sharpInstance = result;
|
|
178
|
-
}
|
|
179
|
-
if (limits === void 0) continue;
|
|
180
|
-
if (operation.name === "resize" /* RESIZE */ || operation.name === "extend" /* EXTEND */ || operation.name === "extract" /* EXTRACT */ || operation.name === "rotate" /* ROTATE */) {
|
|
181
|
-
try {
|
|
182
|
-
const meta = await sharpInstance.metadata();
|
|
183
|
-
if (limits.width !== void 0 && meta.width && meta.width > limits.width) return Outcome.makeFailure({
|
|
184
|
-
code: "width-limit-exceeded" /* WIDTH_LIMIT_EXCEEDED */,
|
|
185
|
-
details: `Image width exceeded the limit (${meta.width}px)`
|
|
186
|
-
});
|
|
187
|
-
if (limits.height !== void 0 && meta.height && meta.height > limits.height) return Outcome.makeFailure({
|
|
188
|
-
code: "height-limit-exceeded" /* HEIGHT_LIMIT_EXCEEDED */,
|
|
189
|
-
details: `Image height exceeded the limit (${meta.height}px)`
|
|
190
|
-
});
|
|
191
|
-
} catch (err) {
|
|
192
|
-
return Outcome.makeFailure({
|
|
193
|
-
code: "unknown-error" /* UNKNOWN_ERROR */,
|
|
194
|
-
details: `Failed to read metadata: ${unknownToString(err)}`
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return Outcome.makeSuccess(sharpInstance);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export {
|
|
203
|
-
isOperationDescriptor,
|
|
204
|
-
transform,
|
|
205
|
-
transform_exports
|
|
206
|
-
};
|
package/chunks/chunk-DKITT7OT.js
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
zod_default
|
|
3
|
-
} from "./chunk-DZ2T5DTY.js";
|
|
4
|
-
import {
|
|
5
|
-
toSharpColor,
|
|
6
|
-
toSharpInstance
|
|
7
|
-
} from "./chunk-D5CCWCEI.js";
|
|
8
|
-
import {
|
|
9
|
-
Outcome
|
|
10
|
-
} from "./chunk-JMU5PDBD.js";
|
|
11
|
-
import {
|
|
12
|
-
clamp
|
|
13
|
-
} from "./chunk-OSAXBA7G.js";
|
|
14
|
-
import {
|
|
15
|
-
isColor
|
|
16
|
-
} from "./chunk-67V4BGOB.js";
|
|
17
|
-
import {
|
|
18
|
-
__export
|
|
19
|
-
} from "./chunk-WSFCRVEQ.js";
|
|
20
|
-
|
|
21
|
-
// src/node/images/format/index.ts
|
|
22
|
-
var format_exports = {};
|
|
23
|
-
__export(format_exports, {
|
|
24
|
-
format: () => format,
|
|
25
|
-
isFormatAvifOptions: () => isFormatAvifOptions,
|
|
26
|
-
isFormatCommonOptions: () => isFormatCommonOptions,
|
|
27
|
-
isFormatHeifOptions: () => isFormatHeifOptions,
|
|
28
|
-
isFormatJpgOptions: () => isFormatJpgOptions,
|
|
29
|
-
isFormatOptions: () => isFormatOptions,
|
|
30
|
-
isFormatPngOptions: () => isFormatPngOptions,
|
|
31
|
-
isFormatTiffOptions: () => isFormatTiffOptions,
|
|
32
|
-
isFormatWebpOptions: () => isFormatWebpOptions,
|
|
33
|
-
toAvif: () => toAvif,
|
|
34
|
-
toHeif: () => toHeif,
|
|
35
|
-
toHeight: () => toHeight,
|
|
36
|
-
toJpg: () => toJpg,
|
|
37
|
-
toPng: () => toPng,
|
|
38
|
-
toSharpAvifOptions: () => toSharpAvifOptions,
|
|
39
|
-
toSharpHeifOptions: () => toSharpHeifOptions,
|
|
40
|
-
toSharpJpegOptions: () => toSharpJpegOptions,
|
|
41
|
-
toSharpPngOptions: () => toSharpPngOptions,
|
|
42
|
-
toSharpResizeOptions: () => toSharpResizeOptions,
|
|
43
|
-
toSharpTiffOptions: () => toSharpTiffOptions,
|
|
44
|
-
toSharpWebpOptions: () => toSharpWebpOptions,
|
|
45
|
-
toTiff: () => toTiff,
|
|
46
|
-
toWebp: () => toWebp,
|
|
47
|
-
toWidth: () => toWidth
|
|
48
|
-
});
|
|
49
|
-
var formatCommonOptionsSchema = zod_default.object({
|
|
50
|
-
width: zod_default.number().optional(),
|
|
51
|
-
height: zod_default.number().optional(),
|
|
52
|
-
fit: zod_default.enum(["contain", "cover", "fill", "inside", "outside"]).optional(),
|
|
53
|
-
position: zod_default.union([zod_default.number(), zod_default.string()]).optional(),
|
|
54
|
-
background: zod_default.custom(isColor).optional(),
|
|
55
|
-
kernel: zod_default.enum(["nearest", "cubic", "mitchell", "lanczos2", "lanczos3", "mks2013", "mks2021"]).optional(),
|
|
56
|
-
withoutEnlargement: zod_default.boolean().optional(),
|
|
57
|
-
withoutReduction: zod_default.boolean().optional(),
|
|
58
|
-
fastShrinkOnLoad: zod_default.boolean().optional()
|
|
59
|
-
});
|
|
60
|
-
var formatJpgOptionsSchema = formatCommonOptionsSchema.extend({
|
|
61
|
-
type: zod_default.union([zod_default.literal("jpg"), zod_default.literal("jpeg")]),
|
|
62
|
-
quality: zod_default.number().optional(),
|
|
63
|
-
force: zod_default.boolean().optional(),
|
|
64
|
-
progressive: zod_default.boolean().optional(),
|
|
65
|
-
chromaSubsampling: zod_default.string().optional(),
|
|
66
|
-
trellisQuantisation: zod_default.boolean().optional(),
|
|
67
|
-
overshootDeringing: zod_default.boolean().optional(),
|
|
68
|
-
optimizeScans: zod_default.boolean().optional(),
|
|
69
|
-
optimizeCoding: zod_default.boolean().optional(),
|
|
70
|
-
quantizationTable: zod_default.number().optional(),
|
|
71
|
-
mozjpeg: zod_default.boolean().optional()
|
|
72
|
-
});
|
|
73
|
-
var formatPngOptionsSchema = formatCommonOptionsSchema.extend({
|
|
74
|
-
type: zod_default.literal("png"),
|
|
75
|
-
quality: zod_default.number().optional(),
|
|
76
|
-
force: zod_default.boolean().optional(),
|
|
77
|
-
progressive: zod_default.boolean().optional(),
|
|
78
|
-
compressionLevel: zod_default.number().min(0).max(9).optional(),
|
|
79
|
-
adaptiveFiltering: zod_default.boolean().optional(),
|
|
80
|
-
effort: zod_default.number().min(1).max(10).optional(),
|
|
81
|
-
palette: zod_default.boolean().optional(),
|
|
82
|
-
colors: zod_default.number().min(1).max(256).optional(),
|
|
83
|
-
dither: zod_default.number().min(0).max(1).optional()
|
|
84
|
-
});
|
|
85
|
-
var formatWebpOptionsSchema = formatCommonOptionsSchema.extend({
|
|
86
|
-
type: zod_default.literal("webp"),
|
|
87
|
-
quality: zod_default.number().optional(),
|
|
88
|
-
force: zod_default.boolean().optional(),
|
|
89
|
-
alphaQuality: zod_default.number().optional(),
|
|
90
|
-
lossless: zod_default.boolean().optional(),
|
|
91
|
-
nearLossless: zod_default.boolean().optional(),
|
|
92
|
-
smartSubsample: zod_default.boolean().optional(),
|
|
93
|
-
smartDeblock: zod_default.boolean().optional(),
|
|
94
|
-
effort: zod_default.number().optional(),
|
|
95
|
-
minSize: zod_default.boolean().optional(),
|
|
96
|
-
mixed: zod_default.boolean().optional(),
|
|
97
|
-
preset: zod_default.enum(["default", "picture", "photo", "drawing", "icon", "text"]).optional(),
|
|
98
|
-
loop: zod_default.number().optional(),
|
|
99
|
-
delay: zod_default.union([zod_default.number(), zod_default.array(zod_default.number())]).optional()
|
|
100
|
-
});
|
|
101
|
-
var formatAvifOptionsSchema = formatCommonOptionsSchema.extend({
|
|
102
|
-
type: zod_default.literal("avif"),
|
|
103
|
-
quality: zod_default.number().optional(),
|
|
104
|
-
force: zod_default.boolean().optional(),
|
|
105
|
-
lossless: zod_default.boolean().optional(),
|
|
106
|
-
effort: zod_default.number().optional(),
|
|
107
|
-
chromaSubsampling: zod_default.string().optional(),
|
|
108
|
-
bitdepth: zod_default.union([zod_default.literal(8), zod_default.literal(10), zod_default.literal(12)]).optional()
|
|
109
|
-
});
|
|
110
|
-
var formatTiffOptionsSchema = formatCommonOptionsSchema.extend({
|
|
111
|
-
type: zod_default.literal("tiff"),
|
|
112
|
-
quality: zod_default.number().optional(),
|
|
113
|
-
compression: zod_default.enum(["none", "jpeg", "deflate", "packbits", "ccittfax4", "lzw", "webp", "zstd", "jp2k"]).optional(),
|
|
114
|
-
force: zod_default.boolean().optional(),
|
|
115
|
-
predictor: zod_default.enum(["none", "horizontal", "float"]).optional(),
|
|
116
|
-
pyramid: zod_default.boolean().optional(),
|
|
117
|
-
tile: zod_default.boolean().optional(),
|
|
118
|
-
tileWidth: zod_default.number().optional(),
|
|
119
|
-
tileHeight: zod_default.number().optional(),
|
|
120
|
-
xres: zod_default.number().optional(),
|
|
121
|
-
yres: zod_default.number().optional(),
|
|
122
|
-
bitdepth: zod_default.union([zod_default.literal(1), zod_default.literal(2), zod_default.literal(4), zod_default.literal(8)]).optional(),
|
|
123
|
-
miniswhite: zod_default.boolean().optional(),
|
|
124
|
-
resolutionUnit: zod_default.enum(["inch", "cm"]).optional()
|
|
125
|
-
});
|
|
126
|
-
var formatHeifOptionsSchema = formatCommonOptionsSchema.extend({
|
|
127
|
-
type: zod_default.literal("heif"),
|
|
128
|
-
quality: zod_default.number().optional(),
|
|
129
|
-
force: zod_default.boolean().optional(),
|
|
130
|
-
compression: zod_default.enum(["av1", "hevc"]).optional(),
|
|
131
|
-
lossless: zod_default.boolean().optional(),
|
|
132
|
-
effort: zod_default.number().optional(),
|
|
133
|
-
chromaSubsampling: zod_default.string().optional(),
|
|
134
|
-
bitdepth: zod_default.union([zod_default.literal(8), zod_default.literal(10), zod_default.literal(12)]).optional()
|
|
135
|
-
});
|
|
136
|
-
var formatKeepOptionsSchema = formatCommonOptionsSchema;
|
|
137
|
-
var formatOptionsSchema = zod_default.union([
|
|
138
|
-
formatJpgOptionsSchema,
|
|
139
|
-
formatPngOptionsSchema,
|
|
140
|
-
formatWebpOptionsSchema,
|
|
141
|
-
formatAvifOptionsSchema,
|
|
142
|
-
formatTiffOptionsSchema,
|
|
143
|
-
formatHeifOptionsSchema,
|
|
144
|
-
formatKeepOptionsSchema
|
|
145
|
-
]);
|
|
146
|
-
var isFormatCommonOptions = (options) => formatCommonOptionsSchema.safeParse(options).success;
|
|
147
|
-
var isFormatJpgOptions = (options) => formatJpgOptionsSchema.safeParse(options).success;
|
|
148
|
-
var isFormatPngOptions = (options) => formatPngOptionsSchema.safeParse(options).success;
|
|
149
|
-
var isFormatWebpOptions = (options) => formatWebpOptionsSchema.safeParse(options).success;
|
|
150
|
-
var isFormatAvifOptions = (options) => formatAvifOptionsSchema.safeParse(options).success;
|
|
151
|
-
var isFormatTiffOptions = (options) => formatTiffOptionsSchema.safeParse(options).success;
|
|
152
|
-
var isFormatHeifOptions = (options) => formatHeifOptionsSchema.safeParse(options).success;
|
|
153
|
-
var isFormatOptions = (options) => formatOptionsSchema.safeParse(options).success;
|
|
154
|
-
var toSharpResizeOptions = (options) => {
|
|
155
|
-
return {
|
|
156
|
-
width: options.width,
|
|
157
|
-
height: options.height,
|
|
158
|
-
fit: options.fit,
|
|
159
|
-
position: options.position,
|
|
160
|
-
background: options.background ? toSharpColor(options.background) : void 0,
|
|
161
|
-
kernel: options.kernel,
|
|
162
|
-
withoutEnlargement: options.withoutEnlargement,
|
|
163
|
-
withoutReduction: options.withoutReduction,
|
|
164
|
-
fastShrinkOnLoad: options.fastShrinkOnLoad
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
var toSharpJpegOptions = (options) => {
|
|
168
|
-
return {
|
|
169
|
-
quality: options.quality,
|
|
170
|
-
force: options.force,
|
|
171
|
-
progressive: options.progressive,
|
|
172
|
-
chromaSubsampling: options.chromaSubsampling,
|
|
173
|
-
trellisQuantisation: options.trellisQuantisation,
|
|
174
|
-
overshootDeringing: options.overshootDeringing,
|
|
175
|
-
optimizeScans: options.optimizeScans,
|
|
176
|
-
optimizeCoding: options.optimizeCoding,
|
|
177
|
-
quantizationTable: options.quantizationTable,
|
|
178
|
-
mozjpeg: options.mozjpeg
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
var toSharpPngOptions = (options) => {
|
|
182
|
-
return {
|
|
183
|
-
quality: options.quality,
|
|
184
|
-
force: options.force,
|
|
185
|
-
progressive: options.progressive,
|
|
186
|
-
compressionLevel: options.compressionLevel,
|
|
187
|
-
adaptiveFiltering: options.adaptiveFiltering,
|
|
188
|
-
effort: options.effort,
|
|
189
|
-
palette: options.palette,
|
|
190
|
-
colors: options.colors,
|
|
191
|
-
dither: options.dither
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
var toSharpWebpOptions = (options) => {
|
|
195
|
-
return {
|
|
196
|
-
quality: options.quality,
|
|
197
|
-
loop: options.loop,
|
|
198
|
-
delay: options.delay,
|
|
199
|
-
force: options.force,
|
|
200
|
-
alphaQuality: options.alphaQuality,
|
|
201
|
-
lossless: options.lossless,
|
|
202
|
-
nearLossless: options.nearLossless,
|
|
203
|
-
smartSubsample: options.smartSubsample,
|
|
204
|
-
smartDeblock: options.smartDeblock,
|
|
205
|
-
effort: options.effort,
|
|
206
|
-
minSize: options.minSize,
|
|
207
|
-
mixed: options.mixed,
|
|
208
|
-
preset: options.preset
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
var toSharpAvifOptions = (options) => {
|
|
212
|
-
return {
|
|
213
|
-
force: options.force,
|
|
214
|
-
quality: options.quality,
|
|
215
|
-
lossless: options.lossless,
|
|
216
|
-
effort: options.effort,
|
|
217
|
-
chromaSubsampling: options.chromaSubsampling,
|
|
218
|
-
bitdepth: options.bitdepth
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
var toSharpTiffOptions = (options) => {
|
|
222
|
-
return {
|
|
223
|
-
force: options.force,
|
|
224
|
-
quality: options.quality,
|
|
225
|
-
compression: options.compression,
|
|
226
|
-
predictor: options.predictor,
|
|
227
|
-
pyramid: options.pyramid,
|
|
228
|
-
tile: options.tile,
|
|
229
|
-
tileWidth: options.tileWidth,
|
|
230
|
-
tileHeight: options.tileHeight,
|
|
231
|
-
xres: options.xres,
|
|
232
|
-
yres: options.yres,
|
|
233
|
-
bitdepth: options.bitdepth,
|
|
234
|
-
miniswhite: options.miniswhite,
|
|
235
|
-
resolutionUnit: options.resolutionUnit
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
var toSharpHeifOptions = (options) => {
|
|
239
|
-
return {
|
|
240
|
-
force: options.force,
|
|
241
|
-
quality: options.quality,
|
|
242
|
-
compression: options.compression,
|
|
243
|
-
lossless: options.lossless,
|
|
244
|
-
effort: options.effort,
|
|
245
|
-
chromaSubsampling: options.chromaSubsampling,
|
|
246
|
-
bitdepth: options.bitdepth
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
async function format(input, options) {
|
|
250
|
-
const sharpInstance = await toSharpInstance(input);
|
|
251
|
-
const resizeOptions = toSharpResizeOptions(options);
|
|
252
|
-
const resizedInstance = sharpInstance.resize(resizeOptions);
|
|
253
|
-
if (isFormatJpgOptions(options)) return Outcome.makeSuccess(await resizedInstance.jpeg(toSharpJpegOptions(options)).toBuffer());
|
|
254
|
-
if (isFormatPngOptions(options)) return Outcome.makeSuccess(await resizedInstance.png(toSharpPngOptions(options)).toBuffer());
|
|
255
|
-
if (isFormatWebpOptions(options)) return Outcome.makeSuccess(await resizedInstance.webp(toSharpWebpOptions(options)).toBuffer());
|
|
256
|
-
if (isFormatAvifOptions(options)) return Outcome.makeSuccess(await resizedInstance.avif(toSharpAvifOptions(options)).toBuffer());
|
|
257
|
-
if (isFormatTiffOptions(options)) return Outcome.makeSuccess(await resizedInstance.tiff(toSharpTiffOptions(options)).toBuffer());
|
|
258
|
-
if (isFormatHeifOptions(options)) return Outcome.makeSuccess(await resizedInstance.heif(toSharpHeifOptions(options)).toBuffer());
|
|
259
|
-
return Outcome.makeSuccess(await resizedInstance.toBuffer());
|
|
260
|
-
}
|
|
261
|
-
var toWidth = async (input, width) => (await toSharpInstance(input)).resize({ width }).toBuffer();
|
|
262
|
-
var toHeight = async (input, height) => (await toSharpInstance(input)).resize({ height }).toBuffer();
|
|
263
|
-
var toJpg = async (input, quality) => (await toSharpInstance(input)).jpeg({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
|
264
|
-
var toPng = async (input, quality, compressionLevel) => (await toSharpInstance(input)).png({ quality: clamp(quality ?? 100, 1, 100), compressionLevel }).toBuffer();
|
|
265
|
-
var toWebp = async (input, quality) => (await toSharpInstance(input)).webp({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
|
266
|
-
var toAvif = async (input, quality) => (await toSharpInstance(input)).avif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
|
267
|
-
var toTiff = async (input, quality, compression) => (await toSharpInstance(input)).tiff({ quality: clamp(quality ?? 100, 1, 100), compression }).toBuffer();
|
|
268
|
-
var toHeif = async (input, quality) => (await toSharpInstance(input)).heif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
|
269
|
-
|
|
270
|
-
export {
|
|
271
|
-
isFormatCommonOptions,
|
|
272
|
-
isFormatJpgOptions,
|
|
273
|
-
isFormatPngOptions,
|
|
274
|
-
isFormatWebpOptions,
|
|
275
|
-
isFormatAvifOptions,
|
|
276
|
-
isFormatTiffOptions,
|
|
277
|
-
isFormatHeifOptions,
|
|
278
|
-
isFormatOptions,
|
|
279
|
-
toSharpResizeOptions,
|
|
280
|
-
toSharpJpegOptions,
|
|
281
|
-
toSharpPngOptions,
|
|
282
|
-
toSharpWebpOptions,
|
|
283
|
-
toSharpAvifOptions,
|
|
284
|
-
toSharpTiffOptions,
|
|
285
|
-
toSharpHeifOptions,
|
|
286
|
-
format,
|
|
287
|
-
toWidth,
|
|
288
|
-
toHeight,
|
|
289
|
-
toJpg,
|
|
290
|
-
toPng,
|
|
291
|
-
toWebp,
|
|
292
|
-
toAvif,
|
|
293
|
-
toTiff,
|
|
294
|
-
toHeif,
|
|
295
|
-
format_exports
|
|
296
|
-
};
|
package/chunks/chunk-EDVNAV3G.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// src/agnostic/css/generate-nice-color/index.ts
|
|
2
|
-
var niceColors = [
|
|
3
|
-
"fuchsia",
|
|
4
|
-
"teal",
|
|
5
|
-
"aliceblue",
|
|
6
|
-
"bisque",
|
|
7
|
-
"blueviolet",
|
|
8
|
-
"burlywood",
|
|
9
|
-
"chocolate",
|
|
10
|
-
"coral",
|
|
11
|
-
"cornflowerblue",
|
|
12
|
-
"crimson",
|
|
13
|
-
"darkblue",
|
|
14
|
-
"darkgoldenrod",
|
|
15
|
-
"darkkhaki",
|
|
16
|
-
"darkmagenta",
|
|
17
|
-
"darkolivegreen",
|
|
18
|
-
"darkorange",
|
|
19
|
-
"darkorchid",
|
|
20
|
-
"darkred",
|
|
21
|
-
"darksalmon",
|
|
22
|
-
"darkslateblue",
|
|
23
|
-
"darkslategray",
|
|
24
|
-
"darkviolet",
|
|
25
|
-
"deeppink",
|
|
26
|
-
"deepskyblue",
|
|
27
|
-
"dodgerblue",
|
|
28
|
-
"firebrick",
|
|
29
|
-
"floralwhite",
|
|
30
|
-
"gainsboro",
|
|
31
|
-
"gold",
|
|
32
|
-
"hotpink",
|
|
33
|
-
"indianred",
|
|
34
|
-
"indigo",
|
|
35
|
-
"khaki",
|
|
36
|
-
"lavender",
|
|
37
|
-
"lightcoral",
|
|
38
|
-
"lightgreen",
|
|
39
|
-
"lightsalmon",
|
|
40
|
-
"lightsteelblue",
|
|
41
|
-
"limegreen",
|
|
42
|
-
"magenta",
|
|
43
|
-
"mediumseagreen",
|
|
44
|
-
"mediumspringgreen",
|
|
45
|
-
"mediumvioletred",
|
|
46
|
-
"moccasin",
|
|
47
|
-
"orangered",
|
|
48
|
-
"orchid",
|
|
49
|
-
"palegoldenrod",
|
|
50
|
-
"palevioletred",
|
|
51
|
-
"peachpuff",
|
|
52
|
-
"peru",
|
|
53
|
-
"plum",
|
|
54
|
-
"royalblue",
|
|
55
|
-
"sandybrown",
|
|
56
|
-
"springgreen",
|
|
57
|
-
"tan",
|
|
58
|
-
"thistle",
|
|
59
|
-
"tomato",
|
|
60
|
-
"violet",
|
|
61
|
-
"wheat",
|
|
62
|
-
"yellowgreen"
|
|
63
|
-
];
|
|
64
|
-
var generateNiceColor = () => {
|
|
65
|
-
const pos = Math.floor(Math.random() * niceColors.length);
|
|
66
|
-
return niceColors[pos];
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
niceColors,
|
|
71
|
-
generateNiceColor
|
|
72
|
-
};
|
package/chunks/chunk-EGBJXHCW.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
viaLab,
|
|
3
|
-
viaLch,
|
|
4
|
-
viaRgb
|
|
5
|
-
} from "./chunk-FNQAF6CQ.js";
|
|
6
|
-
import {
|
|
7
|
-
absoluteModulo
|
|
8
|
-
} from "./chunk-DNIOWD7K.js";
|
|
9
|
-
|
|
10
|
-
// src/agnostic/colors/invert/index.ts
|
|
11
|
-
function invertRgb(color) {
|
|
12
|
-
return viaRgb(color, (rgb) => ({
|
|
13
|
-
...rgb,
|
|
14
|
-
r: 255 - rgb.r,
|
|
15
|
-
g: 255 - rgb.g,
|
|
16
|
-
b: 255 - rgb.b
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
function invertLab(color) {
|
|
20
|
-
return viaLab(color, (lab) => ({
|
|
21
|
-
...lab,
|
|
22
|
-
l: 100 - lab.l,
|
|
23
|
-
a: -1 * lab.a,
|
|
24
|
-
b: -1 * lab.b
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
function invertLch(color) {
|
|
28
|
-
return viaLch(color, (lch) => ({
|
|
29
|
-
...lch,
|
|
30
|
-
l: 100 - lch.l,
|
|
31
|
-
h: absoluteModulo(lch.h + 180, 360)
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
function invert(color, method = "lch") {
|
|
35
|
-
switch (method) {
|
|
36
|
-
case "rgb":
|
|
37
|
-
return invertRgb(color);
|
|
38
|
-
case "lab":
|
|
39
|
-
return invertLab(color);
|
|
40
|
-
case "lch":
|
|
41
|
-
return invertLch(color);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
invert
|
|
47
|
-
};
|