@design-edito/tools 0.2.39 → 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.js +12 -12
- 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-IYQV2LP4.js → chunk-SGGJJ46D.js} +321 -319
- 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-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,5 +1,5 @@
|
|
|
1
1
|
import sharp from 'sharp';
|
|
2
|
-
import
|
|
2
|
+
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
import type { RotateOperationParams } from '../../../types.js';
|
|
4
4
|
export declare function isRotateOperationParams(obj: unknown): Outcome.Either<RotateOperationParams, string>;
|
|
5
5
|
export declare function rotate(sharpInstance: sharp.Sharp, params: RotateOperationParams): Promise<sharp.Sharp>;
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRotateOperationParams,
|
|
3
3
|
rotate
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
6
|
-
import "../../../../../chunks/chunk-
|
|
7
|
-
import "../../../../../chunks/chunk-
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-5CTAKAIP.js";
|
|
10
|
-
import "../../../../../chunks/chunk-L7PIZQFC.js";
|
|
11
|
-
import "../../../../../chunks/chunk-WSC3WODJ.js";
|
|
12
|
-
import "../../../../../chunks/chunk-EGBJXHCW.js";
|
|
13
|
-
import "../../../../../chunks/chunk-XPGAVZGK.js";
|
|
14
|
-
import "../../../../../chunks/chunk-3LCD73SB.js";
|
|
15
|
-
import "../../../../../chunks/chunk-MFIGSRSO.js";
|
|
16
|
-
import "../../../../../chunks/chunk-YXLHZ2KW.js";
|
|
17
|
-
import "../../../../../chunks/chunk-NCYE5WML.js";
|
|
18
|
-
import "../../../../../chunks/chunk-FNQAF6CQ.js";
|
|
19
|
-
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
4
|
+
} from "../../../../../chunks/chunk-53ILYMIY.js";
|
|
5
|
+
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
6
|
+
import "../../../../../chunks/chunk-ENOTZXFS.js";
|
|
7
|
+
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
+
import "../../../../../chunks/chunk-2QDYPY2O.js";
|
|
20
9
|
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
21
|
-
import "../../../../../chunks/chunk-
|
|
10
|
+
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
22
11
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
23
|
-
import "../../../../../chunks/chunk-
|
|
24
|
-
import "../../../../../chunks/chunk-
|
|
12
|
+
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
13
|
+
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
14
|
+
import "../../../../../chunks/chunk-XCBH6NLF.js";
|
|
25
15
|
export {
|
|
26
16
|
isRotateOperationParams,
|
|
27
17
|
rotate
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sharp from 'sharp';
|
|
2
|
-
import
|
|
2
|
+
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
import type { SaturateOperationParams } from '../../../types.js';
|
|
4
4
|
export declare function isSaturateOperationParams(obj: unknown): Outcome.Either<SaturateOperationParams, string>;
|
|
5
5
|
export declare function saturate(sharpInstance: sharp.Sharp, params: SaturateOperationParams): Promise<sharp.Sharp>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isSaturateOperationParams,
|
|
3
3
|
saturate
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
6
|
-
import "../../../../../chunks/chunk-
|
|
7
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-AYGAQQXD.js";
|
|
5
|
+
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
6
|
+
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
7
|
+
import "../../../../../chunks/chunk-XCBH6NLF.js";
|
|
8
8
|
export {
|
|
9
9
|
isSaturateOperationParams,
|
|
10
10
|
saturate
|
package/node/images/types.d.ts
CHANGED
|
@@ -1,105 +1,189 @@
|
|
|
1
1
|
import type { Sharp } from 'sharp';
|
|
2
2
|
import type { Color } from '../../agnostic/colors/types.js';
|
|
3
|
+
/** Union type representing any valid image input. */
|
|
4
|
+
export type ImageLike = Sharp | Buffer | CreateOptions | string;
|
|
3
5
|
export type CreateOptions = {
|
|
6
|
+
/** Image width in pixels. */
|
|
4
7
|
width?: number;
|
|
8
|
+
/** Image height in pixels. */
|
|
5
9
|
height?: number;
|
|
10
|
+
/** Number of color channels (3 for RGB, 4 for RGBA). */
|
|
6
11
|
channels?: 3 | 4;
|
|
12
|
+
/** Background color for the image. */
|
|
7
13
|
background?: Color;
|
|
14
|
+
/** Gaussian noise configuration. */
|
|
8
15
|
noise?: {
|
|
16
|
+
/** Mean value for noise generation. */
|
|
9
17
|
mean?: number;
|
|
18
|
+
/** Standard deviation (sigma) for noise generation. */
|
|
10
19
|
sigma?: number;
|
|
11
20
|
};
|
|
21
|
+
/** Page height for multi-page images. */
|
|
12
22
|
pageHeight?: number;
|
|
13
23
|
};
|
|
14
|
-
export type ImageLike = Sharp | Buffer | CreateOptions | string;
|
|
15
24
|
export type FormatCommonOptions = {
|
|
25
|
+
/** Target width in pixels. */
|
|
16
26
|
width?: number;
|
|
27
|
+
/** Target height in pixels. */
|
|
17
28
|
height?: number;
|
|
29
|
+
/** How the image should be resized to fit the dimensions. */
|
|
18
30
|
fit?: 'contain' | 'cover' | 'fill' | 'inside' | 'outside';
|
|
31
|
+
/** Position for the fit mode (gravity or coordinates). */
|
|
19
32
|
position?: number | string;
|
|
33
|
+
/** Background color for areas not covered by the image. */
|
|
20
34
|
background?: Color;
|
|
35
|
+
/** Interpolation kernel to use for resizing. */
|
|
21
36
|
kernel?: 'nearest' | 'cubic' | 'linear' | 'mitchell' | 'lanczos2' | 'lanczos3' | 'mks2013' | 'mks2021';
|
|
37
|
+
/** If `true`, do not enlarge the image if dimensions are smaller. */
|
|
22
38
|
withoutEnlargement?: boolean;
|
|
39
|
+
/** If `true`, do not reduce the image if dimensions are larger. */
|
|
23
40
|
withoutReduction?: boolean;
|
|
41
|
+
/** If `true`, use fast shrink-on-load for JPEG images. */
|
|
24
42
|
fastShrinkOnLoad?: boolean;
|
|
25
43
|
};
|
|
26
44
|
export type FormatJpgOptions = FormatCommonOptions & {
|
|
45
|
+
/** Format type identifier. */
|
|
27
46
|
type: 'jpg' | 'jpeg';
|
|
47
|
+
/** Quality level (1-100). */
|
|
28
48
|
quality?: number;
|
|
49
|
+
/** Force output format even if input is different. */
|
|
29
50
|
force?: boolean;
|
|
51
|
+
/** Use progressive encoding. */
|
|
30
52
|
progressive?: boolean;
|
|
53
|
+
/** Chroma subsampling format. */
|
|
31
54
|
chromaSubsampling?: string;
|
|
55
|
+
/** Enable trellis quantisation. */
|
|
32
56
|
trellisQuantisation?: boolean;
|
|
57
|
+
/** Enable overshoot deringing. */
|
|
33
58
|
overshootDeringing?: boolean;
|
|
59
|
+
/** Optimize scans. */
|
|
34
60
|
optimizeScans?: boolean;
|
|
61
|
+
/** Optimize coding. */
|
|
35
62
|
optimizeCoding?: boolean;
|
|
63
|
+
/** Quantization table to use. */
|
|
36
64
|
quantizationTable?: number;
|
|
65
|
+
/** Use mozjpeg encoder. */
|
|
37
66
|
mozjpeg?: boolean;
|
|
38
67
|
};
|
|
39
68
|
export type FormatPngOptions = FormatCommonOptions & {
|
|
69
|
+
/** Format type identifier. */
|
|
40
70
|
type: 'png';
|
|
71
|
+
/** Quality level (1-100). */
|
|
41
72
|
quality?: number;
|
|
73
|
+
/** Force output format even if input is different. */
|
|
42
74
|
force?: boolean;
|
|
75
|
+
/** Use progressive encoding. */
|
|
43
76
|
progressive?: boolean;
|
|
77
|
+
/** Compression level (0-9). */
|
|
44
78
|
compressionLevel?: number;
|
|
79
|
+
/** Enable adaptive filtering. */
|
|
45
80
|
adaptiveFiltering?: boolean;
|
|
81
|
+
/** Compression effort (1-10). */
|
|
46
82
|
effort?: number;
|
|
83
|
+
/** Use palette mode. */
|
|
47
84
|
palette?: boolean;
|
|
85
|
+
/** Number of colors in palette (1-256). */
|
|
48
86
|
colors?: number;
|
|
87
|
+
/** Dither level (0-1). */
|
|
49
88
|
dither?: number;
|
|
50
89
|
};
|
|
51
90
|
export type FormatWebpOptions = FormatCommonOptions & {
|
|
91
|
+
/** Format type identifier. */
|
|
52
92
|
type: 'webp';
|
|
93
|
+
/** Quality level (1-100). */
|
|
53
94
|
quality?: number;
|
|
95
|
+
/** Force output format even if input is different. */
|
|
54
96
|
force?: boolean;
|
|
97
|
+
/** Alpha channel quality (1-100). */
|
|
55
98
|
alphaQuality?: number;
|
|
99
|
+
/** Use lossless encoding. */
|
|
56
100
|
lossless?: boolean;
|
|
101
|
+
/** Use near-lossless encoding. */
|
|
57
102
|
nearLossless?: boolean;
|
|
103
|
+
/** Enable smart subsample. */
|
|
58
104
|
smartSubsample?: boolean;
|
|
105
|
+
/** Enable smart deblock. */
|
|
59
106
|
smartDeblock?: boolean;
|
|
107
|
+
/** Compression effort (0-6). */
|
|
60
108
|
effort?: number;
|
|
109
|
+
/** Optimize for minimum file size. */
|
|
61
110
|
minSize?: boolean;
|
|
111
|
+
/** Use mixed encoding mode. */
|
|
62
112
|
mixed?: boolean;
|
|
113
|
+
/** Preset for encoding. */
|
|
63
114
|
preset?: 'default' | 'picture' | 'photo' | 'drawing' | 'icon' | 'text';
|
|
115
|
+
/** Number of animation loops. */
|
|
64
116
|
loop?: number;
|
|
117
|
+
/** Animation frame delays. */
|
|
65
118
|
delay?: number | number[];
|
|
66
119
|
};
|
|
67
120
|
export type FormatAvifOptions = FormatCommonOptions & {
|
|
121
|
+
/** Format type identifier. */
|
|
68
122
|
type: 'avif';
|
|
123
|
+
/** Quality level (1-100). */
|
|
69
124
|
quality?: number;
|
|
125
|
+
/** Force output format even if input is different. */
|
|
70
126
|
force?: boolean;
|
|
127
|
+
/** Use lossless encoding. */
|
|
71
128
|
lossless?: boolean;
|
|
129
|
+
/** Compression effort (0-9). */
|
|
72
130
|
effort?: number;
|
|
131
|
+
/** Chroma subsampling format. */
|
|
73
132
|
chromaSubsampling?: string;
|
|
133
|
+
/** Bit depth (8, 10, or 12 bits). */
|
|
74
134
|
bitdepth?: 8 | 10 | 12;
|
|
75
135
|
};
|
|
76
136
|
export type FormatTiffOptions = FormatCommonOptions & {
|
|
137
|
+
/** Format type identifier. */
|
|
77
138
|
type: 'tiff';
|
|
139
|
+
/** Quality level (1-100). */
|
|
78
140
|
quality?: number;
|
|
141
|
+
/** Force output format even if input is different. */
|
|
79
142
|
force?: boolean;
|
|
143
|
+
/** Compression method. */
|
|
80
144
|
compression?: 'none' | 'jpeg' | 'deflate' | 'packbits' | 'ccittfax4' | 'lzw' | 'webp' | 'zstd' | 'jp2k';
|
|
145
|
+
/** Predictor for compression. */
|
|
81
146
|
predictor?: 'none' | 'horizontal' | 'float';
|
|
147
|
+
/** Use pyramid structure. */
|
|
82
148
|
pyramid?: boolean;
|
|
149
|
+
/** Use tiled structure. */
|
|
83
150
|
tile?: boolean;
|
|
151
|
+
/** Tile width in pixels. */
|
|
84
152
|
tileWidth?: number;
|
|
153
|
+
/** Tile height in pixels. */
|
|
85
154
|
tileHeight?: number;
|
|
155
|
+
/** Horizontal resolution. */
|
|
86
156
|
xres?: number;
|
|
157
|
+
/** Vertical resolution. */
|
|
87
158
|
yres?: number;
|
|
159
|
+
/** Bit depth (1, 2, 4, or 8 bits). */
|
|
88
160
|
bitdepth?: 1 | 2 | 4 | 8;
|
|
161
|
+
/** If `true`, minimum value is white. */
|
|
89
162
|
miniswhite?: boolean;
|
|
163
|
+
/** Resolution unit. */
|
|
90
164
|
resolutionUnit?: 'inch' | 'cm';
|
|
91
165
|
};
|
|
92
166
|
export type FormatHeifOptions = FormatCommonOptions & {
|
|
167
|
+
/** Format type identifier. */
|
|
93
168
|
type: 'heif';
|
|
169
|
+
/** Quality level (1-100). */
|
|
94
170
|
quality?: number;
|
|
171
|
+
/** Force output format even if input is different. */
|
|
95
172
|
force?: boolean;
|
|
173
|
+
/** Compression codec. */
|
|
96
174
|
compression?: 'av1' | 'hevc';
|
|
175
|
+
/** Use lossless encoding. */
|
|
97
176
|
lossless?: boolean;
|
|
177
|
+
/** Compression effort (0-9). */
|
|
98
178
|
effort?: number;
|
|
179
|
+
/** Chroma subsampling format. */
|
|
99
180
|
chromaSubsampling?: string;
|
|
181
|
+
/** Bit depth (8, 10, or 12 bits). */
|
|
100
182
|
bitdepth?: 8 | 10 | 12;
|
|
101
183
|
};
|
|
184
|
+
/** Union type representing all supported format options. */
|
|
102
185
|
export type FormatOptions = FormatJpgOptions | FormatPngOptions | FormatWebpOptions | FormatAvifOptions | FormatTiffOptions | FormatHeifOptions | FormatCommonOptions;
|
|
186
|
+
/** Enumeration of available image transformation operation names. */
|
|
103
187
|
export declare enum OpName {
|
|
104
188
|
BLUR = "blur",
|
|
105
189
|
BRIGHTEN = "brighten",
|
|
@@ -118,73 +202,117 @@ export declare enum OpName {
|
|
|
118
202
|
SATURATE = "saturate"
|
|
119
203
|
}
|
|
120
204
|
export type BlurOperationParams = {
|
|
205
|
+
/** Blur sigma value (standard deviation). */
|
|
121
206
|
sigma: number;
|
|
122
207
|
};
|
|
123
208
|
export type BrightenOperationParams = {
|
|
209
|
+
/** Brightness factor. */
|
|
124
210
|
factor: number;
|
|
125
211
|
};
|
|
126
212
|
export type ExtendOperationParams = {
|
|
213
|
+
/** Pixels to extend on the left side. */
|
|
127
214
|
left?: number;
|
|
215
|
+
/** Pixels to extend on the right side. */
|
|
128
216
|
right?: number;
|
|
217
|
+
/** Pixels to extend on the top side. */
|
|
129
218
|
top?: number;
|
|
219
|
+
/** Pixels to extend on the bottom side. */
|
|
130
220
|
bottom?: number;
|
|
221
|
+
/** Method to use for extending. */
|
|
131
222
|
extendWith?: 'background' | 'copy' | 'repeat' | 'mirror';
|
|
223
|
+
/** Background color for extension. */
|
|
132
224
|
background?: Color;
|
|
133
225
|
};
|
|
134
226
|
export type ExtractOperationParams = {
|
|
227
|
+
/** Left coordinate of the extraction region. */
|
|
135
228
|
left: number;
|
|
229
|
+
/** Top coordinate of the extraction region. */
|
|
136
230
|
top: number;
|
|
231
|
+
/** Width of the extraction region. */
|
|
137
232
|
width: number;
|
|
233
|
+
/** Height of the extraction region. */
|
|
138
234
|
height: number;
|
|
139
235
|
};
|
|
140
236
|
export type FlattenOperationParams = {
|
|
237
|
+
/** Background color for flattening. */
|
|
141
238
|
background?: Color;
|
|
142
239
|
};
|
|
143
240
|
export type HueOperationParams = {
|
|
241
|
+
/** Hue rotation in degrees. */
|
|
144
242
|
rotateDeg?: number;
|
|
145
243
|
};
|
|
146
244
|
export type LevelOperationParams = {
|
|
245
|
+
/** Multiplier for level adjustment. */
|
|
147
246
|
multiplier?: number;
|
|
247
|
+
/** Offset for level adjustment. */
|
|
148
248
|
offset?: number;
|
|
149
249
|
};
|
|
150
250
|
export type LightenOperationParams = {
|
|
251
|
+
/** Lightening amount. */
|
|
151
252
|
amount?: number;
|
|
152
253
|
};
|
|
153
254
|
export type NormalizeOperationParams = {
|
|
255
|
+
/** Lower bound for normalization. */
|
|
154
256
|
lower?: number;
|
|
257
|
+
/** Upper bound for normalization. */
|
|
155
258
|
upper?: number;
|
|
156
259
|
};
|
|
157
260
|
export type OverlayOperationParams = {
|
|
261
|
+
/** Image to overlay. */
|
|
158
262
|
input: ImageLike;
|
|
263
|
+
/** Top position for overlay. */
|
|
159
264
|
top?: number;
|
|
265
|
+
/** Left position for overlay. */
|
|
160
266
|
left?: number;
|
|
267
|
+
/** If `true`, tile the overlay image. */
|
|
161
268
|
tile?: boolean;
|
|
269
|
+
/** If `true`, use premultiplied alpha. */
|
|
162
270
|
premultiplied?: boolean;
|
|
271
|
+
/** Density for vector images. */
|
|
163
272
|
density?: number;
|
|
273
|
+
/** If `true`, process animated images. */
|
|
164
274
|
animated?: boolean;
|
|
275
|
+
/** If `true`, auto-orient the image. */
|
|
165
276
|
autoOrient?: boolean;
|
|
277
|
+
/** If `true`, ignore ICC profile. */
|
|
166
278
|
ignoreIcc?: boolean;
|
|
279
|
+
/** Number of pages to process. */
|
|
167
280
|
pages?: number;
|
|
281
|
+
/** Specific page to process. */
|
|
168
282
|
page?: number;
|
|
283
|
+
/** Blend mode for overlay. */
|
|
169
284
|
blend?: 'clear' | 'source' | 'over' | 'in' | 'out' | 'atop' | 'dest' | 'dest-over' | 'dest-in' | 'dest-out' | 'dest-atop' | 'xor' | 'add' | 'saturate' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'colour-dodge' | 'color-burn' | 'colour-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion';
|
|
285
|
+
/** Gravity for positioning the overlay. */
|
|
170
286
|
gravity?: 'north' | 'northeast' | 'southeast' | 'south' | 'southwest' | 'west' | 'northwest' | 'east' | 'center' | 'centre';
|
|
171
287
|
};
|
|
172
288
|
export type ResizeOperationParams = {
|
|
289
|
+
/** Target width in pixels. */
|
|
173
290
|
width?: number;
|
|
291
|
+
/** Target height in pixels. */
|
|
174
292
|
height?: number;
|
|
293
|
+
/** How the image should be resized to fit the dimensions. */
|
|
175
294
|
fit?: 'contain' | 'cover' | 'fill' | 'inside' | 'outside';
|
|
295
|
+
/** Position for the fit mode (gravity or coordinates). */
|
|
176
296
|
position?: number | string;
|
|
297
|
+
/** Background color for areas not covered by the image. */
|
|
177
298
|
background?: Color;
|
|
299
|
+
/** Interpolation kernel to use for resizing. */
|
|
178
300
|
kernel?: 'nearest' | 'cubic' | 'linear' | 'mitchell' | 'lanczos2' | 'lanczos3' | 'mks2013' | 'mks2021';
|
|
301
|
+
/** If `true`, do not enlarge the image if dimensions are smaller. */
|
|
179
302
|
withoutEnlargement?: boolean;
|
|
303
|
+
/** If `true`, do not reduce the image if dimensions are larger. */
|
|
180
304
|
withoutReduction?: boolean;
|
|
305
|
+
/** If `true`, use fast shrink-on-load for JPEG images. */
|
|
181
306
|
fastShrinkOnLoad?: boolean;
|
|
182
307
|
};
|
|
183
308
|
export type RotateOperationParams = {
|
|
309
|
+
/** Rotation angle in degrees. */
|
|
184
310
|
angleDeg?: number;
|
|
311
|
+
/** Background color for areas revealed by rotation. */
|
|
185
312
|
background?: Color;
|
|
186
313
|
};
|
|
187
314
|
export type SaturateOperationParams = {
|
|
315
|
+
/** Saturation level. */
|
|
188
316
|
saturation?: number;
|
|
189
317
|
};
|
|
190
318
|
export type BlurOperationDescriptor = {
|
|
@@ -234,11 +362,16 @@ export type SaturateOperationDescriptor = {
|
|
|
234
362
|
} & SaturateOperationParams;
|
|
235
363
|
export type OperationDescriptor = BlurOperationDescriptor | BrightenOperationDescriptor | ExtendOperationDescriptor | ExtractOperationDescriptor | FlattenOperationDescriptor | FlipOperationDescriptor | FlopOperationDescriptor | HueOperationDescriptor | LevelOperationDescriptor | LightenOperationDescriptor | NormalizeOperationDescriptor | OverlayOperationDescriptor | ResizeOperationDescriptor | RotateOperationDescriptor | SaturateOperationDescriptor;
|
|
236
364
|
export type TransformLimits = {
|
|
365
|
+
/** Maximum time allowed for the entire transformation process in milliseconds. */
|
|
237
366
|
timeoutMs?: number;
|
|
367
|
+
/** Maximum time allowed for a single operation in milliseconds. */
|
|
238
368
|
opTimeoutMs?: number;
|
|
369
|
+
/** Maximum allowed image width in pixels. */
|
|
239
370
|
width?: number;
|
|
371
|
+
/** Maximum allowed image height in pixels. */
|
|
240
372
|
height?: number;
|
|
241
373
|
};
|
|
374
|
+
/** Error codes for transformation operations. */
|
|
242
375
|
export declare enum TransformErrCodes {
|
|
243
376
|
PROCESS_TIMEOUT = "process-timeout",
|
|
244
377
|
OP_TIMEOUT = "op-timeout",
|
|
@@ -247,6 +380,8 @@ export declare enum TransformErrCodes {
|
|
|
247
380
|
UNKNOWN_ERROR = "unknown-error"
|
|
248
381
|
}
|
|
249
382
|
export type TransformErr = {
|
|
383
|
+
/** Error code indicating the type of error. */
|
|
250
384
|
code: TransformErrCodes;
|
|
385
|
+
/** Human-readable error details. */
|
|
251
386
|
details: string;
|
|
252
387
|
};
|
package/node/images/types.js
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import sharp from 'sharp';
|
|
2
2
|
import type { Color } from '../../../agnostic/colors/types.js';
|
|
3
3
|
import type { CreateOptions, ImageLike } from '../types.js';
|
|
4
|
+
/** Converts a Color to Sharp RGBA format. */
|
|
4
5
|
export declare function toSharpColor(color: Color): sharp.RGBA;
|
|
6
|
+
/**
|
|
7
|
+
* Type guard to check if an object is a duck-typed Sharp instance.
|
|
8
|
+
*
|
|
9
|
+
* Checks for the presence and correct types of Sharp's characteristic methods.
|
|
10
|
+
*
|
|
11
|
+
* @param obj - The object to check.
|
|
12
|
+
* @returns `true` if the object appears to be a Sharp instance, `false` otherwise.
|
|
13
|
+
*/
|
|
5
14
|
export declare function isDuckTypedSharpInstance(obj: unknown): obj is sharp.Sharp;
|
|
15
|
+
/** Converts CreateOptions to Sharp create options with defaults applied. */
|
|
6
16
|
export declare function toCreateOptions(options: CreateOptions): sharp.SharpOptions['create'];
|
|
17
|
+
/**
|
|
18
|
+
* Converts an ImageLike input to a Sharp instance.
|
|
19
|
+
*
|
|
20
|
+
* Handles different input types: file paths (reads from disk), Buffers, existing Sharp
|
|
21
|
+
* instances, and CreateOptions (creates a new image).
|
|
22
|
+
*
|
|
23
|
+
* @param imageLike - The image input. Can be a file path, Buffer, Sharp instance, or CreateOptions.
|
|
24
|
+
* @param [clone=false] - If `true` and input is a Sharp instance, returns a cloned instance.
|
|
25
|
+
* @returns A Sharp instance ready for image operations.
|
|
26
|
+
*/
|
|
7
27
|
export declare function toSharpInstance(imageLike: ImageLike, clone?: boolean): Promise<sharp.Sharp>;
|
|
@@ -3,24 +3,14 @@ import {
|
|
|
3
3
|
toCreateOptions,
|
|
4
4
|
toSharpColor,
|
|
5
5
|
toSharpInstance
|
|
6
|
-
} from "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
8
|
-
import "../../../chunks/chunk-5CTAKAIP.js";
|
|
9
|
-
import "../../../chunks/chunk-L7PIZQFC.js";
|
|
10
|
-
import "../../../chunks/chunk-WSC3WODJ.js";
|
|
11
|
-
import "../../../chunks/chunk-EGBJXHCW.js";
|
|
12
|
-
import "../../../chunks/chunk-XPGAVZGK.js";
|
|
13
|
-
import "../../../chunks/chunk-3LCD73SB.js";
|
|
14
|
-
import "../../../chunks/chunk-MFIGSRSO.js";
|
|
15
|
-
import "../../../chunks/chunk-YXLHZ2KW.js";
|
|
16
|
-
import "../../../chunks/chunk-NCYE5WML.js";
|
|
17
|
-
import "../../../chunks/chunk-FNQAF6CQ.js";
|
|
18
|
-
import "../../../chunks/chunk-DNIOWD7K.js";
|
|
6
|
+
} from "../../../chunks/chunk-ENOTZXFS.js";
|
|
7
|
+
import "../../../chunks/chunk-2QDYPY2O.js";
|
|
19
8
|
import "../../../chunks/chunk-OSAXBA7G.js";
|
|
20
|
-
import "../../../chunks/chunk-
|
|
9
|
+
import "../../../chunks/chunk-JDINERKY.js";
|
|
21
10
|
import "../../../chunks/chunk-HQLRJ7XW.js";
|
|
22
|
-
import "../../../chunks/chunk-
|
|
23
|
-
import "../../../chunks/chunk-
|
|
11
|
+
import "../../../chunks/chunk-DNIOWD7K.js";
|
|
12
|
+
import "../../../chunks/chunk-KRYJVBO5.js";
|
|
13
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
24
14
|
export {
|
|
25
15
|
isDuckTypedSharpInstance,
|
|
26
16
|
toCreateOptions,
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
+
/** Events that trigger a forced exit of the process. */
|
|
1
2
|
export declare const forceExitEvents: string[];
|
|
3
|
+
/**
|
|
4
|
+
* Registers a callback to run before forced exit events (SIGINT, SIGTERM, uncaughtException).
|
|
5
|
+
*
|
|
6
|
+
* @param callback - Function to execute before forced exit. Can be async.
|
|
7
|
+
*/
|
|
2
8
|
export declare function beforeForcedExit(callback: () => void | Promise<void>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Registers a callback to run before the process exits normally.
|
|
11
|
+
*
|
|
12
|
+
* @param callback - Function to execute before exit. Can be async.
|
|
13
|
+
*/
|
|
3
14
|
export declare function beforeExit(callback: () => void | Promise<void>): void;
|
|
15
|
+
/**
|
|
16
|
+
* Registers a callback to run when the process exits.
|
|
17
|
+
*
|
|
18
|
+
* @param callback - Function to execute on exit. Can be async.
|
|
19
|
+
*/
|
|
4
20
|
export declare function onExit(callback: () => void | Promise<void>): void;
|
|
21
|
+
/**
|
|
22
|
+
* Registers a callback to run on all exit scenarios (forced exit, before exit, and exit).
|
|
23
|
+
*
|
|
24
|
+
* The callback is guaranteed to be called only once, even if multiple exit events occur.
|
|
25
|
+
*
|
|
26
|
+
* @param callback - Function to execute on any exit. Can be async.
|
|
27
|
+
*/
|
|
5
28
|
export declare function onAllExits(callback: () => void | Promise<void>): void;
|
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/node/process/on-exit/index.ts
|
|
4
|
+
var forceExitEvents = ["SIGINT", "SIGTERM", "uncaughtException"];
|
|
5
|
+
function beforeForcedExit(callback) {
|
|
6
|
+
forceExitEvents.forEach((ev) => process.on(ev, callback));
|
|
7
|
+
}
|
|
8
|
+
function beforeExit(callback) {
|
|
9
|
+
process.on("beforeExit", callback);
|
|
10
|
+
}
|
|
11
|
+
function onExit(callback) {
|
|
12
|
+
process.on("exit", callback);
|
|
13
|
+
}
|
|
14
|
+
function onAllExits(callback) {
|
|
15
|
+
let alreadyCalled = false;
|
|
16
|
+
const actualCallback = () => {
|
|
17
|
+
if (!alreadyCalled) {
|
|
18
|
+
alreadyCalled = true;
|
|
19
|
+
callback();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
beforeForcedExit(actualCallback);
|
|
23
|
+
beforeExit(actualCallback);
|
|
24
|
+
onExit(actualCallback);
|
|
25
|
+
}
|
|
9
26
|
export {
|
|
10
27
|
beforeExit,
|
|
11
28
|
beforeForcedExit,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompts the user with a yes/no confirmation in the terminal.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} [message] - The message to display in the prompt. Defaults to "Continue?" if not provided.
|
|
5
|
+
* @param {boolean} [throws=false] - If true, the function will throw an error when the user declines.
|
|
6
|
+
* @returns {Promise<boolean>} - Resolves to `true` if the user confirms, `false` if the user declines and `throws` is false.
|
|
7
|
+
*
|
|
8
|
+
* @throws {Error} - Throws an error with message 'Aborted' if the user declines and `throws` is true.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const result = await promptContinue('Do you want to proceed?');
|
|
12
|
+
* if (result) {
|
|
13
|
+
* console.log('User confirmed');
|
|
14
|
+
* } else {
|
|
15
|
+
* console.log('User declined');
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export declare function promptContinue(message?: string, throws?: boolean): Promise<boolean>;
|