@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
|
@@ -1,22 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isLevelOperationParams,
|
|
3
|
+
level
|
|
4
|
+
} from "./chunk-2HJPX7E3.js";
|
|
1
5
|
import {
|
|
2
6
|
isLightenOperationParams,
|
|
3
7
|
lighten
|
|
4
8
|
} from "./chunk-RHKFMXM3.js";
|
|
5
|
-
import {
|
|
6
|
-
composite,
|
|
7
|
-
isCompositeOperationParams
|
|
8
|
-
} from "./chunk-IFQA5PWI.js";
|
|
9
|
-
import {
|
|
10
|
-
hue,
|
|
11
|
-
isHueOperationParams
|
|
12
|
-
} from "./chunk-QSU3CVGF.js";
|
|
13
|
-
import {
|
|
14
|
-
isSaturateOperationParams,
|
|
15
|
-
saturate
|
|
16
|
-
} from "./chunk-FQ4UTWMP.js";
|
|
17
|
-
import {
|
|
18
|
-
flip
|
|
19
|
-
} from "./chunk-WNDMYNDU.js";
|
|
20
9
|
import {
|
|
21
10
|
isNormalizeOperationParams,
|
|
22
11
|
normalize
|
|
@@ -24,14 +13,19 @@ import {
|
|
|
24
13
|
import {
|
|
25
14
|
isResizeOperationParams,
|
|
26
15
|
resize
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
flop
|
|
30
|
-
} from "./chunk-YA2YCZUF.js";
|
|
16
|
+
} from "./chunk-KDOMQ4LM.js";
|
|
31
17
|
import {
|
|
32
18
|
isRotateOperationParams,
|
|
33
19
|
rotate
|
|
34
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-S7637BQZ.js";
|
|
21
|
+
import {
|
|
22
|
+
isSaturateOperationParams,
|
|
23
|
+
saturate
|
|
24
|
+
} from "./chunk-QTA7ZEVX.js";
|
|
25
|
+
import {
|
|
26
|
+
isOverlayOperationParams,
|
|
27
|
+
overlay
|
|
28
|
+
} from "./chunk-JHUOMGOX.js";
|
|
35
29
|
import {
|
|
36
30
|
blur,
|
|
37
31
|
isBlurOperationParams
|
|
@@ -40,25 +34,37 @@ import {
|
|
|
40
34
|
brighten,
|
|
41
35
|
isBrightenOperationParams
|
|
42
36
|
} from "./chunk-SRXNICSE.js";
|
|
43
|
-
import {
|
|
44
|
-
extract,
|
|
45
|
-
isExtractOperationParams
|
|
46
|
-
} from "./chunk-HFZGH6V2.js";
|
|
47
37
|
import {
|
|
48
38
|
extend,
|
|
49
39
|
isExtendOperationParams
|
|
50
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RBCZWVQH.js";
|
|
51
41
|
import {
|
|
52
42
|
flatten,
|
|
53
43
|
isFlattenOperationParams
|
|
54
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-O7VFJHQX.js";
|
|
55
45
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
46
|
+
hue,
|
|
47
|
+
isHueOperationParams
|
|
48
|
+
} from "./chunk-QSU3CVGF.js";
|
|
49
|
+
import {
|
|
50
|
+
flip
|
|
51
|
+
} from "./chunk-WNDMYNDU.js";
|
|
52
|
+
import {
|
|
53
|
+
flop
|
|
54
|
+
} from "./chunk-YA2YCZUF.js";
|
|
55
|
+
import {
|
|
56
|
+
extract,
|
|
57
|
+
isExtractOperationParams
|
|
58
|
+
} from "./chunk-HFZGH6V2.js";
|
|
59
|
+
import {
|
|
60
|
+
toSharpInstance
|
|
61
|
+
} from "./chunk-BKIF2ELV.js";
|
|
59
62
|
import {
|
|
60
63
|
Outcome
|
|
61
64
|
} from "./chunk-JMU5PDBD.js";
|
|
65
|
+
import {
|
|
66
|
+
isNonNullObject
|
|
67
|
+
} from "./chunk-HQLRJ7XW.js";
|
|
62
68
|
import {
|
|
63
69
|
unknownToString
|
|
64
70
|
} from "./chunk-FENXVJYO.js";
|
|
@@ -69,16 +75,19 @@ import {
|
|
|
69
75
|
// src/node/images/transform/index.ts
|
|
70
76
|
var transform_exports = {};
|
|
71
77
|
__export(transform_exports, {
|
|
72
|
-
OpName: () => OpName,
|
|
73
|
-
TransformErrCodes: () => TransformErrCodes,
|
|
74
78
|
isOperationDescriptor: () => isOperationDescriptor,
|
|
75
79
|
transform: () => transform
|
|
76
80
|
});
|
|
77
|
-
|
|
81
|
+
|
|
82
|
+
// src/node/images/types.ts
|
|
83
|
+
var types_exports = {};
|
|
84
|
+
__export(types_exports, {
|
|
85
|
+
OpName: () => OpName,
|
|
86
|
+
TransformErrCodes: () => TransformErrCodes
|
|
87
|
+
});
|
|
78
88
|
var OpName = /* @__PURE__ */ ((OpName2) => {
|
|
79
89
|
OpName2["BLUR"] = "blur";
|
|
80
90
|
OpName2["BRIGHTEN"] = "brighten";
|
|
81
|
-
OpName2["COMPOSITE"] = "composite";
|
|
82
91
|
OpName2["EXTEND"] = "extend";
|
|
83
92
|
OpName2["EXTRACT"] = "extract";
|
|
84
93
|
OpName2["FLATTEN"] = "flatten";
|
|
@@ -88,13 +97,39 @@ var OpName = /* @__PURE__ */ ((OpName2) => {
|
|
|
88
97
|
OpName2["LEVEL"] = "level";
|
|
89
98
|
OpName2["LIGHTEN"] = "lighten";
|
|
90
99
|
OpName2["NORMALIZE"] = "normalize";
|
|
100
|
+
OpName2["OVERLAY"] = "overlay";
|
|
91
101
|
OpName2["RESIZE"] = "resize";
|
|
92
102
|
OpName2["ROTATE"] = "rotate";
|
|
93
103
|
OpName2["SATURATE"] = "saturate";
|
|
94
104
|
return OpName2;
|
|
95
105
|
})(OpName || {});
|
|
106
|
+
var TransformErrCodes = /* @__PURE__ */ ((TransformErrCodes2) => {
|
|
107
|
+
TransformErrCodes2["PROCESS_TIMEOUT"] = "process-timeout";
|
|
108
|
+
TransformErrCodes2["OP_TIMEOUT"] = "op-timeout";
|
|
109
|
+
TransformErrCodes2["WIDTH_LIMIT_EXCEEDED"] = "width-limit-exceeded";
|
|
110
|
+
TransformErrCodes2["HEIGHT_LIMIT_EXCEEDED"] = "height-limit-exceeded";
|
|
111
|
+
TransformErrCodes2["UNKNOWN_ERROR"] = "unknown-error";
|
|
112
|
+
return TransformErrCodes2;
|
|
113
|
+
})(TransformErrCodes || {});
|
|
114
|
+
|
|
115
|
+
// src/node/images/transform/index.ts
|
|
116
|
+
var validators = {
|
|
117
|
+
["blur" /* BLUR */]: isBlurOperationParams,
|
|
118
|
+
["brighten" /* BRIGHTEN */]: isBrightenOperationParams,
|
|
119
|
+
["extend" /* EXTEND */]: isExtendOperationParams,
|
|
120
|
+
["extract" /* EXTRACT */]: isExtractOperationParams,
|
|
121
|
+
["flatten" /* FLATTEN */]: isFlattenOperationParams,
|
|
122
|
+
["hue" /* HUE */]: isHueOperationParams,
|
|
123
|
+
["level" /* LEVEL */]: isLevelOperationParams,
|
|
124
|
+
["lighten" /* LIGHTEN */]: isLightenOperationParams,
|
|
125
|
+
["normalize" /* NORMALIZE */]: isNormalizeOperationParams,
|
|
126
|
+
["overlay" /* OVERLAY */]: isOverlayOperationParams,
|
|
127
|
+
["resize" /* RESIZE */]: isResizeOperationParams,
|
|
128
|
+
["rotate" /* ROTATE */]: isRotateOperationParams,
|
|
129
|
+
["saturate" /* SATURATE */]: isSaturateOperationParams
|
|
130
|
+
};
|
|
96
131
|
function isOperationDescriptor(obj) {
|
|
97
|
-
if (
|
|
132
|
+
if (!isNonNullObject(obj)) return Outcome.makeFailure("Invalid operation descriptor");
|
|
98
133
|
if (!("name" in obj) || typeof obj.name !== "string") return Outcome.makeFailure("Field named 'name' in operation descriptor is required and must be a string");
|
|
99
134
|
const name = obj.name;
|
|
100
135
|
const validateOperation = (validatorFn) => {
|
|
@@ -102,51 +137,23 @@ function isOperationDescriptor(obj) {
|
|
|
102
137
|
if (result.success) return Outcome.makeSuccess({ name: obj.name, ...result.payload });
|
|
103
138
|
return Outcome.makeFailure(result.error);
|
|
104
139
|
};
|
|
105
|
-
const validators = {
|
|
106
|
-
["blur" /* BLUR */]: isBlurOperationParams,
|
|
107
|
-
["brighten" /* BRIGHTEN */]: isBrightenOperationParams,
|
|
108
|
-
["extend" /* EXTEND */]: isExtendOperationParams,
|
|
109
|
-
["extract" /* EXTRACT */]: isExtractOperationParams,
|
|
110
|
-
["flatten" /* FLATTEN */]: isFlattenOperationParams,
|
|
111
|
-
["hue" /* HUE */]: isHueOperationParams,
|
|
112
|
-
["level" /* LEVEL */]: isLevelOperationParams,
|
|
113
|
-
["lighten" /* LIGHTEN */]: isLightenOperationParams,
|
|
114
|
-
["normalize" /* NORMALIZE */]: isNormalizeOperationParams,
|
|
115
|
-
["resize" /* RESIZE */]: isResizeOperationParams,
|
|
116
|
-
["rotate" /* ROTATE */]: isRotateOperationParams,
|
|
117
|
-
["saturate" /* SATURATE */]: isSaturateOperationParams,
|
|
118
|
-
["composite" /* COMPOSITE */]: isCompositeOperationParams
|
|
119
|
-
};
|
|
120
140
|
const simpleOperations = /* @__PURE__ */ new Set(["flip" /* FLIP */, "flop" /* FLOP */]);
|
|
121
141
|
if (simpleOperations.has(name)) return Outcome.makeSuccess({ name });
|
|
122
142
|
const validator = validators[name];
|
|
123
143
|
if (validator) return validateOperation(validator);
|
|
124
144
|
return Outcome.makeFailure("Invalid operation descriptor");
|
|
125
145
|
}
|
|
126
|
-
var TransformErrCodes = /* @__PURE__ */ ((TransformErrCodes2) => {
|
|
127
|
-
TransformErrCodes2["PROCESS_TIMEOUT"] = "process-timeout";
|
|
128
|
-
TransformErrCodes2["OP_TIMEOUT"] = "op-timeout";
|
|
129
|
-
TransformErrCodes2["WIDTH_LIMIT_EXCEEDED"] = "width-limit-exceeded";
|
|
130
|
-
TransformErrCodes2["HEIGHT_LIMIT_EXCEEDED"] = "height-limit-exceeded";
|
|
131
|
-
TransformErrCodes2["UNKNOWN_ERROR"] = "unknown-error";
|
|
132
|
-
return TransformErrCodes2;
|
|
133
|
-
})(TransformErrCodes || {});
|
|
134
146
|
async function transform(input, operationsSequence, limits) {
|
|
135
|
-
|
|
136
|
-
return transformSharpInstance(sharp(input), operationsSequence, limits);
|
|
137
|
-
}
|
|
138
|
-
if (Buffer.isBuffer(input)) return transformBuffer(input, operationsSequence, limits);
|
|
139
|
-
return transformSharpInstance(input, operationsSequence, limits);
|
|
140
|
-
}
|
|
141
|
-
async function transformSharpInstance(sharpInstance, operationsSequence, limits) {
|
|
147
|
+
let sharpInstance = await toSharpInstance(input);
|
|
142
148
|
const start = Date.now();
|
|
143
|
-
const deadline = limits?.timeoutMs ? start + limits.timeoutMs : void 0;
|
|
149
|
+
const deadline = limits?.timeoutMs !== void 0 ? start + limits.timeoutMs : void 0;
|
|
144
150
|
const runWithOpTimeout = async (op) => {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
return limits?.opTimeoutMs === void 0 ? op() : Promise.race([op(), new Promise(
|
|
152
|
+
(resolve) => setTimeout(
|
|
153
|
+
() => resolve("op-timeout" /* OP_TIMEOUT */),
|
|
154
|
+
limits.opTimeoutMs
|
|
155
|
+
)
|
|
156
|
+
)]);
|
|
150
157
|
};
|
|
151
158
|
for (const operation of operationsSequence) {
|
|
152
159
|
if (deadline !== void 0 && Date.now() > deadline) return Outcome.makeFailure({
|
|
@@ -179,14 +186,14 @@ async function transformSharpInstance(sharpInstance, operationsSequence, limits)
|
|
|
179
186
|
return lighten(sharpInstance, operation);
|
|
180
187
|
case "normalize" /* NORMALIZE */:
|
|
181
188
|
return normalize(sharpInstance, operation);
|
|
189
|
+
case "overlay" /* OVERLAY */:
|
|
190
|
+
return overlay(sharpInstance, operation);
|
|
182
191
|
case "resize" /* RESIZE */:
|
|
183
192
|
return resize(sharpInstance, operation);
|
|
184
193
|
case "rotate" /* ROTATE */:
|
|
185
194
|
return rotate(sharpInstance, operation);
|
|
186
195
|
case "saturate" /* SATURATE */:
|
|
187
196
|
return saturate(sharpInstance, operation);
|
|
188
|
-
case "composite" /* COMPOSITE */:
|
|
189
|
-
return composite(sharpInstance, operation);
|
|
190
197
|
default:
|
|
191
198
|
return sharpInstance;
|
|
192
199
|
}
|
|
@@ -204,21 +211,18 @@ async function transformSharpInstance(sharpInstance, operationsSequence, limits)
|
|
|
204
211
|
else {
|
|
205
212
|
sharpInstance = result;
|
|
206
213
|
}
|
|
207
|
-
if (limits
|
|
214
|
+
if (limits === void 0) continue;
|
|
215
|
+
if (operation.name === "resize" /* RESIZE */ || operation.name === "extend" /* EXTEND */ || operation.name === "extract" /* EXTRACT */ || operation.name === "rotate" /* ROTATE */) {
|
|
208
216
|
try {
|
|
209
217
|
const meta = await sharpInstance.metadata();
|
|
210
|
-
if (limits.width !== void 0 && meta.width && meta.width > limits.width) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
code: "height-limit-exceeded" /* HEIGHT_LIMIT_EXCEEDED */,
|
|
219
|
-
details: `Image height exceeded the limit (${meta.height}px)`
|
|
220
|
-
});
|
|
221
|
-
}
|
|
218
|
+
if (limits.width !== void 0 && meta.width && meta.width > limits.width) return Outcome.makeFailure({
|
|
219
|
+
code: "width-limit-exceeded" /* WIDTH_LIMIT_EXCEEDED */,
|
|
220
|
+
details: `Image width exceeded the limit (${meta.width}px)`
|
|
221
|
+
});
|
|
222
|
+
if (limits.height !== void 0 && meta.height && meta.height > limits.height) return Outcome.makeFailure({
|
|
223
|
+
code: "height-limit-exceeded" /* HEIGHT_LIMIT_EXCEEDED */,
|
|
224
|
+
details: `Image height exceeded the limit (${meta.height}px)`
|
|
225
|
+
});
|
|
222
226
|
} catch (err) {
|
|
223
227
|
return Outcome.makeFailure({
|
|
224
228
|
code: "unknown-error" /* UNKNOWN_ERROR */,
|
|
@@ -229,15 +233,10 @@ async function transformSharpInstance(sharpInstance, operationsSequence, limits)
|
|
|
229
233
|
}
|
|
230
234
|
return Outcome.makeSuccess(sharpInstance);
|
|
231
235
|
}
|
|
232
|
-
async function transformBuffer(fileBuffer, operationsSequence, limits) {
|
|
233
|
-
const sharpInstance = sharp(fileBuffer);
|
|
234
|
-
return transformSharpInstance(sharpInstance, operationsSequence, limits);
|
|
235
|
-
}
|
|
236
236
|
|
|
237
237
|
export {
|
|
238
|
-
|
|
238
|
+
types_exports,
|
|
239
239
|
isOperationDescriptor,
|
|
240
|
-
TransformErrCodes,
|
|
241
240
|
transform,
|
|
242
241
|
transform_exports
|
|
243
242
|
};
|
|
@@ -13,7 +13,10 @@ var remove_exports = {};
|
|
|
13
13
|
__export(remove_exports, {
|
|
14
14
|
remove: () => remove
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
HeadObjectCommand,
|
|
18
|
+
DeleteObjectCommand
|
|
19
|
+
} from "@aws-sdk/client-s3";
|
|
17
20
|
async function remove(s3, bucketName, targetPath, options) {
|
|
18
21
|
const { ignoreMissing = true } = options ?? {};
|
|
19
22
|
try {
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
rotate
|
|
3
|
+
} from "./chunk-QW34TQCS.js";
|
|
4
|
+
|
|
5
|
+
// src/agnostic/colors/palette/index.ts
|
|
6
|
+
function complementaryHsl(color) {
|
|
7
|
+
return rotate(color, 180, "hsl");
|
|
8
|
+
}
|
|
9
|
+
function complementaryLab(color) {
|
|
10
|
+
return rotate(color, 180, "lab");
|
|
11
|
+
}
|
|
12
|
+
function complementaryLch(color) {
|
|
13
|
+
return rotate(color, 180, "lch");
|
|
14
|
+
}
|
|
15
|
+
function splitComplementaryHsl(color) {
|
|
16
|
+
return [
|
|
17
|
+
rotate(color, 150, "hsl"),
|
|
18
|
+
rotate(color, 210, "hsl")
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
function splitComplementaryLab(color) {
|
|
22
|
+
return [
|
|
23
|
+
rotate(color, 150, "lab"),
|
|
24
|
+
rotate(color, 210, "lab")
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
function splitComplementaryLch(color) {
|
|
28
|
+
return [
|
|
29
|
+
rotate(color, 150, "lch"),
|
|
30
|
+
rotate(color, 210, "lch")
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
function triadicHsl(color) {
|
|
34
|
+
return [
|
|
35
|
+
rotate(color, 120, "hsl"),
|
|
36
|
+
rotate(color, 240, "hsl")
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
function triadicLab(color) {
|
|
40
|
+
return [
|
|
41
|
+
rotate(color, 120, "lab"),
|
|
42
|
+
rotate(color, 240, "lab")
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
function triadicLch(color) {
|
|
46
|
+
return [
|
|
47
|
+
rotate(color, 120, "lch"),
|
|
48
|
+
rotate(color, 240, "lch")
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
function tetradicHsl(color) {
|
|
52
|
+
return [
|
|
53
|
+
rotate(color, 90, "hsl"),
|
|
54
|
+
rotate(color, 180, "hsl"),
|
|
55
|
+
rotate(color, 270, "hsl")
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
function tetradicLab(color) {
|
|
59
|
+
return [
|
|
60
|
+
rotate(color, 90, "lab"),
|
|
61
|
+
rotate(color, 180, "lab"),
|
|
62
|
+
rotate(color, 270, "lab")
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
function tetradicLch(color) {
|
|
66
|
+
return [
|
|
67
|
+
rotate(color, 90, "lch"),
|
|
68
|
+
rotate(color, 180, "lch"),
|
|
69
|
+
rotate(color, 270, "lch")
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
function palette(color, type) {
|
|
73
|
+
switch (type) {
|
|
74
|
+
case "complementary":
|
|
75
|
+
return [complementaryHsl(color)];
|
|
76
|
+
case "complementary-lab":
|
|
77
|
+
return [complementaryLab(color)];
|
|
78
|
+
case "complementary-lch":
|
|
79
|
+
return [complementaryLch(color)];
|
|
80
|
+
case "split-complementary":
|
|
81
|
+
return splitComplementaryHsl(color);
|
|
82
|
+
case "split-complementary-lab":
|
|
83
|
+
return splitComplementaryLab(color);
|
|
84
|
+
case "split-complementary-lch":
|
|
85
|
+
return splitComplementaryLch(color);
|
|
86
|
+
case "triadic":
|
|
87
|
+
return triadicHsl(color);
|
|
88
|
+
case "triadic-lab":
|
|
89
|
+
return triadicLab(color);
|
|
90
|
+
case "triadic-lch":
|
|
91
|
+
return triadicLch(color);
|
|
92
|
+
case "tetradic":
|
|
93
|
+
return tetradicHsl(color);
|
|
94
|
+
case "tetradic-lab":
|
|
95
|
+
return tetradicLab(color);
|
|
96
|
+
case "tetradic-lch":
|
|
97
|
+
return tetradicLch(color);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
palette
|
|
103
|
+
};
|