@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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
move as
|
|
2
|
+
move as move2
|
|
3
3
|
} from "./chunk-6IYUA43Q.js";
|
|
4
4
|
import {
|
|
5
|
-
move
|
|
5
|
+
move
|
|
6
6
|
} from "./chunk-QWZ4ZNFA.js";
|
|
7
7
|
import {
|
|
8
|
-
move
|
|
8
|
+
move as move3
|
|
9
9
|
} from "./chunk-HRNDUTZE.js";
|
|
10
10
|
import {
|
|
11
|
-
move as
|
|
11
|
+
move as move4
|
|
12
12
|
} from "./chunk-FE4DECBU.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(move_file_exports, {
|
|
|
29
29
|
moveFile: () => moveFile
|
|
30
30
|
});
|
|
31
31
|
async function moveFile(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 move2(client, sourcePath, targetPath, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return move(client.client, client.bucketName, sourcePath, targetPath, options);
|
|
34
|
+
if (isFtpClient(client)) return move3(client, sourcePath, targetPath);
|
|
35
|
+
if (isSftpClient(client)) return move4(client, sourcePath, targetPath);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
operations_exports
|
|
3
|
+
} from "./chunk-CRLUUTBS.js";
|
|
4
|
+
import {
|
|
5
|
+
clients_exports
|
|
6
|
+
} from "./chunk-V3GX7SIJ.js";
|
|
7
|
+
import {
|
|
8
|
+
__export
|
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
10
|
+
|
|
11
|
+
// src/node/cloud-storage/index.ts
|
|
12
|
+
var cloud_storage_exports = {};
|
|
13
|
+
__export(cloud_storage_exports, {
|
|
14
|
+
Clients: () => clients_exports,
|
|
15
|
+
Operations: () => operations_exports
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
cloud_storage_exports
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
storage_exports
|
|
3
|
+
} from "./chunk-MCRHFVAD.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
7
|
+
|
|
8
|
+
// src/node/@google-cloud/index.ts
|
|
9
|
+
var google_cloud_exports = {};
|
|
10
|
+
__export(google_cloud_exports, {
|
|
11
|
+
Storage: () => storage_exports
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
google_cloud_exports
|
|
16
|
+
};
|
|
@@ -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/flatten/index.ts
|
|
15
15
|
function isFlattenOperationParams(obj) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
copy as
|
|
2
|
+
copy as copy2
|
|
3
3
|
} from "./chunk-CWZFRUBS.js";
|
|
4
4
|
import {
|
|
5
|
-
copy
|
|
5
|
+
copy
|
|
6
6
|
} from "./chunk-C6QTHDDM.js";
|
|
7
7
|
import {
|
|
8
|
-
copy
|
|
8
|
+
copy as copy3
|
|
9
9
|
} from "./chunk-NMYVJJXV.js";
|
|
10
10
|
import {
|
|
11
|
-
copy as
|
|
11
|
+
copy as copy4
|
|
12
12
|
} from "./chunk-QH64MYGA.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(copy_file_exports, {
|
|
|
29
29
|
copyFile: () => copyFile
|
|
30
30
|
});
|
|
31
31
|
async function copyFile(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 copy2(client, sourcePath, targetPath, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return copy(client.client, client.bucketName, sourcePath, targetPath, options);
|
|
34
|
+
if (isFtpClient(client)) return copy3(client, sourcePath, targetPath, options);
|
|
35
|
+
if (isSftpClient(client)) return copy4(client, sourcePath, targetPath, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isInDirectory
|
|
3
|
+
} from "./chunk-NRITRUZW.js";
|
|
4
|
+
import {
|
|
5
|
+
readWrite
|
|
6
|
+
} from "./chunk-7DBNMU6N.js";
|
|
7
|
+
import {
|
|
8
|
+
Subpaths
|
|
9
|
+
} from "./chunk-F3WCF6DL.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
13
|
+
|
|
14
|
+
// src/node/files/index.ts
|
|
15
|
+
var files_exports = {};
|
|
16
|
+
__export(files_exports, {
|
|
17
|
+
Subpaths: () => Subpaths2,
|
|
18
|
+
isInDirectory: () => isInDirectory2,
|
|
19
|
+
readWrite: () => readWrite2
|
|
20
|
+
});
|
|
21
|
+
var isInDirectory2 = isInDirectory;
|
|
22
|
+
var readWrite2 = readWrite;
|
|
23
|
+
var Subpaths2 = Subpaths;
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
isInDirectory2 as isInDirectory,
|
|
27
|
+
readWrite2 as readWrite,
|
|
28
|
+
Subpaths2 as Subpaths,
|
|
29
|
+
files_exports
|
|
30
|
+
};
|
|
@@ -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/rotate/index.ts
|
|
15
15
|
function isRotateOperationParams(obj) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
remove as
|
|
2
|
+
remove as remove2
|
|
3
3
|
} from "./chunk-7J7CYOXU.js";
|
|
4
4
|
import {
|
|
5
|
-
remove
|
|
5
|
+
remove
|
|
6
6
|
} from "./chunk-WV5N7ESL.js";
|
|
7
7
|
import {
|
|
8
|
-
remove
|
|
8
|
+
remove as remove3
|
|
9
9
|
} from "./chunk-KJAEVOIW.js";
|
|
10
10
|
import {
|
|
11
|
-
remove as
|
|
11
|
+
remove as remove4
|
|
12
12
|
} from "./chunk-ANPXBD2G.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(remove_file_exports, {
|
|
|
29
29
|
removeFile: () => removeFile
|
|
30
30
|
});
|
|
31
31
|
async function removeFile(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 remove2(client, path, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return remove(client.client, path, client.bucketName, options);
|
|
34
|
+
if (isFtpClient(client)) return remove3(client, path, options);
|
|
35
|
+
if (isSftpClient(client)) return remove4(client, path, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Logs
|
|
3
|
+
} from "./chunk-MJQF3YZO.js";
|
|
4
|
+
import {
|
|
5
|
+
LoremIpsum
|
|
6
|
+
} from "./chunk-TTYILNFU.js";
|
|
7
|
+
import {
|
|
8
|
+
Assert
|
|
9
|
+
} from "./chunk-E4FJHD5R.js";
|
|
10
|
+
import {
|
|
11
|
+
Cast
|
|
12
|
+
} from "./chunk-SNJJII7A.js";
|
|
13
|
+
import {
|
|
14
|
+
Crawler
|
|
15
|
+
} from "./chunk-YUP434IY.js";
|
|
16
|
+
import {
|
|
17
|
+
data_size_exports
|
|
18
|
+
} from "./chunk-G4ZB72XY.js";
|
|
19
|
+
import {
|
|
20
|
+
getCurrentDownlink
|
|
21
|
+
} from "./chunk-7AWTHZLY.js";
|
|
22
|
+
import {
|
|
23
|
+
Outcome
|
|
24
|
+
} from "./chunk-JMU5PDBD.js";
|
|
25
|
+
import {
|
|
26
|
+
isNotNullish,
|
|
27
|
+
isNullish,
|
|
28
|
+
nullishValues
|
|
29
|
+
} from "./chunk-HC6ZOHCS.js";
|
|
30
|
+
import {
|
|
31
|
+
Crossenv
|
|
32
|
+
} from "./chunk-FR5H2OCV.js";
|
|
33
|
+
import {
|
|
34
|
+
isConstructorFunction
|
|
35
|
+
} from "./chunk-RCO57B6F.js";
|
|
36
|
+
import {
|
|
37
|
+
__export
|
|
38
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
39
|
+
|
|
40
|
+
// src/agnostic/misc/index.ts
|
|
41
|
+
var misc_exports = {};
|
|
42
|
+
__export(misc_exports, {
|
|
43
|
+
Assert: () => Assert2,
|
|
44
|
+
Cast: () => Cast2,
|
|
45
|
+
Crawler: () => Crawler2,
|
|
46
|
+
Crossenv: () => Crossenv2,
|
|
47
|
+
DataSize: () => data_size_exports,
|
|
48
|
+
Logs: () => Logs2,
|
|
49
|
+
LoremIpsum: () => LoremIpsum2,
|
|
50
|
+
Outcome: () => Outcome2,
|
|
51
|
+
getCurrentDownlink: () => getCurrentDownlink2,
|
|
52
|
+
isConstructorFunction: () => isConstructorFunction2,
|
|
53
|
+
isNotNullish: () => isNotNullish2,
|
|
54
|
+
isNullish: () => isNullish2,
|
|
55
|
+
nullishValues: () => nullishValues2
|
|
56
|
+
});
|
|
57
|
+
var Assert2 = Assert;
|
|
58
|
+
var Cast2 = Cast;
|
|
59
|
+
var Crawler2 = Crawler;
|
|
60
|
+
var Crossenv2 = Crossenv;
|
|
61
|
+
var getCurrentDownlink2 = getCurrentDownlink;
|
|
62
|
+
var isConstructorFunction2 = isConstructorFunction;
|
|
63
|
+
var nullishValues2 = nullishValues;
|
|
64
|
+
var isNullish2 = isNullish;
|
|
65
|
+
var isNotNullish2 = isNotNullish;
|
|
66
|
+
var Logs2 = Logs;
|
|
67
|
+
var LoremIpsum2 = LoremIpsum;
|
|
68
|
+
var Outcome2 = Outcome;
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
Assert2 as Assert,
|
|
72
|
+
Cast2 as Cast,
|
|
73
|
+
Crawler2 as Crawler,
|
|
74
|
+
Crossenv2 as Crossenv,
|
|
75
|
+
getCurrentDownlink2 as getCurrentDownlink,
|
|
76
|
+
isConstructorFunction2 as isConstructorFunction,
|
|
77
|
+
nullishValues2 as nullishValues,
|
|
78
|
+
isNullish2 as isNullish,
|
|
79
|
+
isNotNullish2 as isNotNullish,
|
|
80
|
+
Logs2 as Logs,
|
|
81
|
+
LoremIpsum2 as LoremIpsum,
|
|
82
|
+
Outcome2 as Outcome,
|
|
83
|
+
misc_exports
|
|
84
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
stat as
|
|
2
|
+
stat as stat2
|
|
3
3
|
} from "./chunk-W3RXHN5I.js";
|
|
4
4
|
import {
|
|
5
|
-
stat
|
|
5
|
+
stat
|
|
6
6
|
} from "./chunk-VROZGPC5.js";
|
|
7
7
|
import {
|
|
8
|
-
stat
|
|
8
|
+
stat as stat3
|
|
9
9
|
} from "./chunk-CNYSX2L2.js";
|
|
10
10
|
import {
|
|
11
|
-
stat as
|
|
11
|
+
stat as stat4
|
|
12
12
|
} from "./chunk-TGVYEQIA.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(stat_file_exports, {
|
|
|
29
29
|
statFile: () => statFile
|
|
30
30
|
});
|
|
31
31
|
async function statFile(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 stat2(client, path, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return stat(client.client, path, client.bucketName, options);
|
|
34
|
+
if (isFtpClient(client)) return stat3(client, path);
|
|
35
|
+
if (isSftpClient(client)) return stat4(client, path);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createScale,
|
|
3
|
+
getHarmonic
|
|
4
|
+
} from "./chunk-KXIA3YGF.js";
|
|
5
|
+
import {
|
|
6
|
+
interpolate
|
|
7
|
+
} from "./chunk-BJAYUP7M.js";
|
|
8
|
+
import {
|
|
9
|
+
round
|
|
10
|
+
} from "./chunk-EOE2ODJR.js";
|
|
11
|
+
import {
|
|
12
|
+
absoluteModulo
|
|
13
|
+
} from "./chunk-DNIOWD7K.js";
|
|
14
|
+
import {
|
|
15
|
+
clamp
|
|
16
|
+
} from "./chunk-OSAXBA7G.js";
|
|
17
|
+
|
|
18
|
+
// src/agnostic/numbers/index.ts
|
|
19
|
+
var Numbers;
|
|
20
|
+
((Numbers2) => {
|
|
21
|
+
Numbers2.absoluteModulo = absoluteModulo;
|
|
22
|
+
Numbers2.clamp = clamp;
|
|
23
|
+
Numbers2.interpolate = interpolate;
|
|
24
|
+
Numbers2.getHarmonic = getHarmonic;
|
|
25
|
+
Numbers2.createScale = createScale;
|
|
26
|
+
Numbers2.round = round;
|
|
27
|
+
})(Numbers || (Numbers = {}));
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
Numbers
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
multer_exports
|
|
3
|
+
} from "./chunk-QCOO4PV5.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
7
|
+
|
|
8
|
+
// src/node/@express/index.ts
|
|
9
|
+
var express_exports = {};
|
|
10
|
+
__export(express_exports, {
|
|
11
|
+
Multer: () => multer_exports
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
express_exports
|
|
16
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
make
|
|
3
|
+
} from "./chunk-RLAZR3NL.js";
|
|
4
|
+
import {
|
|
5
|
+
randomPick,
|
|
6
|
+
randomPickMany
|
|
7
|
+
} from "./chunk-C7SRAQMW.js";
|
|
1
8
|
import {
|
|
2
9
|
shuffle
|
|
3
10
|
} from "./chunk-VJJIYJMY.js";
|
|
4
11
|
import {
|
|
5
12
|
findDuplicates
|
|
6
13
|
} from "./chunk-YS6WMSWC.js";
|
|
7
|
-
import {
|
|
8
|
-
randomPick,
|
|
9
|
-
randomPickMany
|
|
10
|
-
} from "./chunk-AQBJ6HNB.js";
|
|
11
14
|
import {
|
|
12
15
|
isArrayOf
|
|
13
16
|
} from "./chunk-6RGDWX4A.js";
|
|
14
|
-
import {
|
|
15
|
-
make
|
|
16
|
-
} from "./chunk-RLAZR3NL.js";
|
|
17
17
|
|
|
18
18
|
// src/agnostic/arrays/index.tsx
|
|
19
19
|
var Arrays;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
upload as
|
|
2
|
+
upload as upload2
|
|
3
3
|
} from "./chunk-FB3GNE2B.js";
|
|
4
4
|
import {
|
|
5
|
-
upload
|
|
5
|
+
upload
|
|
6
6
|
} from "./chunk-FD5WR2A5.js";
|
|
7
7
|
import {
|
|
8
|
-
upload
|
|
8
|
+
upload as upload3
|
|
9
9
|
} from "./chunk-CVDCTI7F.js";
|
|
10
10
|
import {
|
|
11
|
-
upload as
|
|
11
|
+
upload as upload4
|
|
12
12
|
} from "./chunk-QDVDHFMZ.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(upload_file_exports, {
|
|
|
29
29
|
uploadFile: () => uploadFile
|
|
30
30
|
});
|
|
31
31
|
async function uploadFile(fileStream, path, client, 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 upload2(client, path, fileStream, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return upload(client.client, client.bucketName, path, fileStream, options);
|
|
34
|
+
if (isFtpClient(client)) return upload3(client, path, fileStream, options);
|
|
35
|
+
if (isSftpClient(client)) return upload4(client, path, fileStream, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// src/agnostic/regexps/index.ts
|
|
2
|
+
var Regexps;
|
|
3
|
+
((Regexps2) => {
|
|
4
|
+
function mergeFlags(...flagStrs) {
|
|
5
|
+
const flagsSet = /* @__PURE__ */ new Set();
|
|
6
|
+
flagStrs.forEach(
|
|
7
|
+
(flagStr) => flagStr.split("").forEach((char) => flagsSet.add(char))
|
|
8
|
+
);
|
|
9
|
+
return Array.from(flagsSet.values()).join("");
|
|
10
|
+
}
|
|
11
|
+
Regexps2.mergeFlags = mergeFlags;
|
|
12
|
+
function setFlags(regexp, _flags) {
|
|
13
|
+
const flags = mergeFlags(regexp.flags, _flags);
|
|
14
|
+
return new RegExp(`${regexp.source}`, flags);
|
|
15
|
+
}
|
|
16
|
+
Regexps2.setFlags = setFlags;
|
|
17
|
+
function fromStart(regexp, _flags = "g") {
|
|
18
|
+
const flags = mergeFlags(regexp.flags, _flags);
|
|
19
|
+
return new RegExp(`^(${regexp.source})`, flags);
|
|
20
|
+
}
|
|
21
|
+
Regexps2.fromStart = fromStart;
|
|
22
|
+
function toEnd(regexp, _flags = "g") {
|
|
23
|
+
const flags = mergeFlags(regexp.flags, _flags);
|
|
24
|
+
return new RegExp(`(${regexp.source})$`, flags);
|
|
25
|
+
}
|
|
26
|
+
Regexps2.toEnd = toEnd;
|
|
27
|
+
function fromStartToEnd(regexp, _flags = "g") {
|
|
28
|
+
const flags = mergeFlags(regexp.flags, _flags);
|
|
29
|
+
return fromStart(toEnd(regexp, flags), flags);
|
|
30
|
+
}
|
|
31
|
+
Regexps2.fromStartToEnd = fromStartToEnd;
|
|
32
|
+
function stringStartsWith(string, _regexp, returnMatches = true, _flags = "g") {
|
|
33
|
+
const regexp = fromStart(_regexp, _flags);
|
|
34
|
+
return returnMatches ? string.match(regexp) : regexp.test(string);
|
|
35
|
+
}
|
|
36
|
+
Regexps2.stringStartsWith = stringStartsWith;
|
|
37
|
+
function stringEndsWith(string, _regexp, returnMatches = true, _flags = "g") {
|
|
38
|
+
const regexp = toEnd(_regexp, _flags);
|
|
39
|
+
return returnMatches ? string.match(regexp) : regexp.test(string);
|
|
40
|
+
}
|
|
41
|
+
Regexps2.stringEndsWith = stringEndsWith;
|
|
42
|
+
function stringIs(string, _regexp, returnMatches = false, _flags = "g") {
|
|
43
|
+
const regexp = fromStartToEnd(_regexp, _flags);
|
|
44
|
+
return returnMatches ? string.match(regexp) : regexp.test(string);
|
|
45
|
+
}
|
|
46
|
+
Regexps2.stringIs = stringIs;
|
|
47
|
+
function fromStrings(strings) {
|
|
48
|
+
const rootsMap = stringsToRootsMap(strings);
|
|
49
|
+
const source = sourceFromRootsMap(rootsMap, false);
|
|
50
|
+
const regexp = new RegExp(source);
|
|
51
|
+
return regexp;
|
|
52
|
+
}
|
|
53
|
+
Regexps2.fromStrings = fromStrings;
|
|
54
|
+
function escape(string) {
|
|
55
|
+
return string.replace(/\s/igm, "\\s").replace(/\n/igm, "\\n").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
56
|
+
}
|
|
57
|
+
Regexps2.escape = escape;
|
|
58
|
+
function stringsToRootsMap(strings, rootsMap = /* @__PURE__ */ new Map()) {
|
|
59
|
+
const lengthSorted = strings.sort((strA, strB) => strA.length - strB.length);
|
|
60
|
+
lengthSorted.forEach((string) => {
|
|
61
|
+
const [firstChar, ...lastChars] = string.split("");
|
|
62
|
+
const isWordEnd = lastChars.length === 0;
|
|
63
|
+
if (firstChar === void 0) return;
|
|
64
|
+
const roots = Array.from(rootsMap.keys());
|
|
65
|
+
const foundRoot = roots.find((root) => new RegExp(`^(${escape(root)})`).test(string));
|
|
66
|
+
const subRootsMap = foundRoot !== void 0 ? rootsMap.get(foundRoot)?.subRootsMap : void 0;
|
|
67
|
+
if (foundRoot === void 0 || subRootsMap === void 0) {
|
|
68
|
+
const subRootsMap2 = /* @__PURE__ */ new Map();
|
|
69
|
+
stringsToRootsMap([lastChars.join("")], subRootsMap2);
|
|
70
|
+
return rootsMap.set(firstChar, { subRootsMap: subRootsMap2, isWordEnd });
|
|
71
|
+
}
|
|
72
|
+
stringsToRootsMap([lastChars.join("")], subRootsMap);
|
|
73
|
+
});
|
|
74
|
+
return rootsMap;
|
|
75
|
+
}
|
|
76
|
+
function sourceFromRootsMap(rootsMap, isOptional) {
|
|
77
|
+
const rootsMapEntries = Array.from(rootsMap.entries());
|
|
78
|
+
if (rootsMapEntries.length === 0) return "";
|
|
79
|
+
const regexpBody = rootsMapEntries.map(([root, rootData]) => {
|
|
80
|
+
return `${escape(root)}${sourceFromRootsMap(
|
|
81
|
+
rootData.subRootsMap,
|
|
82
|
+
rootData.isWordEnd
|
|
83
|
+
)}`;
|
|
84
|
+
}).join("|");
|
|
85
|
+
return isOptional ? `(${regexpBody})?` : `(${regexpBody})`;
|
|
86
|
+
}
|
|
87
|
+
})(Regexps || (Regexps = {}));
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
Regexps
|
|
91
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
storage_exports
|
|
3
|
+
} from "./chunk-XLHOA3NR.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
7
|
+
|
|
8
|
+
// src/node/@aws-s3/index.ts
|
|
9
|
+
var aws_s3_exports = {};
|
|
10
|
+
__export(aws_s3_exports, {
|
|
11
|
+
Storage: () => storage_exports
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
aws_s3_exports
|
|
16
|
+
};
|