@design-edito/tools 0.1.64 → 0.1.65
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 +5 -5
- 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 +1 -1
- 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 +4 -4
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +1 -1
- package/agnostic/errors/index.js +1 -1
- 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 +9 -9
- 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 +1 -1
- package/agnostic/html/selector-to-element/index.js +1 -1
- package/agnostic/html/string-to-nodes/index.js +1 -1
- package/agnostic/index.d.ts +2 -0
- package/agnostic/misc/assert/index.js +1 -1
- 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 +3 -3
- 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 +6 -6
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +4 -4
- 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 +5 -5
- 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-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-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-6HPXM6ED.js +20 -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-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-BWXVJB4I.js +20 -0
- package/chunks/chunk-CP454IJD.js +231 -0
- package/chunks/chunk-CSZFW4R5.js +69 -0
- package/chunks/chunk-CYIUZX2T.js +31 -0
- package/chunks/chunk-DEQ5N53D.js +21 -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-FMRPJBUC.js +20 -0
- package/chunks/chunk-FTT6ZCCS.js +29 -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-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-LOAOXFA2.js +2369 -0
- package/chunks/chunk-LOY7C5BP.js +151 -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-MZZOFFFT.js +21 -0
- package/chunks/chunk-NA3M6VUU.js +20 -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-PEUWFUEZ.js +98 -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-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-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-UUSZJMJB.js +37 -0
- package/chunks/chunk-V4S34MIM.js +32 -0
- package/chunks/chunk-VHAGPTVR.js +37 -0
- package/chunks/chunk-WLGIDY6A.js +2456 -0
- package/chunks/chunk-WMSE5GRO.js +63 -0
- package/chunks/chunk-WU3JQC7W.js +164 -0
- package/chunks/chunk-XEAHMN2T.js +4063 -0
- package/chunks/chunk-XF5QBETN.js +48 -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-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-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 +6 -6
- 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 +6 -6
- 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 +23 -23
- 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 +15 -15
- package/node/cloud-storage/operations/download/index.js +7 -7
- package/node/cloud-storage/operations/index.js +15 -15
- 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 +7 -7
- 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 +6 -6
- 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 +6 -6
- package/node/sftp/file/upload/index.js +2 -2
- package/node/sftp/index.js +4 -4
- package/package.json +3 -2
@@ -0,0 +1,48 @@
|
|
1
|
+
import {
|
2
|
+
upload
|
3
|
+
} from "./chunk-7FJKDVBE.js";
|
4
|
+
import {
|
5
|
+
upload as upload2
|
6
|
+
} from "./chunk-O7UEQQ6H.js";
|
7
|
+
import {
|
8
|
+
upload as upload3
|
9
|
+
} from "./chunk-ADTQQNIQ.js";
|
10
|
+
import {
|
11
|
+
upload as upload4
|
12
|
+
} from "./chunk-45WKBXSF.js";
|
13
|
+
import {
|
14
|
+
s3IdentifierData
|
15
|
+
} from "./chunk-MOBGB2PH.js";
|
16
|
+
import {
|
17
|
+
Outcome
|
18
|
+
} from "./chunk-JMU5PDBD.js";
|
19
|
+
import {
|
20
|
+
__export
|
21
|
+
} from "./chunk-NZLE2WMY.js";
|
22
|
+
|
23
|
+
// src/node/cloud-storage/operations/upload/index.ts
|
24
|
+
var upload_exports = {};
|
25
|
+
__export(upload_exports, {
|
26
|
+
upload: () => upload5
|
27
|
+
});
|
28
|
+
import { Bucket } from "@google-cloud/storage";
|
29
|
+
import { S3 } from "aws-sdk";
|
30
|
+
import { Client as FtpClient } from "basic-ftp";
|
31
|
+
import SftpClient from "ssh2-sftp-client";
|
32
|
+
async function upload5(fileReadable, targetPath, endpointType, endpointIdentifier, client) {
|
33
|
+
if (endpointType === "gcs-bucket" /* GCS */ && client instanceof Bucket) return await upload(fileReadable, targetPath, client);
|
34
|
+
if (endpointType === "s3-bucket" /* S3 */ && client instanceof S3) {
|
35
|
+
const { bucketName } = s3IdentifierData(endpointIdentifier);
|
36
|
+
if (bucketName === null) return Outcome.makeFailure("Invalid S3 bucket name");
|
37
|
+
return await upload2(fileReadable, targetPath, bucketName, client);
|
38
|
+
}
|
39
|
+
if (endpointType === "ftp" /* FTP */ && client instanceof FtpClient) return await upload3(fileReadable, targetPath, client);
|
40
|
+
if (endpointType === "ftps" /* FTPS */ && client instanceof FtpClient) return await upload3(fileReadable, targetPath, client);
|
41
|
+
if (endpointType === "sftp" /* SFTP */ && client instanceof SftpClient) return await upload4(fileReadable, targetPath, client);
|
42
|
+
return Outcome.makeFailure("Invalid endpoint or client type");
|
43
|
+
}
|
44
|
+
|
45
|
+
export {
|
46
|
+
upload5 as upload,
|
47
|
+
upload_exports
|
48
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import {
|
2
|
+
upload_exports
|
3
|
+
} from "./chunk-ADTQQNIQ.js";
|
4
|
+
import {
|
5
|
+
download_exports
|
6
|
+
} from "./chunk-MFWKY3DT.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/ftps/file/index.ts
|
12
|
+
var file_exports = {};
|
13
|
+
__export(file_exports, {
|
14
|
+
Download: () => download_exports,
|
15
|
+
Upload: () => upload_exports
|
16
|
+
});
|
17
|
+
|
18
|
+
export {
|
19
|
+
file_exports
|
20
|
+
};
|
@@ -0,0 +1,205 @@
|
|
1
|
+
import {
|
2
|
+
__export
|
3
|
+
} from "./chunk-NZLE2WMY.js";
|
4
|
+
|
5
|
+
// src/agnostic/misc/data-size/index.ts
|
6
|
+
var data_size_exports = {};
|
7
|
+
__export(data_size_exports, {
|
8
|
+
DataSize: () => DataSize,
|
9
|
+
bits: () => bits,
|
10
|
+
bytes: () => bytes,
|
11
|
+
exabytes: () => exabytes,
|
12
|
+
exbibytes: () => exbibytes,
|
13
|
+
gibibytes: () => gibibytes,
|
14
|
+
gigabytes: () => gigabytes,
|
15
|
+
kibibytes: () => kibibytes,
|
16
|
+
kiloBytes: () => kiloBytes,
|
17
|
+
mebibytes: () => mebibytes,
|
18
|
+
megaBytes: () => megaBytes,
|
19
|
+
pebibytes: () => pebibytes,
|
20
|
+
petabytes: () => petabytes,
|
21
|
+
tebibytes: () => tebibytes,
|
22
|
+
terabytes: () => terabytes
|
23
|
+
});
|
24
|
+
var DataSize = class {
|
25
|
+
value;
|
26
|
+
unit;
|
27
|
+
constructor(value, unit) {
|
28
|
+
this.value = value;
|
29
|
+
if (unit === "b" || unit === "bit") {
|
30
|
+
this.unit = "bit";
|
31
|
+
} else if (unit === "B" || unit === "byte") {
|
32
|
+
this.unit = "byte";
|
33
|
+
} else if (unit === "KB" || unit === "kilobyte") {
|
34
|
+
this.unit = "kilobyte";
|
35
|
+
} else if (unit === "MB" || unit === "megabyte") {
|
36
|
+
this.unit = "megabyte";
|
37
|
+
} else if (unit === "GB" || unit === "gigabyte") {
|
38
|
+
this.unit = "gigabyte";
|
39
|
+
} else if (unit === "TB" || unit === "terabyte") {
|
40
|
+
this.unit = "terabyte";
|
41
|
+
} else if (unit === "PB" || unit === "petabyte") {
|
42
|
+
this.unit = "petabyte";
|
43
|
+
} else if (unit === "EB" || unit === "exabyte") {
|
44
|
+
this.unit = "exabyte";
|
45
|
+
} else if (unit === "KiB" || unit === "kibibyte") {
|
46
|
+
this.unit = "kibibyte";
|
47
|
+
} else if (unit === "MiB" || unit === "mebibyte") {
|
48
|
+
this.unit = "mebibyte";
|
49
|
+
} else if (unit === "GiB" || unit === "gibibyte") {
|
50
|
+
this.unit = "gibibyte";
|
51
|
+
} else if (unit === "TiB" || unit === "tebibyte") {
|
52
|
+
this.unit = "tebibyte";
|
53
|
+
} else if (unit === "PiB" || unit === "pebibyte") {
|
54
|
+
this.unit = "pebibyte";
|
55
|
+
} else if (unit === "EiB" || unit === "exbibyte") {
|
56
|
+
this.unit = "exbibyte";
|
57
|
+
} else {
|
58
|
+
this.unit = "byte";
|
59
|
+
}
|
60
|
+
this.toBits = this.toBits.bind(this);
|
61
|
+
this.toBytes = this.toBytes.bind(this);
|
62
|
+
this.toKiloBytes = this.toKiloBytes.bind(this);
|
63
|
+
this.toMegabytes = this.toMegabytes.bind(this);
|
64
|
+
this.toGigabytes = this.toGigabytes.bind(this);
|
65
|
+
this.toTerabytes = this.toTerabytes.bind(this);
|
66
|
+
this.toPetabytes = this.toPetabytes.bind(this);
|
67
|
+
this.toExabytes = this.toExabytes.bind(this);
|
68
|
+
this.toKibibytes = this.toKibibytes.bind(this);
|
69
|
+
this.toMebibytes = this.toMebibytes.bind(this);
|
70
|
+
this.toGibibytes = this.toGibibytes.bind(this);
|
71
|
+
this.toTebibytes = this.toTebibytes.bind(this);
|
72
|
+
this.toPebibytes = this.toPebibytes.bind(this);
|
73
|
+
this.toExbibytes = this.toExbibytes.bind(this);
|
74
|
+
}
|
75
|
+
toBits() {
|
76
|
+
if (this.unit === "bit") return this.value;
|
77
|
+
if (this.unit === "byte") return this.value * 8;
|
78
|
+
if (this.unit === "kilobyte") return this.value * 8 * 1e3;
|
79
|
+
if (this.unit === "megabyte") return this.value * 8 * 1e3 * 1e3;
|
80
|
+
if (this.unit === "gigabyte") return this.value * 8 * 1e3 * 1e3 * 1e3;
|
81
|
+
if (this.unit === "terabyte") return this.value * 8 * 1e3 * 1e3 * 1e3 * 1e3;
|
82
|
+
if (this.unit === "petabyte") return this.value * 8 * 1e3 * 1e3 * 1e3 * 1e3 * 1e3;
|
83
|
+
if (this.unit === "exabyte") return this.value * 8 * 1e3 * 1e3 * 1e3 * 1e3 * 1e3 * 1e3;
|
84
|
+
if (this.unit === "kibibyte") return this.value * 8 * 1024;
|
85
|
+
if (this.unit === "mebibyte") return this.value * 8 * 1024 * 1024;
|
86
|
+
if (this.unit === "gibibyte") return this.value * 8 * 1024 * 1024 * 1024;
|
87
|
+
if (this.unit === "tebibyte") return this.value * 8 * 1024 * 1024 * 1024 * 1024;
|
88
|
+
if (this.unit === "pebibyte") return this.value * 8 * 1024 * 1024 * 1024 * 1024 * 1024;
|
89
|
+
if (this.unit === "exbibyte") return this.value * 8 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024;
|
90
|
+
return this.value;
|
91
|
+
}
|
92
|
+
toBytes() {
|
93
|
+
const bits2 = this.toBits();
|
94
|
+
return bits2 / 8;
|
95
|
+
}
|
96
|
+
toKiloBytes() {
|
97
|
+
const bytes2 = this.toBytes();
|
98
|
+
return bytes2 / 1e3;
|
99
|
+
}
|
100
|
+
toMegabytes() {
|
101
|
+
const bytes2 = this.toBytes();
|
102
|
+
return bytes2 / 1e3 / 1e3;
|
103
|
+
}
|
104
|
+
toGigabytes() {
|
105
|
+
const bytes2 = this.toBytes();
|
106
|
+
return bytes2 / 1e3 / 1e3 / 1e3;
|
107
|
+
}
|
108
|
+
toTerabytes() {
|
109
|
+
const bytes2 = this.toBytes();
|
110
|
+
return bytes2 / 1e3 / 1e3 / 1e3 / 1e3;
|
111
|
+
}
|
112
|
+
toPetabytes() {
|
113
|
+
const bytes2 = this.toBytes();
|
114
|
+
return bytes2 / 1e3 / 1e3 / 1e3 / 1e3 / 1e3;
|
115
|
+
}
|
116
|
+
toExabytes() {
|
117
|
+
const bytes2 = this.toBytes();
|
118
|
+
return bytes2 / 1e3 / 1e3 / 1e3 / 1e3 / 1e3 / 1e3;
|
119
|
+
}
|
120
|
+
toKibibytes() {
|
121
|
+
const bytes2 = this.toBytes();
|
122
|
+
return bytes2 / 1024;
|
123
|
+
}
|
124
|
+
toMebibytes() {
|
125
|
+
const bytes2 = this.toBytes();
|
126
|
+
return bytes2 / 1024 / 1024;
|
127
|
+
}
|
128
|
+
toGibibytes() {
|
129
|
+
const bytes2 = this.toBytes();
|
130
|
+
return bytes2 / 1024 / 1024 / 1024;
|
131
|
+
}
|
132
|
+
toTebibytes() {
|
133
|
+
const bytes2 = this.toBytes();
|
134
|
+
return bytes2 / 1024 / 1024 / 1024 / 1024;
|
135
|
+
}
|
136
|
+
toPebibytes() {
|
137
|
+
const bytes2 = this.toBytes();
|
138
|
+
return bytes2 / 1024 / 1024 / 1024 / 1024 / 1024;
|
139
|
+
}
|
140
|
+
toExbibytes() {
|
141
|
+
const bytes2 = this.toBytes();
|
142
|
+
return bytes2 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024;
|
143
|
+
}
|
144
|
+
};
|
145
|
+
function bits(value) {
|
146
|
+
return bytes(value, "bit");
|
147
|
+
}
|
148
|
+
function bytes(value, unit) {
|
149
|
+
return new DataSize(value, unit);
|
150
|
+
}
|
151
|
+
function kiloBytes(value) {
|
152
|
+
return bytes(value, "kilobyte");
|
153
|
+
}
|
154
|
+
function megaBytes(value) {
|
155
|
+
return bytes(value, "megabyte");
|
156
|
+
}
|
157
|
+
function gigabytes(value) {
|
158
|
+
return bytes(value, "gigabyte");
|
159
|
+
}
|
160
|
+
function terabytes(value) {
|
161
|
+
return bytes(value, "terabyte");
|
162
|
+
}
|
163
|
+
function petabytes(value) {
|
164
|
+
return bytes(value, "petabyte");
|
165
|
+
}
|
166
|
+
function exabytes(value) {
|
167
|
+
return bytes(value, "exabyte");
|
168
|
+
}
|
169
|
+
function kibibytes(value) {
|
170
|
+
return bytes(value, "kibibyte");
|
171
|
+
}
|
172
|
+
function mebibytes(value) {
|
173
|
+
return bytes(value, "mebibyte");
|
174
|
+
}
|
175
|
+
function gibibytes(value) {
|
176
|
+
return bytes(value, "gibibyte");
|
177
|
+
}
|
178
|
+
function tebibytes(value) {
|
179
|
+
return bytes(value, "tebibyte");
|
180
|
+
}
|
181
|
+
function pebibytes(value) {
|
182
|
+
return bytes(value, "pebibyte");
|
183
|
+
}
|
184
|
+
function exbibytes(value) {
|
185
|
+
return bytes(value, "exbibyte");
|
186
|
+
}
|
187
|
+
|
188
|
+
export {
|
189
|
+
DataSize,
|
190
|
+
bits,
|
191
|
+
bytes,
|
192
|
+
kiloBytes,
|
193
|
+
megaBytes,
|
194
|
+
gigabytes,
|
195
|
+
terabytes,
|
196
|
+
petabytes,
|
197
|
+
exabytes,
|
198
|
+
kibibytes,
|
199
|
+
mebibytes,
|
200
|
+
gibibytes,
|
201
|
+
tebibytes,
|
202
|
+
pebibytes,
|
203
|
+
exbibytes,
|
204
|
+
data_size_exports
|
205
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/@google-cloud/storage/file/download/index.ts
|
12
|
+
var download_exports = {};
|
13
|
+
__export(download_exports, {
|
14
|
+
download: () => download
|
15
|
+
});
|
16
|
+
async function download(sourcePath, bucket, options) {
|
17
|
+
const { fileOptions, downloadOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
const stream = file.createReadStream(downloadOptions);
|
21
|
+
stream.on("error", (err) => {
|
22
|
+
throw err;
|
23
|
+
});
|
24
|
+
return Outcome.makeSuccess(stream);
|
25
|
+
} catch (err) {
|
26
|
+
const errStr = unknownToString(err);
|
27
|
+
return Outcome.makeFailure(errStr);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
export {
|
32
|
+
download,
|
33
|
+
download_exports
|
34
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import {
|
2
|
+
z
|
3
|
+
} from "./chunk-XEAHMN2T.js";
|
4
|
+
import {
|
5
|
+
OperationNames
|
6
|
+
} from "./chunk-MOVLLUDL.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/saturate/index.ts
|
9
|
+
var saturateSchema = z.object({
|
10
|
+
name: z.literal(OperationNames.Saturate),
|
11
|
+
params: z.number().min(0)
|
12
|
+
});
|
13
|
+
|
14
|
+
export {
|
15
|
+
saturateSchema
|
16
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import {
|
2
|
+
z
|
3
|
+
} from "./chunk-XEAHMN2T.js";
|
4
|
+
|
5
|
+
// src/node/images/transform/_utils/color-schema/index.ts
|
6
|
+
var colorSchema = z.object({
|
7
|
+
r: z.number().min(0).max(255),
|
8
|
+
g: z.number().min(0).max(255),
|
9
|
+
b: z.number().min(0).max(255),
|
10
|
+
alpha: z.number().min(0).max(1)
|
11
|
+
}).or(z.string().length(7));
|
12
|
+
|
13
|
+
export {
|
14
|
+
colorSchema
|
15
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// src/node/images/transform/operations/_utils/scale/index.ts
|
2
|
+
import sharp from "sharp";
|
3
|
+
async function scale(imageSharp, params) {
|
4
|
+
const imageMetadata = await imageSharp.metadata();
|
5
|
+
const imageDimensions = {
|
6
|
+
width: imageMetadata.width ?? 0,
|
7
|
+
height: imageMetadata.height ?? 0
|
8
|
+
};
|
9
|
+
const xRatio = "xRatio" in params && params.xRatio !== void 0 ? params.xRatio : 1;
|
10
|
+
const yRatio = "yRatio" in params && params.yRatio !== void 0 ? params.yRatio : 1;
|
11
|
+
const background = "background" in params && params.background !== void 0 ? params.background : { r: 0, g: 0, b: 0, alpha: 0 };
|
12
|
+
return imageSharp.resize({
|
13
|
+
width: Math.floor(imageDimensions.width * xRatio),
|
14
|
+
height: Math.floor(imageDimensions.width * yRatio),
|
15
|
+
fit: sharp.fit.contain,
|
16
|
+
background
|
17
|
+
});
|
18
|
+
}
|
19
|
+
|
20
|
+
export {
|
21
|
+
scale
|
22
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/@google-cloud/storage/file/get-metadata/index.ts
|
12
|
+
var get_metadata_exports = {};
|
13
|
+
__export(get_metadata_exports, {
|
14
|
+
getMetadata: () => getMetadata
|
15
|
+
});
|
16
|
+
async function getMetadata(sourcePath, bucket, options) {
|
17
|
+
const { fileOptions, getFileMetadataOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
const [metadata] = await file.getMetadata(getFileMetadataOptions);
|
21
|
+
return Outcome.makeSuccess(metadata);
|
22
|
+
} catch (err) {
|
23
|
+
const errStr = unknownToString(err);
|
24
|
+
return Outcome.makeFailure(errStr);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
export {
|
29
|
+
getMetadata,
|
30
|
+
get_metadata_exports
|
31
|
+
};
|