@design-edito/tools 0.1.71 → 0.1.73
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.js +1 -1
- package/agnostic/colors/hex-to-rgb/index.js +1 -1
- package/agnostic/colors/hsl-to-rgb/index.js +1 -1
- package/agnostic/colors/index.js +12 -12
- package/agnostic/colors/lighten-color/index.js +3 -3
- package/agnostic/colors/rgb-to-hex/index.js +1 -1
- package/agnostic/colors/rgb-to-hsl/index.js +1 -1
- package/agnostic/colors/saturate-color/index.js +3 -3
- 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 +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.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.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.js +5 -5
- 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.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.js +5 -5
- 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.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/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 +3 -3
- 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 +17 -17
- 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/normalize-extension/index.js +1 -1
- 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 +6 -6
- 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 +10 -10
- 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.js +4 -1280
- package/agnostic/strings/char-codes/index.js +1 -1
- package/agnostic/strings/index.js +8 -8
- 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 +9 -9
- 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-24ZUWYIR.js +42 -0
- package/chunks/chunk-2JH4TCT2.js +34 -0
- package/chunks/chunk-2RUBEK4A.js +2456 -0
- package/chunks/chunk-2VJ4QISD.js +28 -0
- package/chunks/chunk-2VXYXVV2.js +164 -0
- package/chunks/chunk-32FNUJVW.js +31 -0
- package/chunks/chunk-36CTYZYA.js +28 -0
- package/chunks/chunk-37TRFYZT.js +35 -0
- package/chunks/chunk-3CGRUS5C.js +37 -0
- package/chunks/chunk-3CLGBOHN.js +29 -0
- package/chunks/chunk-3DL3U7UR.js +40 -0
- package/chunks/chunk-3G7KHSKB.js +60 -0
- package/chunks/chunk-3TKBCG7Y.js +40 -0
- package/chunks/chunk-42K3MQQ5.js +31 -0
- package/chunks/chunk-4A2IILES.js +16 -0
- package/chunks/chunk-4WM6K5IZ.js +30 -0
- package/chunks/chunk-4XBUJAQU.js +71 -0
- package/chunks/chunk-4XSDRT23.js +67 -0
- package/chunks/chunk-55EDDDIA.js +16 -0
- package/chunks/chunk-56OEXCBD.js +60 -0
- package/chunks/chunk-5YIC7NDS.js +18 -0
- package/chunks/chunk-5ZJ3KJPK.js +44 -0
- package/chunks/chunk-646R6BQZ.js +42 -0
- package/chunks/chunk-6ET4XJLF.js +40 -0
- package/chunks/chunk-6IYUA43Q.js +43 -0
- package/chunks/chunk-6NLNUGBI.js +42 -0
- package/chunks/chunk-6PIGLFM3.js +191 -0
- package/chunks/chunk-6SXCNPJ2.js +177 -0
- package/chunks/chunk-766BSKLU.js +2456 -0
- package/chunks/chunk-7J7CYOXU.js +36 -0
- package/chunks/chunk-A5XT7AXP.js +151 -0
- package/chunks/chunk-AHSYVIOF.js +18 -0
- package/chunks/chunk-ANPXBD2G.js +35 -0
- package/chunks/chunk-B446JIN3.js +29 -0
- package/chunks/chunk-BD56ZAYF.js +28 -0
- package/chunks/chunk-BE7OXZRK.js +42 -0
- package/chunks/chunk-BQMQIW77.js +69 -0
- package/chunks/chunk-BSUQNHAM.js +44 -0
- package/chunks/chunk-BWYH445G.js +43 -0
- package/chunks/chunk-C6QTHDDM.js +52 -0
- package/chunks/chunk-CA3UPHYO.js +42 -0
- package/chunks/chunk-CHUOCTRP.js +26 -0
- package/chunks/chunk-CNYSX2L2.js +38 -0
- package/chunks/chunk-CVDCTI7F.js +47 -0
- package/chunks/chunk-CWZFRUBS.js +41 -0
- package/chunks/chunk-DABLUUMY.js +24 -0
- package/chunks/chunk-DAOJPBZ6.js +18 -0
- package/chunks/chunk-DHCDZVLA.js +19 -0
- package/chunks/chunk-DPQRXSZH.js +42 -0
- package/chunks/chunk-DTETQT5O.js +15 -0
- package/chunks/chunk-E3F7QTXR.js +141 -0
- package/chunks/chunk-EOTOFHUR.js +42 -0
- package/chunks/chunk-F6CB5TEO.js +151 -0
- package/chunks/chunk-FB3GNE2B.js +48 -0
- package/chunks/chunk-FD5WR2A5.js +63 -0
- package/chunks/chunk-FE4DECBU.js +42 -0
- package/chunks/chunk-FF5NURFO.js +32 -0
- package/chunks/chunk-FJ3NTVCG.js +18 -0
- package/chunks/chunk-FNJX5BML.js +23 -0
- package/chunks/chunk-FS6LRTDK.js +42 -0
- package/chunks/chunk-G5RRNREY.js +37 -0
- package/chunks/chunk-GRDFCI63.js +21 -0
- package/chunks/chunk-H4LW6FP3.js +42 -0
- package/chunks/chunk-H5O26IRG.js +28 -0
- package/chunks/chunk-HFV7VACE.js +191 -0
- package/chunks/chunk-HGSQCJ55.js +65 -0
- package/chunks/chunk-HRNDUTZE.js +46 -0
- package/chunks/chunk-HWEGQVBQ.js +32 -0
- package/chunks/chunk-HWVEI3RH.js +31 -0
- package/chunks/chunk-IIMP6YT7.js +56 -0
- package/chunks/chunk-INGSSBWK.js +40 -0
- package/chunks/chunk-IPLOZP7L.js +20 -0
- package/chunks/chunk-IUURENUN.js +22 -0
- package/chunks/chunk-IV75M3KE.js +38 -0
- package/chunks/chunk-IWWAMCNR.js +16 -0
- package/chunks/chunk-IWZAUQGO.js +40 -0
- package/chunks/chunk-JUF5GSDE.js +37 -0
- package/chunks/chunk-JWF5EKM2.js +127 -0
- package/chunks/chunk-KBFSUJ57.js +40 -0
- package/chunks/chunk-KJAEVOIW.js +42 -0
- package/chunks/chunk-LFSYWGO5.js +31 -0
- package/chunks/chunk-LMPEBXSU.js +31 -0
- package/chunks/chunk-MAOVZE34.js +20 -0
- package/chunks/chunk-N2T672IG.js +62 -0
- package/chunks/chunk-N32W4UQ6.js +16 -0
- package/chunks/chunk-NMYVJJXV.js +47 -0
- package/chunks/chunk-NOLQR5RW.js +42 -0
- package/chunks/chunk-OA7Y2A5T.js +42 -0
- package/chunks/chunk-OD7GR6ZF.js +56 -0
- package/chunks/chunk-ON6LC3HE.js +84 -0
- package/chunks/chunk-PAIUCLVK.js +35 -0
- package/chunks/chunk-QCOO4PV5.js +54 -0
- package/chunks/chunk-QDVDHFMZ.js +39 -0
- package/chunks/chunk-QH64MYGA.js +45 -0
- package/chunks/chunk-QLDN574K.js +39 -0
- package/chunks/chunk-QLOMT4DL.js +21 -0
- package/chunks/chunk-QPHK5QI7.js +4072 -0
- package/chunks/chunk-QVPS2BCJ.js +29 -0
- package/chunks/chunk-QWFEYLHG.js +79 -0
- package/chunks/chunk-QWZ4ZNFA.js +63 -0
- package/chunks/chunk-RTUTFCLC.js +40 -0
- package/chunks/chunk-RWO53U4X.js +39 -0
- package/chunks/chunk-SA2IY5LN.js +35 -0
- package/chunks/chunk-SX4DSRPU.js +24 -0
- package/chunks/chunk-TGVYEQIA.js +38 -0
- package/chunks/chunk-UBCUVSEV.js +35 -0
- package/chunks/chunk-UK2F7CWI.js +29 -0
- package/chunks/chunk-UK4HNSEJ.js +42 -0
- package/chunks/chunk-V3GX7SIJ.js +28 -0
- package/chunks/chunk-V3L55I2S.js +43 -0
- package/chunks/chunk-VROZGPC5.js +45 -0
- package/chunks/chunk-W3RXHN5I.js +38 -0
- package/chunks/chunk-WAHPAZQS.js +60 -0
- package/chunks/chunk-WHAUJMMG.js +32 -0
- package/chunks/chunk-WJ3XV35I.js +28 -0
- package/chunks/chunk-WJYMX7SS.js +21 -0
- package/chunks/chunk-X33GT7VY.js +28 -0
- package/chunks/chunk-XFMKYZKH.js +164 -0
- package/chunks/chunk-XRUSQWPJ.js +173 -0
- package/chunks/chunk-YKPA3MQL.js +31 -0
- package/chunks/chunk-YY6DTDMO.js +177 -0
- package/chunks/chunk-ZEZCYPLQ.js +43 -0
- package/chunks/chunk-ZJTWDCNZ.js +34 -0
- package/chunks/chunk-ZSUG52DO.js +40 -0
- package/components/Comp/index.js +1 -1
- package/node/@aws-s3/index.js +15 -5
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +35 -0
- package/node/@aws-s3/storage/directory/copy-dir/index.js +9 -0
- package/node/@aws-s3/storage/directory/index.d.ts +5 -0
- package/node/@aws-s3/storage/directory/index.js +22 -0
- package/node/@aws-s3/storage/directory/list/index.d.ts +17 -0
- package/node/@aws-s3/storage/directory/list/index.js +9 -0
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +33 -0
- package/node/@aws-s3/storage/directory/move-dir/index.js +9 -0
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +31 -0
- package/node/@aws-s3/storage/directory/remove-dir/index.js +9 -0
- package/node/@aws-s3/storage/file/copy/index.d.ts +30 -0
- package/node/@aws-s3/storage/file/copy/index.js +9 -0
- package/node/@aws-s3/storage/file/download/index.d.ts +15 -15
- package/node/@aws-s3/storage/file/download/index.js +2 -2
- package/node/@aws-s3/storage/file/exists/index.d.ts +23 -0
- package/node/@aws-s3/storage/file/exists/index.js +9 -0
- package/node/@aws-s3/storage/file/index.d.ts +6 -1
- package/node/@aws-s3/storage/file/index.js +25 -5
- package/node/@aws-s3/storage/file/move/index.d.ts +33 -0
- package/node/@aws-s3/storage/file/move/index.js +9 -0
- package/node/@aws-s3/storage/file/remove/index.d.ts +17 -0
- package/node/@aws-s3/storage/file/remove/index.js +9 -0
- package/node/@aws-s3/storage/file/stat/index.d.ts +24 -0
- package/node/@aws-s3/storage/file/stat/index.js +9 -0
- package/node/@aws-s3/storage/file/upload/index.d.ts +13 -19
- package/node/@aws-s3/storage/file/upload/index.js +2 -2
- package/node/@aws-s3/storage/index.d.ts +2 -1
- package/node/@aws-s3/storage/index.js +18 -5
- package/node/@design-edito/index.js +1 -1
- package/node/@express/@multer/index.js +2 -2
- package/node/@express/index.js +2 -2
- package/node/@google-cloud/index.js +22 -17
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/bucket/index.d.ts +4 -2
- package/node/@google-cloud/storage/bucket/index.js +15 -7
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +22 -0
- package/node/@google-cloud/storage/directory/copy-dir/index.js +9 -0
- package/node/@google-cloud/storage/directory/index.d.ts +5 -0
- package/node/@google-cloud/storage/directory/index.js +22 -0
- package/node/@google-cloud/storage/directory/list/index.d.ts +17 -0
- package/node/@google-cloud/storage/directory/list/index.js +9 -0
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +31 -0
- package/node/@google-cloud/storage/directory/move-dir/index.js +9 -0
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +31 -0
- package/node/@google-cloud/storage/directory/remove-dir/index.js +9 -0
- package/node/@google-cloud/storage/file/copy/index.d.ts +21 -10
- package/node/@google-cloud/storage/file/copy/index.js +2 -2
- package/node/@google-cloud/storage/file/download/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/download/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.d.ts +2 -2
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +2 -2
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/get-permissions/index.js +2 -2
- package/node/@google-cloud/storage/file/index.d.ts +3 -2
- package/node/@google-cloud/storage/file/index.js +26 -22
- package/node/@google-cloud/storage/file/move/index.d.ts +24 -12
- package/node/@google-cloud/storage/file/move/index.js +2 -2
- package/node/@google-cloud/storage/file/remove/index.d.ts +24 -0
- package/node/@google-cloud/storage/file/remove/index.js +9 -0
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +6 -6
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +5 -5
- package/node/@google-cloud/storage/file/stat/index.d.ts +25 -0
- package/node/@google-cloud/storage/file/stat/index.js +9 -0
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/upload/index.d.ts +5 -6
- package/node/@google-cloud/storage/file/upload/index.js +2 -2
- package/node/@google-cloud/storage/index.d.ts +2 -1
- package/node/@google-cloud/storage/index.js +25 -17
- package/node/cloud-storage/clients/index.d.ts +13 -0
- package/node/cloud-storage/clients/index.js +13 -0
- package/node/cloud-storage/index.d.ts +2 -4
- package/node/cloud-storage/index.js +60 -24
- package/node/cloud-storage/operations/copy-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/copy-dir/index.js +14 -0
- package/node/cloud-storage/operations/copy-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/copy-file/index.js +14 -0
- package/node/cloud-storage/operations/download-file/index.d.ts +16 -0
- package/node/cloud-storage/operations/download-file/index.js +14 -0
- package/node/cloud-storage/operations/exists-file/index.d.ts +13 -0
- package/node/cloud-storage/operations/exists-file/index.js +14 -0
- package/node/cloud-storage/operations/index.d.ts +12 -3
- package/node/cloud-storage/operations/index.js +91 -19
- package/node/cloud-storage/operations/list-dir/index.d.ts +13 -0
- package/node/cloud-storage/operations/list-dir/index.js +14 -0
- package/node/cloud-storage/operations/move-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/move-dir/index.js +14 -0
- package/node/cloud-storage/operations/move-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/move-file/index.js +14 -0
- package/node/cloud-storage/operations/remove-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/remove-dir/index.js +14 -0
- package/node/cloud-storage/operations/remove-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/remove-file/index.js +14 -0
- package/node/cloud-storage/operations/stat-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/stat-file/index.js +14 -0
- package/node/cloud-storage/operations/upload-file/index.d.ts +16 -0
- package/node/cloud-storage/operations/upload-file/index.js +14 -0
- 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/directory/copy-dir/index.d.ts +28 -0
- package/node/ftps/directory/copy-dir/index.js +9 -0
- package/node/ftps/directory/index.d.ts +5 -0
- package/node/ftps/directory/index.js +22 -0
- package/node/ftps/directory/list/index.d.ts +12 -0
- package/node/ftps/directory/list/index.js +9 -0
- package/node/ftps/directory/move-dir/index.d.ts +26 -0
- package/node/ftps/directory/move-dir/index.js +9 -0
- package/node/ftps/directory/remove-dir/index.d.ts +25 -0
- package/node/ftps/directory/remove-dir/index.js +9 -0
- package/node/ftps/file/copy/index.d.ts +28 -0
- package/node/ftps/file/copy/index.js +9 -0
- package/node/ftps/file/download/index.d.ts +2 -2
- package/node/ftps/file/download/index.js +2 -2
- package/node/ftps/file/exists/index.d.ts +21 -0
- package/node/ftps/file/exists/index.js +9 -0
- package/node/ftps/file/index.d.ts +6 -1
- package/node/ftps/file/index.js +25 -5
- package/node/ftps/file/move/index.d.ts +38 -0
- package/node/ftps/file/move/index.js +9 -0
- package/node/ftps/file/remove/index.d.ts +20 -0
- package/node/ftps/file/remove/index.js +9 -0
- package/node/ftps/file/stat/index.d.ts +17 -0
- package/node/ftps/file/stat/index.js +9 -0
- package/node/ftps/file/upload/index.d.ts +3 -3
- package/node/ftps/file/upload/index.js +2 -2
- package/node/ftps/index.d.ts +2 -1
- package/node/ftps/index.js +17 -4
- package/node/images/format/index.js +3 -3
- package/node/images/index.js +38 -38
- package/node/images/prepare/index.js +38 -38
- package/node/images/transform/_utils/color-schema/index.js +3 -3
- package/node/images/transform/_utils/operation-names/index.js +1 -1
- package/node/images/transform/_utils/positions/index.js +3 -3
- package/node/images/transform/blur/index.js +3 -3
- package/node/images/transform/brighten/index.js +3 -3
- package/node/images/transform/compose/index.js +5 -5
- package/node/images/transform/extend/index.js +4 -4
- package/node/images/transform/extract/index.js +3 -3
- package/node/images/transform/flatten/index.js +4 -4
- package/node/images/transform/flip/index.js +3 -3
- package/node/images/transform/flop/index.js +3 -3
- package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +2 -2
- package/node/images/transform/frame/backgrounds/create-line-background/index.js +3 -3
- package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +2 -2
- package/node/images/transform/frame/backgrounds/create-tile-background/index.js +3 -3
- package/node/images/transform/frame/index.js +7 -7
- package/node/images/transform/hue-rotate/index.js +3 -3
- package/node/images/transform/index.js +36 -36
- package/node/images/transform/lighten/index.js +3 -3
- package/node/images/transform/lineate-levels/index.js +3 -3
- package/node/images/transform/modulate/index.js +3 -3
- package/node/images/transform/normalize/index.js +3 -3
- package/node/images/transform/operations/_utils/compose/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +5 -5
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +6 -6
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/index.js +10 -10
- package/node/images/transform/operations/_utils/positions/index.js +1 -1
- package/node/images/transform/operations/_utils/scale/index.js +1 -1
- package/node/images/transform/resize/index.js +4 -4
- package/node/images/transform/rotate/index.js +3 -3
- package/node/images/transform/saturate/index.js +3 -3
- package/node/images/transform/scale/index.js +4 -4
- package/node/process/index.js +1 -1
- package/node/process/on-exit/index.js +1 -1
- package/node/sftp/directory/copy-dir/index.d.ts +28 -0
- package/node/sftp/directory/copy-dir/index.js +9 -0
- package/node/sftp/directory/index.d.ts +5 -0
- package/node/sftp/directory/index.js +22 -0
- package/node/sftp/directory/list/index.d.ts +12 -0
- package/node/sftp/directory/list/index.js +9 -0
- package/node/sftp/directory/move-dir/index.d.ts +26 -0
- package/node/sftp/directory/move-dir/index.js +9 -0
- package/node/sftp/directory/remove-dir/index.d.ts +25 -0
- package/node/sftp/directory/remove-dir/index.js +9 -0
- package/node/sftp/file/copy/index.d.ts +28 -0
- package/node/sftp/file/copy/index.js +9 -0
- package/node/sftp/file/download/index.d.ts +2 -2
- package/node/sftp/file/download/index.js +2 -2
- package/node/sftp/file/exists/index.d.ts +21 -0
- package/node/sftp/file/exists/index.js +9 -0
- package/node/sftp/file/index.d.ts +6 -1
- package/node/sftp/file/index.js +25 -5
- package/node/sftp/file/move/index.d.ts +38 -0
- package/node/sftp/file/move/index.js +9 -0
- package/node/sftp/file/remove/index.d.ts +20 -0
- package/node/sftp/file/remove/index.js +9 -0
- package/node/sftp/file/stat/index.d.ts +18 -0
- package/node/sftp/file/stat/index.js +9 -0
- package/node/sftp/file/upload/index.d.ts +3 -3
- package/node/sftp/file/upload/index.js +2 -2
- package/node/sftp/index.d.ts +2 -1
- package/node/sftp/index.js +17 -4
- package/package.json +3 -2
@@ -1,50 +1,54 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
1
|
+
import "../../../../chunks/chunk-3G7KHSKB.js";
|
2
2
|
import {
|
3
3
|
update_metadata_exports
|
4
|
-
} from "../../../../chunks/chunk-
|
5
|
-
import {
|
6
|
-
copy_exports
|
7
|
-
} from "../../../../chunks/chunk-SZQHLC4K.js";
|
8
|
-
import {
|
9
|
-
exists_exports
|
10
|
-
} from "../../../../chunks/chunk-TXGV4KJD.js";
|
4
|
+
} from "../../../../chunks/chunk-HWVEI3RH.js";
|
11
5
|
import {
|
12
6
|
generate_signed_url_exports
|
13
|
-
} from "../../../../chunks/chunk-
|
14
|
-
import {
|
15
|
-
get_permissions_exports
|
16
|
-
} from "../../../../chunks/chunk-GXICX4F6.js";
|
7
|
+
} from "../../../../chunks/chunk-PAIUCLVK.js";
|
17
8
|
import {
|
18
9
|
get_metadata_exports
|
19
|
-
} from "../../../../chunks/chunk-
|
10
|
+
} from "../../../../chunks/chunk-42K3MQQ5.js";
|
11
|
+
import {
|
12
|
+
get_permissions_exports
|
13
|
+
} from "../../../../chunks/chunk-YKPA3MQL.js";
|
20
14
|
import {
|
21
15
|
revoke_signed_urls_exports
|
22
|
-
} from "../../../../chunks/chunk-
|
16
|
+
} from "../../../../chunks/chunk-G5RRNREY.js";
|
23
17
|
import {
|
24
18
|
move_exports
|
25
|
-
} from "../../../../chunks/chunk-
|
19
|
+
} from "../../../../chunks/chunk-6IYUA43Q.js";
|
26
20
|
import {
|
27
|
-
|
28
|
-
} from "../../../../chunks/chunk-
|
21
|
+
remove_exports
|
22
|
+
} from "../../../../chunks/chunk-7J7CYOXU.js";
|
29
23
|
import {
|
30
|
-
|
31
|
-
} from "../../../../chunks/chunk-
|
24
|
+
stat_exports
|
25
|
+
} from "../../../../chunks/chunk-W3RXHN5I.js";
|
32
26
|
import {
|
33
27
|
upload_exports
|
34
|
-
} from "../../../../chunks/chunk-
|
28
|
+
} from "../../../../chunks/chunk-FB3GNE2B.js";
|
29
|
+
import {
|
30
|
+
copy_exports
|
31
|
+
} from "../../../../chunks/chunk-CWZFRUBS.js";
|
32
|
+
import {
|
33
|
+
download_exports
|
34
|
+
} from "../../../../chunks/chunk-2JH4TCT2.js";
|
35
|
+
import {
|
36
|
+
exists_exports
|
37
|
+
} from "../../../../chunks/chunk-5VHFXWFM.js";
|
35
38
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
36
39
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
37
|
-
import "../../../../chunks/chunk-
|
40
|
+
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
38
41
|
export {
|
39
42
|
copy_exports as Copy,
|
40
43
|
download_exports as Download,
|
41
|
-
erase_exports as Erase,
|
42
44
|
exists_exports as Exists,
|
43
45
|
generate_signed_url_exports as GenerateSignedUrl,
|
44
46
|
get_metadata_exports as GetMetaData,
|
45
47
|
get_permissions_exports as GetPermissions,
|
46
48
|
move_exports as Move,
|
49
|
+
remove_exports as Remove,
|
47
50
|
revoke_signed_urls_exports as RevokeSignedUrls,
|
51
|
+
stat_exports as Stat,
|
48
52
|
update_metadata_exports as UpdateMetadata,
|
49
53
|
upload_exports as Upload
|
50
54
|
};
|
@@ -1,24 +1,36 @@
|
|
1
1
|
import { Bucket, FileOptions, CopyOptions, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
2
2
|
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
3
3
|
export type MoveOptions = {
|
4
|
+
/** Options applied when obtaining `bucket.file(...)` handles. */
|
4
5
|
fileOptions?: FileOptions;
|
6
|
+
/** Extra parameters forwarded to the internal `copy` call. */
|
5
7
|
copyOptions?: CopyOptions;
|
8
|
+
/** Extra parameters forwarded to the internal `delete` call. */
|
6
9
|
deleteOptions?: GCSDeleteFileOptions;
|
10
|
+
/**
|
11
|
+
* If **false** (default) and `targetPath` already exists, the move aborts
|
12
|
+
* with an error.
|
13
|
+
* @default false
|
14
|
+
*/
|
15
|
+
overwrite?: boolean;
|
7
16
|
};
|
8
17
|
/**
|
9
18
|
* Moves a file from one location to another within a Google Cloud Storage bucket.
|
10
19
|
*
|
11
|
-
*
|
12
|
-
*
|
20
|
+
* The function copies the object at `sourcePath` to `targetPath` and, on
|
21
|
+
* successful copy, deletes the original. If `overwrite` is **false** and the
|
22
|
+
* destination already exists, the operation aborts.
|
13
23
|
*
|
14
|
-
* @param {
|
15
|
-
* @param {string}
|
16
|
-
* @param {
|
17
|
-
* @param {MoveOptions} [options] - Optional configuration
|
18
|
-
* @
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
* @
|
24
|
+
* @param {Bucket} bucket - The Google Cloud Storage bucket.
|
25
|
+
* @param {string} sourcePath - The path of the source object.
|
26
|
+
* @param {string} targetPath - The destination path.
|
27
|
+
* @param {MoveOptions} [options] - Optional configuration.
|
28
|
+
* @param {FileOptions} [options.fileOptions] - Options for file handles.
|
29
|
+
* @param {CopyOptions} [options.copyOptions] - Extra options for `copy`.
|
30
|
+
* @param {GCSDeleteFileOptions} [options.deleteOptions] - Extra options for `delete`.
|
31
|
+
* @param {boolean} [options.overwrite=false] - Whether to overwrite an existing destination.
|
32
|
+
* @returns {Promise<Outcome.Either<true, string>>}
|
33
|
+
* - Success: `Outcome.makeSuccess(true)` if the move succeeds.
|
34
|
+
* - Failure: `Outcome.makeFailure(errStr)` if the move fails.
|
23
35
|
*/
|
24
|
-
export declare function move(
|
36
|
+
export declare function move(bucket: Bucket, sourcePath: string, targetPath: string, options?: MoveOptions): Promise<Outcome.Either<true, string>>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
move
|
3
|
-
} from "../../../../../chunks/chunk-
|
3
|
+
} from "../../../../../chunks/chunk-6IYUA43Q.js";
|
4
4
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
5
5
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
6
|
-
import "../../../../../chunks/chunk-
|
6
|
+
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
7
7
|
export {
|
8
8
|
move
|
9
9
|
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Bucket, FileOptions, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
3
|
+
export type RemoveOptions = {
|
4
|
+
fileOptions?: FileOptions;
|
5
|
+
deleteOptions?: GCSDeleteFileOptions;
|
6
|
+
ignoreMissing?: boolean;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Removes a file from a specified Google Cloud Storage bucket.
|
10
|
+
*
|
11
|
+
* This function deletes the object located at `targetPath` in the given bucket.
|
12
|
+
* The operation can be customized using optional `fileOptions` (to reference the object)
|
13
|
+
* and `deleteOptions` (to influence GCS deletion behaviour).
|
14
|
+
* If the `ignoreMissing` option is **true**, the function treats a missing object as a
|
15
|
+
* successful outcome instead of returning an error.
|
16
|
+
*
|
17
|
+
* @param {Bucket} bucket - The Google Cloud Storage bucket instance.
|
18
|
+
* @param {string} targetPath - The path of the file to remove in the bucket.
|
19
|
+
* @param {RemoveOptions} [options] - Optional settings for configuring the removal process.
|
20
|
+
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an Outcome.Either.
|
21
|
+
* - On success: `Outcome.makeSuccess(true)` indicating the removal was successful.
|
22
|
+
* - On failure: `Outcome.makeFailure(errStr)` with an error message if the removal fails.
|
23
|
+
*/
|
24
|
+
export declare function remove(bucket: Bucket, targetPath: string, options?: RemoveOptions): Promise<Outcome.Either<true, string>>;
|
@@ -1,26 +1,26 @@
|
|
1
1
|
import { Bucket } from '@google-cloud/storage';
|
2
2
|
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
3
3
|
import { DownloadOptions } from '../download';
|
4
|
-
import {
|
4
|
+
import { RemoveOptions } from '../remove';
|
5
5
|
import { UploadOptions } from '../upload';
|
6
6
|
export type RevokeSignedUrlsOptions = {
|
7
7
|
downloadOptions?: DownloadOptions;
|
8
|
-
|
8
|
+
removeOptions?: RemoveOptions;
|
9
9
|
uploadOptions?: UploadOptions;
|
10
10
|
};
|
11
11
|
/**
|
12
12
|
* Revokes the signed URLs for a file in Google Cloud Storage by downloading the file,
|
13
13
|
* deleting it, and re-uploading it to effectively invalidate any previously generated signed URLs.
|
14
14
|
*
|
15
|
-
* This function first attempts to download the file from the bucket, then
|
15
|
+
* This function first attempts to download the file from the bucket, then removes the file,
|
16
16
|
* and finally re-uploads the file to the same path. The re-upload effectively revokes any signed URLs that
|
17
17
|
* were generated for the file, as they are tied to the file's existence and content.
|
18
18
|
*
|
19
|
-
* @param {string} sourcePath - The path of the file for which the signed URLs are to be revoked.
|
20
19
|
* @param {Bucket} bucket - The Google Cloud Storage bucket containing the file.
|
20
|
+
* @param {string} targetPath - The path of the file for which the signed URLs are to be revoked.
|
21
21
|
* @param {RevokeSignedUrlsOptions} [options] - Optional configuration options for the file operations.
|
22
22
|
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an `Outcome.Either`.
|
23
23
|
* - On success: `Outcome.makeSuccess(true)` if the file has been successfully re-uploaded after deletion.
|
24
|
-
* - On failure: `Outcome.makeFailure(errStr)` with an error message if any of the steps (download,
|
24
|
+
* - On failure: `Outcome.makeFailure(errStr)` with an error message if any of the steps (download, remove, or upload) fail.
|
25
25
|
*/
|
26
|
-
export declare function revokeSignedUrls(
|
26
|
+
export declare function revokeSignedUrls(bucket: Bucket, targetPath: string, options?: RevokeSignedUrlsOptions): Promise<Outcome.Either<true, string>>;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
revokeSignedUrls
|
3
|
-
} from "../../../../../chunks/chunk-
|
4
|
-
import "../../../../../chunks/chunk-
|
5
|
-
import "../../../../../chunks/chunk-
|
6
|
-
import "../../../../../chunks/chunk-
|
3
|
+
} from "../../../../../chunks/chunk-G5RRNREY.js";
|
4
|
+
import "../../../../../chunks/chunk-7J7CYOXU.js";
|
5
|
+
import "../../../../../chunks/chunk-FB3GNE2B.js";
|
6
|
+
import "../../../../../chunks/chunk-2JH4TCT2.js";
|
7
7
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
8
8
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
9
|
-
import "../../../../../chunks/chunk-
|
9
|
+
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
10
10
|
export {
|
11
11
|
revokeSignedUrls
|
12
12
|
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Bucket, FileOptions, GetFileMetadataOptions, FileMetadata } from '@google-cloud/storage';
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
3
|
+
/** Provider‑agnostic view + strongly‑typed raw metadata */
|
4
|
+
export interface Stat {
|
5
|
+
size?: number;
|
6
|
+
modifiedAt?: Date;
|
7
|
+
checksum?: string;
|
8
|
+
contentType?: string;
|
9
|
+
metadata?: Record<string, string | number | boolean | null>;
|
10
|
+
storageClass?: string;
|
11
|
+
raw: FileMetadata;
|
12
|
+
}
|
13
|
+
export type StatOptions = {
|
14
|
+
fileOptions?: FileOptions;
|
15
|
+
getMetadataOptions?: GetFileMetadataOptions;
|
16
|
+
};
|
17
|
+
/**
|
18
|
+
* Retrieves metadata for a single GCS object.
|
19
|
+
*
|
20
|
+
* @param {Bucket} bucket – GCS bucket.
|
21
|
+
* @param {string} path – Object path.
|
22
|
+
* @param {StatOptions} [options] – Extra getMetadata options.
|
23
|
+
* @returns {Promise<Outcome.Either<Stat, string>>}
|
24
|
+
*/
|
25
|
+
export declare function stat(bucket: Bucket, path: string, options?: StatOptions): Promise<Outcome.Either<Stat, string>>;
|
@@ -7,12 +7,12 @@ export type UpdateFileMetadataOptions = {
|
|
7
7
|
/**
|
8
8
|
* Updates the metadata of a file in a Google Cloud Storage bucket.
|
9
9
|
*
|
10
|
-
* This function allows updating the metadata of a file located at `
|
10
|
+
* This function allows updating the metadata of a file located at `targetPath` in the given bucket.
|
11
11
|
* The metadata is updated according to the provided `metadata` object, which contains the new metadata key-value pairs.
|
12
12
|
* It can be customized using optional `fileOptions` and `metadataOptions` to control the update behavior.
|
13
13
|
*
|
14
|
-
* @param {string} sourcePath - The path of the file whose metadata is to be updated.
|
15
14
|
* @param {Bucket} bucket - The Google Cloud Storage bucket object containing the file whose metadata is being updated.
|
15
|
+
* @param {string} targetPath - The path of the file whose metadata is to be updated.
|
16
16
|
* @param {Record<string, any>} metadata - The metadata object containing key-value pairs to be set on the file.
|
17
17
|
* @param {UpdateFileMetadataOptions} [options] - Optional configuration options for the metadata update operation.
|
18
18
|
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an `Outcome.Either`.
|
@@ -21,4 +21,4 @@ export type UpdateFileMetadataOptions = {
|
|
21
21
|
*
|
22
22
|
* @throws {Error} Throws an error if the metadata update operation fails (e.g., file not found, insufficient permissions, etc.).
|
23
23
|
*/
|
24
|
-
export declare function updateFileMetadata(
|
24
|
+
export declare function updateFileMetadata(bucket: Bucket, targetPath: string, metadata: Record<string, any>, options?: UpdateFileMetadataOptions): Promise<Outcome.Either<true, string>>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
updateFileMetadata
|
3
|
-
} from "../../../../../chunks/chunk-
|
3
|
+
} from "../../../../../chunks/chunk-HWVEI3RH.js";
|
4
4
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
5
5
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
6
|
-
import "../../../../../chunks/chunk-
|
6
|
+
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
7
7
|
export {
|
8
8
|
updateFileMetadata
|
9
9
|
};
|
@@ -3,9 +3,8 @@ import { Bucket, FileOptions, SaveOptions } from '@google-cloud/storage';
|
|
3
3
|
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
4
4
|
export type UploadOptions = {
|
5
5
|
fileOptions?: FileOptions;
|
6
|
-
saveOptions?: SaveOptions
|
7
|
-
|
8
|
-
};
|
6
|
+
saveOptions?: SaveOptions;
|
7
|
+
overwrite?: boolean;
|
9
8
|
};
|
10
9
|
/**
|
11
10
|
* Uploads a file stream to a specified Google Cloud Storage bucket.
|
@@ -14,12 +13,12 @@ export type UploadOptions = {
|
|
14
13
|
* The upload can be customized using optional `fileOptions` and `saveOptions`.
|
15
14
|
* If the `overwrite` option is false and a file already exists at the target path, the upload is aborted.
|
16
15
|
*
|
17
|
-
* @param {Readable} fileStream - The file content to be uploaded.
|
18
|
-
* @param {string} targetPath - The target path where the file will be saved in the bucket.
|
19
16
|
* @param {Bucket} bucket - The Google Cloud Storage bucket object.
|
17
|
+
* @param {string} targetPath - The target path where the file will be saved in the bucket.
|
18
|
+
* @param {Readable} fileStream - The file content to be uploaded.
|
20
19
|
* @param {UploadOptions} [options] - Optional options to configure the upload process.
|
21
20
|
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an Outcome.Either.
|
22
21
|
* - On success: Outcome.makeSuccess(true) indicating the upload was successful.
|
23
22
|
* - On failure: Outcome.makeFailure(errStr) with an error message if the upload fails.
|
24
23
|
*/
|
25
|
-
export declare function upload(
|
24
|
+
export declare function upload(bucket: Bucket, targetPath: string, fileStream: Readable, options?: UploadOptions): Promise<Outcome.Either<true, string>>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
upload
|
3
|
-
} from "../../../../../chunks/chunk-
|
3
|
+
} from "../../../../../chunks/chunk-FB3GNE2B.js";
|
4
4
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
5
5
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
6
|
-
import "../../../../../chunks/chunk-
|
6
|
+
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
7
7
|
export {
|
8
8
|
upload
|
9
9
|
};
|
@@ -1,27 +1,35 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-DABLUUMY.js";
|
2
2
|
import {
|
3
3
|
bucket_exports
|
4
|
-
} from "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import
|
4
|
+
} from "../../../chunks/chunk-BD56ZAYF.js";
|
5
|
+
import "../../../chunks/chunk-ZNA7SWFK.js";
|
6
|
+
import {
|
7
|
+
directory_exports
|
8
|
+
} from "../../../chunks/chunk-WJ3XV35I.js";
|
7
9
|
import {
|
8
10
|
file_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-
|
11
|
+
} from "../../../chunks/chunk-3G7KHSKB.js";
|
12
|
+
import "../../../chunks/chunk-HWVEI3RH.js";
|
13
|
+
import "../../../chunks/chunk-PAIUCLVK.js";
|
14
|
+
import "../../../chunks/chunk-42K3MQQ5.js";
|
15
|
+
import "../../../chunks/chunk-YKPA3MQL.js";
|
16
|
+
import "../../../chunks/chunk-G5RRNREY.js";
|
17
|
+
import "../../../chunks/chunk-6IYUA43Q.js";
|
18
|
+
import "../../../chunks/chunk-BWYH445G.js";
|
19
|
+
import "../../../chunks/chunk-QLDN574K.js";
|
20
|
+
import "../../../chunks/chunk-7J7CYOXU.js";
|
21
|
+
import "../../../chunks/chunk-W3RXHN5I.js";
|
22
|
+
import "../../../chunks/chunk-FB3GNE2B.js";
|
23
|
+
import "../../../chunks/chunk-V3L55I2S.js";
|
24
|
+
import "../../../chunks/chunk-CWZFRUBS.js";
|
25
|
+
import "../../../chunks/chunk-2JH4TCT2.js";
|
26
|
+
import "../../../chunks/chunk-5VHFXWFM.js";
|
27
|
+
import "../../../chunks/chunk-37TRFYZT.js";
|
21
28
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
22
29
|
import "../../../chunks/chunk-FENXVJYO.js";
|
23
|
-
import "../../../chunks/chunk-
|
30
|
+
import "../../../chunks/chunk-WSFCRVEQ.js";
|
24
31
|
export {
|
25
32
|
bucket_exports as Bucket,
|
33
|
+
directory_exports as Directory,
|
26
34
|
file_exports as File
|
27
35
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Bucket as GCSBucket } from '@google-cloud/storage';
|
2
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
3
|
+
import { Client as FtpClient } from 'basic-ftp';
|
4
|
+
import SftpClient from 'ssh2-sftp-client';
|
5
|
+
export type S3ClientWithBucket = {
|
6
|
+
bucketName: string;
|
7
|
+
client: S3Client;
|
8
|
+
};
|
9
|
+
export type AnyClient = GCSBucket | S3ClientWithBucket | FtpClient | SftpClient;
|
10
|
+
export declare const isGcsBucket: (client: AnyClient) => client is GCSBucket;
|
11
|
+
export declare const isS3ClientWithBucket: (client: AnyClient) => client is S3ClientWithBucket;
|
12
|
+
export declare const isFtpClient: (client: AnyClient) => client is FtpClient;
|
13
|
+
export declare const isSftpClient: (client: AnyClient) => client is SftpClient;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import {
|
2
|
+
isFtpClient,
|
3
|
+
isGcsBucket,
|
4
|
+
isS3ClientWithBucket,
|
5
|
+
isSftpClient
|
6
|
+
} from "../../../chunks/chunk-V3GX7SIJ.js";
|
7
|
+
import "../../../chunks/chunk-WSFCRVEQ.js";
|
8
|
+
export {
|
9
|
+
isFtpClient,
|
10
|
+
isGcsBucket,
|
11
|
+
isS3ClientWithBucket,
|
12
|
+
isSftpClient
|
13
|
+
};
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import * as
|
2
|
-
import * as Credentials from './credentials';
|
3
|
-
import * as Endpoint from './endpoint';
|
1
|
+
import * as Clients from './clients';
|
4
2
|
import * as Operations from './operations';
|
5
|
-
export {
|
3
|
+
export { Clients, Operations };
|
@@ -1,32 +1,68 @@
|
|
1
|
-
import {
|
2
|
-
credentials_exports
|
3
|
-
} from "../../chunks/chunk-E7J4E6OB.js";
|
4
|
-
import {
|
5
|
-
client_exports
|
6
|
-
} from "../../chunks/chunk-MTGZYBK2.js";
|
7
1
|
import {
|
8
2
|
operations_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-
|
3
|
+
} from "../../chunks/chunk-IIMP6YT7.js";
|
4
|
+
import "../../chunks/chunk-646R6BQZ.js";
|
5
|
+
import "../../chunks/chunk-6IYUA43Q.js";
|
6
|
+
import "../../chunks/chunk-QWZ4ZNFA.js";
|
7
|
+
import "../../chunks/chunk-FE4DECBU.js";
|
8
|
+
import "../../chunks/chunk-HRNDUTZE.js";
|
9
|
+
import "../../chunks/chunk-FS6LRTDK.js";
|
10
|
+
import "../../chunks/chunk-BWYH445G.js";
|
11
|
+
import "../../chunks/chunk-ON6LC3HE.js";
|
12
|
+
import "../../chunks/chunk-RWO53U4X.js";
|
13
|
+
import "../../chunks/chunk-BE7OXZRK.js";
|
14
|
+
import "../../chunks/chunk-CA3UPHYO.js";
|
15
|
+
import "../../chunks/chunk-QLDN574K.js";
|
16
|
+
import "../../chunks/chunk-4XSDRT23.js";
|
17
|
+
import "../../chunks/chunk-5ZJ3KJPK.js";
|
18
|
+
import "../../chunks/chunk-BSUQNHAM.js";
|
19
|
+
import "../../chunks/chunk-H4LW6FP3.js";
|
20
|
+
import "../../chunks/chunk-7J7CYOXU.js";
|
21
|
+
import "../../chunks/chunk-3TKBCG7Y.js";
|
22
|
+
import "../../chunks/chunk-ANPXBD2G.js";
|
23
|
+
import "../../chunks/chunk-KJAEVOIW.js";
|
24
|
+
import "../../chunks/chunk-UK4HNSEJ.js";
|
25
|
+
import "../../chunks/chunk-W3RXHN5I.js";
|
26
|
+
import "../../chunks/chunk-VROZGPC5.js";
|
27
|
+
import "../../chunks/chunk-TGVYEQIA.js";
|
28
|
+
import "../../chunks/chunk-CNYSX2L2.js";
|
29
|
+
import "../../chunks/chunk-NOLQR5RW.js";
|
30
|
+
import "../../chunks/chunk-FB3GNE2B.js";
|
31
|
+
import "../../chunks/chunk-FD5WR2A5.js";
|
32
|
+
import "../../chunks/chunk-QDVDHFMZ.js";
|
33
|
+
import "../../chunks/chunk-CVDCTI7F.js";
|
34
|
+
import "../../chunks/chunk-6NLNUGBI.js";
|
35
|
+
import "../../chunks/chunk-V3L55I2S.js";
|
36
|
+
import "../../chunks/chunk-4XBUJAQU.js";
|
37
|
+
import "../../chunks/chunk-WAHPAZQS.js";
|
38
|
+
import "../../chunks/chunk-N2T672IG.js";
|
39
|
+
import "../../chunks/chunk-OA7Y2A5T.js";
|
40
|
+
import "../../chunks/chunk-CWZFRUBS.js";
|
41
|
+
import "../../chunks/chunk-C6QTHDDM.js";
|
42
|
+
import "../../chunks/chunk-QH64MYGA.js";
|
43
|
+
import "../../chunks/chunk-NMYVJJXV.js";
|
44
|
+
import "../../chunks/chunk-EOTOFHUR.js";
|
45
|
+
import "../../chunks/chunk-2JH4TCT2.js";
|
46
|
+
import "../../chunks/chunk-IV75M3KE.js";
|
47
|
+
import "../../chunks/chunk-HWEGQVBQ.js";
|
48
|
+
import "../../chunks/chunk-FF5NURFO.js";
|
49
|
+
import "../../chunks/chunk-24ZUWYIR.js";
|
50
|
+
import "../../chunks/chunk-5VHFXWFM.js";
|
51
|
+
import "../../chunks/chunk-ZEZCYPLQ.js";
|
52
|
+
import "../../chunks/chunk-QVPS2BCJ.js";
|
53
|
+
import "../../chunks/chunk-ZJTWDCNZ.js";
|
54
|
+
import "../../chunks/chunk-DPQRXSZH.js";
|
55
|
+
import "../../chunks/chunk-37TRFYZT.js";
|
56
|
+
import "../../chunks/chunk-ZSUG52DO.js";
|
57
|
+
import "../../chunks/chunk-UK2F7CWI.js";
|
58
|
+
import "../../chunks/chunk-3CLGBOHN.js";
|
20
59
|
import {
|
21
|
-
|
22
|
-
} from "../../chunks/chunk-
|
60
|
+
clients_exports
|
61
|
+
} from "../../chunks/chunk-V3GX7SIJ.js";
|
23
62
|
import "../../chunks/chunk-JMU5PDBD.js";
|
24
|
-
import "../../chunks/chunk-HQLRJ7XW.js";
|
25
63
|
import "../../chunks/chunk-FENXVJYO.js";
|
26
|
-
import "../../chunks/chunk-
|
64
|
+
import "../../chunks/chunk-WSFCRVEQ.js";
|
27
65
|
export {
|
28
|
-
|
29
|
-
credentials_exports as Credentials,
|
30
|
-
endpoint_exports as Endpoint,
|
66
|
+
clients_exports as Clients,
|
31
67
|
operations_exports as Operations
|
32
68
|
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
2
|
+
import { S3ClientWithBucket } from '../../clients';
|
3
|
+
import { Bucket as GCSBucket } from '@google-cloud/storage';
|
4
|
+
import { Client as FtpClient } from 'basic-ftp';
|
5
|
+
import SftpClient from 'ssh2-sftp-client';
|
6
|
+
import { CopyDirOptions as FtpsCopyDirOptions } from '../../../ftps/directory/copy-dir';
|
7
|
+
import { CopyDirOptions as SftpCopyDirOptions } from '../../../sftp/directory/copy-dir';
|
8
|
+
import { CopyDirOptions as S3CopyDirOptions } from '../../../@aws-s3/storage/directory/copy-dir';
|
9
|
+
import { CopyDirOptions as GcsCopyDirOptions } from '../../../@google-cloud/storage/directory/copy-dir';
|
10
|
+
type Returned = Outcome.Either<true, string>;
|
11
|
+
export declare function copyDir(client: GCSBucket, sourcePath: string, targetPath: string, options?: GcsCopyDirOptions): Promise<Returned>;
|
12
|
+
export declare function copyDir(client: S3ClientWithBucket, sourcePath: string, targetPath: string, options?: S3CopyDirOptions): Promise<Returned>;
|
13
|
+
export declare function copyDir(client: FtpClient, sourcePath: string, targetPath: string, options?: FtpsCopyDirOptions): Promise<Returned>;
|
14
|
+
export declare function copyDir(client: SftpClient, sourcePath: string, targetPath: string, options?: SftpCopyDirOptions): Promise<Returned>;
|
15
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import {
|
2
|
+
copyDir
|
3
|
+
} from "../../../../chunks/chunk-6NLNUGBI.js";
|
4
|
+
import "../../../../chunks/chunk-V3L55I2S.js";
|
5
|
+
import "../../../../chunks/chunk-4XBUJAQU.js";
|
6
|
+
import "../../../../chunks/chunk-WAHPAZQS.js";
|
7
|
+
import "../../../../chunks/chunk-N2T672IG.js";
|
8
|
+
import "../../../../chunks/chunk-V3GX7SIJ.js";
|
9
|
+
import "../../../../chunks/chunk-JMU5PDBD.js";
|
10
|
+
import "../../../../chunks/chunk-FENXVJYO.js";
|
11
|
+
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
12
|
+
export {
|
13
|
+
copyDir
|
14
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
2
|
+
import { S3ClientWithBucket } from '../../clients';
|
3
|
+
import { Bucket as GCSBucket } from '@google-cloud/storage';
|
4
|
+
import { Client as FtpClient } from 'basic-ftp';
|
5
|
+
import SftpClient from 'ssh2-sftp-client';
|
6
|
+
import { CopyOptions as FtpsCopyOptions } from '../../../ftps/file/copy';
|
7
|
+
import { CopyOptions as SftpCopyOptions } from '../../../sftp/file/copy';
|
8
|
+
import { CopyOptions as S3CopyOptions } from '../../../@aws-s3/storage/file/copy';
|
9
|
+
import { CopyOptions as GcsCopyOptions } from '../../../@google-cloud/storage/file/copy';
|
10
|
+
type Returned = Outcome.Either<true, string>;
|
11
|
+
export declare function copyFile(client: GCSBucket, sourcePath: string, targetPath: string, options?: GcsCopyOptions): Promise<Returned>;
|
12
|
+
export declare function copyFile(client: S3ClientWithBucket, sourcePath: string, targetPath: string, options?: S3CopyOptions): Promise<Returned>;
|
13
|
+
export declare function copyFile(client: FtpClient, sourcePath: string, targetPath: string, options?: FtpsCopyOptions): Promise<Returned>;
|
14
|
+
export declare function copyFile(client: SftpClient, sourcePath: string, targetPath: string, options?: SftpCopyOptions): Promise<Returned>;
|
15
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import {
|
2
|
+
copyFile
|
3
|
+
} from "../../../../chunks/chunk-OA7Y2A5T.js";
|
4
|
+
import "../../../../chunks/chunk-CWZFRUBS.js";
|
5
|
+
import "../../../../chunks/chunk-C6QTHDDM.js";
|
6
|
+
import "../../../../chunks/chunk-QH64MYGA.js";
|
7
|
+
import "../../../../chunks/chunk-NMYVJJXV.js";
|
8
|
+
import "../../../../chunks/chunk-V3GX7SIJ.js";
|
9
|
+
import "../../../../chunks/chunk-JMU5PDBD.js";
|
10
|
+
import "../../../../chunks/chunk-FENXVJYO.js";
|
11
|
+
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
12
|
+
export {
|
13
|
+
copyFile
|
14
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Readable } from 'node:stream';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
import { S3ClientWithBucket } from '../../clients';
|
4
|
+
import { Bucket as GCSBucket } from '@google-cloud/storage';
|
5
|
+
import { Client as FtpClient } from 'basic-ftp';
|
6
|
+
import SftpClient from 'ssh2-sftp-client';
|
7
|
+
import { DownloadOptions as FtpDownloadOptions } from '../../../ftps/file/download';
|
8
|
+
import { DownloadOptions as SftpDownloadOptions } from '../../../sftp/file/download';
|
9
|
+
import { DownloadOptions as S3DownloadOptions } from '../../../@aws-s3/storage/file/download';
|
10
|
+
import { DownloadOptions as GcsDownloadOptions } from '../../../@google-cloud/storage/file/download';
|
11
|
+
type Returned = Outcome.Either<Readable, string>;
|
12
|
+
export declare function downloadFile(client: GCSBucket, path: string, options?: GcsDownloadOptions): Promise<Returned>;
|
13
|
+
export declare function downloadFile(client: S3ClientWithBucket, path: string, options?: S3DownloadOptions): Promise<Returned>;
|
14
|
+
export declare function downloadFile(client: FtpClient, path: string, options?: FtpDownloadOptions): Promise<Returned>;
|
15
|
+
export declare function downloadFile(client: SftpClient, path: string, options?: SftpDownloadOptions): Promise<Returned>;
|
16
|
+
export {};
|