@design-edito/tools 0.1.64 → 0.1.66
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/find-duplicates/index.js +1 -1
- package/agnostic/arrays/index.js +8 -8
- package/agnostic/arrays/is-array-of/index.js +1 -1
- package/agnostic/arrays/make/index.js +1 -1
- package/agnostic/arrays/random-pick/index.js +5 -5
- package/agnostic/arrays/shuffle/index.js +1 -1
- package/agnostic/booleans/index.js +1 -1
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/colors/complement-color/index.d.ts +1 -0
- package/agnostic/colors/complement-color/index.js +7 -0
- package/agnostic/colors/hex-to-rgb/index.d.ts +1 -0
- package/agnostic/colors/hex-to-rgb/index.js +7 -0
- package/agnostic/colors/hsl-to-rgb/index.d.ts +1 -0
- package/agnostic/colors/hsl-to-rgb/index.js +7 -0
- package/agnostic/colors/index.d.ts +16 -0
- package/agnostic/colors/index.js +37 -0
- package/agnostic/colors/lighten-color/index.d.ts +2 -0
- package/agnostic/colors/lighten-color/index.js +11 -0
- package/agnostic/colors/rgb-to-hex/index.d.ts +1 -0
- package/agnostic/colors/rgb-to-hex/index.js +7 -0
- package/agnostic/colors/rgb-to-hsl/index.d.ts +1 -0
- package/agnostic/colors/rgb-to-hsl/index.js +7 -0
- package/agnostic/colors/saturate-color/index.d.ts +2 -0
- package/agnostic/colors/saturate-color/index.js +11 -0
- package/agnostic/css/bem/index.js +1 -1
- package/agnostic/css/generate-nice-color/index.js +1 -1
- package/agnostic/css/index.js +12 -12
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +5 -5
- package/agnostic/errors/index.js +3 -3
- package/agnostic/errors/register/index.js +1 -1
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.js +1 -1
- package/agnostic/html/hyper-json/cast/index.d.ts +1 -1
- package/agnostic/html/hyper-json/cast/index.js +5 -5
- package/agnostic/html/hyper-json/index.js +6 -6
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
- package/agnostic/html/hyper-json/transformer/index.js +1 -1
- package/agnostic/html/hyper-json/tree/index.js +5 -5
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.d.ts +5 -0
- package/agnostic/html/hyper-json/utils/index.js +5 -5
- package/agnostic/html/index.js +17 -17
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/placeholders/index.js +1 -1
- package/agnostic/html/replace-in-element/index.js +1 -1
- package/agnostic/html/sanitize/index.js +5 -5
- package/agnostic/html/selector-to-element/index.js +5 -5
- package/agnostic/html/string-to-nodes/index.js +6 -6
- package/agnostic/index.d.ts +2 -0
- package/agnostic/misc/assert/index.js +4 -4
- package/agnostic/misc/cast/index.js +1 -1
- package/agnostic/misc/crawler/index.js +1 -1
- package/agnostic/misc/crossenv/detect-runtime/index.js +1 -1
- package/agnostic/misc/crossenv/index.js +1 -1
- package/agnostic/misc/crossenv/types/index.js +1 -1
- package/agnostic/misc/crossenv/window/index.js +1 -1
- package/agnostic/misc/data-size/index.js +2 -2
- package/agnostic/misc/elo/index.js +1 -1
- package/agnostic/misc/get-current-downlink/index.js +1 -1
- package/agnostic/misc/index.js +18 -18
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/misc/logs/logger/index.js +1 -1
- 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.js +9 -9
- package/agnostic/misc/outcome/index.js +1 -1
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/index.js +5 -5
- package/agnostic/numbers/interpolate/index.js +1 -1
- package/agnostic/numbers/responsive-harmonics/index.js +1 -1
- package/agnostic/numbers/round/index.js +1 -1
- package/agnostic/objects/deep-get-property/index.js +1 -1
- package/agnostic/objects/enums/index.js +1 -1
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.js +1 -1
- package/agnostic/objects/index.js +9 -9
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.js +1 -1
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.js +1 -1
- package/agnostic/optim/index.js +4 -4
- package/agnostic/optim/memoize/index.js +1 -1
- package/agnostic/optim/throttle-debounce/index.js +1 -1
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/index.js +1 -1
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +3 -0
- package/agnostic/sanitization/index.js +1311 -0
- package/agnostic/strings/char-codes/index.js +1 -1
- package/agnostic/strings/index.js +6 -6
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.js +1 -1
- package/agnostic/strings/replace-all/index.js +1 -1
- package/agnostic/strings/to-alphanum/index.js +1 -1
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.js +1 -1
- package/agnostic/time/dates/index.js +1 -1
- package/agnostic/time/duration/index.js +1 -1
- package/agnostic/time/index.js +6 -6
- package/agnostic/time/timeout/index.js +1 -1
- package/agnostic/time/transitions/index.js +1 -1
- package/agnostic/time/wait/index.js +1 -1
- package/chunks/chunk-26QQ56SS.js +36 -0
- package/chunks/chunk-2H5RIOJO.js +16 -0
- package/chunks/chunk-2KT7AKRW.js +17 -0
- package/chunks/chunk-2POD3TAX.js +11 -0
- package/chunks/chunk-2TJCB6IM.js +12 -0
- package/chunks/chunk-334MFRHI.js +56 -0
- package/chunks/chunk-33YK4WOA.js +18 -0
- package/chunks/chunk-3KN4IIQU.js +23 -0
- package/chunks/chunk-3LAWRHHB.js +23 -0
- package/chunks/chunk-3UM5CZA5.js +18 -0
- package/chunks/chunk-3XNFVOJF.js +20 -0
- package/chunks/chunk-45WKBXSF.js +39 -0
- package/chunks/chunk-4TGRV2AB.js +18 -0
- package/chunks/chunk-4WZEYD3R.js +56 -0
- package/chunks/chunk-5GBYBDYQ.js +36 -0
- package/chunks/chunk-5JNJVGDX.js +20 -0
- package/chunks/chunk-5SWBMXLR.js +98 -0
- package/chunks/chunk-5TRAENM3.js +31 -0
- package/chunks/chunk-662SOZWA.js +19 -0
- package/chunks/chunk-6EIF24H5.js +35 -0
- package/chunks/chunk-6HPXM6ED.js +20 -0
- package/chunks/chunk-6IZ5HUJJ.js +21 -0
- package/chunks/chunk-76QORXDC.js +19 -0
- package/chunks/chunk-7BCQCDGQ.js +31 -0
- package/chunks/chunk-7FJKDVBE.js +49 -0
- package/chunks/chunk-7KCMLH6B.js +22 -0
- package/chunks/chunk-7Z7CKAOH.js +98 -0
- package/chunks/chunk-ADTQQNIQ.js +47 -0
- package/chunks/chunk-AMXIZUFB.js +16 -0
- package/chunks/chunk-AWVQJNGX.js +101 -0
- package/chunks/chunk-AZOSX3LU.js +191 -0
- package/chunks/chunk-BANYGSW4.js +20 -0
- package/chunks/chunk-BGZ5OVVN.js +20 -0
- package/chunks/chunk-BWXVJB4I.js +20 -0
- package/chunks/chunk-C3ZKLONL.js +21 -0
- package/chunks/chunk-C7SRAQMW.js +29 -0
- package/chunks/chunk-CM6AHRTS.js +16 -0
- package/chunks/chunk-CP454IJD.js +231 -0
- package/chunks/chunk-CQEDNACN.js +28 -0
- package/chunks/chunk-CSZFW4R5.js +69 -0
- package/chunks/chunk-CYIUZX2T.js +31 -0
- package/chunks/chunk-D33KC6NN.js +18 -0
- package/chunks/chunk-D47ZPEUU.js +22 -0
- package/chunks/chunk-DEQ5N53D.js +21 -0
- package/chunks/chunk-E3GK7YZ7.js +65 -0
- package/chunks/chunk-E4FJHD5R.js +67 -0
- package/chunks/chunk-E7J4E6OB.js +65 -0
- package/chunks/chunk-EA4L7AGZ.js +48 -0
- package/chunks/chunk-FAXNZG5C.js +10 -0
- package/chunks/chunk-FCLAFRIW.js +177 -0
- package/chunks/chunk-FMRPJBUC.js +20 -0
- package/chunks/chunk-FTT6ZCCS.js +29 -0
- package/chunks/chunk-G2M3VECP.js +20 -0
- package/chunks/chunk-G3HAKMUB.js +79 -0
- package/chunks/chunk-GCHQD7MH.js +63 -0
- package/chunks/chunk-GXICX4F6.js +31 -0
- package/chunks/chunk-H73SGDQI.js +20 -0
- package/chunks/chunk-H7LDIXVY.js +48 -0
- package/chunks/chunk-HALUZA2X.js +16 -0
- package/chunks/chunk-HDK7W7GS.js +20 -0
- package/chunks/chunk-HUC2IRGW.js +205 -0
- package/chunks/chunk-IARWH6LC.js +34 -0
- package/chunks/chunk-IJAFLBHD.js +16 -0
- package/chunks/chunk-JBSS64SA.js +6 -0
- package/chunks/chunk-JBZR6R5B.js +15 -0
- package/chunks/chunk-JRYI4VBX.js +22 -0
- package/chunks/chunk-KFMYB672.js +31 -0
- package/chunks/chunk-KN23H4CI.js +20 -0
- package/chunks/chunk-LNSDOGTR.js +63 -0
- package/chunks/chunk-LOAOXFA2.js +2369 -0
- package/chunks/chunk-LOY7C5BP.js +151 -0
- package/chunks/chunk-LSOHLSF5.js +32 -0
- package/chunks/chunk-MAE5XZGF.js +37 -0
- package/chunks/chunk-MB7HWF22.js +23 -0
- package/chunks/chunk-MFWKY3DT.js +32 -0
- package/chunks/chunk-MOBGB2PH.js +54 -0
- package/chunks/chunk-MOVLLUDL.js +25 -0
- package/chunks/chunk-MTGZYBK2.js +129 -0
- package/chunks/chunk-MV2LDBDF.js +164 -0
- package/chunks/chunk-MVNQWIVH.js +151 -0
- package/chunks/chunk-MXGGOCLX.js +56 -0
- package/chunks/chunk-MZZOFFFT.js +21 -0
- package/chunks/chunk-NA3M6VUU.js +20 -0
- package/chunks/chunk-NAP2XNYN.js +23 -0
- package/chunks/chunk-NZLE2WMY.js +35 -0
- package/chunks/chunk-O7UEQQ6H.js +49 -0
- package/chunks/chunk-OCM3RLO6.js +73 -0
- package/chunks/chunk-OPU4CANL.js +35 -0
- package/chunks/chunk-OSZ4BWDE.js +32 -0
- package/chunks/chunk-OUJTDMHK.js +16 -0
- package/chunks/chunk-OWCPJD6O.js +16 -0
- package/chunks/chunk-P2H6PV4O.js +26 -0
- package/chunks/chunk-P5OGBBGM.js +37 -0
- package/chunks/chunk-PENYZ6S7.js +31 -0
- package/chunks/chunk-PEUWFUEZ.js +98 -0
- package/chunks/chunk-PSP2DKDH.js +151 -0
- package/chunks/chunk-PXRLKO5Y.js +23 -0
- package/chunks/chunk-QAE3OWOI.js +79 -0
- package/chunks/chunk-QLC3A6PC.js +17 -0
- package/chunks/chunk-QUDIXNB2.js +18 -0
- package/chunks/chunk-RCWLMVSZ.js +164 -0
- package/chunks/chunk-RDQJSWRC.js +127 -0
- package/chunks/chunk-RGGOIE34.js +20 -0
- package/chunks/chunk-RLTBF5FT.js +23 -0
- package/chunks/chunk-RPWYARS3.js +18 -0
- package/chunks/chunk-RVZ32GPI.js +55 -0
- package/chunks/chunk-S2PB2PLY.js +191 -0
- package/chunks/chunk-SC54OKBX.js +43 -0
- package/chunks/chunk-SJFY537W.js +84 -0
- package/chunks/chunk-SNRRHDIZ.js +31 -0
- package/chunks/chunk-SZQHLC4K.js +31 -0
- package/chunks/chunk-T2T5BYTW.js +18 -0
- package/chunks/chunk-T55QIYYV.js +32 -0
- package/chunks/chunk-TXGV4KJD.js +31 -0
- package/chunks/chunk-U57Q62IN.js +23 -0
- package/chunks/chunk-U7CF7IDN.js +35 -0
- package/chunks/chunk-U7R6TPHR.js +15 -0
- package/chunks/chunk-UNHNZAVP.js +18 -0
- package/chunks/chunk-UUSZJMJB.js +37 -0
- package/chunks/chunk-V4S34MIM.js +32 -0
- package/chunks/chunk-VHAGPTVR.js +37 -0
- package/chunks/chunk-VQUF2TSY.js +191 -0
- package/chunks/chunk-W6JPRXQ4.js +16 -0
- package/chunks/chunk-WLGIDY6A.js +2456 -0
- package/chunks/chunk-WMSE5GRO.js +63 -0
- package/chunks/chunk-WR64YJNW.js +20 -0
- package/chunks/chunk-WRRA3BN4.js +31 -0
- package/chunks/chunk-WU3JQC7W.js +164 -0
- package/chunks/chunk-X244JGZD.js +69 -0
- package/chunks/chunk-X5HMM3LD.js +35 -0
- package/chunks/chunk-XEAHMN2T.js +4063 -0
- package/chunks/chunk-XF5QBETN.js +48 -0
- package/chunks/chunk-XJ23DJY4.js +173 -0
- package/chunks/chunk-XN44EWRS.js +21 -0
- package/chunks/chunk-XSVBWVVC.js +20 -0
- package/chunks/chunk-XZ7II65Z.js +31 -0
- package/chunks/chunk-YCSC7QNV.js +30 -0
- package/chunks/chunk-YE67BQQN.js +4072 -0
- package/chunks/chunk-YEYXAV23.js +16 -0
- package/chunks/chunk-YLKBLE6G.js +30 -0
- package/chunks/chunk-YRQ7LODK.js +177 -0
- package/chunks/chunk-YVLJKJV2.js +17 -0
- package/chunks/chunk-YW5ASSIQ.js +31 -0
- package/chunks/chunk-YXJXNTCV.js +65 -0
- package/chunks/chunk-YYA5VRE4.js +177 -0
- package/chunks/chunk-Z4PVE6SR.js +21 -0
- package/chunks/chunk-ZMMNN3QA.js +16 -0
- package/chunks/chunk-ZRWVPWQC.js +36 -0
- package/chunks/chunk-ZZH6RUS3.js +48 -0
- package/components/Comp/index.js +1 -1
- package/node/@aws-s3/index.js +5 -5
- package/node/@aws-s3/storage/file/download/index.js +2 -2
- package/node/@aws-s3/storage/file/index.js +4 -4
- package/node/@aws-s3/storage/file/upload/index.js +2 -2
- package/node/@aws-s3/storage/index.js +5 -5
- package/node/@design-edito/index.js +2 -7
- package/node/@design-edito/thumbnails/index.d.ts +1 -5
- package/node/@design-edito/thumbnails/index.js +1 -20
- package/node/@express/@multer/index.js +2 -2
- package/node/@express/index.js +2 -2
- package/node/@google-cloud/index.js +17 -17
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/bucket/list/index.js +2 -2
- package/node/@google-cloud/storage/file/copy/index.js +2 -2
- package/node/@google-cloud/storage/file/download/index.js +2 -2
- package/node/@google-cloud/storage/file/erase/index.js +2 -2
- package/node/@google-cloud/storage/file/exists/index.js +2 -2
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +2 -2
- package/node/@google-cloud/storage/file/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/get-permissions/index.js +2 -2
- package/node/@google-cloud/storage/file/index.js +21 -21
- package/node/@google-cloud/storage/file/move/index.js +2 -2
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +5 -5
- package/node/@google-cloud/storage/file/update-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/upload/index.js +2 -2
- package/node/@google-cloud/storage/index.js +19 -19
- package/node/cloud-storage/client/index.js +3 -3
- package/node/cloud-storage/credentials/index.js +2 -2
- package/node/cloud-storage/endpoint/index.js +2 -2
- package/node/cloud-storage/index.js +19 -19
- package/node/cloud-storage/operations/download/index.js +7 -7
- package/node/cloud-storage/operations/index.js +13 -13
- package/node/cloud-storage/operations/upload/index.js +7 -7
- package/node/encryption/@aes-256-gcm/buffer/index.js +3 -3
- package/node/encryption/@aes-256-gcm/index.js +4 -4
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +2 -2
- package/node/encryption/index.js +5 -5
- package/node/encryption/key/index.js +2 -2
- package/node/files/index.js +4 -4
- package/node/files/is-in-directory/index.js +1 -1
- package/node/files/read-write/index.js +1 -1
- package/node/files/subpaths/index.js +1 -1
- package/node/ftps/file/download/index.js +2 -2
- package/node/ftps/file/index.js +4 -4
- package/node/ftps/file/upload/index.js +2 -2
- package/node/ftps/index.js +4 -4
- package/node/images/format/index.d.ts +52 -0
- package/node/images/format/index.js +27 -0
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +50 -17
- package/node/images/prepare/index.d.ts +11 -4
- package/node/images/prepare/index.js +50 -15
- package/node/images/transform/_utils/color-schema/index.d.ts +3 -0
- package/node/images/transform/_utils/color-schema/index.js +8 -0
- package/node/images/transform/_utils/operation-names/index.d.ts +20 -0
- package/node/images/transform/_utils/operation-names/index.js +7 -0
- package/node/images/transform/_utils/positions/index.d.ts +33 -0
- package/node/images/transform/_utils/positions/index.js +10 -0
- package/node/images/transform/blur/index.d.ts +10 -0
- package/node/images/transform/blur/index.js +9 -0
- package/node/images/transform/brighten/index.d.ts +8 -0
- package/node/images/transform/brighten/index.js +9 -0
- package/node/images/transform/compose/index.d.ts +38 -0
- package/node/images/transform/compose/index.js +11 -0
- package/node/images/transform/extend/index.d.ts +16 -0
- package/node/images/transform/extend/index.js +10 -0
- package/node/images/transform/extract/index.d.ts +13 -0
- package/node/images/transform/extract/index.js +9 -0
- package/node/images/transform/flatten/index.d.ts +11 -0
- package/node/images/transform/flatten/index.js +10 -0
- package/node/images/transform/flip/index.d.ts +10 -0
- package/node/images/transform/flip/index.js +9 -0
- package/node/images/transform/flop/index.d.ts +10 -0
- package/node/images/transform/flop/index.js +9 -0
- package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +155 -0
- package/node/images/transform/frame/backgrounds/create-line-background/index.js +10 -0
- package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +106 -0
- package/node/images/transform/frame/backgrounds/create-tile-background/index.js +10 -0
- package/node/images/transform/frame/index.d.ts +44 -0
- package/node/images/transform/frame/index.js +13 -0
- package/node/images/transform/hue-rotate/index.d.ts +8 -0
- package/node/images/transform/hue-rotate/index.js +9 -0
- package/node/images/transform/index.d.ts +24 -6
- package/node/images/transform/index.js +52 -15
- package/node/images/transform/lighten/index.d.ts +8 -0
- package/node/images/transform/lighten/index.js +9 -0
- package/node/images/transform/lineate-levels/index.d.ts +11 -0
- package/node/images/transform/lineate-levels/index.js +9 -0
- package/node/images/transform/modulate/index.d.ts +13 -0
- package/node/images/transform/modulate/index.js +9 -0
- package/node/images/transform/normalize/index.d.ts +11 -0
- package/node/images/transform/normalize/index.js +9 -0
- package/node/images/transform/operations/_utils/compose/index.d.ts +3 -0
- package/node/images/transform/operations/_utils/compose/index.js +8 -0
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.d.ts +6 -0
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +12 -0
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.d.ts +14 -0
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +14 -0
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.d.ts +11 -0
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +17 -0
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.d.ts +10 -0
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.js +11 -0
- package/node/images/transform/operations/_utils/frame/index.d.ts +7 -0
- package/node/images/transform/operations/_utils/frame/index.js +24 -0
- package/node/images/transform/operations/_utils/positions/index.d.ts +16 -0
- package/node/images/transform/operations/_utils/positions/index.js +11 -0
- package/node/images/transform/operations/_utils/scale/index.d.ts +3 -0
- package/node/images/transform/operations/_utils/scale/index.js +7 -0
- package/node/images/transform/operations/index.d.ts +0 -207
- package/node/images/transform/operations/index.js +0 -21
- package/node/images/transform/resize/index.d.ts +16 -0
- package/node/images/transform/resize/index.js +10 -0
- package/node/images/transform/rotate/index.d.ts +9 -0
- package/node/images/transform/rotate/index.js +9 -0
- package/node/images/transform/saturate/index.d.ts +8 -0
- package/node/images/transform/saturate/index.js +9 -0
- package/node/images/transform/scale/index.d.ts +13 -0
- package/node/images/transform/scale/index.js +10 -0
- package/node/process/index.js +1 -1
- package/node/process/on-exit/index.js +1 -1
- package/node/sftp/file/download/index.js +2 -2
- package/node/sftp/file/index.js +4 -4
- package/node/sftp/file/upload/index.js +2 -2
- package/node/sftp/index.js +4 -4
- package/package.json +12 -12
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
upload
|
3
|
-
} from "../../../../chunks/chunk-
|
4
|
-
import "../../../../chunks/chunk-
|
5
|
-
import "../../../../chunks/chunk-
|
6
|
-
import "../../../../chunks/chunk-
|
7
|
-
import "../../../../chunks/chunk-
|
8
|
-
import "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-H7LDIXVY.js";
|
4
|
+
import "../../../../chunks/chunk-7FJKDVBE.js";
|
5
|
+
import "../../../../chunks/chunk-O7UEQQ6H.js";
|
6
|
+
import "../../../../chunks/chunk-ADTQQNIQ.js";
|
7
|
+
import "../../../../chunks/chunk-45WKBXSF.js";
|
8
|
+
import "../../../../chunks/chunk-MOBGB2PH.js";
|
9
9
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
10
10
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
11
|
-
import "../../../../chunks/chunk-
|
11
|
+
import "../../../../chunks/chunk-NZLE2WMY.js";
|
12
12
|
export {
|
13
13
|
upload
|
14
14
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
decrypt,
|
3
3
|
encrypt
|
4
|
-
} from "../../../../chunks/chunk-
|
5
|
-
import "../../../../chunks/chunk-
|
4
|
+
} from "../../../../chunks/chunk-5GBYBDYQ.js";
|
5
|
+
import "../../../../chunks/chunk-RVZ32GPI.js";
|
6
6
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
7
7
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
8
|
-
import "../../../../chunks/chunk-
|
8
|
+
import "../../../../chunks/chunk-NZLE2WMY.js";
|
9
9
|
export {
|
10
10
|
decrypt,
|
11
11
|
encrypt
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-5JNJVGDX.js";
|
2
2
|
import {
|
3
3
|
buffer_exports
|
4
|
-
} from "../../../chunks/chunk-
|
4
|
+
} from "../../../chunks/chunk-5GBYBDYQ.js";
|
5
5
|
import {
|
6
6
|
uint8_array_exports
|
7
|
-
} from "../../../chunks/chunk-
|
7
|
+
} from "../../../chunks/chunk-RVZ32GPI.js";
|
8
8
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
9
9
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
-
import "../../../chunks/chunk-
|
10
|
+
import "../../../chunks/chunk-NZLE2WMY.js";
|
11
11
|
export {
|
12
12
|
buffer_exports as Buffer,
|
13
13
|
uint8_array_exports as Uint8Array
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import {
|
2
2
|
decryptUint8Array,
|
3
3
|
encryptUint8Array
|
4
|
-
} from "../../../../chunks/chunk-
|
4
|
+
} from "../../../../chunks/chunk-RVZ32GPI.js";
|
5
5
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
6
6
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
7
|
-
import "../../../../chunks/chunk-
|
7
|
+
import "../../../../chunks/chunk-NZLE2WMY.js";
|
8
8
|
export {
|
9
9
|
decryptUint8Array,
|
10
10
|
encryptUint8Array
|
package/node/encryption/index.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
key_exports
|
3
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-3KN4IIQU.js";
|
4
4
|
import {
|
5
5
|
aes_256_gcm_exports
|
6
|
-
} from "../../chunks/chunk-
|
7
|
-
import "../../chunks/chunk-
|
8
|
-
import "../../chunks/chunk-
|
6
|
+
} from "../../chunks/chunk-5JNJVGDX.js";
|
7
|
+
import "../../chunks/chunk-5GBYBDYQ.js";
|
8
|
+
import "../../chunks/chunk-RVZ32GPI.js";
|
9
9
|
import "../../chunks/chunk-JMU5PDBD.js";
|
10
10
|
import "../../chunks/chunk-FENXVJYO.js";
|
11
|
-
import "../../chunks/chunk-
|
11
|
+
import "../../chunks/chunk-NZLE2WMY.js";
|
12
12
|
export {
|
13
13
|
aes_256_gcm_exports as AES_256_GCM,
|
14
14
|
key_exports as Key
|
package/node/files/index.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
+
import {
|
2
|
+
isInDirectory
|
3
|
+
} from "../../chunks/chunk-NRITRUZW.js";
|
1
4
|
import {
|
2
5
|
readWrite
|
3
6
|
} from "../../chunks/chunk-7DBNMU6N.js";
|
4
7
|
import {
|
5
8
|
Subpaths
|
6
9
|
} from "../../chunks/chunk-HGCG2J77.js";
|
7
|
-
import {
|
8
|
-
isInDirectory
|
9
|
-
} from "../../chunks/chunk-NRITRUZW.js";
|
10
10
|
import "../../chunks/chunk-LQFKUNVQ.js";
|
11
|
-
import "../../chunks/chunk-
|
11
|
+
import "../../chunks/chunk-NZLE2WMY.js";
|
12
12
|
|
13
13
|
// src/node/files/index.ts
|
14
14
|
var isInDirectory2 = isInDirectory;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
download
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-MFWKY3DT.js";
|
4
4
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
5
5
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
6
|
-
import "../../../../chunks/chunk-
|
6
|
+
import "../../../../chunks/chunk-NZLE2WMY.js";
|
7
7
|
export {
|
8
8
|
download
|
9
9
|
};
|
package/node/ftps/file/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-HDK7W7GS.js";
|
2
2
|
import {
|
3
3
|
upload_exports
|
4
|
-
} from "../../../chunks/chunk-
|
4
|
+
} from "../../../chunks/chunk-ADTQQNIQ.js";
|
5
5
|
import {
|
6
6
|
download_exports
|
7
|
-
} from "../../../chunks/chunk-
|
7
|
+
} from "../../../chunks/chunk-MFWKY3DT.js";
|
8
8
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
9
9
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
-
import "../../../chunks/chunk-
|
10
|
+
import "../../../chunks/chunk-NZLE2WMY.js";
|
11
11
|
export {
|
12
12
|
download_exports as Download,
|
13
13
|
upload_exports as Upload
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
upload
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-ADTQQNIQ.js";
|
4
4
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
5
5
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
6
|
-
import "../../../../chunks/chunk-
|
6
|
+
import "../../../../chunks/chunk-NZLE2WMY.js";
|
7
7
|
export {
|
8
8
|
upload
|
9
9
|
};
|
package/node/ftps/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
file_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-HDK7W7GS.js";
|
4
|
+
import "../../chunks/chunk-ADTQQNIQ.js";
|
5
|
+
import "../../chunks/chunk-MFWKY3DT.js";
|
6
6
|
import "../../chunks/chunk-JMU5PDBD.js";
|
7
7
|
import "../../chunks/chunk-FENXVJYO.js";
|
8
|
-
import "../../chunks/chunk-
|
8
|
+
import "../../chunks/chunk-NZLE2WMY.js";
|
9
9
|
export {
|
10
10
|
file_exports as File
|
11
11
|
};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import sharp from 'sharp';
|
2
|
+
import { Outcome } from '../../../agnostic/misc/outcome';
|
3
|
+
export type ImageFileType = keyof sharp.FormatEnum;
|
4
|
+
export type OutputOptions = {
|
5
|
+
format: ImageFileType;
|
6
|
+
width: number;
|
7
|
+
height: number;
|
8
|
+
quality: number;
|
9
|
+
};
|
10
|
+
export declare function formatImage(imageBuffer: Buffer, outputOptions: OutputOptions): Promise<Buffer>;
|
11
|
+
export type FormatCommonOptions = {
|
12
|
+
width?: number;
|
13
|
+
height?: number;
|
14
|
+
fit?: sharp.ResizeOptions['fit'];
|
15
|
+
};
|
16
|
+
export type FormatJpgOptions = FormatCommonOptions & {
|
17
|
+
quality?: number;
|
18
|
+
};
|
19
|
+
export type FormatPngOptions = FormatCommonOptions & {
|
20
|
+
quality?: number;
|
21
|
+
compressionLevel?: sharp.PngOptions['compressionLevel'];
|
22
|
+
};
|
23
|
+
export type FormatWebpOptions = FormatCommonOptions & {
|
24
|
+
quality?: number;
|
25
|
+
};
|
26
|
+
export type FormatAvifOptions = FormatCommonOptions & {
|
27
|
+
quality?: number;
|
28
|
+
};
|
29
|
+
export type FormatTiffOptions = FormatCommonOptions & {
|
30
|
+
quality?: number;
|
31
|
+
compression?: sharp.TiffOptions['compression'];
|
32
|
+
};
|
33
|
+
export type FormatHeifOptions = FormatCommonOptions & {
|
34
|
+
quality?: number;
|
35
|
+
};
|
36
|
+
export type FormatKeepOptions = FormatCommonOptions;
|
37
|
+
export type FormatOptions = FormatJpgOptions | FormatPngOptions | FormatWebpOptions | FormatAvifOptions | FormatTiffOptions | FormatHeifOptions;
|
38
|
+
export declare function format(input: Buffer, type: 'jpg' | 'jpeg', options: FormatJpgOptions): Promise<Outcome.Either<Buffer, string>>;
|
39
|
+
export declare function format(input: Buffer, type: 'png', options: FormatPngOptions): Promise<Outcome.Either<Buffer, string>>;
|
40
|
+
export declare function format(input: Buffer, type: 'webp', options: FormatWebpOptions): Promise<Outcome.Either<Buffer, string>>;
|
41
|
+
export declare function format(input: Buffer, type: 'avif', options: FormatAvifOptions): Promise<Outcome.Either<Buffer, string>>;
|
42
|
+
export declare function format(input: Buffer, type: 'tiff', options: FormatTiffOptions): Promise<Outcome.Either<Buffer, string>>;
|
43
|
+
export declare function format(input: Buffer, type: 'heif', options: FormatHeifOptions): Promise<Outcome.Either<Buffer, string>>;
|
44
|
+
export declare function format(input: Buffer, options: FormatKeepOptions): Promise<Outcome.Either<Buffer, string>>;
|
45
|
+
export declare const toWidth: (input: Buffer, width: number) => Promise<Buffer>;
|
46
|
+
export declare const toHeight: (input: Buffer, height: number) => Promise<Buffer>;
|
47
|
+
export declare const toJpg: (input: Buffer, quality?: number) => Promise<Buffer>;
|
48
|
+
export declare const toPng: (input: Buffer, quality?: number, compressionLevel?: sharp.PngOptions["compressionLevel"]) => Promise<Buffer>;
|
49
|
+
export declare const toWebp: (input: Buffer, quality?: number) => Promise<Buffer>;
|
50
|
+
export declare const toAvif: (input: Buffer, quality?: number) => Promise<Buffer>;
|
51
|
+
export declare const toTiff: (input: Buffer, quality?: number, compression?: sharp.TiffOptions["compression"]) => Promise<Buffer>;
|
52
|
+
export declare const toHeif: (input: Buffer, quality?: number) => Promise<Buffer>;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import {
|
2
|
+
format,
|
3
|
+
formatImage,
|
4
|
+
toAvif,
|
5
|
+
toHeif,
|
6
|
+
toHeight,
|
7
|
+
toJpg,
|
8
|
+
toPng,
|
9
|
+
toTiff,
|
10
|
+
toWebp,
|
11
|
+
toWidth
|
12
|
+
} from "../../../chunks/chunk-SJFY537W.js";
|
13
|
+
import "../../../chunks/chunk-JMU5PDBD.js";
|
14
|
+
import "../../../chunks/chunk-OSAXBA7G.js";
|
15
|
+
import "../../../chunks/chunk-NZLE2WMY.js";
|
16
|
+
export {
|
17
|
+
format,
|
18
|
+
formatImage,
|
19
|
+
toAvif,
|
20
|
+
toHeif,
|
21
|
+
toHeight,
|
22
|
+
toJpg,
|
23
|
+
toPng,
|
24
|
+
toTiff,
|
25
|
+
toWebp,
|
26
|
+
toWidth
|
27
|
+
};
|
package/node/images/index.d.ts
CHANGED
package/node/images/index.js
CHANGED
@@ -1,26 +1,59 @@
|
|
1
1
|
import {
|
2
2
|
prepare_exports
|
3
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-PSP2DKDH.js";
|
4
4
|
import {
|
5
|
-
|
6
|
-
} from "../../chunks/chunk-
|
5
|
+
format_exports
|
6
|
+
} from "../../chunks/chunk-SJFY537W.js";
|
7
7
|
import {
|
8
8
|
transform_exports
|
9
|
-
} from "../../chunks/chunk-
|
10
|
-
import "../../chunks/chunk-
|
11
|
-
import "../../chunks/chunk-
|
12
|
-
import "../../chunks/chunk-
|
13
|
-
import "../../chunks/chunk-
|
14
|
-
import "../../chunks/chunk-
|
15
|
-
import "../../chunks/chunk-
|
16
|
-
import "../../chunks/chunk-
|
17
|
-
import "../../chunks/chunk-
|
18
|
-
import "../../chunks/chunk-
|
19
|
-
import "../../chunks/chunk-
|
20
|
-
import "../../chunks/chunk-
|
21
|
-
import "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-FCLAFRIW.js";
|
10
|
+
import "../../chunks/chunk-RCWLMVSZ.js";
|
11
|
+
import "../../chunks/chunk-7Z7CKAOH.js";
|
12
|
+
import "../../chunks/chunk-ZRWVPWQC.js";
|
13
|
+
import "../../chunks/chunk-LNSDOGTR.js";
|
14
|
+
import "../../chunks/chunk-CP454IJD.js";
|
15
|
+
import "../../chunks/chunk-X244JGZD.js";
|
16
|
+
import "../../chunks/chunk-YCSC7QNV.js";
|
17
|
+
import "../../chunks/chunk-E3GK7YZ7.js";
|
18
|
+
import "../../chunks/chunk-AWVQJNGX.js";
|
19
|
+
import "../../chunks/chunk-OCM3RLO6.js";
|
20
|
+
import "../../chunks/chunk-JRYI4VBX.js";
|
21
|
+
import "../../chunks/chunk-UNHNZAVP.js";
|
22
|
+
import "../../chunks/chunk-6EIF24H5.js";
|
23
|
+
import "../../chunks/chunk-ZMMNN3QA.js";
|
24
|
+
import "../../chunks/chunk-D33KC6NN.js";
|
25
|
+
import "../../chunks/chunk-NAP2XNYN.js";
|
26
|
+
import "../../chunks/chunk-LSOHLSF5.js";
|
27
|
+
import "../../chunks/chunk-WRRA3BN4.js";
|
28
|
+
import "../../chunks/chunk-CM6AHRTS.js";
|
29
|
+
import "../../chunks/chunk-T2T5BYTW.js";
|
30
|
+
import "../../chunks/chunk-YEYXAV23.js";
|
31
|
+
import "../../chunks/chunk-Z4PVE6SR.js";
|
32
|
+
import "../../chunks/chunk-6IZ5HUJJ.js";
|
33
|
+
import "../../chunks/chunk-662SOZWA.js";
|
34
|
+
import "../../chunks/chunk-W6JPRXQ4.js";
|
35
|
+
import "../../chunks/chunk-G3HAKMUB.js";
|
36
|
+
import "../../chunks/chunk-D47ZPEUU.js";
|
37
|
+
import "../../chunks/chunk-U7R6TPHR.js";
|
38
|
+
import "../../chunks/chunk-3UM5CZA5.js";
|
39
|
+
import "../../chunks/chunk-C3ZKLONL.js";
|
40
|
+
import "../../chunks/chunk-MOVLLUDL.js";
|
41
|
+
import "../../chunks/chunk-YE67BQQN.js";
|
42
|
+
import "../../chunks/chunk-ENMBK6H7.js";
|
43
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
44
|
+
import "../../chunks/chunk-4CIS3R7T.js";
|
45
|
+
import "../../chunks/chunk-OSAXBA7G.js";
|
46
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
47
|
+
import "../../chunks/chunk-U57Q62IN.js";
|
48
|
+
import "../../chunks/chunk-MB7HWF22.js";
|
49
|
+
import "../../chunks/chunk-QLC3A6PC.js";
|
50
|
+
import "../../chunks/chunk-YVLJKJV2.js";
|
51
|
+
import "../../chunks/chunk-2POD3TAX.js";
|
52
|
+
import "../../chunks/chunk-VJJIYJMY.js";
|
53
|
+
import "../../chunks/chunk-FENXVJYO.js";
|
54
|
+
import "../../chunks/chunk-NZLE2WMY.js";
|
22
55
|
export {
|
23
|
-
|
56
|
+
format_exports as Exports,
|
24
57
|
prepare_exports as Prepare,
|
25
58
|
transform_exports as Transform
|
26
59
|
};
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { ImageFileType } from '../format';
|
2
|
+
import { Operation } from '../transform';
|
3
3
|
export type Quality = number;
|
4
4
|
export type Ratio = [number, number];
|
5
5
|
export type PrepareImageOptions = {
|
6
6
|
name?: string | undefined;
|
7
|
-
inputOperations?:
|
8
|
-
|
7
|
+
inputOperations?: Operation[];
|
8
|
+
checkValidOperations?: boolean;
|
9
|
+
formats?: ImageFileType[];
|
9
10
|
center?: [number, number];
|
10
11
|
qualities?: Quality[];
|
11
12
|
ratios?: Ratio[];
|
@@ -15,3 +16,9 @@ export type PrepareImageOptions = {
|
|
15
16
|
export declare const MAX_NB_OUTPUTS = 50;
|
16
17
|
export declare const OUTPUT_ZIP_FOLDER = "./output-zips";
|
17
18
|
export declare function prepareImage(imageBuffer: Buffer, customOptions?: PrepareImageOptions): Promise<Buffer<ArrayBufferLike> | undefined>;
|
19
|
+
export type ExportZipSource = {
|
20
|
+
buffer: Buffer;
|
21
|
+
name: string;
|
22
|
+
};
|
23
|
+
export type ExportZipSources = ExportZipSource[];
|
24
|
+
export declare function exportZipBuffer(zipSources: ExportZipSources, zipDirectoryName?: string): Promise<Buffer<ArrayBufferLike> | undefined>;
|
@@ -1,24 +1,59 @@
|
|
1
1
|
import {
|
2
2
|
MAX_NB_OUTPUTS,
|
3
3
|
OUTPUT_ZIP_FOLDER,
|
4
|
+
exportZipBuffer,
|
4
5
|
prepareImage
|
5
|
-
} from "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-
|
7
|
-
import "../../../chunks/chunk-
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-
|
11
|
-
import "../../../chunks/chunk-
|
12
|
-
import "../../../chunks/chunk-
|
13
|
-
import "../../../chunks/chunk-
|
14
|
-
import "../../../chunks/chunk-
|
15
|
-
import "../../../chunks/chunk-
|
16
|
-
import "../../../chunks/chunk-
|
17
|
-
import "../../../chunks/chunk-
|
18
|
-
import "../../../chunks/chunk-
|
19
|
-
import "../../../chunks/chunk-
|
6
|
+
} from "../../../chunks/chunk-PSP2DKDH.js";
|
7
|
+
import "../../../chunks/chunk-SJFY537W.js";
|
8
|
+
import "../../../chunks/chunk-FCLAFRIW.js";
|
9
|
+
import "../../../chunks/chunk-RCWLMVSZ.js";
|
10
|
+
import "../../../chunks/chunk-7Z7CKAOH.js";
|
11
|
+
import "../../../chunks/chunk-ZRWVPWQC.js";
|
12
|
+
import "../../../chunks/chunk-LNSDOGTR.js";
|
13
|
+
import "../../../chunks/chunk-CP454IJD.js";
|
14
|
+
import "../../../chunks/chunk-X244JGZD.js";
|
15
|
+
import "../../../chunks/chunk-YCSC7QNV.js";
|
16
|
+
import "../../../chunks/chunk-E3GK7YZ7.js";
|
17
|
+
import "../../../chunks/chunk-AWVQJNGX.js";
|
18
|
+
import "../../../chunks/chunk-OCM3RLO6.js";
|
19
|
+
import "../../../chunks/chunk-JRYI4VBX.js";
|
20
|
+
import "../../../chunks/chunk-UNHNZAVP.js";
|
21
|
+
import "../../../chunks/chunk-6EIF24H5.js";
|
22
|
+
import "../../../chunks/chunk-ZMMNN3QA.js";
|
23
|
+
import "../../../chunks/chunk-D33KC6NN.js";
|
24
|
+
import "../../../chunks/chunk-NAP2XNYN.js";
|
25
|
+
import "../../../chunks/chunk-LSOHLSF5.js";
|
26
|
+
import "../../../chunks/chunk-WRRA3BN4.js";
|
27
|
+
import "../../../chunks/chunk-CM6AHRTS.js";
|
28
|
+
import "../../../chunks/chunk-T2T5BYTW.js";
|
29
|
+
import "../../../chunks/chunk-YEYXAV23.js";
|
30
|
+
import "../../../chunks/chunk-Z4PVE6SR.js";
|
31
|
+
import "../../../chunks/chunk-6IZ5HUJJ.js";
|
32
|
+
import "../../../chunks/chunk-662SOZWA.js";
|
33
|
+
import "../../../chunks/chunk-W6JPRXQ4.js";
|
34
|
+
import "../../../chunks/chunk-G3HAKMUB.js";
|
35
|
+
import "../../../chunks/chunk-D47ZPEUU.js";
|
36
|
+
import "../../../chunks/chunk-U7R6TPHR.js";
|
37
|
+
import "../../../chunks/chunk-3UM5CZA5.js";
|
38
|
+
import "../../../chunks/chunk-C3ZKLONL.js";
|
39
|
+
import "../../../chunks/chunk-MOVLLUDL.js";
|
40
|
+
import "../../../chunks/chunk-YE67BQQN.js";
|
41
|
+
import "../../../chunks/chunk-ENMBK6H7.js";
|
42
|
+
import "../../../chunks/chunk-JMU5PDBD.js";
|
43
|
+
import "../../../chunks/chunk-4CIS3R7T.js";
|
44
|
+
import "../../../chunks/chunk-OSAXBA7G.js";
|
45
|
+
import "../../../chunks/chunk-D3ERTRDW.js";
|
46
|
+
import "../../../chunks/chunk-U57Q62IN.js";
|
47
|
+
import "../../../chunks/chunk-MB7HWF22.js";
|
48
|
+
import "../../../chunks/chunk-QLC3A6PC.js";
|
49
|
+
import "../../../chunks/chunk-YVLJKJV2.js";
|
50
|
+
import "../../../chunks/chunk-2POD3TAX.js";
|
51
|
+
import "../../../chunks/chunk-VJJIYJMY.js";
|
52
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
53
|
+
import "../../../chunks/chunk-NZLE2WMY.js";
|
20
54
|
export {
|
21
55
|
MAX_NB_OUTPUTS,
|
22
56
|
OUTPUT_ZIP_FOLDER,
|
57
|
+
exportZipBuffer,
|
23
58
|
prepareImage
|
24
59
|
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const OperationNames: {
|
2
|
+
readonly Blur: "blur";
|
3
|
+
readonly Brighten: "brighten";
|
4
|
+
readonly Compose: "compose";
|
5
|
+
readonly Extract: "extract";
|
6
|
+
readonly Extend: "extend";
|
7
|
+
readonly Flatten: "flatten";
|
8
|
+
readonly Flip: "flip";
|
9
|
+
readonly Flop: "flop";
|
10
|
+
readonly Frame: "frame";
|
11
|
+
readonly HueRotate: "hue-rotate";
|
12
|
+
readonly Lighten: "lighten";
|
13
|
+
readonly LineateLevels: "lineate-levels";
|
14
|
+
readonly Modulate: "modulate";
|
15
|
+
readonly Normalize: "normalize";
|
16
|
+
readonly Resize: "resize";
|
17
|
+
readonly Rotate: "rotate";
|
18
|
+
readonly Saturate: "saturate";
|
19
|
+
readonly Scale: "scale";
|
20
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import zod from 'zod';
|
2
|
+
export type Position = string | number;
|
3
|
+
export type Positions = {
|
4
|
+
top?: Position;
|
5
|
+
left?: Position;
|
6
|
+
right?: Position;
|
7
|
+
bottom?: Position;
|
8
|
+
translateX?: Position;
|
9
|
+
translateY?: Position;
|
10
|
+
};
|
11
|
+
export declare const positionSchema: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
12
|
+
export declare const positionsSchema: zod.ZodObject<{
|
13
|
+
top: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
14
|
+
left: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
15
|
+
bottom: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
16
|
+
right: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
17
|
+
translateX: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
18
|
+
translateY: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
19
|
+
}, "strip", zod.ZodTypeAny, {
|
20
|
+
top?: string | number | undefined;
|
21
|
+
left?: string | number | undefined;
|
22
|
+
bottom?: string | number | undefined;
|
23
|
+
right?: string | number | undefined;
|
24
|
+
translateX?: string | number | undefined;
|
25
|
+
translateY?: string | number | undefined;
|
26
|
+
}, {
|
27
|
+
top?: string | number | undefined;
|
28
|
+
left?: string | number | undefined;
|
29
|
+
bottom?: string | number | undefined;
|
30
|
+
right?: string | number | undefined;
|
31
|
+
translateX?: string | number | undefined;
|
32
|
+
translateY?: string | number | undefined;
|
33
|
+
}>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import zod from 'zod';
|
2
|
+
import { OperationNames } from '../_utils/operation-names';
|
3
|
+
export type BlurOperationParams = {
|
4
|
+
sigma: number;
|
5
|
+
};
|
6
|
+
export type BlurOperation = {
|
7
|
+
name: typeof OperationNames.Blur;
|
8
|
+
params: BlurOperationParams;
|
9
|
+
};
|
10
|
+
export declare const blurSchema: zod.ZodType<BlurOperation>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import zod from 'zod';
|
2
|
+
import { OperationNames } from '../_utils/operation-names';
|
3
|
+
export type BrightenOperationParams = number;
|
4
|
+
export type BrightenOperation = {
|
5
|
+
name: typeof OperationNames.Brighten;
|
6
|
+
params: BrightenOperationParams;
|
7
|
+
};
|
8
|
+
export declare const brightenSchema: zod.ZodType<BrightenOperation>;
|