@design-edito/tools 0.2.17 → 0.2.19
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.js +8 -8
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/booleans/index.js +3 -12
- package/agnostic/colors/channels/index.js +4 -3
- package/agnostic/colors/contrast/index.js +5 -4
- package/agnostic/colors/convert/index.js +3 -2
- package/agnostic/colors/distance/index.js +4 -3
- package/agnostic/colors/grayscale/index.js +4 -3
- package/agnostic/colors/index.js +22 -20
- package/agnostic/colors/invert/index.js +4 -3
- package/agnostic/colors/lerp/index.js +4 -3
- package/agnostic/colors/luminance/index.js +4 -3
- package/agnostic/colors/palette/index.js +6 -5
- package/agnostic/colors/rotate/index.js +5 -4
- package/agnostic/colors/tidy/index.js +3 -2
- package/agnostic/colors/typechecks/index.js +2 -1
- package/agnostic/colors/types.js +7 -0
- package/agnostic/css/index.js +9 -29
- package/agnostic/css/styles-set/index.js +4 -4
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +5 -5
- package/agnostic/html/hyper-json/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
- package/agnostic/html/hyper-json/tree/index.js +5 -5
- package/agnostic/html/hyper-json/utils/index.js +5 -5
- package/agnostic/html/index.js +17 -43
- 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.js +5 -5
- package/agnostic/index.js +144 -0
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/index.js +44 -66
- package/agnostic/misc/logs/index.js +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +9 -9
- package/agnostic/numbers/index.js +7 -26
- package/agnostic/objects/index.js +10 -38
- package/agnostic/optim/index.js +4 -14
- package/agnostic/regexps/index.js +3 -88
- package/agnostic/strings/index.js +9 -38
- package/agnostic/time/index.js +4 -4
- package/chunks/{chunk-L5VJAZVW.js → chunk-2T2U5AD3.js} +33 -69
- package/chunks/chunk-3ED56VVR.js +31 -0
- package/chunks/{chunk-VA67YLZL.js → chunk-3LCD73SB.js} +1 -1
- package/chunks/{chunk-IDXUS2IO.js → chunk-4P6V6CHL.js} +5 -5
- package/chunks/{chunk-UX2O74SG.js → chunk-4PEPTXU3.js} +8 -8
- package/chunks/{chunk-MN4FVOU2.js → chunk-5CTAKAIP.js} +2 -2
- package/chunks/chunk-67V4BGOB.js +107 -0
- package/chunks/chunk-6KM4UT6T.js +34 -0
- package/chunks/chunk-6YQGM6N6.js +19 -0
- package/chunks/chunk-7ED4HK2W.js +43 -0
- package/chunks/{chunk-UG5EMKGN.js → chunk-7UGMWTP5.js} +1 -102
- package/chunks/chunk-7YJ4BB73.js +20 -0
- package/chunks/{chunk-D7PZ7633.js → chunk-A2C4VISH.js} +8 -8
- package/chunks/chunk-BLDUC7TT.js +17 -0
- package/chunks/{chunk-AQBJ6HNB.js → chunk-C7SRAQMW.js} +1 -1
- package/chunks/{chunk-ZBBU2P4D.js → chunk-CQEDNACN.js} +2 -2
- package/chunks/{chunk-O7VEAOGY.js → chunk-CRLUUTBS.js} +14 -14
- package/chunks/{chunk-BKIF2ELV.js → chunk-D5CCWCEI.js} +1 -1
- package/chunks/{chunk-JNQPNZTB.js → chunk-DPIPDGYH.js} +8 -8
- package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
- package/chunks/{chunk-D7SXHHU3.js → chunk-EGBJXHCW.js} +1 -1
- package/chunks/chunk-FKDPPFHV.js +42 -0
- package/chunks/{chunk-YZVZKBVJ.js → chunk-FNQAF6CQ.js} +4 -2
- package/chunks/{chunk-RXBMGIPJ.js → chunk-GHAF5VTP.js} +8 -8
- package/chunks/chunk-HXEFDFYT.js +20 -0
- package/chunks/{chunk-J4WGYUFY.js → chunk-IG4V2EWV.js} +4 -4
- package/chunks/chunk-IRTPQATN.js +16 -0
- package/chunks/{chunk-HX5PHI2P.js → chunk-JEMWHVTN.js} +8 -8
- package/chunks/chunk-JRRN5FOZ.js +32 -0
- package/chunks/{chunk-KDOMQ4LM.js → chunk-KGRQKEDD.js} +4 -4
- package/chunks/{chunk-ZQY2MR66.js → chunk-KVZMRVOB.js} +8 -8
- package/chunks/{chunk-P4YT4RBG.js → chunk-L7PIZQFC.js} +1 -1
- package/chunks/{chunk-IAOZM4EN.js → chunk-MCRHFVAD.js} +5 -5
- package/chunks/{chunk-XAYMIITK.js → chunk-MFIGSRSO.js} +1 -1
- package/chunks/chunk-MMXUMHPQ.js +112 -0
- package/chunks/{chunk-ISUDTAMN.js → chunk-MMZRJLHD.js} +8 -7
- package/chunks/chunk-MZQXUVFW.js +43 -0
- package/chunks/{chunk-ZJ63OCMA.js → chunk-NCYE5WML.js} +1 -1
- package/chunks/{chunk-RBCZWVQH.js → chunk-NLCZUDXC.js} +4 -4
- package/chunks/{chunk-CGITTQIW.js → chunk-OBTCE47R.js} +8 -8
- package/chunks/chunk-OKFZJ6DJ.js +9 -0
- package/chunks/{chunk-TIER4TF4.js → chunk-P2H6PV4O.js} +1 -1
- package/chunks/chunk-PB3KFN3E.js +20 -0
- package/chunks/chunk-PKCW2NJ4.js +16 -0
- package/chunks/{chunk-O7VFJHQX.js → chunk-PNJI3RCF.js} +4 -4
- package/chunks/{chunk-2EHYEUX4.js → chunk-PVRYR5KX.js} +1 -1
- package/chunks/{chunk-STW5RKR7.js → chunk-PX4DPCZM.js} +1 -1
- package/chunks/{chunk-XNWEMAIP.js → chunk-QB5OBWPS.js} +8 -8
- package/chunks/chunk-QHAB6XYD.js +30 -0
- package/chunks/{chunk-XB3EGDBI.js → chunk-RDQJSWRC.js} +1 -1
- package/chunks/{chunk-S7637BQZ.js → chunk-S3K2QPZ6.js} +4 -4
- package/chunks/{chunk-TFZOOTCF.js → chunk-SPLPZBQR.js} +8 -8
- package/chunks/chunk-TGJAXXJZ.js +84 -0
- package/chunks/{chunk-YVWQXQTE.js → chunk-TMB3PV3Q.js} +8 -8
- package/chunks/{chunk-HONCMQHQ.js → chunk-TTYILNFU.js} +1 -1
- package/chunks/chunk-UKD6DFES.js +31 -0
- package/chunks/chunk-UNXRB2AV.js +16 -0
- package/chunks/{chunk-JJ7DN7NN.js → chunk-VI2MRY6N.js} +7 -7
- package/chunks/{chunk-65NTXENV.js → chunk-WSC3WODJ.js} +1 -1
- package/chunks/{chunk-ZUQEHFGL.js → chunk-WWTWL2OF.js} +8 -8
- package/chunks/{chunk-SKBOSWM2.js → chunk-X5HMM3LD.js} +1 -1
- package/chunks/{chunk-QJXJT5JS.js → chunk-XLHOA3NR.js} +2 -2
- package/chunks/{chunk-GUBFCOBT.js → chunk-XPGAVZGK.js} +1 -1
- package/chunks/chunk-YPTFPS76.js +91 -0
- package/chunks/chunk-YUSINH7T.js +16 -0
- package/chunks/{chunk-QW34TQCS.js → chunk-YXLHZ2KW.js} +2 -2
- package/chunks/chunk-ZJSABMHZ.js +20 -0
- package/chunks/{chunk-5LK2YLTK.js → chunk-ZLBSI4TR.js} +1 -1
- package/chunks/chunk-ZQQ6H6BY.js +41 -0
- package/components/Comp/index.js +3 -6
- package/components/index.js +13 -0
- package/node/@aws-s3/index.js +6 -5
- package/node/@aws-s3/storage/directory/index.js +4 -4
- package/node/@aws-s3/storage/file/index.js +4 -4
- package/node/@aws-s3/storage/index.js +5 -5
- package/node/@design-edito/index.js +1 -0
- package/node/@express/index.js +1 -0
- package/node/@google-cloud/index.js +10 -9
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/directory/index.js +4 -4
- package/node/@google-cloud/storage/file/index.js +8 -8
- package/node/@google-cloud/storage/index.js +11 -11
- package/node/cloud-storage/index.js +21 -20
- package/node/cloud-storage/operations/copy-dir/index.js +1 -1
- package/node/cloud-storage/operations/copy-file/index.js +1 -1
- package/node/cloud-storage/operations/download-file/index.js +1 -1
- package/node/cloud-storage/operations/exists-file/index.js +1 -1
- package/node/cloud-storage/operations/index.js +23 -23
- package/node/cloud-storage/operations/list-dir/index.js +1 -1
- package/node/cloud-storage/operations/move-dir/index.js +1 -1
- package/node/cloud-storage/operations/move-file/index.js +1 -1
- package/node/cloud-storage/operations/remove-dir/index.js +1 -1
- package/node/cloud-storage/operations/remove-file/index.js +1 -1
- package/node/cloud-storage/operations/stat-file/index.js +1 -1
- package/node/cloud-storage/operations/upload-file/index.js +1 -1
- package/node/encryption/index.js +4 -3
- package/node/files/index.js +9 -15
- package/node/ftps/directory/index.js +4 -4
- package/node/ftps/file/index.js +4 -4
- package/node/ftps/index.js +7 -6
- package/node/images/create/index.js +15 -14
- package/node/images/format/index.js +15 -14
- package/node/images/index.js +34 -30
- package/node/images/metadata/index.js +15 -14
- package/node/images/transform/index.js +27 -25
- package/node/images/transform/operations/extend/index.js +15 -14
- package/node/images/transform/operations/flatten/index.js +15 -14
- package/node/images/transform/operations/overlay/index.js +15 -14
- package/node/images/transform/operations/resize/index.js +15 -14
- package/node/images/transform/operations/rotate/index.js +15 -14
- package/node/images/types.js +9 -0
- package/node/images/utils/index.js +14 -13
- package/node/index.js +172 -0
- package/node/process/index.js +7 -13
- package/node/sftp/directory/index.js +4 -4
- package/node/sftp/file/index.js +4 -4
- package/node/sftp/index.js +7 -6
- package/package.json +1 -1
- package/{chunks/chunk-ALMK24GK.js → agnostic/optim/throttle-debounce/types.js} +0 -0
- package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
- package/chunks/{chunk-X5F6XGEP.js → chunk-4HPG6TEE.js} +3 -3
- package/chunks/{chunk-ASCJDM27.js → chunk-4P4MXSRC.js} +3 -3
- package/chunks/{chunk-ZBAKY6DB.js → chunk-G6C3VTOA.js} +3 -3
- package/chunks/{chunk-A7K5DUP7.js → chunk-IGFA7IDA.js} +3 -3
- package/chunks/{chunk-X5VXP4GS.js → chunk-IK3YAMUY.js} +3 -3
- package/chunks/{chunk-CNMP2GU4.js → chunk-LE23WL3C.js} +3 -3
- package/chunks/{chunk-QN3UAKIU.js → chunk-MJQF3YZO.js} +3 -3
- package/chunks/{chunk-UEAMPAHK.js → chunk-OMTDHKJI.js} +3 -3
- package/chunks/{chunk-2DW5MV3U.js → chunk-PCWD23PL.js} +3 -3
- package/chunks/{chunk-RBH5MYJ7.js → chunk-SQ7G3ZA7.js} +7 -7
- package/chunks/{chunk-7SZXDQVJ.js → chunk-WAPVSFU4.js} +11 -11
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upload_file_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WWTWL2OF.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
download_file_exports
|
|
6
|
+
} from "./chunk-A2C4VISH.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
exists_file_exports
|
|
9
|
+
} from "./chunk-4PEPTXU3.js";
|
|
10
10
|
import {
|
|
11
11
|
move_dir_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JEMWHVTN.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
list_dir_exports
|
|
15
|
+
} from "./chunk-GHAF5VTP.js";
|
|
16
16
|
import {
|
|
17
17
|
move_file_exports
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OBTCE47R.js";
|
|
19
19
|
import {
|
|
20
20
|
remove_file_exports
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SPLPZBQR.js";
|
|
22
22
|
import {
|
|
23
23
|
stat_file_exports
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TMB3PV3Q.js";
|
|
25
25
|
import {
|
|
26
26
|
remove_dir_exports
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DPIPDGYH.js";
|
|
28
28
|
import {
|
|
29
29
|
copy_dir_exports
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KVZMRVOB.js";
|
|
31
31
|
import {
|
|
32
32
|
copy_file_exports
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-QB5OBWPS.js";
|
|
34
34
|
import {
|
|
35
35
|
__export
|
|
36
36
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
removeDir as
|
|
2
|
+
removeDir as removeDir2
|
|
3
3
|
} from "./chunk-QLDN574K.js";
|
|
4
4
|
import {
|
|
5
|
-
removeDir
|
|
5
|
+
removeDir
|
|
6
6
|
} from "./chunk-4XSDRT23.js";
|
|
7
7
|
import {
|
|
8
|
-
removeDir
|
|
8
|
+
removeDir as removeDir3
|
|
9
9
|
} from "./chunk-BSUQNHAM.js";
|
|
10
10
|
import {
|
|
11
|
-
removeDir as
|
|
11
|
+
removeDir as removeDir4
|
|
12
12
|
} from "./chunk-5ZJ3KJPK.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(remove_dir_exports, {
|
|
|
29
29
|
removeDir: () => removeDir5
|
|
30
30
|
});
|
|
31
31
|
async function removeDir5(client, sourcePath, options) {
|
|
32
|
-
if (isGcsBucket(client)) return
|
|
33
|
-
if (isS3ClientWithBucket(client)) return
|
|
34
|
-
if (isFtpClient(client)) return
|
|
35
|
-
if (isSftpClient(client)) return
|
|
32
|
+
if (isGcsBucket(client)) return removeDir2(client, sourcePath, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return removeDir(client.client, client.bucketName, sourcePath, options);
|
|
34
|
+
if (isFtpClient(client)) return removeDir3(client, sourcePath, options);
|
|
35
|
+
if (isSftpClient(client)) return removeDir4(client, sourcePath, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
4
|
+
|
|
5
|
+
// src/node/images/types.ts
|
|
6
|
+
var types_exports = {};
|
|
7
|
+
__export(types_exports, {
|
|
8
|
+
OpName: () => OpName,
|
|
9
|
+
TransformErrCodes: () => TransformErrCodes
|
|
10
|
+
});
|
|
11
|
+
var OpName = /* @__PURE__ */ ((OpName2) => {
|
|
12
|
+
OpName2["BLUR"] = "blur";
|
|
13
|
+
OpName2["BRIGHTEN"] = "brighten";
|
|
14
|
+
OpName2["EXTEND"] = "extend";
|
|
15
|
+
OpName2["EXTRACT"] = "extract";
|
|
16
|
+
OpName2["FLATTEN"] = "flatten";
|
|
17
|
+
OpName2["FLIP"] = "flip";
|
|
18
|
+
OpName2["FLOP"] = "flop";
|
|
19
|
+
OpName2["HUE"] = "hue";
|
|
20
|
+
OpName2["LEVEL"] = "level";
|
|
21
|
+
OpName2["LIGHTEN"] = "lighten";
|
|
22
|
+
OpName2["NORMALIZE"] = "normalize";
|
|
23
|
+
OpName2["OVERLAY"] = "overlay";
|
|
24
|
+
OpName2["RESIZE"] = "resize";
|
|
25
|
+
OpName2["ROTATE"] = "rotate";
|
|
26
|
+
OpName2["SATURATE"] = "saturate";
|
|
27
|
+
return OpName2;
|
|
28
|
+
})(OpName || {});
|
|
29
|
+
var TransformErrCodes = /* @__PURE__ */ ((TransformErrCodes2) => {
|
|
30
|
+
TransformErrCodes2["PROCESS_TIMEOUT"] = "process-timeout";
|
|
31
|
+
TransformErrCodes2["OP_TIMEOUT"] = "op-timeout";
|
|
32
|
+
TransformErrCodes2["WIDTH_LIMIT_EXCEEDED"] = "width-limit-exceeded";
|
|
33
|
+
TransformErrCodes2["HEIGHT_LIMIT_EXCEEDED"] = "height-limit-exceeded";
|
|
34
|
+
TransformErrCodes2["UNKNOWN_ERROR"] = "unknown-error";
|
|
35
|
+
return TransformErrCodes2;
|
|
36
|
+
})(TransformErrCodes || {});
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
OpName,
|
|
40
|
+
TransformErrCodes,
|
|
41
|
+
types_exports
|
|
42
|
+
};
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
clamp
|
|
6
6
|
} from "./chunk-OSAXBA7G.js";
|
|
7
7
|
import {
|
|
8
|
-
cssColors,
|
|
9
8
|
isCmyk,
|
|
10
9
|
isCssColor,
|
|
11
10
|
isHex,
|
|
@@ -15,7 +14,10 @@ import {
|
|
|
15
14
|
isLch,
|
|
16
15
|
isRgb,
|
|
17
16
|
isXyz
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-67V4BGOB.js";
|
|
18
|
+
import {
|
|
19
|
+
cssColors
|
|
20
|
+
} from "./chunk-7UGMWTP5.js";
|
|
19
21
|
|
|
20
22
|
// src/agnostic/colors/convert/index.ts
|
|
21
23
|
function _hex2rgb(hex) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
list as
|
|
2
|
+
list as list2
|
|
3
3
|
} from "./chunk-37TRFYZT.js";
|
|
4
4
|
import {
|
|
5
|
-
list
|
|
5
|
+
list
|
|
6
6
|
} from "./chunk-ZSUG52DO.js";
|
|
7
7
|
import {
|
|
8
|
-
list
|
|
8
|
+
list as list3
|
|
9
9
|
} from "./chunk-3CLGBOHN.js";
|
|
10
10
|
import {
|
|
11
|
-
list as
|
|
11
|
+
list as list4
|
|
12
12
|
} from "./chunk-UK2F7CWI.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(list_dir_exports, {
|
|
|
29
29
|
listDir: () => listDir
|
|
30
30
|
});
|
|
31
31
|
async function listDir(client, path, options) {
|
|
32
|
-
if (isGcsBucket(client)) return
|
|
33
|
-
if (isS3ClientWithBucket(client)) return
|
|
34
|
-
if (isFtpClient(client)) return
|
|
35
|
-
if (isSftpClient(client)) return
|
|
32
|
+
if (isGcsBucket(client)) return list2(client, path, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return list(client.client, client.bucketName, path, options);
|
|
34
|
+
if (isFtpClient(client)) return list3(client, path);
|
|
35
|
+
if (isSftpClient(client)) return list4(client, path);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
file_exports
|
|
3
|
+
} from "./chunk-IK3YAMUY.js";
|
|
4
|
+
import {
|
|
5
|
+
directory_exports
|
|
6
|
+
} from "./chunk-LE23WL3C.js";
|
|
7
|
+
import {
|
|
8
|
+
__export
|
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
10
|
+
|
|
11
|
+
// src/node/ftps/index.ts
|
|
12
|
+
var ftps_exports = {};
|
|
13
|
+
__export(ftps_exports, {
|
|
14
|
+
Directory: () => directory_exports,
|
|
15
|
+
File: () => file_exports
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
ftps_exports
|
|
20
|
+
};
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
Cast,
|
|
3
3
|
Tree,
|
|
4
4
|
Utils
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WAPVSFU4.js";
|
|
6
|
+
import {
|
|
7
|
+
Serialize
|
|
8
|
+
} from "./chunk-SXRWMH3U.js";
|
|
6
9
|
import {
|
|
7
10
|
Types
|
|
8
11
|
} from "./chunk-XEQ2PBT2.js";
|
|
9
12
|
import {
|
|
10
13
|
SmartTags
|
|
11
14
|
} from "./chunk-UT2J62LH.js";
|
|
12
|
-
import {
|
|
13
|
-
Serialize
|
|
14
|
-
} from "./chunk-SXRWMH3U.js";
|
|
15
15
|
import {
|
|
16
16
|
Transformer
|
|
17
17
|
} from "./chunk-BKO7GLC2.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
thumbnails_exports
|
|
3
|
+
} from "./chunk-JBSS64SA.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
7
|
+
|
|
8
|
+
// src/node/@design-edito/index.ts
|
|
9
|
+
var design_edito_exports = {};
|
|
10
|
+
__export(design_edito_exports, {
|
|
11
|
+
Thumbnails: () => thumbnails_exports
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
design_edito_exports
|
|
16
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
moveDir as
|
|
2
|
+
moveDir as moveDir2
|
|
3
3
|
} from "./chunk-BWYH445G.js";
|
|
4
4
|
import {
|
|
5
|
-
moveDir
|
|
5
|
+
moveDir
|
|
6
6
|
} from "./chunk-ON6LC3HE.js";
|
|
7
7
|
import {
|
|
8
|
-
moveDir
|
|
8
|
+
moveDir as moveDir3
|
|
9
9
|
} from "./chunk-BE7OXZRK.js";
|
|
10
10
|
import {
|
|
11
|
-
moveDir as
|
|
11
|
+
moveDir as moveDir4
|
|
12
12
|
} from "./chunk-RWO53U4X.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(move_dir_exports, {
|
|
|
29
29
|
moveDir: () => moveDir5
|
|
30
30
|
});
|
|
31
31
|
async function moveDir5(client, sourcePath, targetPath, options) {
|
|
32
|
-
if (isGcsBucket(client)) return
|
|
33
|
-
if (isS3ClientWithBucket(client)) return
|
|
34
|
-
if (isFtpClient(client)) return
|
|
35
|
-
if (isSftpClient(client)) return
|
|
32
|
+
if (isGcsBucket(client)) return moveDir2(client, sourcePath, targetPath, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return moveDir(client.client, client.bucketName, sourcePath, targetPath, options);
|
|
34
|
+
if (isFtpClient(client)) return moveDir3(client, sourcePath, targetPath, options);
|
|
35
|
+
if (isSftpClient(client)) return moveDir4(client, sourcePath, targetPath, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create_exports
|
|
3
|
+
} from "./chunk-PVRYR5KX.js";
|
|
4
|
+
import {
|
|
5
|
+
format_exports
|
|
6
|
+
} from "./chunk-4P6V6CHL.js";
|
|
7
|
+
import {
|
|
8
|
+
metadata_exports
|
|
9
|
+
} from "./chunk-ZLBSI4TR.js";
|
|
10
|
+
import {
|
|
11
|
+
transform_exports
|
|
12
|
+
} from "./chunk-2T2U5AD3.js";
|
|
13
|
+
import {
|
|
14
|
+
types_exports
|
|
15
|
+
} from "./chunk-FKDPPFHV.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
19
|
+
|
|
20
|
+
// src/node/images/index.ts
|
|
21
|
+
var images_exports = {};
|
|
22
|
+
__export(images_exports, {
|
|
23
|
+
Create: () => create_exports,
|
|
24
|
+
Format: () => format_exports,
|
|
25
|
+
Metadata: () => metadata_exports,
|
|
26
|
+
Transform: () => transform_exports,
|
|
27
|
+
Types: () => types_exports
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
images_exports
|
|
32
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toSharpColor
|
|
3
|
+
} from "./chunk-D5CCWCEI.js";
|
|
1
4
|
import {
|
|
2
5
|
zod_default
|
|
3
6
|
} from "./chunk-DZ2T5DTY.js";
|
|
4
|
-
import {
|
|
5
|
-
toSharpColor
|
|
6
|
-
} from "./chunk-BKIF2ELV.js";
|
|
7
7
|
import {
|
|
8
8
|
Outcome
|
|
9
9
|
} from "./chunk-JMU5PDBD.js";
|
|
10
10
|
import {
|
|
11
11
|
isColor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-67V4BGOB.js";
|
|
13
13
|
|
|
14
14
|
// src/node/images/transform/operations/resize/index.ts
|
|
15
15
|
function isResizeOperationParams(obj) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
copyDir as
|
|
2
|
+
copyDir as copyDir2
|
|
3
3
|
} from "./chunk-V3L55I2S.js";
|
|
4
4
|
import {
|
|
5
|
-
copyDir
|
|
5
|
+
copyDir
|
|
6
6
|
} from "./chunk-4XBUJAQU.js";
|
|
7
7
|
import {
|
|
8
|
-
copyDir
|
|
8
|
+
copyDir as copyDir3
|
|
9
9
|
} from "./chunk-N2T672IG.js";
|
|
10
10
|
import {
|
|
11
|
-
copyDir as
|
|
11
|
+
copyDir as copyDir4
|
|
12
12
|
} from "./chunk-WAHPAZQS.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(copy_dir_exports, {
|
|
|
29
29
|
copyDir: () => copyDir5
|
|
30
30
|
});
|
|
31
31
|
async function copyDir5(client, sourcePath, targetPath, options) {
|
|
32
|
-
if (isGcsBucket(client)) return
|
|
33
|
-
if (isS3ClientWithBucket(client)) return
|
|
34
|
-
if (isFtpClient(client)) return
|
|
35
|
-
if (isSftpClient(client)) return
|
|
32
|
+
if (isGcsBucket(client)) return copyDir2(client, sourcePath, targetPath, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return copyDir(client.client, client.bucketName, sourcePath, targetPath, options);
|
|
34
|
+
if (isFtpClient(client)) return copyDir3(client, sourcePath, targetPath);
|
|
35
|
+
if (isSftpClient(client)) return copyDir4(client, sourcePath, targetPath);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bucket_exports
|
|
3
|
-
} from "./chunk-UEAMPAHK.js";
|
|
4
1
|
import {
|
|
5
2
|
file_exports
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SQ7G3ZA7.js";
|
|
4
|
+
import {
|
|
5
|
+
bucket_exports
|
|
6
|
+
} from "./chunk-OMTDHKJI.js";
|
|
7
7
|
import {
|
|
8
8
|
directory_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4HPG6TEE.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
palette
|
|
3
|
+
} from "./chunk-MFIGSRSO.js";
|
|
4
|
+
import {
|
|
5
|
+
rotate
|
|
6
|
+
} from "./chunk-YXLHZ2KW.js";
|
|
7
|
+
import {
|
|
8
|
+
addChannel,
|
|
9
|
+
getChannel,
|
|
10
|
+
multChannel,
|
|
11
|
+
setChannel
|
|
12
|
+
} from "./chunk-NCYE5WML.js";
|
|
13
|
+
import {
|
|
14
|
+
distance
|
|
15
|
+
} from "./chunk-L7PIZQFC.js";
|
|
16
|
+
import {
|
|
17
|
+
lerp
|
|
18
|
+
} from "./chunk-XPGAVZGK.js";
|
|
19
|
+
import {
|
|
20
|
+
invert
|
|
21
|
+
} from "./chunk-EGBJXHCW.js";
|
|
22
|
+
import {
|
|
23
|
+
grayscale
|
|
24
|
+
} from "./chunk-WSC3WODJ.js";
|
|
25
|
+
import {
|
|
26
|
+
contrast
|
|
27
|
+
} from "./chunk-5CTAKAIP.js";
|
|
28
|
+
import {
|
|
29
|
+
luminance
|
|
30
|
+
} from "./chunk-3LCD73SB.js";
|
|
31
|
+
import {
|
|
32
|
+
tidy,
|
|
33
|
+
toCmyk,
|
|
34
|
+
toHsb,
|
|
35
|
+
toHsl,
|
|
36
|
+
toLab,
|
|
37
|
+
toLch,
|
|
38
|
+
toRgb,
|
|
39
|
+
toXyz,
|
|
40
|
+
viaCmyk,
|
|
41
|
+
viaHsb,
|
|
42
|
+
viaHsl,
|
|
43
|
+
viaLab,
|
|
44
|
+
viaLch,
|
|
45
|
+
viaRgb,
|
|
46
|
+
viaXyz
|
|
47
|
+
} from "./chunk-FNQAF6CQ.js";
|
|
48
|
+
import {
|
|
49
|
+
isCmyk,
|
|
50
|
+
isColor,
|
|
51
|
+
isCssColor,
|
|
52
|
+
isHex,
|
|
53
|
+
isHsb,
|
|
54
|
+
isHsl,
|
|
55
|
+
isLab,
|
|
56
|
+
isLch,
|
|
57
|
+
isRgb,
|
|
58
|
+
isXyz
|
|
59
|
+
} from "./chunk-67V4BGOB.js";
|
|
60
|
+
import {
|
|
61
|
+
types_exports
|
|
62
|
+
} from "./chunk-7UGMWTP5.js";
|
|
63
|
+
import {
|
|
64
|
+
__export
|
|
65
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
66
|
+
|
|
67
|
+
// src/agnostic/colors/index.ts
|
|
68
|
+
var colors_exports = {};
|
|
69
|
+
__export(colors_exports, {
|
|
70
|
+
Types: () => types_exports,
|
|
71
|
+
addChannel: () => addChannel,
|
|
72
|
+
contrast: () => contrast,
|
|
73
|
+
distance: () => distance,
|
|
74
|
+
getChannel: () => getChannel,
|
|
75
|
+
grayscale: () => grayscale,
|
|
76
|
+
invert: () => invert,
|
|
77
|
+
isCmyk: () => isCmyk,
|
|
78
|
+
isColor: () => isColor,
|
|
79
|
+
isCssColor: () => isCssColor,
|
|
80
|
+
isHex: () => isHex,
|
|
81
|
+
isHsb: () => isHsb,
|
|
82
|
+
isHsl: () => isHsl,
|
|
83
|
+
isLab: () => isLab,
|
|
84
|
+
isLch: () => isLch,
|
|
85
|
+
isRgb: () => isRgb,
|
|
86
|
+
isXyz: () => isXyz,
|
|
87
|
+
lerp: () => lerp,
|
|
88
|
+
luminance: () => luminance,
|
|
89
|
+
multChannel: () => multChannel,
|
|
90
|
+
palette: () => palette,
|
|
91
|
+
rotate: () => rotate,
|
|
92
|
+
setChannel: () => setChannel,
|
|
93
|
+
tidy: () => tidy,
|
|
94
|
+
toCmyk: () => toCmyk,
|
|
95
|
+
toHsb: () => toHsb,
|
|
96
|
+
toHsl: () => toHsl,
|
|
97
|
+
toLab: () => toLab,
|
|
98
|
+
toLch: () => toLch,
|
|
99
|
+
toRgb: () => toRgb,
|
|
100
|
+
toXyz: () => toXyz,
|
|
101
|
+
viaCmyk: () => viaCmyk,
|
|
102
|
+
viaHsb: () => viaHsb,
|
|
103
|
+
viaHsl: () => viaHsl,
|
|
104
|
+
viaLab: () => viaLab,
|
|
105
|
+
viaLch: () => viaLch,
|
|
106
|
+
viaRgb: () => viaRgb,
|
|
107
|
+
viaXyz: () => viaXyz
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
colors_exports
|
|
112
|
+
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
zod_default
|
|
3
|
-
} from "./chunk-DZ2T5DTY.js";
|
|
4
1
|
import {
|
|
5
2
|
isDuckTypedSharpInstance,
|
|
6
3
|
toSharpInstance
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D5CCWCEI.js";
|
|
5
|
+
import {
|
|
6
|
+
zod_default
|
|
7
|
+
} from "./chunk-DZ2T5DTY.js";
|
|
8
8
|
import {
|
|
9
9
|
Outcome
|
|
10
10
|
} from "./chunk-JMU5PDBD.js";
|
|
11
11
|
import {
|
|
12
12
|
isColor
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-67V4BGOB.js";
|
|
14
14
|
|
|
15
15
|
// src/node/images/transform/operations/overlay/index.ts
|
|
16
|
+
import sharp from "sharp";
|
|
16
17
|
function isOverlayOperationParams(obj) {
|
|
17
18
|
const schema = zod_default.object({
|
|
18
19
|
input: zod_default.union([
|
|
@@ -89,10 +90,10 @@ function isOverlayOperationParams(obj) {
|
|
|
89
90
|
}
|
|
90
91
|
async function overlay(sharpInstance, params) {
|
|
91
92
|
const inputBuffer = params.input instanceof Buffer ? params.input : await (await toSharpInstance(params.input)).toBuffer();
|
|
92
|
-
return sharpInstance.composite([{
|
|
93
|
+
return sharp(await sharpInstance.composite([{
|
|
93
94
|
...params,
|
|
94
95
|
input: inputBuffer
|
|
95
|
-
}]);
|
|
96
|
+
}]).webp().toBuffer());
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
recordFormat
|
|
3
|
+
} from "./chunk-YP64J65L.js";
|
|
4
|
+
import {
|
|
5
|
+
recordMap
|
|
6
|
+
} from "./chunk-XNF5MLCQ.js";
|
|
7
|
+
import {
|
|
8
|
+
Validation
|
|
9
|
+
} from "./chunk-FPEW3A27.js";
|
|
10
|
+
import {
|
|
11
|
+
Enums
|
|
12
|
+
} from "./chunk-WOAYU6LB.js";
|
|
13
|
+
import {
|
|
14
|
+
deepGetProperty
|
|
15
|
+
} from "./chunk-SKMCIFS3.js";
|
|
16
|
+
import {
|
|
17
|
+
isRecord
|
|
18
|
+
} from "./chunk-YDIBNEGA.js";
|
|
19
|
+
import {
|
|
20
|
+
flattenGetters
|
|
21
|
+
} from "./chunk-VFJYLXCI.js";
|
|
22
|
+
import {
|
|
23
|
+
isNonNullObject,
|
|
24
|
+
isObject
|
|
25
|
+
} from "./chunk-HQLRJ7XW.js";
|
|
26
|
+
|
|
27
|
+
// src/agnostic/objects/index.ts
|
|
28
|
+
var Objects;
|
|
29
|
+
((Objects2) => {
|
|
30
|
+
Objects2.deepGetProperty = deepGetProperty;
|
|
31
|
+
Objects2.Enums = Enums;
|
|
32
|
+
Objects2.flattenGetters = flattenGetters;
|
|
33
|
+
Objects2.isObject = isObject;
|
|
34
|
+
Objects2.isNonNullObject = isNonNullObject;
|
|
35
|
+
Objects2.isRecord = isRecord;
|
|
36
|
+
Objects2.recordFormat = recordFormat;
|
|
37
|
+
Objects2.recordMap = recordMap;
|
|
38
|
+
Objects2.Validation = Validation;
|
|
39
|
+
})(Objects || (Objects = {}));
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
Objects
|
|
43
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toSharpColor
|
|
3
|
+
} from "./chunk-D5CCWCEI.js";
|
|
1
4
|
import {
|
|
2
5
|
zod_default
|
|
3
6
|
} from "./chunk-DZ2T5DTY.js";
|
|
4
|
-
import {
|
|
5
|
-
toSharpColor
|
|
6
|
-
} from "./chunk-BKIF2ELV.js";
|
|
7
7
|
import {
|
|
8
8
|
Outcome
|
|
9
9
|
} from "./chunk-JMU5PDBD.js";
|
|
10
10
|
import {
|
|
11
11
|
isColor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-67V4BGOB.js";
|
|
13
13
|
|
|
14
14
|
// src/node/images/transform/operations/extend/index.ts
|
|
15
15
|
function isExtendOperationParams(obj) {
|