@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
package/node/process/index.js
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
import Client, { TransferOptions } from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type CopyDirOptions = TransferOptions & {
|
4
|
+
/**
|
5
|
+
* If `false` and a destination file already exists, copying aborts.
|
6
|
+
* @default false
|
7
|
+
*/
|
8
|
+
overwrite?: boolean;
|
9
|
+
/**
|
10
|
+
* When `true`, creates missing directories along the path.
|
11
|
+
* Equivalent to `mkdir -p` using `sftp.mkdir(..., true)`.
|
12
|
+
* @default true
|
13
|
+
*/
|
14
|
+
ensureDir?: boolean;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Recursively copies every file under `sourceDir` to the same relative path
|
18
|
+
* beneath `targetDir` on an SFTP server, streaming data to minimize memory usage.
|
19
|
+
*
|
20
|
+
* @param {Client} sftp - The SFTP client instance.
|
21
|
+
* @param {string} sourceDir - The source directory path to copy from.
|
22
|
+
* @param {string} targetDir - The target directory path to copy to.
|
23
|
+
* @param {CopyDirOptions} [options] - Optional parameters for the operation.
|
24
|
+
* @returns {Promise<Outcome.Either<true, string>>}
|
25
|
+
* - On success: `Outcome.makeSuccess(true)` indicating the copy was successful.
|
26
|
+
* - On failure: `Outcome.makeFailure(errStr)` with an error message if the copy fails.
|
27
|
+
*/
|
28
|
+
export declare function copyDir(sftp: Client, sourceDir: string, targetDir: string, options?: CopyDirOptions): Promise<Outcome.Either<true, string>>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import "../../../chunks/chunk-X33GT7VY.js";
|
2
|
+
import {
|
3
|
+
move_dir_exports
|
4
|
+
} from "../../../chunks/chunk-RWO53U4X.js";
|
5
|
+
import {
|
6
|
+
remove_dir_exports
|
7
|
+
} from "../../../chunks/chunk-5ZJ3KJPK.js";
|
8
|
+
import {
|
9
|
+
copy_dir_exports
|
10
|
+
} from "../../../chunks/chunk-WAHPAZQS.js";
|
11
|
+
import {
|
12
|
+
list_exports
|
13
|
+
} from "../../../chunks/chunk-UK2F7CWI.js";
|
14
|
+
import "../../../chunks/chunk-JMU5PDBD.js";
|
15
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
16
|
+
import "../../../chunks/chunk-WSFCRVEQ.js";
|
17
|
+
export {
|
18
|
+
copy_dir_exports as CopyDir,
|
19
|
+
list_exports as List,
|
20
|
+
move_dir_exports as MoveDir,
|
21
|
+
remove_dir_exports as RemoveDir
|
22
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import Client from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
/**
|
4
|
+
* Lists all direct children files under a given directory on an SFTP server.
|
5
|
+
*
|
6
|
+
* This function returns only the immediate files (not recursive) under the specified directory.
|
7
|
+
*
|
8
|
+
* @param {Client} sftp - The ssh2-sftp-client instance used to interact with the SFTP server.
|
9
|
+
* @param {string} directoryPath - The directory path to list files under.
|
10
|
+
* @returns {Promise<Outcome.Either<string[], string>>} Returns either a success with an array of file paths, or a failure with an error message.
|
11
|
+
*/
|
12
|
+
export declare function list(sftp: Client, directoryPath: string): Promise<Outcome.Either<string[], string>>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import Client from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type MoveDirOptions = {
|
4
|
+
/** If false and `targetDir` exists, the operation is aborted. Defaults to false. */
|
5
|
+
overwrite?: boolean;
|
6
|
+
/** If true, ensures the parent directory of `targetDir` exists before moving. Defaults to true. */
|
7
|
+
ensureDir?: boolean;
|
8
|
+
};
|
9
|
+
/**
|
10
|
+
* Renames (moves) a directory on an SFTP server using `rename`, which moves
|
11
|
+
* the entire tree in one operation when supported by the server.
|
12
|
+
*
|
13
|
+
* If `ensureDir` is true (default), the parent directory of `targetDir` is
|
14
|
+
* created if it does not exist.
|
15
|
+
*
|
16
|
+
* @param {Client} sftp - The SFTP client instance.
|
17
|
+
* @param {string} sourceDir - The source directory path to move from.
|
18
|
+
* @param {string} targetDir - The target directory path to move to.
|
19
|
+
* @param {MoveDirOptions} [options] - Optional parameters for the operation.
|
20
|
+
* @param {boolean} [options.overwrite=false] - If false and `targetDir` exists, abort.
|
21
|
+
* @param {boolean} [options.ensureDir=true] - Whether to create the parent directory of `targetDir`.
|
22
|
+
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an `Outcome.Either`:
|
23
|
+
* - On success: `Outcome.makeSuccess(true)` indicating the move was successful.
|
24
|
+
* - On failure: `Outcome.makeFailure(errStr)` with an error message if the move fails.
|
25
|
+
*/
|
26
|
+
export declare function moveDir(sftp: Client, sourceDir: string, targetDir: string, options?: MoveDirOptions): Promise<Outcome.Either<true, string>>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import Client from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type RemoveDirOptions = {
|
4
|
+
/**
|
5
|
+
* If **true** (default) the function ignores the case where `directoryPath`
|
6
|
+
* does not exist and simply returns success.
|
7
|
+
* If **false** and the path is missing, the function returns a failure.
|
8
|
+
* @default true
|
9
|
+
*/
|
10
|
+
ignoreMissing?: boolean;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* Recursively deletes a directory (and all contents) on an SFTP server.
|
14
|
+
*
|
15
|
+
* @param {Client} sftp - The SFTP client instance.
|
16
|
+
* @param {string} directoryPath - The path of the directory to delete.
|
17
|
+
* @param {RemoveDirOptions} [options] - Optional configuration.
|
18
|
+
* @param {boolean} [options.ignoreMissing=true] - Whether to ignore a missing directory.
|
19
|
+
* @returns {Promise<Outcome.Either<true, string>>}
|
20
|
+
* - On success: `Outcome.makeSuccess(true)` – deletion succeeded, or the
|
21
|
+
* directory was absent and `ignoreMissing` is true.
|
22
|
+
* - On failure: `Outcome.makeFailure(errStr)` if deletion fails, or directory
|
23
|
+
* absent and `ignoreMissing` is false.
|
24
|
+
*/
|
25
|
+
export declare function removeDir(sftp: Client, directoryPath: string, options?: RemoveDirOptions): Promise<Outcome.Either<true, string>>;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import Client, { TransferOptions } from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type CopyOptions = TransferOptions & {
|
4
|
+
/**
|
5
|
+
* If `false` and the target already exists, the operation is aborted.
|
6
|
+
* @default false
|
7
|
+
*/
|
8
|
+
overwrite?: boolean;
|
9
|
+
/**
|
10
|
+
* If `true`, ensures that the target directory hierarchy exists before the
|
11
|
+
* upload starts (creates missing folders with `mkdir -p` behaviour).
|
12
|
+
* @default true
|
13
|
+
*/
|
14
|
+
ensureDir?: boolean;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Copies a file from one path to another on the same SFTP server using streams
|
18
|
+
* (avoids loading the entire file into memory).
|
19
|
+
*
|
20
|
+
* @param {Client} sftp - The ssh2‑sftp‑client instance.
|
21
|
+
* @param {string} sourcePath - The path of the source file.
|
22
|
+
* @param {string} targetPath - The destination path.
|
23
|
+
* @param {CopyOptions} [options] - Optional copy configuration.
|
24
|
+
* @returns {Promise<Outcome.Either<true, string>>}
|
25
|
+
* - On success: `Outcome.makeSuccess(true)`.
|
26
|
+
* - On failure: `Outcome.makeFailure(errStr)`.
|
27
|
+
*/
|
28
|
+
export declare function copy(sftp: Client, sourcePath: string, targetPath: string, options?: CopyOptions): Promise<Outcome.Either<true, string>>;
|
@@ -10,11 +10,11 @@ export type DownloadOptions = ReadStreamOptions;
|
|
10
10
|
* returning the file content as a Readable stream. The download process can be customized
|
11
11
|
* using optional download options.
|
12
12
|
*
|
13
|
-
* @param {string} sourcePath - The path of the file to be downloaded from the SFTP server.
|
14
13
|
* @param {Client} sftp - The ssh2-sftp-client instance used to interact with the SFTP server.
|
14
|
+
* @param {string} sourcePath - The path of the file to be downloaded from the SFTP server.
|
15
15
|
* @param {DownloadOptions} [options] - Optional settings for configuring the download process.
|
16
16
|
* @returns {Promise<Outcome.Either<Readable, string>>} A promise that resolves to an Outcome.Either.
|
17
17
|
* - On success: Outcome.makeSuccess(stream) containing the downloaded file's content as a Readable stream.
|
18
18
|
* - On failure: Outcome.makeFailure(errStr) with an error message if the download fails.
|
19
19
|
*/
|
20
|
-
export declare function download(
|
20
|
+
export declare function download(sftp: Client, sourcePath: string, options?: DownloadOptions): Promise<Outcome.Either<Readable, string>>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
download
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-HWEGQVBQ.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
|
download
|
9
9
|
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import Client from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
/**
|
4
|
+
* Checks if a *file* (not a directory) exists on a specified SFTP server.
|
5
|
+
*
|
6
|
+
* `sftp.exists(path)` resolves to:
|
7
|
+
* • `'d'` – the path exists and is a **directory**
|
8
|
+
* • `'-'` – the path exists and is a **regular file**
|
9
|
+
* • `'l'` – the path exists and is a **symlink**
|
10
|
+
* • `false` – the path does **not** exist
|
11
|
+
*
|
12
|
+
* For the purpose of this util we treat a regular file (`'-'`) **or** a
|
13
|
+
* symlink (`'l'`) as a “file”. A directory (`'d'`) returns `false`.
|
14
|
+
*
|
15
|
+
* @param {Client} sftp - The ssh2‑sftp‑client instance.
|
16
|
+
* @param {string} sourcePath - The path to check.
|
17
|
+
* @returns {Promise<Outcome.Either<boolean, string>>}
|
18
|
+
* - Success: `Outcome.makeSuccess(true | false)` indicating file existence.
|
19
|
+
* - Failure: `Outcome.makeFailure(errStr)` if an error occurs.
|
20
|
+
*/
|
21
|
+
export declare function exists(sftp: Client, sourcePath: string): Promise<Outcome.Either<boolean, string>>;
|
@@ -1,3 +1,8 @@
|
|
1
|
+
import * as Copy from './copy';
|
1
2
|
import * as Download from './download';
|
3
|
+
import * as Exists from './exists';
|
4
|
+
import * as Move from './move';
|
5
|
+
import * as Remove from './remove';
|
6
|
+
import * as Stat from './stat';
|
2
7
|
import * as Upload from './upload';
|
3
|
-
export { Download, Upload };
|
8
|
+
export { Copy, Download, Exists, Move, Remove, Stat, Upload };
|
package/node/sftp/file/index.js
CHANGED
@@ -1,14 +1,34 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-INGSSBWK.js";
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../../chunks/chunk-
|
3
|
+
move_exports
|
4
|
+
} from "../../../chunks/chunk-FE4DECBU.js";
|
5
|
+
import {
|
6
|
+
remove_exports
|
7
|
+
} from "../../../chunks/chunk-ANPXBD2G.js";
|
8
|
+
import {
|
9
|
+
stat_exports
|
10
|
+
} from "../../../chunks/chunk-TGVYEQIA.js";
|
5
11
|
import {
|
6
12
|
upload_exports
|
7
|
-
} from "../../../chunks/chunk-
|
13
|
+
} from "../../../chunks/chunk-QDVDHFMZ.js";
|
14
|
+
import {
|
15
|
+
copy_exports
|
16
|
+
} from "../../../chunks/chunk-QH64MYGA.js";
|
17
|
+
import {
|
18
|
+
download_exports
|
19
|
+
} from "../../../chunks/chunk-HWEGQVBQ.js";
|
20
|
+
import {
|
21
|
+
exists_exports
|
22
|
+
} from "../../../chunks/chunk-QVPS2BCJ.js";
|
8
23
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
9
24
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
-
import "../../../chunks/chunk-
|
25
|
+
import "../../../chunks/chunk-WSFCRVEQ.js";
|
11
26
|
export {
|
27
|
+
copy_exports as Copy,
|
12
28
|
download_exports as Download,
|
29
|
+
exists_exports as Exists,
|
30
|
+
move_exports as Move,
|
31
|
+
remove_exports as Remove,
|
32
|
+
stat_exports as Stat,
|
13
33
|
upload_exports as Upload
|
14
34
|
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import Client from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type MoveOptions = {
|
4
|
+
/**
|
5
|
+
* When `true`, ensures that the parent directory of `targetPath` exists
|
6
|
+
* before attempting the rename (`mkdir` with the recursive flag).
|
7
|
+
* @default true
|
8
|
+
*/
|
9
|
+
ensureDir?: boolean;
|
10
|
+
/**
|
11
|
+
* When `false` (default) and `targetPath` already exists, the move is aborted
|
12
|
+
* and a failure is returned.
|
13
|
+
* @default false
|
14
|
+
*/
|
15
|
+
overwrite?: boolean;
|
16
|
+
};
|
17
|
+
/**
|
18
|
+
* Moves (renames) a file on an SFTP server.
|
19
|
+
*
|
20
|
+
* The function uses `rename`, which atomically moves the file from
|
21
|
+
* `sourcePath` to `targetPath`. It supports two safety features:
|
22
|
+
*
|
23
|
+
* 1. **ensureDir** – If enabled, the parent directory of `targetPath`
|
24
|
+
* is created with `mkdir -p` semantics before the rename.
|
25
|
+
* 2. **overwrite** – If disabled (default) the function first checks whether
|
26
|
+
* something already exists at `targetPath`; if so, it aborts.
|
27
|
+
*
|
28
|
+
* @param {Client} sftp - The ssh2‑sftp‑client instance.
|
29
|
+
* @param {string} sourcePath - The full path of the source file.
|
30
|
+
* @param {string} targetPath - The full destination path.
|
31
|
+
* @param {MoveOptions} [options] - Optional move configuration.
|
32
|
+
* @param {boolean} [options.ensureDir=true] - Whether to create missing parent directories.
|
33
|
+
* @param {boolean} [options.overwrite=false] - Whether to overwrite an existing destination.
|
34
|
+
* @returns {Promise<Outcome.Either<true, string>>}
|
35
|
+
* - On success: `Outcome.makeSuccess(true)`.
|
36
|
+
* - On failure: `Outcome.makeFailure(errStr)`.
|
37
|
+
*/
|
38
|
+
export declare function move(sftp: Client, sourcePath: string, targetPath: string, options?: MoveOptions): Promise<Outcome.Either<true, string>>;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import SftpClient from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export type RemoveOptions = {
|
4
|
+
ignoreMissing?: boolean;
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* Deletes a file from a specified SFTP server.
|
8
|
+
*
|
9
|
+
* This function removes the file located at the given path on the SFTP server.
|
10
|
+
* The deletion process can be customized using optional delete options.
|
11
|
+
* If the `ignoreMissing` option is true, it does not treat a missing file as an error.
|
12
|
+
*
|
13
|
+
* @param {SftpClient} sftp - The ssh2-sftp-client instance used to interact with the SFTP server.
|
14
|
+
* @param {string} targetPath - The path of the file to delete on the SFTP server.
|
15
|
+
* @param {RemoveOptions} [options] - Optional settings for configuring the deletion process.
|
16
|
+
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an Outcome.Either.
|
17
|
+
* - On success: Outcome.makeSuccess(true) indicating the deletion was successful.
|
18
|
+
* - On failure: Outcome.makeFailure(errStr) with an error message if the deletion fails.
|
19
|
+
*/
|
20
|
+
export declare function remove(sftp: SftpClient, targetPath: string, options?: RemoveOptions): Promise<Outcome.Either<true, string>>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import SftpClient from 'ssh2-sftp-client';
|
2
|
+
import { Outcome } from '../../../../agnostic/misc/outcome';
|
3
|
+
export interface Stat {
|
4
|
+
size?: number;
|
5
|
+
modifiedAt?: Date;
|
6
|
+
mode?: number;
|
7
|
+
uid?: number;
|
8
|
+
gid?: number;
|
9
|
+
raw: SftpClient.FileStats;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* Retrieves metadata for a file on an SFTP server.
|
13
|
+
*
|
14
|
+
* @param {SftpClient} sftp – ssh2-sftp-client.
|
15
|
+
* @param {string} path – Remote file path.
|
16
|
+
* @returns {Promise<Outcome.Either<Stat, string>>}
|
17
|
+
*/
|
18
|
+
export declare function stat(sftp: SftpClient, path: string): Promise<Outcome.Either<Stat, string>>;
|
@@ -13,12 +13,12 @@ export type UploadOptions = TransferOptions & {
|
|
13
13
|
* If the `ensureDir` option is true, it ensures that the target directory exists before uploading.
|
14
14
|
* If the `overwrite` option is false and a file already exists at the target path, the upload is aborted.
|
15
15
|
*
|
16
|
-
* @param {Readable} fileStream - The file content to be uploaded.
|
17
|
-
* @param {string} targetPath - The target path where the file will be stored on the SFTP server.
|
18
16
|
* @param {Client} sftp - The ssh2-sftp-client instance used to interact with the SFTP server.
|
17
|
+
* @param {string} targetPath - The target path where the file will be stored on the SFTP server.
|
18
|
+
* @param {Readable} fileStream - The file content to be uploaded.
|
19
19
|
* @param {UploadOptions} [options] - Optional settings for configuring the upload process.
|
20
20
|
* @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an Outcome.Either.
|
21
21
|
* - On success: Outcome.makeSuccess(true) indicating the upload was successful.
|
22
22
|
* - On failure: Outcome.makeFailure(errStr) with an error message if the upload fails.
|
23
23
|
*/
|
24
|
-
export declare function upload(
|
24
|
+
export declare function upload(sftp: Client, 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-QDVDHFMZ.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
|
};
|
package/node/sftp/index.d.ts
CHANGED
package/node/sftp/index.js
CHANGED
@@ -1,11 +1,24 @@
|
|
1
|
+
import {
|
2
|
+
directory_exports
|
3
|
+
} from "../../chunks/chunk-X33GT7VY.js";
|
1
4
|
import {
|
2
5
|
file_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-
|
6
|
+
} from "../../chunks/chunk-INGSSBWK.js";
|
7
|
+
import "../../chunks/chunk-FE4DECBU.js";
|
8
|
+
import "../../chunks/chunk-RWO53U4X.js";
|
9
|
+
import "../../chunks/chunk-5ZJ3KJPK.js";
|
10
|
+
import "../../chunks/chunk-ANPXBD2G.js";
|
11
|
+
import "../../chunks/chunk-TGVYEQIA.js";
|
12
|
+
import "../../chunks/chunk-QDVDHFMZ.js";
|
13
|
+
import "../../chunks/chunk-WAHPAZQS.js";
|
14
|
+
import "../../chunks/chunk-QH64MYGA.js";
|
15
|
+
import "../../chunks/chunk-HWEGQVBQ.js";
|
16
|
+
import "../../chunks/chunk-QVPS2BCJ.js";
|
17
|
+
import "../../chunks/chunk-UK2F7CWI.js";
|
6
18
|
import "../../chunks/chunk-JMU5PDBD.js";
|
7
19
|
import "../../chunks/chunk-FENXVJYO.js";
|
8
|
-
import "../../chunks/chunk-
|
20
|
+
import "../../chunks/chunk-WSFCRVEQ.js";
|
9
21
|
export {
|
22
|
+
directory_exports as Directory,
|
10
23
|
file_exports as File
|
11
24
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@design-edito/tools",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.73",
|
4
4
|
"description": "",
|
5
5
|
"author": "Maxime Fabas",
|
6
6
|
"license": "ISC",
|
@@ -12,9 +12,10 @@
|
|
12
12
|
"main": "index.js",
|
13
13
|
"module": "index.js",
|
14
14
|
"peerDependencies": {
|
15
|
+
"@aws-sdk/client-s3": "^3.842.0",
|
16
|
+
"@aws-sdk/lib-storage": "^3.842.0",
|
15
17
|
"@google-cloud/storage": "^7.16.0",
|
16
18
|
"archiver": "^7.0.1",
|
17
|
-
"aws-sdk": "^2.1692.0",
|
18
19
|
"basic-ftp": "^5.0.5",
|
19
20
|
"chalk": "^5.4.1",
|
20
21
|
"express": "^5.1.0",
|