@design-edito/tools 0.2.14 → 0.2.16
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/index.d.ts +5 -5
- package/agnostic/arrays/index.js +7 -7
- package/agnostic/arrays/is-array-of/index.d.ts +1 -1
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/booleans/index.d.ts +1 -1
- package/agnostic/booleans/is-falsy/index.d.ts +1 -1
- package/agnostic/colors/channels/index.d.ts +5 -0
- package/agnostic/colors/channels/index.js +18 -0
- package/agnostic/colors/contrast/index.d.ts +2 -0
- package/agnostic/colors/contrast/index.js +13 -0
- package/agnostic/colors/convert/index.d.ts +20 -0
- package/agnostic/colors/convert/index.js +45 -0
- package/agnostic/colors/distance/index.d.ts +2 -0
- package/agnostic/colors/distance/index.js +12 -0
- package/agnostic/colors/grayscale/index.d.ts +2 -0
- package/agnostic/colors/grayscale/index.js +12 -0
- package/agnostic/colors/index.d.ts +14 -16
- package/agnostic/colors/index.js +95 -27
- package/agnostic/colors/invert/index.d.ts +2 -0
- package/agnostic/colors/invert/index.js +12 -0
- package/agnostic/colors/lerp/index.d.ts +2 -0
- package/agnostic/colors/lerp/index.js +12 -0
- package/agnostic/colors/luminance/index.d.ts +2 -0
- package/agnostic/colors/luminance/index.js +12 -0
- package/agnostic/colors/palette/index.d.ts +2 -0
- package/agnostic/colors/palette/index.js +14 -0
- package/agnostic/colors/rotate/index.d.ts +2 -0
- package/agnostic/colors/rotate/index.js +13 -0
- package/agnostic/colors/tidy/index.d.ts +2 -0
- package/agnostic/colors/tidy/index.js +11 -0
- package/agnostic/colors/typechecks/index.d.ts +11 -0
- package/agnostic/colors/typechecks/index.js +26 -0
- package/agnostic/colors/types.d.ts +82 -0
- package/agnostic/css/bem/index.d.ts +2 -2
- package/agnostic/css/index.d.ts +3 -3
- package/agnostic/css/index.js +6 -6
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/errors/index.d.ts +2 -2
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.d.ts +1 -1
- package/agnostic/html/hyper-json/cast/index.js +4 -4
- package/agnostic/html/hyper-json/index.d.ts +8 -8
- package/agnostic/html/hyper-json/index.js +5 -5
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
- package/agnostic/html/hyper-json/transformer/index.d.ts +4 -4
- package/agnostic/html/hyper-json/tree/index.d.ts +1 -1
- package/agnostic/html/hyper-json/tree/index.js +4 -4
- package/agnostic/html/hyper-json/types/index.d.ts +5 -5
- package/agnostic/html/hyper-json/utils/index.d.ts +2 -2
- package/agnostic/html/hyper-json/utils/index.js +4 -4
- package/agnostic/html/index.d.ts +8 -8
- package/agnostic/html/index.js +18 -18
- package/agnostic/html/sanitize/index.js +4 -4
- package/agnostic/html/selector-to-element/index.js +4 -4
- package/agnostic/html/string-to-nodes/index.d.ts +1 -1
- package/agnostic/html/string-to-nodes/index.js +5 -5
- package/agnostic/index.d.ts +12 -12
- package/agnostic/misc/assert/index.d.ts +1 -1
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +1 -1
- package/agnostic/misc/crossenv/index.d.ts +3 -3
- package/agnostic/misc/crossenv/window/index.d.ts +1 -1
- package/agnostic/misc/index.d.ts +11 -11
- package/agnostic/misc/index.js +19 -19
- package/agnostic/misc/logs/index.d.ts +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +10 -10
- package/agnostic/numbers/index.d.ts +5 -5
- package/agnostic/numbers/index.js +6 -6
- package/agnostic/objects/enums/index.d.ts +1 -1
- package/agnostic/objects/index.d.ts +8 -8
- package/agnostic/objects/index.js +4 -4
- package/agnostic/optim/index.d.ts +2 -2
- package/agnostic/random/index.d.ts +3 -3
- package/agnostic/random/index.js +2 -2
- package/agnostic/strings/index.d.ts +7 -7
- package/agnostic/strings/index.js +13 -13
- package/agnostic/strings/parse-table/index.d.ts +1 -1
- package/agnostic/time/dates/index.d.ts +1 -1
- package/agnostic/time/index.d.ts +5 -5
- package/agnostic/time/index.js +6 -6
- package/chunks/chunk-2EHYEUX4.js +21 -0
- package/chunks/chunk-5LK2YLTK.js +21 -0
- package/chunks/chunk-65NTXENV.js +157 -0
- package/chunks/{chunk-6EJIBLPQ.js → chunk-73FF7HWQ.js} +9 -9
- package/chunks/{chunk-HMZMKLMR.js → chunk-AF2NAJS2.js} +2 -2
- package/chunks/chunk-ALMK24GK.js +0 -0
- package/chunks/chunk-BKIF2ELV.js +47 -0
- package/chunks/{chunk-AQBJ6HNB.js → chunk-C7SRAQMW.js} +1 -1
- package/chunks/{chunk-ZBBU2P4D.js → chunk-CQEDNACN.js} +2 -2
- package/chunks/chunk-D7SXHHU3.js +47 -0
- package/chunks/{chunk-GU34O65H.js → chunk-E33DCHHS.js} +15 -15
- package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
- package/chunks/chunk-GUBFCOBT.js +98 -0
- package/chunks/{chunk-5TRAENM3.js → chunk-I2HTBYNO.js} +1 -1
- package/chunks/chunk-IDXUS2IO.js +296 -0
- package/chunks/chunk-JHUOMGOX.js +81 -0
- package/chunks/{chunk-EDJ3TVNV.js → chunk-KDOMQ4LM.js} +15 -6
- package/chunks/chunk-MN4FVOU2.js +28 -0
- package/chunks/{chunk-2M33FCDG.js → chunk-O7VFJHQX.js} +11 -5
- package/chunks/{chunk-KRDVV6K3.js → chunk-OD2XVVE2.js} +3 -3
- package/chunks/{chunk-TIER4TF4.js → chunk-P2H6PV4O.js} +1 -1
- package/chunks/chunk-P4YT4RBG.js +51 -0
- package/chunks/{chunk-C5BQQUAG.js → chunk-PJSPZGT2.js} +12 -12
- package/chunks/{chunk-PLIJVLAB.js → chunk-PX4DPCZM.js} +5 -3
- package/chunks/{chunk-DWCRT664.js → chunk-QRS3G3YD.js} +3 -3
- package/chunks/{chunk-FQ4UTWMP.js → chunk-QTA7ZEVX.js} +3 -1
- package/chunks/chunk-QW34TQCS.js +48 -0
- package/chunks/{chunk-HMAK6VAF.js → chunk-RBCZWVQH.js} +11 -5
- package/chunks/{chunk-XB3EGDBI.js → chunk-RDQJSWRC.js} +1 -1
- package/chunks/{chunk-AI6AGF4I.js → chunk-S7637BQZ.js} +8 -5
- package/chunks/{chunk-3TA4CDWX.js → chunk-TQXFC6OS.js} +4 -4
- package/chunks/chunk-UG5EMKGN.js +265 -0
- package/chunks/chunk-VA67YLZL.js +26 -0
- package/chunks/{chunk-DEW6LPOS.js → chunk-VKNQ7MVZ.js} +90 -91
- package/chunks/{chunk-3TKBCG7Y.js → chunk-WV5N7ESL.js} +4 -1
- package/chunks/{chunk-SKBOSWM2.js → chunk-X5HMM3LD.js} +1 -1
- package/chunks/chunk-XAYMIITK.js +103 -0
- package/chunks/{chunk-H4LW6FP3.js → chunk-Y4THX4AN.js} +1 -1
- package/chunks/chunk-YZVZKBVJ.js +631 -0
- package/chunks/chunk-ZJ63OCMA.js +207 -0
- package/components/index.d.ts +1 -1
- package/node/@aws-s3/index.d.ts +1 -1
- package/node/@aws-s3/index.js +7 -7
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/index.d.ts +4 -4
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/index.d.ts +7 -7
- package/node/@aws-s3/storage/file/index.js +10 -10
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +1 -1
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/index.d.ts +2 -2
- package/node/@aws-s3/storage/index.js +9 -9
- package/node/@design-edito/index.d.ts +1 -1
- package/node/@express/@multer/index.d.ts +1 -1
- package/node/@express/index.d.ts +1 -1
- package/node/@google-cloud/index.d.ts +1 -1
- package/node/@google-cloud/index.js +11 -11
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/index.d.ts +4 -4
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.d.ts +4 -4
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +12 -12
- package/node/@google-cloud/storage/file/index.js +16 -16
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +4 -4
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.d.ts +3 -3
- package/node/@google-cloud/storage/index.js +13 -13
- package/node/cloud-storage/index.d.ts +2 -2
- package/node/cloud-storage/index.js +23 -23
- package/node/cloud-storage/operations/copy-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/copy-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/download-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/exists-file/index.d.ts +4 -4
- package/node/cloud-storage/operations/index.d.ts +11 -11
- package/node/cloud-storage/operations/index.js +30 -30
- package/node/cloud-storage/operations/list-dir/index.d.ts +4 -4
- package/node/cloud-storage/operations/move-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/move-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/upload-file/index.d.ts +6 -6
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/index.d.ts +2 -2
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/index.d.ts +2 -2
- package/node/encryption/index.js +3 -3
- package/node/files/index.d.ts +3 -3
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/index.d.ts +4 -4
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/index.d.ts +7 -7
- package/node/ftps/file/index.js +9 -9
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/index.d.ts +2 -2
- package/node/ftps/index.js +7 -7
- package/node/images/create/index.d.ts +3 -0
- package/node/images/create/index.js +23 -0
- package/node/images/format/index.d.ts +18 -52
- package/node/images/format/index.js +30 -4
- package/node/images/index.d.ts +6 -4
- package/node/images/index.js +41 -21
- package/node/images/metadata/index.d.ts +3 -0
- package/node/images/metadata/index.js +23 -0
- package/node/images/transform/index.d.ts +3 -98
- package/node/images/transform/index.js +27 -16
- package/node/images/transform/operations/blur/index.d.ts +2 -4
- package/node/images/transform/operations/brighten/index.d.ts +2 -4
- package/node/images/transform/operations/extend/index.d.ts +2 -9
- package/node/images/transform/operations/extend/index.js +17 -2
- package/node/images/transform/operations/extract/index.d.ts +2 -7
- package/node/images/transform/operations/flatten/index.d.ts +2 -4
- package/node/images/transform/operations/flatten/index.js +17 -2
- package/node/images/transform/operations/hue/index.d.ts +2 -4
- package/node/images/transform/operations/level/index.d.ts +2 -5
- package/node/images/transform/operations/lighten/index.d.ts +2 -4
- package/node/images/transform/operations/normalize/index.d.ts +2 -5
- package/node/images/transform/operations/overlay/index.d.ts +5 -0
- package/node/images/transform/operations/overlay/index.js +27 -0
- package/node/images/transform/operations/resize/index.d.ts +2 -12
- package/node/images/transform/operations/resize/index.js +17 -2
- package/node/images/transform/operations/rotate/index.d.ts +2 -5
- package/node/images/transform/operations/rotate/index.js +17 -2
- package/node/images/transform/operations/saturate/index.d.ts +2 -4
- package/node/images/transform/operations/saturate/index.js +1 -1
- package/node/images/types.d.ts +252 -0
- package/node/images/utils/index.d.ts +7 -0
- package/node/images/utils/index.js +28 -0
- package/node/index.d.ts +11 -11
- package/node/process/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/index.d.ts +4 -4
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/index.d.ts +7 -7
- package/node/sftp/file/index.js +9 -9
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/index.d.ts +2 -2
- package/node/sftp/index.js +7 -7
- package/package.json +1 -1
- package/shared/errors/index.d.ts +1 -1
- package/agnostic/colors/complement-color/index.d.ts +0 -1
- package/agnostic/colors/complement-color/index.js +0 -7
- package/agnostic/colors/hex-to-rgb/index.d.ts +0 -1
- package/agnostic/colors/hex-to-rgb/index.js +0 -7
- package/agnostic/colors/hsl-to-rgb/index.d.ts +0 -1
- package/agnostic/colors/hsl-to-rgb/index.js +0 -7
- package/agnostic/colors/lighten-color/index.d.ts +0 -2
- package/agnostic/colors/lighten-color/index.js +0 -11
- package/agnostic/colors/rgb-to-hex/index.d.ts +0 -1
- package/agnostic/colors/rgb-to-hex/index.js +0 -7
- package/agnostic/colors/rgb-to-hsl/index.d.ts +0 -1
- package/agnostic/colors/rgb-to-hsl/index.js +0 -7
- package/agnostic/colors/saturate-color/index.d.ts +0 -2
- package/agnostic/colors/saturate-color/index.js +0 -11
- package/chunks/chunk-2POD3TAX.js +0 -11
- package/chunks/chunk-2TJCB6IM.js +0 -12
- package/chunks/chunk-7EDDWSWS.js +0 -123
- package/chunks/chunk-FAXNZG5C.js +0 -10
- package/chunks/chunk-IFQA5PWI.js +0 -112
- package/chunks/chunk-MB7HWF22.js +0 -23
- package/chunks/chunk-MFYNJMVM.js +0 -18
- package/chunks/chunk-NYVARFI7.js +0 -20
- package/chunks/chunk-QLC3A6PC.js +0 -17
- package/chunks/chunk-U57Q62IN.js +0 -23
- package/chunks/chunk-YVLJKJV2.js +0 -17
- package/node/images/get-metadata/index.d.ts +0 -4
- package/node/images/get-metadata/index.js +0 -7
- package/node/images/transform/operations/composite/index.d.ts +0 -7
- package/node/images/transform/operations/composite/index.js +0 -12
- package/node/images/transform/utils/index.d.ts +0 -2
- package/node/images/transform/utils/index.js +0 -8
- package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
- package/chunks/{chunk-S5MTHWQ7.js → chunk-6QFELK4E.js} +8 -8
- package/chunks/{chunk-LEYJ4I5W.js → chunk-EXPVRDPR.js} +8 -8
- package/chunks/{chunk-ZPDKBMUH.js → chunk-LSZVKXDZ.js} +3 -3
- package/chunks/{chunk-NRABY36Z.js → chunk-MLLP7YSK.js} +9 -9
- package/chunks/{chunk-OVG5RGI3.js → chunk-S32K7POB.js} +4 -4
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toCmyk,
|
|
3
|
+
toHsb,
|
|
4
|
+
toHsl,
|
|
5
|
+
toLab,
|
|
6
|
+
toLch,
|
|
7
|
+
toRgb,
|
|
8
|
+
toXyz,
|
|
9
|
+
viaCmyk,
|
|
10
|
+
viaHsb,
|
|
11
|
+
viaHsl,
|
|
12
|
+
viaLab,
|
|
13
|
+
viaLch,
|
|
14
|
+
viaRgb,
|
|
15
|
+
viaXyz
|
|
16
|
+
} from "./chunk-YZVZKBVJ.js";
|
|
17
|
+
import {
|
|
18
|
+
absoluteModulo
|
|
19
|
+
} from "./chunk-DNIOWD7K.js";
|
|
20
|
+
import {
|
|
21
|
+
clamp
|
|
22
|
+
} from "./chunk-OSAXBA7G.js";
|
|
23
|
+
|
|
24
|
+
// src/agnostic/colors/channels/index.ts
|
|
25
|
+
function setChannel(color, channel, value) {
|
|
26
|
+
switch (channel) {
|
|
27
|
+
case "red":
|
|
28
|
+
return viaRgb(color, (rgb) => ({ ...rgb, r: clamp(value, 0, 255) }));
|
|
29
|
+
case "green":
|
|
30
|
+
return viaRgb(color, (rgb) => ({ ...rgb, g: clamp(value, 0, 255) }));
|
|
31
|
+
case "blue":
|
|
32
|
+
return viaRgb(color, (rgb) => ({ ...rgb, b: clamp(value, 0, 255) }));
|
|
33
|
+
case "hue":
|
|
34
|
+
return viaHsl(color, (hsl) => ({ ...hsl, h: absoluteModulo(value, 360) }));
|
|
35
|
+
case "saturation":
|
|
36
|
+
return viaHsl(color, (hsl) => ({ ...hsl, s: clamp(value, 0, 100) }));
|
|
37
|
+
case "lightness":
|
|
38
|
+
return viaHsl(color, (hsl) => ({ ...hsl, l: clamp(value, 0, 100) }));
|
|
39
|
+
case "brightness":
|
|
40
|
+
return viaHsb(color, (hsb) => ({ ...hsb, b: clamp(value, 0, 100) }));
|
|
41
|
+
case "alpha":
|
|
42
|
+
return viaRgb(color, (rgb) => ({ ...rgb, a: clamp(value, 0, 1) }));
|
|
43
|
+
case "cyan":
|
|
44
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, c: clamp(value, 0, 100) }));
|
|
45
|
+
case "magenta":
|
|
46
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, m: clamp(value, 0, 100) }));
|
|
47
|
+
case "yellow":
|
|
48
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, y: clamp(value, 0, 100) }));
|
|
49
|
+
case "black":
|
|
50
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, k: clamp(value, 0, 100) }));
|
|
51
|
+
case "x":
|
|
52
|
+
return viaXyz(color, (xyz) => ({ ...xyz, x: value }));
|
|
53
|
+
case "y":
|
|
54
|
+
return viaXyz(color, (xyz) => ({ ...xyz, y: value }));
|
|
55
|
+
case "z":
|
|
56
|
+
return viaXyz(color, (xyz) => ({ ...xyz, z: value }));
|
|
57
|
+
case "lightnessLab":
|
|
58
|
+
return viaLab(color, (lab) => ({ ...lab, a: clamp(value, 0, 100) }));
|
|
59
|
+
case "aLab":
|
|
60
|
+
return viaLab(color, (lab) => ({ ...lab, a: value }));
|
|
61
|
+
case "bLab":
|
|
62
|
+
return viaLab(color, (lab) => ({ ...lab, b: value }));
|
|
63
|
+
case "chroma":
|
|
64
|
+
return viaLch(color, (lch) => ({ ...lch, c: Math.max(0, value) }));
|
|
65
|
+
case "hueLch":
|
|
66
|
+
return viaLch(color, (lch) => ({ ...lch, h: clamp(value, 0, 360) }));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function getChannel(color, channel) {
|
|
70
|
+
switch (channel) {
|
|
71
|
+
case "red":
|
|
72
|
+
return toRgb(color).r;
|
|
73
|
+
case "green":
|
|
74
|
+
return toRgb(color).g;
|
|
75
|
+
case "blue":
|
|
76
|
+
return toRgb(color).b;
|
|
77
|
+
case "hue":
|
|
78
|
+
return toHsl(color).h;
|
|
79
|
+
case "saturation":
|
|
80
|
+
return toHsl(color).s;
|
|
81
|
+
case "lightness":
|
|
82
|
+
return toHsl(color).l;
|
|
83
|
+
case "brightness":
|
|
84
|
+
return toHsb(color).b;
|
|
85
|
+
case "alpha":
|
|
86
|
+
return toRgb(color).a ?? 1;
|
|
87
|
+
case "cyan":
|
|
88
|
+
return toCmyk(color).c;
|
|
89
|
+
case "magenta":
|
|
90
|
+
return toCmyk(color).m;
|
|
91
|
+
case "yellow":
|
|
92
|
+
return toCmyk(color).y;
|
|
93
|
+
case "black":
|
|
94
|
+
return toCmyk(color).k;
|
|
95
|
+
case "x":
|
|
96
|
+
return toXyz(color).x;
|
|
97
|
+
case "y":
|
|
98
|
+
return toXyz(color).y;
|
|
99
|
+
case "z":
|
|
100
|
+
return toXyz(color).z;
|
|
101
|
+
case "lightnessLab":
|
|
102
|
+
return toLab(color).l;
|
|
103
|
+
case "aLab":
|
|
104
|
+
return toLab(color).a;
|
|
105
|
+
case "bLab":
|
|
106
|
+
return toLab(color).b;
|
|
107
|
+
case "chroma":
|
|
108
|
+
return toLch(color).c;
|
|
109
|
+
case "hueLch":
|
|
110
|
+
return toLch(color).h;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function addChannel(color, channel, amount) {
|
|
114
|
+
switch (channel) {
|
|
115
|
+
case "red":
|
|
116
|
+
return viaRgb(color, (rgb) => ({ ...rgb, r: clamp(rgb.r + amount, 0, 255) }));
|
|
117
|
+
case "green":
|
|
118
|
+
return viaRgb(color, (rgb) => ({ ...rgb, g: clamp(rgb.g + amount, 0, 255) }));
|
|
119
|
+
case "blue":
|
|
120
|
+
return viaRgb(color, (rgb) => ({ ...rgb, b: clamp(rgb.b + amount, 0, 255) }));
|
|
121
|
+
case "hue":
|
|
122
|
+
return viaHsl(color, (hsl) => ({ ...hsl, h: absoluteModulo(hsl.h + amount, 360) }));
|
|
123
|
+
case "saturation":
|
|
124
|
+
return viaHsl(color, (hsl) => ({ ...hsl, s: clamp(hsl.s + amount, 0, 100) }));
|
|
125
|
+
case "lightness":
|
|
126
|
+
return viaHsl(color, (hsl) => ({ ...hsl, l: clamp(hsl.l + amount, 0, 100) }));
|
|
127
|
+
case "brightness":
|
|
128
|
+
return viaHsb(color, (hsb) => ({ ...hsb, b: clamp(hsb.b + amount, 0, 100) }));
|
|
129
|
+
case "alpha":
|
|
130
|
+
return viaRgb(color, (rgb) => ({ ...rgb, a: clamp(rgb.a ?? 1 + amount, 0, 1) }));
|
|
131
|
+
case "cyan":
|
|
132
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, c: clamp(cmyk.c + amount, 0, 100) }));
|
|
133
|
+
case "magenta":
|
|
134
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, m: clamp(cmyk.m + amount, 0, 100) }));
|
|
135
|
+
case "yellow":
|
|
136
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, y: clamp(cmyk.y + amount, 0, 100) }));
|
|
137
|
+
case "black":
|
|
138
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, k: clamp(cmyk.k + amount, 0, 100) }));
|
|
139
|
+
case "x":
|
|
140
|
+
return viaXyz(color, (xyz) => ({ ...xyz, x: xyz.x + amount }));
|
|
141
|
+
case "y":
|
|
142
|
+
return viaXyz(color, (xyz) => ({ ...xyz, y: xyz.y + amount }));
|
|
143
|
+
case "z":
|
|
144
|
+
return viaXyz(color, (xyz) => ({ ...xyz, z: xyz.z + amount }));
|
|
145
|
+
case "lightnessLab":
|
|
146
|
+
return viaLab(color, (lab) => ({ ...lab, l: clamp(lab.l + amount, 0, 100) }));
|
|
147
|
+
case "aLab":
|
|
148
|
+
return viaLab(color, (lab) => ({ ...lab, a: lab.a + amount }));
|
|
149
|
+
case "bLab":
|
|
150
|
+
return viaLab(color, (lab) => ({ ...lab, b: lab.b + amount }));
|
|
151
|
+
case "chroma":
|
|
152
|
+
return viaLch(color, (lch) => ({ ...lch, c: Math.max(0, lch.c + amount) }));
|
|
153
|
+
case "hueLch":
|
|
154
|
+
return viaLch(color, (lch) => ({ ...lch, h: clamp(lch.h + amount, 0, 360) }));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function multChannel(color, channel, factor) {
|
|
158
|
+
switch (channel) {
|
|
159
|
+
case "red":
|
|
160
|
+
return viaRgb(color, (rgb) => ({ ...rgb, r: clamp(rgb.r * factor, 0, 255) }));
|
|
161
|
+
case "green":
|
|
162
|
+
return viaRgb(color, (rgb) => ({ ...rgb, g: clamp(rgb.g * factor, 0, 255) }));
|
|
163
|
+
case "blue":
|
|
164
|
+
return viaRgb(color, (rgb) => ({ ...rgb, b: clamp(rgb.b * factor, 0, 255) }));
|
|
165
|
+
case "hue":
|
|
166
|
+
return viaHsl(color, (hsl) => ({ ...hsl, h: absoluteModulo(hsl.h * factor, 360) }));
|
|
167
|
+
case "saturation":
|
|
168
|
+
return viaHsl(color, (hsl) => ({ ...hsl, s: clamp(hsl.s * factor, 0, 100) }));
|
|
169
|
+
case "lightness":
|
|
170
|
+
return viaHsl(color, (hsl) => ({ ...hsl, l: clamp(hsl.l * factor, 0, 100) }));
|
|
171
|
+
case "brightness":
|
|
172
|
+
return viaHsb(color, (hsb) => ({ ...hsb, b: clamp(hsb.b * factor, 0, 100) }));
|
|
173
|
+
case "alpha":
|
|
174
|
+
return viaRgb(color, (rgb) => ({ ...rgb, a: clamp(rgb.a ?? 1 * factor, 0, 1) }));
|
|
175
|
+
case "cyan":
|
|
176
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, c: clamp(cmyk.c * factor, 0, 100) }));
|
|
177
|
+
case "magenta":
|
|
178
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, m: clamp(cmyk.m * factor, 0, 100) }));
|
|
179
|
+
case "yellow":
|
|
180
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, y: clamp(cmyk.y * factor, 0, 100) }));
|
|
181
|
+
case "black":
|
|
182
|
+
return viaCmyk(color, (cmyk) => ({ ...cmyk, k: clamp(cmyk.k * factor, 0, 100) }));
|
|
183
|
+
case "x":
|
|
184
|
+
return viaXyz(color, (xyz) => ({ ...xyz, x: xyz.x * factor }));
|
|
185
|
+
case "y":
|
|
186
|
+
return viaXyz(color, (xyz) => ({ ...xyz, y: xyz.y * factor }));
|
|
187
|
+
case "z":
|
|
188
|
+
return viaXyz(color, (xyz) => ({ ...xyz, z: xyz.z * factor }));
|
|
189
|
+
case "lightnessLab":
|
|
190
|
+
return viaLab(color, (lab) => ({ ...lab, l: clamp(lab.l * factor, 0, 100) }));
|
|
191
|
+
case "aLab":
|
|
192
|
+
return viaLab(color, (lab) => ({ ...lab, a: lab.a * factor }));
|
|
193
|
+
case "bLab":
|
|
194
|
+
return viaLab(color, (lab) => ({ ...lab, b: lab.b * factor }));
|
|
195
|
+
case "chroma":
|
|
196
|
+
return viaLch(color, (lch) => ({ ...lch, c: Math.max(0, lch.c * factor) }));
|
|
197
|
+
case "hueLch":
|
|
198
|
+
return viaLch(color, (lch) => ({ ...lch, h: clamp(lch.h * factor, 0, 360) }));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
setChannel,
|
|
204
|
+
getChannel,
|
|
205
|
+
addChannel,
|
|
206
|
+
multChannel
|
|
207
|
+
};
|
package/components/index.d.ts
CHANGED
package/node/@aws-s3/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as Storage from './storage';
|
|
1
|
+
import * as Storage from './storage/index.js';
|
|
2
2
|
export { Storage };
|
package/node/@aws-s3/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
storage_exports
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-OD2XVVE2.js";
|
|
4
|
+
import "../../chunks/chunk-73FF7HWQ.js";
|
|
4
5
|
import "../../chunks/chunk-ZBAKY6DB.js";
|
|
5
|
-
import "../../chunks/chunk-
|
|
6
|
+
import "../../chunks/chunk-FD5WR2A5.js";
|
|
7
|
+
import "../../chunks/chunk-IV75M3KE.js";
|
|
8
|
+
import "../../chunks/chunk-ZEZCYPLQ.js";
|
|
6
9
|
import "../../chunks/chunk-ZSUG52DO.js";
|
|
7
10
|
import "../../chunks/chunk-ON6LC3HE.js";
|
|
8
11
|
import "../../chunks/chunk-4XSDRT23.js";
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-FD5WR2A5.js";
|
|
12
|
+
import "../../chunks/chunk-WV5N7ESL.js";
|
|
13
|
+
import "../../chunks/chunk-QWZ4ZNFA.js";
|
|
12
14
|
import "../../chunks/chunk-VROZGPC5.js";
|
|
13
15
|
import "../../chunks/chunk-4XBUJAQU.js";
|
|
14
16
|
import "../../chunks/chunk-C6QTHDDM.js";
|
|
15
|
-
import "../../chunks/chunk-ZEZCYPLQ.js";
|
|
16
|
-
import "../../chunks/chunk-QWZ4ZNFA.js";
|
|
17
17
|
import "../../chunks/chunk-JMU5PDBD.js";
|
|
18
18
|
import "../../chunks/chunk-FENXVJYO.js";
|
|
19
19
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, ListObjectsV2CommandInput, CopyObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyDirOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Extra parameters forwarded to each `ListObjectsV2Command`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as CopyDir from './copy-dir';
|
|
2
|
-
import * as List from './list';
|
|
3
|
-
import * as MoveDir from './move-dir';
|
|
4
|
-
import * as RemoveDir from './remove-dir';
|
|
1
|
+
import * as CopyDir from './copy-dir/index.js';
|
|
2
|
+
import * as List from './list/index.js';
|
|
3
|
+
import * as MoveDir from './move-dir/index.js';
|
|
4
|
+
import * as RemoveDir from './remove-dir/index.js';
|
|
5
5
|
export { CopyDir, List, MoveDir, RemoveDir };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, ListObjectsV2CommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
/** Extra parameters forwarded to each `ListObjectsV2Command`. */
|
|
4
4
|
export type ListOptions = Omit<ListObjectsV2CommandInput, 'Bucket' | 'Prefix' | 'Delimiter'>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, ListObjectsV2CommandInput, CopyObjectCommandInput, DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to every `ListObjectsV2Command` call. */
|
|
5
5
|
listObjectsOptions?: Omit<ListObjectsV2CommandInput, 'Bucket' | 'Prefix'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, ListObjectsV2CommandInput, DeleteObjectsCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type RemoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to each `ListObjectsV2Command` call. */
|
|
5
5
|
listObjectsOptions?: Omit<ListObjectsV2CommandInput, 'Bucket' | 'Prefix'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, CopyObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Additional parameters forwarded to the underlying `CopyObjectCommand`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
2
|
import { S3Client, GetObjectCommandInput } from '@aws-sdk/client-s3';
|
|
3
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
3
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Additional parameters forwarded to `GetObjectCommand`.
|
|
6
6
|
* `Bucket` and `Key` are provided by this util.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, HeadObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type ExistsOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Additional parameters forwarded to the underlying `HeadObjectCommand`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as Copy from './copy';
|
|
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';
|
|
7
|
-
import * as Upload from './upload';
|
|
1
|
+
import * as Copy from './copy/index.js';
|
|
2
|
+
import * as Download from './download/index.js';
|
|
3
|
+
import * as Exists from './exists/index.js';
|
|
4
|
+
import * as Move from './move/index.js';
|
|
5
|
+
import * as Remove from './remove/index.js';
|
|
6
|
+
import * as Stat from './stat/index.js';
|
|
7
|
+
import * as Upload from './upload/index.js';
|
|
8
8
|
export { Copy, Download, Exists, Move, Remove, Stat, Upload, };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-
|
|
1
|
+
import "../../../../chunks/chunk-73FF7HWQ.js";
|
|
2
|
+
import {
|
|
3
|
+
upload_exports
|
|
4
|
+
} from "../../../../chunks/chunk-FD5WR2A5.js";
|
|
2
5
|
import {
|
|
3
6
|
download_exports
|
|
4
7
|
} from "../../../../chunks/chunk-IV75M3KE.js";
|
|
8
|
+
import {
|
|
9
|
+
exists_exports
|
|
10
|
+
} from "../../../../chunks/chunk-ZEZCYPLQ.js";
|
|
5
11
|
import {
|
|
6
12
|
remove_exports
|
|
7
|
-
} from "../../../../chunks/chunk-
|
|
13
|
+
} from "../../../../chunks/chunk-WV5N7ESL.js";
|
|
8
14
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../../../../chunks/chunk-
|
|
15
|
+
move_exports
|
|
16
|
+
} from "../../../../chunks/chunk-QWZ4ZNFA.js";
|
|
11
17
|
import {
|
|
12
18
|
stat_exports
|
|
13
19
|
} from "../../../../chunks/chunk-VROZGPC5.js";
|
|
14
20
|
import {
|
|
15
21
|
copy_exports
|
|
16
22
|
} from "../../../../chunks/chunk-C6QTHDDM.js";
|
|
17
|
-
import {
|
|
18
|
-
exists_exports
|
|
19
|
-
} from "../../../../chunks/chunk-ZEZCYPLQ.js";
|
|
20
|
-
import {
|
|
21
|
-
move_exports
|
|
22
|
-
} from "../../../../chunks/chunk-QWZ4ZNFA.js";
|
|
23
23
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
|
24
24
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
|
25
25
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, CopyObjectCommandInput, DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveOptions = {
|
|
4
4
|
/** Extra parameters forwarded to `CopyObjectCommand` (`Bucket`, `Key`, `CopySource` are filled internally). */
|
|
5
5
|
copyOptions?: Omit<CopyObjectCommandInput, 'Bucket' | 'Key' | 'CopySource'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
remove
|
|
3
|
-
} from "../../../../../chunks/chunk-
|
|
3
|
+
} from "../../../../../chunks/chunk-WV5N7ESL.js";
|
|
4
4
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
|
5
5
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
|
6
6
|
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3Client, HeadObjectCommandInput, HeadObjectCommandOutput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export interface Stat {
|
|
4
4
|
size?: number;
|
|
5
5
|
modifiedAt?: Date;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
2
|
import { S3Client, PutObjectCommandInput } from '@aws-sdk/client-s3';
|
|
3
3
|
import { Upload } from '@aws-sdk/lib-storage';
|
|
4
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
4
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
5
5
|
export type UploadOptions = {
|
|
6
6
|
fileMetadata?: Partial<PutObjectCommandInput>;
|
|
7
7
|
uploadSettings?: ConstructorParameters<typeof Upload>[0];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as Directory from './directory';
|
|
2
|
-
import * as File from './file';
|
|
1
|
+
import * as Directory from './directory/index.js';
|
|
2
|
+
import * as File from './file/index.js';
|
|
3
3
|
export { Directory, File };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../chunks/chunk-
|
|
1
|
+
import "../../../chunks/chunk-OD2XVVE2.js";
|
|
2
|
+
import {
|
|
3
|
+
file_exports
|
|
4
|
+
} from "../../../chunks/chunk-73FF7HWQ.js";
|
|
2
5
|
import {
|
|
3
6
|
directory_exports
|
|
4
7
|
} from "../../../chunks/chunk-ZBAKY6DB.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
import "../../../chunks/chunk-FD5WR2A5.js";
|
|
9
|
+
import "../../../chunks/chunk-IV75M3KE.js";
|
|
10
|
+
import "../../../chunks/chunk-ZEZCYPLQ.js";
|
|
8
11
|
import "../../../chunks/chunk-ZSUG52DO.js";
|
|
9
12
|
import "../../../chunks/chunk-ON6LC3HE.js";
|
|
10
13
|
import "../../../chunks/chunk-4XSDRT23.js";
|
|
11
|
-
import "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
13
|
-
import "../../../chunks/chunk-FD5WR2A5.js";
|
|
14
|
+
import "../../../chunks/chunk-WV5N7ESL.js";
|
|
15
|
+
import "../../../chunks/chunk-QWZ4ZNFA.js";
|
|
14
16
|
import "../../../chunks/chunk-VROZGPC5.js";
|
|
15
17
|
import "../../../chunks/chunk-4XBUJAQU.js";
|
|
16
18
|
import "../../../chunks/chunk-C6QTHDDM.js";
|
|
17
|
-
import "../../../chunks/chunk-ZEZCYPLQ.js";
|
|
18
|
-
import "../../../chunks/chunk-QWZ4ZNFA.js";
|
|
19
19
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
|
20
20
|
import "../../../chunks/chunk-FENXVJYO.js";
|
|
21
21
|
import "../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as Thumbnails from './thumbnails';
|
|
1
|
+
import * as Thumbnails from './thumbnails/index.js';
|
|
2
2
|
export { Thumbnails };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Request, Response } from 'express';
|
|
2
2
|
import multer from 'multer';
|
|
3
|
-
import { Outcome } from '../../../agnostic/misc/outcome';
|
|
3
|
+
import { Outcome } from '../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
export type WithMulterModeOptions = {
|
|
5
5
|
mode: 'none' | 'any';
|
|
6
6
|
} | {
|
package/node/@express/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as Multer from './@multer';
|
|
1
|
+
import * as Multer from './@multer/index.js';
|
|
2
2
|
export { Multer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as Storage from './storage';
|
|
1
|
+
import * as Storage from './storage/index.js';
|
|
2
2
|
export { Storage };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
storage_exports
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-QRS3G3YD.js";
|
|
4
4
|
import "../../chunks/chunk-X5F6XGEP.js";
|
|
5
|
-
import "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-ZNA7SWFK.js";
|
|
7
|
-
import "../../chunks/chunk-GU34O65H.js";
|
|
8
|
-
import "../../chunks/chunk-YKPA3MQL.js";
|
|
9
|
-
import "../../chunks/chunk-42K3MQQ5.js";
|
|
10
|
-
import "../../chunks/chunk-ZPDKBMUH.js";
|
|
5
|
+
import "../../chunks/chunk-E33DCHHS.js";
|
|
11
6
|
import "../../chunks/chunk-HWVEI3RH.js";
|
|
7
|
+
import "../../chunks/chunk-42K3MQQ5.js";
|
|
8
|
+
import "../../chunks/chunk-YKPA3MQL.js";
|
|
12
9
|
import "../../chunks/chunk-PAIUCLVK.js";
|
|
10
|
+
import "../../chunks/chunk-LSZVKXDZ.js";
|
|
11
|
+
import "../../chunks/chunk-UEAMPAHK.js";
|
|
12
|
+
import "../../chunks/chunk-ZNA7SWFK.js";
|
|
13
|
+
import "../../chunks/chunk-FB3GNE2B.js";
|
|
14
|
+
import "../../chunks/chunk-2JH4TCT2.js";
|
|
15
|
+
import "../../chunks/chunk-5VHFXWFM.js";
|
|
13
16
|
import "../../chunks/chunk-37TRFYZT.js";
|
|
14
17
|
import "../../chunks/chunk-BWYH445G.js";
|
|
15
18
|
import "../../chunks/chunk-QLDN574K.js";
|
|
16
|
-
import "../../chunks/chunk-2JH4TCT2.js";
|
|
17
19
|
import "../../chunks/chunk-7J7CYOXU.js";
|
|
18
|
-
import "../../chunks/chunk-
|
|
20
|
+
import "../../chunks/chunk-6IYUA43Q.js";
|
|
19
21
|
import "../../chunks/chunk-W3RXHN5I.js";
|
|
20
22
|
import "../../chunks/chunk-V3L55I2S.js";
|
|
21
23
|
import "../../chunks/chunk-CWZFRUBS.js";
|
|
22
|
-
import "../../chunks/chunk-5VHFXWFM.js";
|
|
23
|
-
import "../../chunks/chunk-6IYUA43Q.js";
|
|
24
24
|
import "../../chunks/chunk-JMU5PDBD.js";
|
|
25
25
|
import "../../chunks/chunk-FENXVJYO.js";
|
|
26
26
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, BucketMetadata, GetBucketMetadataOptions as GCSGetBucketMetadataOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetBucketMetadataOptions = GCSGetBucketMetadataOptions;
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves metadata for a Google Cloud Storage bucket.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as GetMetadata from './get-metadata';
|
|
2
|
-
import * as List from '../directory/list';
|
|
3
|
-
import * as MoveDir from '../directory/move-dir';
|
|
4
|
-
import * as RemoveDir from '../directory/remove-dir';
|
|
1
|
+
import * as GetMetadata from './get-metadata/index.js';
|
|
2
|
+
import * as List from '../directory/list/index.js';
|
|
3
|
+
import * as MoveDir from '../directory/move-dir/index.js';
|
|
4
|
+
import * as RemoveDir from '../directory/remove-dir/index.js';
|
|
5
5
|
export { GetMetadata, List, MoveDir, RemoveDir };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, GetFileOptions, CopyOptions as GCSCopyOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyDirOptions = {
|
|
4
4
|
getFileOptions?: GetFileOptions;
|
|
5
5
|
copyOptions?: GCSCopyOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as CopyDir from './copy-dir';
|
|
2
|
-
import * as List from './list';
|
|
3
|
-
import * as MoveDir from './move-dir';
|
|
4
|
-
import * as RemoveDir from './remove-dir';
|
|
1
|
+
import * as CopyDir from './copy-dir/index.js';
|
|
2
|
+
import * as List from './list/index.js';
|
|
3
|
+
import * as MoveDir from './move-dir/index.js';
|
|
4
|
+
import * as RemoveDir from './remove-dir/index.js';
|
|
5
5
|
export { CopyDir, List, MoveDir, RemoveDir };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, CopyOptions as GCSCopyOptions, DeleteFileOptions as GCSDeleteOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveDirOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
5
5
|
copyOptions?: GCSCopyOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type RemoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to `bucket.deleteFiles`. */
|
|
5
5
|
deleteOptions?: GCSDeleteFileOptions & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, CopyOptions as GCSFileCopyOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyOptions = {
|
|
4
4
|
/** Additional options for constructing the `File` handles. */
|
|
5
5
|
fileOptions?: FileOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
2
|
import { Bucket, FileOptions, DownloadOptions as GCSFileDownloadOptions } from '@google-cloud/storage';
|
|
3
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
3
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
export type DownloadOptions = {
|
|
5
5
|
fileOptions?: FileOptions;
|
|
6
6
|
downloadOptions?: GCSFileDownloadOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, FileExistsOptions as GCSFileExistsOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type ExistsOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
5
5
|
existsOptions?: GCSFileExistsOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, GetSignedUrlConfig } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GenerateSignedUrlOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
5
5
|
getSignedUrlOptions?: Omit<GetSignedUrlConfig, 'action' | 'expires'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, GetFileMetadataOptions as GCSGetFileMetadataOptions, FileMetadata } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetMetadataOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
5
5
|
getFileMetadataOptions?: GCSGetFileMetadataOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bucket, FileOptions, GetAclOptions } from '@google-cloud/storage';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
2
|
+
import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetPermissionsOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
5
5
|
getAclOptions?: GetAclOptions;
|