@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,20 @@
|
|
1
|
+
import {
|
2
|
+
download_exports
|
3
|
+
} from "./chunk-XF5QBETN.js";
|
4
|
+
import {
|
5
|
+
upload_exports
|
6
|
+
} from "./chunk-H7LDIXVY.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/cloud-storage/operations/index.ts
|
12
|
+
var operations_exports = {};
|
13
|
+
__export(operations_exports, {
|
14
|
+
Download: () => download_exports,
|
15
|
+
Upload: () => upload_exports
|
16
|
+
});
|
17
|
+
|
18
|
+
export {
|
19
|
+
operations_exports
|
20
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import {
|
2
|
+
colorSchema
|
3
|
+
} from "./chunk-JBZR6R5B.js";
|
4
|
+
import {
|
5
|
+
z
|
6
|
+
} from "./chunk-XEAHMN2T.js";
|
7
|
+
import {
|
8
|
+
OperationNames
|
9
|
+
} from "./chunk-MOVLLUDL.js";
|
10
|
+
|
11
|
+
// src/node/images/transform/scale/index.ts
|
12
|
+
var scaleSchema = z.object({
|
13
|
+
name: z.literal(OperationNames.Scale),
|
14
|
+
params: z.object({
|
15
|
+
xRatio: z.optional(z.number().min(0).max(1)),
|
16
|
+
yRatio: z.optional(z.number().min(0).max(1)),
|
17
|
+
background: colorSchema
|
18
|
+
})
|
19
|
+
});
|
20
|
+
|
21
|
+
export {
|
22
|
+
scaleSchema
|
23
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import {
|
2
|
+
z
|
3
|
+
} from "./chunk-XEAHMN2T.js";
|
4
|
+
import {
|
5
|
+
OperationNames
|
6
|
+
} from "./chunk-MOVLLUDL.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/flip/index.ts
|
9
|
+
var flipSchema = z.object({
|
10
|
+
name: z.literal(OperationNames.Flip),
|
11
|
+
params: z.object({
|
12
|
+
flip: z.boolean().optional()
|
13
|
+
})
|
14
|
+
});
|
15
|
+
|
16
|
+
export {
|
17
|
+
flipSchema
|
18
|
+
};
|
@@ -0,0 +1,55 @@
|
|
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/encryption/@aes-256-gcm/uint8-array/index.ts
|
12
|
+
var uint8_array_exports = {};
|
13
|
+
__export(uint8_array_exports, {
|
14
|
+
decryptUint8Array: () => decryptUint8Array,
|
15
|
+
encryptUint8Array: () => encryptUint8Array
|
16
|
+
});
|
17
|
+
import { Buffer } from "node:buffer";
|
18
|
+
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
19
|
+
function encryptUint8Array(fileArray, encryptionKey) {
|
20
|
+
const ivLength = 12;
|
21
|
+
const keyBuffer = Buffer.from(encryptionKey, "utf-8");
|
22
|
+
if (keyBuffer.length !== 32) return Outcome.makeFailure("Encryption key must be 32 bytes for AES-256-GCM.");
|
23
|
+
try {
|
24
|
+
const iv = randomBytes(ivLength);
|
25
|
+
const cipher = createCipheriv("aes-256-gcm", keyBuffer, iv);
|
26
|
+
let encrypted = cipher.update(fileArray);
|
27
|
+
encrypted = Buffer.concat([encrypted, cipher.final()]);
|
28
|
+
return Outcome.makeSuccess(new Uint8Array(Buffer.concat([iv, encrypted])));
|
29
|
+
} catch (err) {
|
30
|
+
const errStr = unknownToString(err);
|
31
|
+
return Outcome.makeFailure(errStr);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
function decryptUint8Array(encryptedFile, encryptionKey) {
|
35
|
+
const ivLength = 12;
|
36
|
+
const iv = encryptedFile.subarray(0, ivLength);
|
37
|
+
const keyBuffer = Buffer.from(encryptionKey, "utf-8");
|
38
|
+
if (keyBuffer.length !== 32) return Outcome.makeFailure("Encryption key must be 32 bytes for AES-256-GCM.");
|
39
|
+
try {
|
40
|
+
const encryptedData = encryptedFile.subarray(ivLength);
|
41
|
+
const decipher = createDecipheriv("aes-256-gcm", keyBuffer, iv);
|
42
|
+
let decrypted = decipher.update(encryptedData);
|
43
|
+
decrypted = Buffer.concat([decrypted, decipher.final()]);
|
44
|
+
return Outcome.makeSuccess(new Uint8Array(decrypted));
|
45
|
+
} catch (err) {
|
46
|
+
const errStr = unknownToString(err);
|
47
|
+
return Outcome.makeFailure(errStr);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
export {
|
52
|
+
encryptUint8Array,
|
53
|
+
decryptUint8Array,
|
54
|
+
uint8_array_exports
|
55
|
+
};
|
@@ -0,0 +1,191 @@
|
|
1
|
+
import {
|
2
|
+
Random
|
3
|
+
} from "./chunk-S32K7POB.js";
|
4
|
+
import {
|
5
|
+
Arrays
|
6
|
+
} from "./chunk-5TRAENM3.js";
|
7
|
+
|
8
|
+
// src/agnostic/misc/lorem-ipsum/index.ts
|
9
|
+
var LoremIpsum;
|
10
|
+
((LoremIpsum2) => {
|
11
|
+
LoremIpsum2.words = [
|
12
|
+
"a",
|
13
|
+
"ac",
|
14
|
+
"accumsan",
|
15
|
+
"adipiscing",
|
16
|
+
"aenean",
|
17
|
+
"aliquam",
|
18
|
+
"aliquet",
|
19
|
+
"amet",
|
20
|
+
"ante",
|
21
|
+
"arcu",
|
22
|
+
"at",
|
23
|
+
"auctor",
|
24
|
+
"augue",
|
25
|
+
"bibendum",
|
26
|
+
"blandit",
|
27
|
+
"condimentum",
|
28
|
+
"consectetur",
|
29
|
+
"consequat",
|
30
|
+
"convallis",
|
31
|
+
"cras",
|
32
|
+
"curabitur",
|
33
|
+
"cursus",
|
34
|
+
"dapibus",
|
35
|
+
"diam",
|
36
|
+
"dictum",
|
37
|
+
"dictumst",
|
38
|
+
"dignissim",
|
39
|
+
"dolor",
|
40
|
+
"donec",
|
41
|
+
"dui",
|
42
|
+
"duis",
|
43
|
+
"efficitur",
|
44
|
+
"egestas",
|
45
|
+
"eget",
|
46
|
+
"eleifend",
|
47
|
+
"elementum",
|
48
|
+
"elit",
|
49
|
+
"enim",
|
50
|
+
"erat",
|
51
|
+
"eros",
|
52
|
+
"est",
|
53
|
+
"et",
|
54
|
+
"eu",
|
55
|
+
"euismod",
|
56
|
+
"ex",
|
57
|
+
"facilisis",
|
58
|
+
"faucibus",
|
59
|
+
"felis",
|
60
|
+
"feugiat",
|
61
|
+
"finibus",
|
62
|
+
"fringilla",
|
63
|
+
"fusce",
|
64
|
+
"gravida",
|
65
|
+
"habitasse",
|
66
|
+
"hac",
|
67
|
+
"hendrerit",
|
68
|
+
"iaculis",
|
69
|
+
"id",
|
70
|
+
"imperdiet",
|
71
|
+
"in",
|
72
|
+
"integer",
|
73
|
+
"interdum",
|
74
|
+
"ipsum",
|
75
|
+
"justo",
|
76
|
+
"lacinia",
|
77
|
+
"lacus",
|
78
|
+
"laoreet",
|
79
|
+
"lectus",
|
80
|
+
"leo",
|
81
|
+
"libero",
|
82
|
+
"ligula",
|
83
|
+
"lobortis",
|
84
|
+
"lorem",
|
85
|
+
"luctus",
|
86
|
+
"maecenas",
|
87
|
+
"magna",
|
88
|
+
"malesuada",
|
89
|
+
"massa",
|
90
|
+
"mattis",
|
91
|
+
"mauris",
|
92
|
+
"maximus",
|
93
|
+
"metus",
|
94
|
+
"mi",
|
95
|
+
"molestie",
|
96
|
+
"mollis",
|
97
|
+
"morbi",
|
98
|
+
"nam",
|
99
|
+
"nec",
|
100
|
+
"neque",
|
101
|
+
"nibh",
|
102
|
+
"nisi",
|
103
|
+
"nisl",
|
104
|
+
"non",
|
105
|
+
"nulla",
|
106
|
+
"nullam",
|
107
|
+
"nunc",
|
108
|
+
"odio",
|
109
|
+
"orci",
|
110
|
+
"ornare",
|
111
|
+
"pellentesque",
|
112
|
+
"pharetra",
|
113
|
+
"phasellus",
|
114
|
+
"placerat",
|
115
|
+
"platea",
|
116
|
+
"porta",
|
117
|
+
"porttitor",
|
118
|
+
"posuere",
|
119
|
+
"praesent",
|
120
|
+
"pulvinar",
|
121
|
+
"purus",
|
122
|
+
"quam",
|
123
|
+
"quis",
|
124
|
+
"quisque",
|
125
|
+
"risus",
|
126
|
+
"rutrum",
|
127
|
+
"sagittis",
|
128
|
+
"sapien",
|
129
|
+
"sed",
|
130
|
+
"sem",
|
131
|
+
"semper",
|
132
|
+
"sit",
|
133
|
+
"sodales",
|
134
|
+
"sollicitudin",
|
135
|
+
"suscipit",
|
136
|
+
"suspendisse",
|
137
|
+
"tellus",
|
138
|
+
"tempor",
|
139
|
+
"tempus",
|
140
|
+
"tincidunt",
|
141
|
+
"tortor",
|
142
|
+
"tristique",
|
143
|
+
"turpis",
|
144
|
+
"ultrices",
|
145
|
+
"ultricies",
|
146
|
+
"urna",
|
147
|
+
"ut",
|
148
|
+
"vehicula",
|
149
|
+
"vel",
|
150
|
+
"velit",
|
151
|
+
"venenatis",
|
152
|
+
"vestibulum",
|
153
|
+
"vitae",
|
154
|
+
"vivamus",
|
155
|
+
"viverra",
|
156
|
+
"volutpat",
|
157
|
+
"vulputate"
|
158
|
+
];
|
159
|
+
LoremIpsum2.generateSentence = (wordCount) => {
|
160
|
+
const resultArr = [];
|
161
|
+
let currentWordCound = wordCount;
|
162
|
+
for (let i = 0; i < currentWordCound; i++) {
|
163
|
+
const picked = Arrays.randomPick(LoremIpsum2.words);
|
164
|
+
if (typeof picked === "string") resultArr.push(picked);
|
165
|
+
else {
|
166
|
+
currentWordCound += 1;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
const [firstWord, ...otherWords] = resultArr;
|
170
|
+
if (firstWord === void 0) return "";
|
171
|
+
const capFirstLetter = firstWord?.charAt(0).toUpperCase();
|
172
|
+
const restOfFirstWord = firstWord?.slice(1);
|
173
|
+
const sentence = [
|
174
|
+
`${capFirstLetter}${restOfFirstWord}`,
|
175
|
+
...otherWords
|
176
|
+
].join(" ");
|
177
|
+
return `${sentence}.`;
|
178
|
+
};
|
179
|
+
LoremIpsum2.generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
|
180
|
+
const sentences = [];
|
181
|
+
for (let i = 0; i < sentencesCount; i++) {
|
182
|
+
const length = Random.randomInt(maxSentenceLength, minSentenceLength) ?? 8;
|
183
|
+
sentences.push((0, LoremIpsum2.generateSentence)(length));
|
184
|
+
}
|
185
|
+
return sentences;
|
186
|
+
};
|
187
|
+
})(LoremIpsum || (LoremIpsum = {}));
|
188
|
+
|
189
|
+
export {
|
190
|
+
LoremIpsum
|
191
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
__export
|
6
|
+
} from "./chunk-NZLE2WMY.js";
|
7
|
+
|
8
|
+
// src/node/@express/@multer/index.ts
|
9
|
+
var multer_exports = {};
|
10
|
+
__export(multer_exports, {
|
11
|
+
useMulterMiddleware: () => useMulterMiddleware
|
12
|
+
});
|
13
|
+
import multer from "multer";
|
14
|
+
async function useMulterMiddleware(req, res, options) {
|
15
|
+
const { storage, limits, fileFilter } = options;
|
16
|
+
const uploader = multer({
|
17
|
+
storage: storage ?? multer.memoryStorage(),
|
18
|
+
limits,
|
19
|
+
fileFilter
|
20
|
+
});
|
21
|
+
let middleware;
|
22
|
+
if (options.mode === "none") {
|
23
|
+
middleware = uploader.none();
|
24
|
+
} else if (options.mode === "single") {
|
25
|
+
middleware = uploader.single(options.fieldName);
|
26
|
+
} else if (options.mode === "array") {
|
27
|
+
middleware = uploader.array(options.fieldName, options.maxCount);
|
28
|
+
} else if (options.mode === "fields") {
|
29
|
+
middleware = uploader.fields(options.fields);
|
30
|
+
} else {
|
31
|
+
middleware = uploader.any();
|
32
|
+
}
|
33
|
+
return await new Promise((resolve) => middleware(req, res, (err) => {
|
34
|
+
resolve(
|
35
|
+
err !== void 0 ? Outcome.makeFailure(err) : Outcome.makeSuccess(true)
|
36
|
+
);
|
37
|
+
}));
|
38
|
+
}
|
39
|
+
|
40
|
+
export {
|
41
|
+
useMulterMiddleware,
|
42
|
+
multer_exports
|
43
|
+
};
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
clamp
|
6
|
+
} from "./chunk-OSAXBA7G.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/images/format/index.ts
|
12
|
+
var format_exports = {};
|
13
|
+
__export(format_exports, {
|
14
|
+
format: () => format,
|
15
|
+
formatImage: () => formatImage,
|
16
|
+
toAvif: () => toAvif,
|
17
|
+
toHeif: () => toHeif,
|
18
|
+
toHeight: () => toHeight,
|
19
|
+
toJpg: () => toJpg,
|
20
|
+
toPng: () => toPng,
|
21
|
+
toTiff: () => toTiff,
|
22
|
+
toWebp: () => toWebp,
|
23
|
+
toWidth: () => toWidth
|
24
|
+
});
|
25
|
+
import sharp from "sharp";
|
26
|
+
async function formatImage(imageBuffer, outputOptions) {
|
27
|
+
const { width, height, quality, format: format2 } = outputOptions;
|
28
|
+
const sharpInstance = sharp(imageBuffer).resize({
|
29
|
+
width,
|
30
|
+
height,
|
31
|
+
fit: sharp.fit.cover
|
32
|
+
});
|
33
|
+
let withQuality = sharpInstance;
|
34
|
+
if (format2 === "png") {
|
35
|
+
withQuality = withQuality.png({ quality });
|
36
|
+
} else if (format2 === "jpeg") {
|
37
|
+
withQuality = withQuality.jpeg({ quality });
|
38
|
+
} else if (format2 === "webp") {
|
39
|
+
withQuality = withQuality.webp({ quality });
|
40
|
+
} else if (format2 === "avif") {
|
41
|
+
withQuality = withQuality.avif({ quality });
|
42
|
+
}
|
43
|
+
let buffer = Buffer.from([]);
|
44
|
+
try {
|
45
|
+
buffer = await withQuality.toBuffer();
|
46
|
+
} catch (e) {
|
47
|
+
console.log("Images:Exports:Error", { e });
|
48
|
+
}
|
49
|
+
return buffer;
|
50
|
+
}
|
51
|
+
async function format(input, typeOrOptions, options) {
|
52
|
+
const sharpInstance = sharp(input);
|
53
|
+
if (typeof typeOrOptions !== "string") return Outcome.makeSuccess(await sharpInstance.resize(typeOrOptions).toBuffer());
|
54
|
+
const type = typeOrOptions;
|
55
|
+
if (type === "jpg" || type === "jpeg") return Outcome.makeSuccess(await sharpInstance.jpeg(options).toBuffer());
|
56
|
+
if (type === "png") return Outcome.makeSuccess(await sharpInstance.png(options).toBuffer());
|
57
|
+
if (type === "webp") return Outcome.makeSuccess(await sharpInstance.webp(options).toBuffer());
|
58
|
+
if (type === "avif") return Outcome.makeSuccess(await sharpInstance.avif(options).toBuffer());
|
59
|
+
if (type === "tiff") return Outcome.makeSuccess(await sharpInstance.tiff(options).toBuffer());
|
60
|
+
if (type === "heif") return Outcome.makeSuccess(await sharpInstance.heif(options).toBuffer());
|
61
|
+
return Outcome.makeFailure(`Invalid image format: ${type}`);
|
62
|
+
}
|
63
|
+
var toWidth = async (input, width) => sharp(input).resize({ width }).toBuffer();
|
64
|
+
var toHeight = async (input, height) => sharp(input).resize({ height }).toBuffer();
|
65
|
+
var toJpg = async (input, quality) => sharp(input).jpeg({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
66
|
+
var toPng = async (input, quality, compressionLevel) => sharp(input).png({ quality: clamp(quality ?? 100, 1, 100), compressionLevel }).toBuffer();
|
67
|
+
var toWebp = async (input, quality) => sharp(input).webp({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
68
|
+
var toAvif = async (input, quality) => sharp(input).avif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
69
|
+
var toTiff = async (input, quality, compression) => sharp(input).tiff({ quality: clamp(quality ?? 100, 1, 100), compression }).toBuffer();
|
70
|
+
var toHeif = async (input, quality) => sharp(input).heif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
71
|
+
|
72
|
+
export {
|
73
|
+
formatImage,
|
74
|
+
format,
|
75
|
+
toWidth,
|
76
|
+
toHeight,
|
77
|
+
toJpg,
|
78
|
+
toPng,
|
79
|
+
toWebp,
|
80
|
+
toAvif,
|
81
|
+
toTiff,
|
82
|
+
toHeif,
|
83
|
+
format_exports
|
84
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
make
|
3
|
+
} from "./chunk-RLAZR3NL.js";
|
4
|
+
import {
|
5
|
+
findDuplicates
|
6
|
+
} from "./chunk-YS6WMSWC.js";
|
7
|
+
import {
|
8
|
+
isArrayOf
|
9
|
+
} from "./chunk-6RGDWX4A.js";
|
10
|
+
import {
|
11
|
+
randomPick,
|
12
|
+
randomPickMany
|
13
|
+
} from "./chunk-AQBJ6HNB.js";
|
14
|
+
import {
|
15
|
+
shuffle
|
16
|
+
} from "./chunk-VJJIYJMY.js";
|
17
|
+
|
18
|
+
// src/agnostic/arrays/index.tsx
|
19
|
+
var Arrays;
|
20
|
+
((Arrays2) => {
|
21
|
+
Arrays2.findDuplicates = findDuplicates;
|
22
|
+
Arrays2.isArrayOf = isArrayOf;
|
23
|
+
Arrays2.make = make;
|
24
|
+
Arrays2.randomPick = randomPick;
|
25
|
+
Arrays2.randomPickMany = randomPickMany;
|
26
|
+
Arrays2.shuffle = shuffle;
|
27
|
+
})(Arrays || (Arrays = {}));
|
28
|
+
|
29
|
+
export {
|
30
|
+
Arrays
|
31
|
+
};
|
@@ -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/copy/index.ts
|
12
|
+
var copy_exports = {};
|
13
|
+
__export(copy_exports, {
|
14
|
+
copy: () => copy
|
15
|
+
});
|
16
|
+
async function copy(sourcePath, targetPath, bucket, options) {
|
17
|
+
const { fileOptions, copyOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
await file.copy(targetPath, copyOptions);
|
21
|
+
return Outcome.makeSuccess(true);
|
22
|
+
} catch (err) {
|
23
|
+
const errStr = unknownToString(err);
|
24
|
+
return Outcome.makeFailure(errStr);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
export {
|
29
|
+
copy,
|
30
|
+
copy_exports
|
31
|
+
};
|
@@ -0,0 +1,32 @@
|
|
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/move/index.ts
|
12
|
+
var move_exports = {};
|
13
|
+
__export(move_exports, {
|
14
|
+
move: () => move
|
15
|
+
});
|
16
|
+
async function move(sourcePath, targetPath, bucket, options) {
|
17
|
+
const { fileOptions, copyOptions, deleteOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
await file.copy(targetPath, copyOptions);
|
21
|
+
await file.delete(deleteOptions);
|
22
|
+
return Outcome.makeSuccess(true);
|
23
|
+
} catch (err) {
|
24
|
+
const errStr = unknownToString(err);
|
25
|
+
return Outcome.makeFailure(errStr);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
export {
|
30
|
+
move,
|
31
|
+
move_exports
|
32
|
+
};
|
@@ -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/exists/index.ts
|
12
|
+
var exists_exports = {};
|
13
|
+
__export(exists_exports, {
|
14
|
+
exists: () => exists
|
15
|
+
});
|
16
|
+
async function exists(bucket, sourcePath, options) {
|
17
|
+
const { fileOptions, existsOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
const [exists2] = await file.exists(existsOptions);
|
21
|
+
return Outcome.makeSuccess(exists2);
|
22
|
+
} catch (err) {
|
23
|
+
const errStr = unknownToString(err);
|
24
|
+
return Outcome.makeFailure(errStr);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
export {
|
29
|
+
exists,
|
30
|
+
exists_exports
|
31
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import {
|
2
|
+
HSLToRGB
|
3
|
+
} from "./chunk-QLC3A6PC.js";
|
4
|
+
import {
|
5
|
+
RGBToHSL
|
6
|
+
} from "./chunk-YVLJKJV2.js";
|
7
|
+
|
8
|
+
// src/agnostic/colors/lighten-color/index.ts
|
9
|
+
function lightenColor(color, intensity = 20) {
|
10
|
+
const [h, s, l] = RGBToHSL(color);
|
11
|
+
const rgb = HSLToRGB([h, s, Math.min(100, l + intensity)]);
|
12
|
+
return rgb;
|
13
|
+
}
|
14
|
+
function setColorLuminance(color, intensity = 20) {
|
15
|
+
const [h, s] = RGBToHSL(color);
|
16
|
+
const rgb = HSLToRGB([h, s, Math.min(100, intensity)]);
|
17
|
+
return rgb;
|
18
|
+
}
|
19
|
+
|
20
|
+
export {
|
21
|
+
lightenColor,
|
22
|
+
setColorLuminance
|
23
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import {
|
2
|
+
z
|
3
|
+
} from "./chunk-XEAHMN2T.js";
|
4
|
+
import {
|
5
|
+
OperationNames
|
6
|
+
} from "./chunk-MOVLLUDL.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/lineate-levels/index.ts
|
9
|
+
var lineateLevelsSchema = z.object({
|
10
|
+
name: z.literal(OperationNames.LineateLevels),
|
11
|
+
params: z.object({
|
12
|
+
multiplier: z.union([
|
13
|
+
z.number(),
|
14
|
+
z.tuple([
|
15
|
+
z.number(),
|
16
|
+
z.number(),
|
17
|
+
z.number()
|
18
|
+
])
|
19
|
+
]),
|
20
|
+
offset: z.optional(
|
21
|
+
z.union([
|
22
|
+
z.number(),
|
23
|
+
z.tuple([
|
24
|
+
z.number(),
|
25
|
+
z.number(),
|
26
|
+
z.number()
|
27
|
+
])
|
28
|
+
])
|
29
|
+
)
|
30
|
+
})
|
31
|
+
});
|
32
|
+
|
33
|
+
export {
|
34
|
+
lineateLevelsSchema
|
35
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import {
|
2
|
+
erase
|
3
|
+
} from "./chunk-7BCQCDGQ.js";
|
4
|
+
import {
|
5
|
+
download
|
6
|
+
} from "./chunk-IARWH6LC.js";
|
7
|
+
import {
|
8
|
+
upload
|
9
|
+
} from "./chunk-7FJKDVBE.js";
|
10
|
+
import {
|
11
|
+
Outcome
|
12
|
+
} from "./chunk-JMU5PDBD.js";
|
13
|
+
import {
|
14
|
+
__export
|
15
|
+
} from "./chunk-NZLE2WMY.js";
|
16
|
+
|
17
|
+
// src/node/@google-cloud/storage/file/revoke-signed-urls/index.ts
|
18
|
+
var revoke_signed_urls_exports = {};
|
19
|
+
__export(revoke_signed_urls_exports, {
|
20
|
+
revokeSignedUrls: () => revokeSignedUrls
|
21
|
+
});
|
22
|
+
async function revokeSignedUrls(sourcePath, bucket, options) {
|
23
|
+
const { downloadOptions, eraseOptions, uploadOptions } = options ?? {};
|
24
|
+
const downloadAttempt = await download(sourcePath, bucket, downloadOptions);
|
25
|
+
if (!downloadAttempt.success) return downloadAttempt;
|
26
|
+
const deletionAttempt = await erase(sourcePath, bucket, eraseOptions);
|
27
|
+
if (!deletionAttempt.success) return deletionAttempt;
|
28
|
+
const downloaded = downloadAttempt.payload;
|
29
|
+
const reuploadAttempt = await upload(downloaded, sourcePath, bucket, uploadOptions);
|
30
|
+
if (!reuploadAttempt.success) return reuploadAttempt;
|
31
|
+
return Outcome.makeSuccess(true);
|
32
|
+
}
|
33
|
+
|
34
|
+
export {
|
35
|
+
revokeSignedUrls,
|
36
|
+
revoke_signed_urls_exports
|
37
|
+
};
|
@@ -0,0 +1,32 @@
|
|
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/sftp/file/download/index.ts
|
12
|
+
var download_exports = {};
|
13
|
+
__export(download_exports, {
|
14
|
+
download: () => download
|
15
|
+
});
|
16
|
+
async function download(sourcePath, sftp, options) {
|
17
|
+
try {
|
18
|
+
const stream = sftp.createReadStream(sourcePath, options);
|
19
|
+
stream.on("error", (err) => {
|
20
|
+
throw err;
|
21
|
+
});
|
22
|
+
return Outcome.makeSuccess(stream);
|
23
|
+
} catch (err) {
|
24
|
+
const errStr = unknownToString(err);
|
25
|
+
return Outcome.makeFailure(errStr);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
export {
|
30
|
+
download,
|
31
|
+
download_exports
|
32
|
+
};
|