@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
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
move_dir_exports
|
3
|
+
} from "./chunk-BE7OXZRK.js";
|
4
|
+
import {
|
5
|
+
remove_dir_exports
|
6
|
+
} from "./chunk-BSUQNHAM.js";
|
7
|
+
import {
|
8
|
+
copy_dir_exports
|
9
|
+
} from "./chunk-N2T672IG.js";
|
10
|
+
import {
|
11
|
+
list_exports
|
12
|
+
} from "./chunk-3CLGBOHN.js";
|
13
|
+
import {
|
14
|
+
__export
|
15
|
+
} from "./chunk-WSFCRVEQ.js";
|
16
|
+
|
17
|
+
// src/node/ftps/directory/index.ts
|
18
|
+
var directory_exports = {};
|
19
|
+
__export(directory_exports, {
|
20
|
+
CopyDir: () => copy_dir_exports,
|
21
|
+
List: () => list_exports,
|
22
|
+
MoveDir: () => move_dir_exports,
|
23
|
+
RemoveDir: () => remove_dir_exports
|
24
|
+
});
|
25
|
+
|
26
|
+
export {
|
27
|
+
directory_exports
|
28
|
+
};
|
@@ -0,0 +1,164 @@
|
|
1
|
+
import {
|
2
|
+
getRelativePxPositionsInWrapperFor
|
3
|
+
} from "./chunk-OCM3RLO6.js";
|
4
|
+
import {
|
5
|
+
createColorPalette
|
6
|
+
} from "./chunk-GD6Y5QJV.js";
|
7
|
+
import {
|
8
|
+
createLineBackground
|
9
|
+
} from "./chunk-C4Q4PC53.js";
|
10
|
+
import {
|
11
|
+
createTileBackground
|
12
|
+
} from "./chunk-CP454IJD.js";
|
13
|
+
import {
|
14
|
+
clamp
|
15
|
+
} from "./chunk-OSAXBA7G.js";
|
16
|
+
|
17
|
+
// src/node/images/transform/operations/_utils/frame/index.ts
|
18
|
+
import sharp from "sharp";
|
19
|
+
async function frame(imageSharp, params) {
|
20
|
+
const imageMetadata = await imageSharp.metadata();
|
21
|
+
const imageDimensions = {
|
22
|
+
widthPx: imageMetadata.width ?? 0,
|
23
|
+
heightPx: imageMetadata.height ?? 0
|
24
|
+
};
|
25
|
+
const scaledImage = scaleImageToFrame(
|
26
|
+
imageSharp,
|
27
|
+
imageDimensions,
|
28
|
+
params.dimensions,
|
29
|
+
params.imageScale
|
30
|
+
);
|
31
|
+
imageSharp = scaledImage.sharpInstance;
|
32
|
+
imageDimensions.widthPx = scaledImage.widthPx;
|
33
|
+
imageDimensions.heightPx = scaledImage.heightPx;
|
34
|
+
const defaultBackgroundColorCreate = getDefaultBackgroundColor(params.background);
|
35
|
+
const imagePositions = getRelativePxPositionsInWrapperFor(imageDimensions, params.dimensions, params.positions);
|
36
|
+
const backgroundOverlays = await getBackgroundOverlays(
|
37
|
+
{
|
38
|
+
sharp: imageSharp,
|
39
|
+
dimensions: imageDimensions
|
40
|
+
},
|
41
|
+
params.background,
|
42
|
+
params.dimensions,
|
43
|
+
{
|
44
|
+
x: imagePositions.x,
|
45
|
+
y: imagePositions.y,
|
46
|
+
w: imageDimensions.widthPx,
|
47
|
+
h: imageDimensions.heightPx
|
48
|
+
}
|
49
|
+
);
|
50
|
+
const composition = [
|
51
|
+
...backgroundOverlays,
|
52
|
+
{
|
53
|
+
input: await imageSharp.toFormat("png").png({ quality: 100 }).toBuffer(),
|
54
|
+
/* Make sure we work with the best quality of our file */
|
55
|
+
left: imagePositions.x,
|
56
|
+
top: imagePositions.y
|
57
|
+
}
|
58
|
+
];
|
59
|
+
const frameSharpInstance = sharp({
|
60
|
+
create: {
|
61
|
+
background: defaultBackgroundColorCreate,
|
62
|
+
width: params.dimensions.widthPx,
|
63
|
+
height: params.dimensions.heightPx,
|
64
|
+
channels: 4
|
65
|
+
}
|
66
|
+
}).ensureAlpha(0).composite(composition).png({ quality: 100 });
|
67
|
+
return frameSharpInstance;
|
68
|
+
}
|
69
|
+
var scaleImageToFrame = (imageSharp, imageDimensions, frameDimensions, imageScale) => {
|
70
|
+
const scale = {
|
71
|
+
xRatio: 1,
|
72
|
+
yRatio: 1
|
73
|
+
};
|
74
|
+
const frameZoneDimensions = {
|
75
|
+
widthPx: frameDimensions.widthPx,
|
76
|
+
heightPx: frameDimensions.heightPx
|
77
|
+
};
|
78
|
+
if (imageScale) {
|
79
|
+
frameZoneDimensions.widthPx = frameDimensions.widthPx * (imageScale.xRatio || 1);
|
80
|
+
frameZoneDimensions.heightPx = frameDimensions.heightPx * (imageScale.yRatio || 1);
|
81
|
+
}
|
82
|
+
const containedRatiosPercents = getContainedRatios(
|
83
|
+
imageDimensions.widthPx,
|
84
|
+
imageDimensions.heightPx,
|
85
|
+
frameZoneDimensions.widthPx,
|
86
|
+
frameZoneDimensions.heightPx
|
87
|
+
);
|
88
|
+
if (imageScale || !imageScale && imageDimensions.widthPx < frameDimensions.widthPx && imageDimensions.heightPx < frameDimensions.heightPx) {
|
89
|
+
scale.xRatio = containedRatiosPercents.xPercent;
|
90
|
+
scale.yRatio = containedRatiosPercents.yPercent;
|
91
|
+
}
|
92
|
+
if (scale.xRatio !== 1 || scale.yRatio !== 1) {
|
93
|
+
imageDimensions.widthPx = clamp(Math.round(imageDimensions.widthPx * scale.xRatio), 0, frameDimensions.widthPx);
|
94
|
+
imageDimensions.heightPx = clamp(Math.round(imageDimensions.heightPx * scale.yRatio), 0, frameDimensions.heightPx);
|
95
|
+
imageSharp = imageSharp.resize({
|
96
|
+
width: imageDimensions.widthPx,
|
97
|
+
height: imageDimensions.heightPx,
|
98
|
+
fit: sharp.fit.inside,
|
99
|
+
position: "center",
|
100
|
+
fastShrinkOnLoad: false
|
101
|
+
});
|
102
|
+
}
|
103
|
+
return {
|
104
|
+
sharpInstance: imageSharp,
|
105
|
+
widthPx: imageDimensions.widthPx,
|
106
|
+
heightPx: imageDimensions.heightPx
|
107
|
+
};
|
108
|
+
};
|
109
|
+
var getDefaultBackgroundColor = (background) => {
|
110
|
+
if (background && (typeof background === "object" && "r" in background)) {
|
111
|
+
return {
|
112
|
+
r: background.r || 255,
|
113
|
+
g: background.g || 255,
|
114
|
+
b: background.b || 255,
|
115
|
+
alpha: background.alpha || 0
|
116
|
+
};
|
117
|
+
}
|
118
|
+
return { r: 255, g: 255, b: 255, alpha: 0 };
|
119
|
+
};
|
120
|
+
var getBackgroundOverlays = (imageInput, background, dimensions, imageCoordinates) => {
|
121
|
+
const backgroundOverlays = [];
|
122
|
+
return new Promise(async (resolve, reject) => {
|
123
|
+
if (!background || typeof background !== "object" || typeof background === "object" && !("type" in background)) {
|
124
|
+
resolve(backgroundOverlays);
|
125
|
+
return;
|
126
|
+
}
|
127
|
+
const imageBuffer = await imageInput.sharp.raw().toBuffer();
|
128
|
+
const nbImageChannels = (await imageInput.sharp.metadata()).channels || 3;
|
129
|
+
const colorPalette = createColorPalette(
|
130
|
+
{
|
131
|
+
buffer: imageBuffer,
|
132
|
+
nbChannels: nbImageChannels,
|
133
|
+
dimensions: imageInput.dimensions
|
134
|
+
},
|
135
|
+
background.colorPalette
|
136
|
+
);
|
137
|
+
switch (background.type) {
|
138
|
+
case "line":
|
139
|
+
return resolve(createLineBackground(background, dimensions, colorPalette));
|
140
|
+
case "tile":
|
141
|
+
return resolve(createTileBackground(background, dimensions, imageCoordinates, colorPalette));
|
142
|
+
default:
|
143
|
+
resolve(backgroundOverlays);
|
144
|
+
}
|
145
|
+
reject(new Error("Unknown background type"));
|
146
|
+
});
|
147
|
+
};
|
148
|
+
function getContainedRatios(widthPx, heightPx, wrapperWidthPx, wrapperHeightPx, withoutReduction) {
|
149
|
+
if (withoutReduction && widthPx <= wrapperWidthPx && heightPx <= wrapperHeightPx) {
|
150
|
+
return { xPercent: 100, yPercent: 100 };
|
151
|
+
}
|
152
|
+
const wrapperRatio = wrapperWidthPx / wrapperHeightPx;
|
153
|
+
const imgRatio = widthPx / heightPx;
|
154
|
+
const containRatio = clamp(imgRatio > wrapperRatio ? wrapperWidthPx / widthPx : wrapperHeightPx / heightPx, 0, 100);
|
155
|
+
return {
|
156
|
+
xPercent: containRatio,
|
157
|
+
yPercent: containRatio
|
158
|
+
};
|
159
|
+
}
|
160
|
+
|
161
|
+
export {
|
162
|
+
frame,
|
163
|
+
getContainedRatios
|
164
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
make
|
3
|
+
} from "./chunk-RLAZR3NL.js";
|
4
|
+
import {
|
5
|
+
randomPick,
|
6
|
+
randomPickMany
|
7
|
+
} from "./chunk-B446JIN3.js";
|
8
|
+
import {
|
9
|
+
shuffle
|
10
|
+
} from "./chunk-VJJIYJMY.js";
|
11
|
+
import {
|
12
|
+
findDuplicates
|
13
|
+
} from "./chunk-YS6WMSWC.js";
|
14
|
+
import {
|
15
|
+
isArrayOf
|
16
|
+
} from "./chunk-6RGDWX4A.js";
|
17
|
+
|
18
|
+
// src/agnostic/arrays/index.tsx
|
19
|
+
var Arrays;
|
20
|
+
((Arrays2) => {
|
21
|
+
Arrays2.findDuplicates = findDuplicates;
|
22
|
+
Arrays2.isArrayOf = isArrayOf;
|
23
|
+
Arrays2.make = make;
|
24
|
+
Arrays2.randomPick = randomPick;
|
25
|
+
Arrays2.randomPickMany = randomPickMany;
|
26
|
+
Arrays2.shuffle = shuffle;
|
27
|
+
})(Arrays || (Arrays = {}));
|
28
|
+
|
29
|
+
export {
|
30
|
+
Arrays
|
31
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
Sanitize
|
3
|
+
} from "./chunk-JWF5EKM2.js";
|
4
|
+
import {
|
5
|
+
register
|
6
|
+
} from "./chunk-CHUOCTRP.js";
|
7
|
+
|
8
|
+
// src/agnostic/html/string-to-nodes/index.ts
|
9
|
+
function stringToNodes(dirtyStr, options) {
|
10
|
+
const actualDocument = options?.documentObj ?? window.document;
|
11
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
|
12
|
+
const sanitizeOptions = {
|
13
|
+
...options?.sanitize,
|
14
|
+
documentObj: options?.sanitize?.documentObj ?? options?.documentObj
|
15
|
+
};
|
16
|
+
const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
|
17
|
+
const wrapperDiv = actualDocument.createElement("div");
|
18
|
+
wrapperDiv.innerHTML = str;
|
19
|
+
const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
|
20
|
+
const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
|
21
|
+
return allowedNodeTypes.includes(node.nodeType);
|
22
|
+
});
|
23
|
+
return nodes;
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
stringToNodes
|
28
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
10
|
+
|
11
|
+
// src/node/@google-cloud/storage/directory/list/index.ts
|
12
|
+
var list_exports = {};
|
13
|
+
__export(list_exports, {
|
14
|
+
list: () => list
|
15
|
+
});
|
16
|
+
async function list(bucket, directoryPath, options) {
|
17
|
+
const { fileOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const prefix = directoryPath.endsWith("/") ? directoryPath : `${directoryPath}/`;
|
20
|
+
const [files] = await bucket.getFiles({
|
21
|
+
prefix,
|
22
|
+
delimiter: "/",
|
23
|
+
...fileOptions
|
24
|
+
});
|
25
|
+
const paths = files.map((file) => file.name);
|
26
|
+
return Outcome.makeSuccess(paths);
|
27
|
+
} catch (err) {
|
28
|
+
return Outcome.makeFailure(unknownToString(err));
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
export {
|
33
|
+
list,
|
34
|
+
list_exports
|
35
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import {
|
2
|
+
Cast,
|
3
|
+
Tree,
|
4
|
+
Utils
|
5
|
+
} from "./chunk-766BSKLU.js";
|
6
|
+
import {
|
7
|
+
Serialize
|
8
|
+
} from "./chunk-SXRWMH3U.js";
|
9
|
+
import {
|
10
|
+
Types
|
11
|
+
} from "./chunk-XEQ2PBT2.js";
|
12
|
+
import {
|
13
|
+
SmartTags
|
14
|
+
} from "./chunk-UT2J62LH.js";
|
15
|
+
import {
|
16
|
+
Transformer
|
17
|
+
} from "./chunk-BKO7GLC2.js";
|
18
|
+
import {
|
19
|
+
Method
|
20
|
+
} from "./chunk-RW7VAKJW.js";
|
21
|
+
|
22
|
+
// src/agnostic/html/hyper-json/index.ts
|
23
|
+
var HyperJson;
|
24
|
+
((HyperJson2) => {
|
25
|
+
HyperJson2.Cast = Cast;
|
26
|
+
HyperJson2.Method = Method;
|
27
|
+
HyperJson2.Serialize = Serialize;
|
28
|
+
HyperJson2.SmartTags = SmartTags;
|
29
|
+
HyperJson2.Transformer = Transformer;
|
30
|
+
HyperJson2.Tree = Tree;
|
31
|
+
HyperJson2.Types = Types;
|
32
|
+
HyperJson2.Utils = Utils;
|
33
|
+
})(HyperJson || (HyperJson = {}));
|
34
|
+
|
35
|
+
export {
|
36
|
+
HyperJson
|
37
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
10
|
+
|
11
|
+
// src/node/ftps/directory/list/index.ts
|
12
|
+
var list_exports = {};
|
13
|
+
__export(list_exports, {
|
14
|
+
list: () => list
|
15
|
+
});
|
16
|
+
async function list(ftpClient, directoryPath) {
|
17
|
+
try {
|
18
|
+
const list2 = await ftpClient.list(directoryPath);
|
19
|
+
const files = list2.filter((entry) => entry.isFile).map((entry) => directoryPath.endsWith("/") ? `${directoryPath}${entry.name}` : `${directoryPath}/${entry.name}`);
|
20
|
+
return Outcome.makeSuccess(files);
|
21
|
+
} catch (err) {
|
22
|
+
return Outcome.makeFailure(unknownToString(err));
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
list,
|
28
|
+
list_exports
|
29
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import {
|
2
|
+
remove_exports
|
3
|
+
} from "./chunk-ANPXBD2G.js";
|
4
|
+
import {
|
5
|
+
move_exports
|
6
|
+
} from "./chunk-FE4DECBU.js";
|
7
|
+
import {
|
8
|
+
upload_exports
|
9
|
+
} from "./chunk-QDVDHFMZ.js";
|
10
|
+
import {
|
11
|
+
stat_exports
|
12
|
+
} from "./chunk-TGVYEQIA.js";
|
13
|
+
import {
|
14
|
+
copy_exports
|
15
|
+
} from "./chunk-QH64MYGA.js";
|
16
|
+
import {
|
17
|
+
download_exports
|
18
|
+
} from "./chunk-HWEGQVBQ.js";
|
19
|
+
import {
|
20
|
+
exists_exports
|
21
|
+
} from "./chunk-QVPS2BCJ.js";
|
22
|
+
import {
|
23
|
+
__export
|
24
|
+
} from "./chunk-WSFCRVEQ.js";
|
25
|
+
|
26
|
+
// src/node/sftp/file/index.ts
|
27
|
+
var file_exports = {};
|
28
|
+
__export(file_exports, {
|
29
|
+
Copy: () => copy_exports,
|
30
|
+
Download: () => download_exports,
|
31
|
+
Exists: () => exists_exports,
|
32
|
+
Move: () => move_exports,
|
33
|
+
Remove: () => remove_exports,
|
34
|
+
Stat: () => stat_exports,
|
35
|
+
Upload: () => upload_exports
|
36
|
+
});
|
37
|
+
|
38
|
+
export {
|
39
|
+
file_exports
|
40
|
+
};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import {
|
2
|
+
update_metadata_exports
|
3
|
+
} from "./chunk-HWVEI3RH.js";
|
4
|
+
import {
|
5
|
+
generate_signed_url_exports
|
6
|
+
} from "./chunk-PAIUCLVK.js";
|
7
|
+
import {
|
8
|
+
get_metadata_exports
|
9
|
+
} from "./chunk-42K3MQQ5.js";
|
10
|
+
import {
|
11
|
+
get_permissions_exports
|
12
|
+
} from "./chunk-YKPA3MQL.js";
|
13
|
+
import {
|
14
|
+
revoke_signed_urls_exports
|
15
|
+
} from "./chunk-G5RRNREY.js";
|
16
|
+
import {
|
17
|
+
move_exports
|
18
|
+
} from "./chunk-6IYUA43Q.js";
|
19
|
+
import {
|
20
|
+
remove_exports
|
21
|
+
} from "./chunk-7J7CYOXU.js";
|
22
|
+
import {
|
23
|
+
stat_exports
|
24
|
+
} from "./chunk-W3RXHN5I.js";
|
25
|
+
import {
|
26
|
+
upload_exports
|
27
|
+
} from "./chunk-FB3GNE2B.js";
|
28
|
+
import {
|
29
|
+
copy_exports
|
30
|
+
} from "./chunk-CWZFRUBS.js";
|
31
|
+
import {
|
32
|
+
download_exports
|
33
|
+
} from "./chunk-2JH4TCT2.js";
|
34
|
+
import {
|
35
|
+
exists_exports
|
36
|
+
} from "./chunk-5VHFXWFM.js";
|
37
|
+
import {
|
38
|
+
__export
|
39
|
+
} from "./chunk-WSFCRVEQ.js";
|
40
|
+
|
41
|
+
// src/node/@google-cloud/storage/file/index.ts
|
42
|
+
var file_exports = {};
|
43
|
+
__export(file_exports, {
|
44
|
+
Copy: () => copy_exports,
|
45
|
+
Download: () => download_exports,
|
46
|
+
Exists: () => exists_exports,
|
47
|
+
GenerateSignedUrl: () => generate_signed_url_exports,
|
48
|
+
GetMetaData: () => get_metadata_exports,
|
49
|
+
GetPermissions: () => get_permissions_exports,
|
50
|
+
Move: () => move_exports,
|
51
|
+
Remove: () => remove_exports,
|
52
|
+
RevokeSignedUrls: () => revoke_signed_urls_exports,
|
53
|
+
Stat: () => stat_exports,
|
54
|
+
UpdateMetadata: () => update_metadata_exports,
|
55
|
+
Upload: () => upload_exports
|
56
|
+
});
|
57
|
+
|
58
|
+
export {
|
59
|
+
file_exports
|
60
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
10
|
+
|
11
|
+
// src/node/@aws-s3/storage/file/remove/index.ts
|
12
|
+
var remove_exports = {};
|
13
|
+
__export(remove_exports, {
|
14
|
+
remove: () => remove
|
15
|
+
});
|
16
|
+
import { HeadObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3";
|
17
|
+
async function remove(s3, bucketName, targetPath, options) {
|
18
|
+
const { ignoreMissing = true } = options ?? {};
|
19
|
+
try {
|
20
|
+
try {
|
21
|
+
await s3.send(new HeadObjectCommand({ Bucket: bucketName, Key: targetPath }));
|
22
|
+
} catch (err) {
|
23
|
+
const code = err?.name ?? err?.Code ?? err?.code;
|
24
|
+
if (code === "NotFound" || code === "NoSuchKey" || code === "NotFoundException") {
|
25
|
+
if (ignoreMissing) return Outcome.makeSuccess(true);
|
26
|
+
return Outcome.makeFailure(`File not found at ${targetPath}.`);
|
27
|
+
}
|
28
|
+
return Outcome.makeFailure(unknownToString(err));
|
29
|
+
}
|
30
|
+
await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: targetPath }));
|
31
|
+
return Outcome.makeSuccess(true);
|
32
|
+
} catch (err) {
|
33
|
+
return Outcome.makeFailure(unknownToString(err));
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
export {
|
38
|
+
remove,
|
39
|
+
remove_exports
|
40
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
10
|
+
|
11
|
+
// src/node/@google-cloud/storage/file/get-metadata/index.ts
|
12
|
+
var get_metadata_exports = {};
|
13
|
+
__export(get_metadata_exports, {
|
14
|
+
getMetadata: () => getMetadata
|
15
|
+
});
|
16
|
+
async function getMetadata(bucket, sourcePath, options) {
|
17
|
+
const { fileOptions, getFileMetadataOptions } = options ?? {};
|
18
|
+
try {
|
19
|
+
const file = bucket.file(sourcePath, fileOptions);
|
20
|
+
const [metadata] = await file.getMetadata(getFileMetadataOptions);
|
21
|
+
return Outcome.makeSuccess(metadata);
|
22
|
+
} catch (err) {
|
23
|
+
const errStr = unknownToString(err);
|
24
|
+
return Outcome.makeFailure(errStr);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
export {
|
29
|
+
getMetadata,
|
30
|
+
get_metadata_exports
|
31
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import {
|
2
|
+
OperationNames
|
3
|
+
} from "./chunk-MOVLLUDL.js";
|
4
|
+
import {
|
5
|
+
esm_default
|
6
|
+
} from "./chunk-QPHK5QI7.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/brighten/index.ts
|
9
|
+
var brightenSchema = esm_default.object({
|
10
|
+
name: esm_default.literal(OperationNames.Brighten),
|
11
|
+
params: esm_default.number().min(0)
|
12
|
+
});
|
13
|
+
|
14
|
+
export {
|
15
|
+
brightenSchema
|
16
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import {
|
2
|
+
esm_default
|
3
|
+
} from "./chunk-QPHK5QI7.js";
|
4
|
+
|
5
|
+
// src/node/images/transform/frame/backgrounds/create-line-background/index.ts
|
6
|
+
var colorTransformationsSchema = esm_default.array(esm_default.object({
|
7
|
+
type: esm_default.enum(["saturate", "lighten", "complement"]),
|
8
|
+
intensity: esm_default.number().min(0).max(100),
|
9
|
+
intensityMode: esm_default.enum(["add", "set"])
|
10
|
+
}));
|
11
|
+
var createLineBackgroundSchema = esm_default.object({
|
12
|
+
type: esm_default.literal("line"),
|
13
|
+
params: esm_default.object({
|
14
|
+
nbLines: esm_default.number().min(1),
|
15
|
+
colors: esm_default.object({
|
16
|
+
selectColorPaletteIndex: esm_default.union([
|
17
|
+
esm_default.literal("first"),
|
18
|
+
esm_default.literal("last"),
|
19
|
+
esm_default.number().min(0)
|
20
|
+
]),
|
21
|
+
primaryTransformations: colorTransformationsSchema,
|
22
|
+
secondaryTransformations: colorTransformationsSchema
|
23
|
+
})
|
24
|
+
})
|
25
|
+
});
|
26
|
+
|
27
|
+
export {
|
28
|
+
colorTransformationsSchema,
|
29
|
+
createLineBackgroundSchema
|
30
|
+
};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import {
|
2
|
+
Outcome
|
3
|
+
} from "./chunk-JMU5PDBD.js";
|
4
|
+
import {
|
5
|
+
unknownToString
|
6
|
+
} from "./chunk-FENXVJYO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
10
|
+
|
11
|
+
// src/node/@aws-s3/storage/directory/copy-dir/index.ts
|
12
|
+
var copy_dir_exports = {};
|
13
|
+
__export(copy_dir_exports, {
|
14
|
+
copyDir: () => copyDir
|
15
|
+
});
|
16
|
+
import {
|
17
|
+
ListObjectsV2Command,
|
18
|
+
CopyObjectCommand,
|
19
|
+
HeadObjectCommand
|
20
|
+
} from "@aws-sdk/client-s3";
|
21
|
+
async function copyDir(client, bucketName, sourceDir, targetDir, options) {
|
22
|
+
const { listObjectsOptions, copyOptions, overwrite = false } = options ?? {};
|
23
|
+
const from = sourceDir.endsWith("/") ? sourceDir : `${sourceDir}/`;
|
24
|
+
const to = targetDir.endsWith("/") ? targetDir : `${targetDir}/`;
|
25
|
+
try {
|
26
|
+
let token;
|
27
|
+
do {
|
28
|
+
const listResp = await client.send(
|
29
|
+
new ListObjectsV2Command({
|
30
|
+
Bucket: bucketName,
|
31
|
+
Prefix: from,
|
32
|
+
ContinuationToken: token,
|
33
|
+
...listObjectsOptions
|
34
|
+
})
|
35
|
+
);
|
36
|
+
for (const obj of listResp.Contents ?? []) {
|
37
|
+
if (!obj.Key) continue;
|
38
|
+
const rel = obj.Key.substring(from.length);
|
39
|
+
const dest = `${to}${rel}`;
|
40
|
+
if (!overwrite) {
|
41
|
+
try {
|
42
|
+
await client.send(new HeadObjectCommand({ Bucket: bucketName, Key: dest }));
|
43
|
+
continue;
|
44
|
+
} catch (err) {
|
45
|
+
const code = err?.name ?? err?.$metadata?.httpStatusCode;
|
46
|
+
if (code !== "NotFound" && code !== 404) {
|
47
|
+
return Outcome.makeFailure(unknownToString(err));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
await client.send(
|
52
|
+
new CopyObjectCommand({
|
53
|
+
Bucket: bucketName,
|
54
|
+
Key: dest,
|
55
|
+
CopySource: `${bucketName}/${obj.Key}`,
|
56
|
+
...copyOptions
|
57
|
+
})
|
58
|
+
);
|
59
|
+
}
|
60
|
+
token = listResp.IsTruncated ? listResp.NextContinuationToken : void 0;
|
61
|
+
} while (token);
|
62
|
+
return Outcome.makeSuccess(true);
|
63
|
+
} catch (err) {
|
64
|
+
return Outcome.makeFailure(unknownToString(err));
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
export {
|
69
|
+
copyDir,
|
70
|
+
copy_dir_exports
|
71
|
+
};
|