@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,64 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
isNormalizeOperationParams,
|
|
7
|
-
normalize
|
|
8
|
-
} from "./chunk-3G6FOHII.js";
|
|
2
|
+
isResizeOperationParams,
|
|
3
|
+
resize
|
|
4
|
+
} from "./chunk-KGRQKEDD.js";
|
|
9
5
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
6
|
+
isRotateOperationParams,
|
|
7
|
+
rotate
|
|
8
|
+
} from "./chunk-S3K2QPZ6.js";
|
|
13
9
|
import {
|
|
14
10
|
isOverlayOperationParams,
|
|
15
11
|
overlay
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MMZRJLHD.js";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
isResizeOperationParams,
|
|
23
|
-
resize
|
|
24
|
-
} from "./chunk-KDOMQ4LM.js";
|
|
14
|
+
extract,
|
|
15
|
+
isExtractOperationParams
|
|
16
|
+
} from "./chunk-HFZGH6V2.js";
|
|
25
17
|
import {
|
|
26
18
|
isSaturateOperationParams,
|
|
27
19
|
saturate
|
|
28
20
|
} from "./chunk-QTA7ZEVX.js";
|
|
29
|
-
import {
|
|
30
|
-
brighten,
|
|
31
|
-
isBrightenOperationParams
|
|
32
|
-
} from "./chunk-SRXNICSE.js";
|
|
33
|
-
import {
|
|
34
|
-
blur,
|
|
35
|
-
isBlurOperationParams
|
|
36
|
-
} from "./chunk-P26Y7YUA.js";
|
|
37
21
|
import {
|
|
38
22
|
extend,
|
|
39
23
|
isExtendOperationParams
|
|
40
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NLCZUDXC.js";
|
|
41
25
|
import {
|
|
42
26
|
flatten,
|
|
43
27
|
isFlattenOperationParams
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
extract,
|
|
47
|
-
isExtractOperationParams
|
|
48
|
-
} from "./chunk-HFZGH6V2.js";
|
|
28
|
+
} from "./chunk-PNJI3RCF.js";
|
|
49
29
|
import {
|
|
50
30
|
flip
|
|
51
31
|
} from "./chunk-WNDMYNDU.js";
|
|
52
32
|
import {
|
|
53
33
|
flop
|
|
54
34
|
} from "./chunk-YA2YCZUF.js";
|
|
35
|
+
import {
|
|
36
|
+
hue,
|
|
37
|
+
isHueOperationParams
|
|
38
|
+
} from "./chunk-QSU3CVGF.js";
|
|
55
39
|
import {
|
|
56
40
|
isLevelOperationParams,
|
|
57
41
|
level
|
|
58
42
|
} from "./chunk-2HJPX7E3.js";
|
|
43
|
+
import {
|
|
44
|
+
isLightenOperationParams,
|
|
45
|
+
lighten
|
|
46
|
+
} from "./chunk-RHKFMXM3.js";
|
|
47
|
+
import {
|
|
48
|
+
isNormalizeOperationParams,
|
|
49
|
+
normalize
|
|
50
|
+
} from "./chunk-3G6FOHII.js";
|
|
59
51
|
import {
|
|
60
52
|
toSharpInstance
|
|
61
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-D5CCWCEI.js";
|
|
54
|
+
import {
|
|
55
|
+
blur,
|
|
56
|
+
isBlurOperationParams
|
|
57
|
+
} from "./chunk-P26Y7YUA.js";
|
|
58
|
+
import {
|
|
59
|
+
brighten,
|
|
60
|
+
isBrightenOperationParams
|
|
61
|
+
} from "./chunk-SRXNICSE.js";
|
|
62
62
|
import {
|
|
63
63
|
Outcome
|
|
64
64
|
} from "./chunk-JMU5PDBD.js";
|
|
@@ -78,41 +78,6 @@ __export(transform_exports, {
|
|
|
78
78
|
isOperationDescriptor: () => isOperationDescriptor,
|
|
79
79
|
transform: () => transform
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
// src/node/images/types.ts
|
|
83
|
-
var types_exports = {};
|
|
84
|
-
__export(types_exports, {
|
|
85
|
-
OpName: () => OpName,
|
|
86
|
-
TransformErrCodes: () => TransformErrCodes
|
|
87
|
-
});
|
|
88
|
-
var OpName = /* @__PURE__ */ ((OpName2) => {
|
|
89
|
-
OpName2["BLUR"] = "blur";
|
|
90
|
-
OpName2["BRIGHTEN"] = "brighten";
|
|
91
|
-
OpName2["EXTEND"] = "extend";
|
|
92
|
-
OpName2["EXTRACT"] = "extract";
|
|
93
|
-
OpName2["FLATTEN"] = "flatten";
|
|
94
|
-
OpName2["FLIP"] = "flip";
|
|
95
|
-
OpName2["FLOP"] = "flop";
|
|
96
|
-
OpName2["HUE"] = "hue";
|
|
97
|
-
OpName2["LEVEL"] = "level";
|
|
98
|
-
OpName2["LIGHTEN"] = "lighten";
|
|
99
|
-
OpName2["NORMALIZE"] = "normalize";
|
|
100
|
-
OpName2["OVERLAY"] = "overlay";
|
|
101
|
-
OpName2["RESIZE"] = "resize";
|
|
102
|
-
OpName2["ROTATE"] = "rotate";
|
|
103
|
-
OpName2["SATURATE"] = "saturate";
|
|
104
|
-
return OpName2;
|
|
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
81
|
var validators = {
|
|
117
82
|
["blur" /* BLUR */]: isBlurOperationParams,
|
|
118
83
|
["brighten" /* BRIGHTEN */]: isBrightenOperationParams,
|
|
@@ -235,7 +200,6 @@ async function transform(input, operationsSequence, limits) {
|
|
|
235
200
|
}
|
|
236
201
|
|
|
237
202
|
export {
|
|
238
|
-
types_exports,
|
|
239
203
|
isOperationDescriptor,
|
|
240
204
|
transform,
|
|
241
205
|
transform_exports
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Bem
|
|
3
|
+
} from "./chunk-KIONYWA7.js";
|
|
4
|
+
import {
|
|
5
|
+
generateNiceColor,
|
|
6
|
+
niceColors
|
|
7
|
+
} from "./chunk-EDVNAV3G.js";
|
|
8
|
+
import {
|
|
9
|
+
StylesSet,
|
|
10
|
+
StylesSetComp
|
|
11
|
+
} from "./chunk-PX4DPCZM.js";
|
|
12
|
+
import {
|
|
13
|
+
classNameRegex,
|
|
14
|
+
isValidClassName
|
|
15
|
+
} from "./chunk-W5A2TON3.js";
|
|
16
|
+
|
|
17
|
+
// src/agnostic/css/index.ts
|
|
18
|
+
var Css;
|
|
19
|
+
((Css2) => {
|
|
20
|
+
Css2.Bem = Bem;
|
|
21
|
+
Css2.niceColors = niceColors;
|
|
22
|
+
Css2.generateNiceColor = generateNiceColor;
|
|
23
|
+
Css2.classNameRegex = classNameRegex;
|
|
24
|
+
Css2.isValidClassName = isValidClassName;
|
|
25
|
+
Css2.StylesSet = StylesSet;
|
|
26
|
+
Css2.StylesSetComp = StylesSetComp;
|
|
27
|
+
})(Css || (Css = {}));
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
Css
|
|
31
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
zod_default
|
|
3
|
-
} from "./chunk-DZ2T5DTY.js";
|
|
4
1
|
import {
|
|
5
2
|
toSharpColor,
|
|
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";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-OSAXBA7G.js";
|
|
14
14
|
import {
|
|
15
15
|
isColor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-67V4BGOB.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
exists as
|
|
2
|
+
exists as exists2
|
|
3
3
|
} from "./chunk-5VHFXWFM.js";
|
|
4
4
|
import {
|
|
5
|
-
exists
|
|
5
|
+
exists
|
|
6
6
|
} from "./chunk-ZEZCYPLQ.js";
|
|
7
7
|
import {
|
|
8
|
-
exists
|
|
8
|
+
exists as exists3
|
|
9
9
|
} from "./chunk-ZJTWDCNZ.js";
|
|
10
10
|
import {
|
|
11
|
-
exists as
|
|
11
|
+
exists as exists4
|
|
12
12
|
} from "./chunk-QVPS2BCJ.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(exists_file_exports, {
|
|
|
29
29
|
existsFile: () => existsFile
|
|
30
30
|
});
|
|
31
31
|
async function existsFile(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 exists2(client, path, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return exists(client.client, client.bucketName, path, options);
|
|
34
|
+
if (isFtpClient(client)) return exists3(client, path);
|
|
35
|
+
if (isSftpClient(client)) return exists4(client, path);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isNonNullObject
|
|
3
|
+
} from "./chunk-HQLRJ7XW.js";
|
|
4
|
+
import {
|
|
5
|
+
cssColors
|
|
6
|
+
} from "./chunk-7UGMWTP5.js";
|
|
7
|
+
|
|
8
|
+
// src/agnostic/colors/typechecks/index.ts
|
|
9
|
+
var isHex = (color) => {
|
|
10
|
+
if (typeof color !== "string") return false;
|
|
11
|
+
if (!color.startsWith("#")) return false;
|
|
12
|
+
const withoutHash = color.slice(1);
|
|
13
|
+
const withoutHashLength = withoutHash.length;
|
|
14
|
+
const allowedLengths = [3, 4, 6, 8];
|
|
15
|
+
if (!allowedLengths.includes(withoutHashLength)) return false;
|
|
16
|
+
return /^[0-9a-f]+$/igm.test(withoutHash);
|
|
17
|
+
};
|
|
18
|
+
var isRgb = (color) => {
|
|
19
|
+
if (!isNonNullObject(color)) return false;
|
|
20
|
+
const { r, g, b, a } = color;
|
|
21
|
+
if (typeof r !== "number") return false;
|
|
22
|
+
if (typeof g !== "number") return false;
|
|
23
|
+
if (typeof b !== "number") return false;
|
|
24
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
25
|
+
return true;
|
|
26
|
+
};
|
|
27
|
+
var isHsl = (color) => {
|
|
28
|
+
if (!isNonNullObject(color)) return false;
|
|
29
|
+
const { h, s, l, a } = color;
|
|
30
|
+
if (typeof h !== "number") return false;
|
|
31
|
+
if (typeof s !== "number") return false;
|
|
32
|
+
if (typeof l !== "number") return false;
|
|
33
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
34
|
+
return true;
|
|
35
|
+
};
|
|
36
|
+
var isHsb = (color) => {
|
|
37
|
+
if (!isNonNullObject(color)) return false;
|
|
38
|
+
const { h, s, b, a } = color;
|
|
39
|
+
if (typeof h !== "number") return false;
|
|
40
|
+
if (typeof s !== "number") return false;
|
|
41
|
+
if (typeof b !== "number") return false;
|
|
42
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
43
|
+
return true;
|
|
44
|
+
};
|
|
45
|
+
var isLab = (color) => {
|
|
46
|
+
if (!isNonNullObject(color)) return false;
|
|
47
|
+
const { l, a, b, al } = color;
|
|
48
|
+
if (typeof l !== "number") return false;
|
|
49
|
+
if (typeof a !== "number") return false;
|
|
50
|
+
if (typeof b !== "number") return false;
|
|
51
|
+
if (al !== void 0 && typeof al !== "number") return false;
|
|
52
|
+
return true;
|
|
53
|
+
};
|
|
54
|
+
var isLch = (color) => {
|
|
55
|
+
if (!isNonNullObject(color)) return false;
|
|
56
|
+
const { l, c, h, a } = color;
|
|
57
|
+
if (typeof l !== "number") return false;
|
|
58
|
+
if (typeof c !== "number") return false;
|
|
59
|
+
if (typeof h !== "number") return false;
|
|
60
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
61
|
+
return true;
|
|
62
|
+
};
|
|
63
|
+
var isCmyk = (color) => {
|
|
64
|
+
if (!isNonNullObject(color)) return false;
|
|
65
|
+
const { c, m, y, k, a } = color;
|
|
66
|
+
if (typeof c !== "number") return false;
|
|
67
|
+
if (typeof m !== "number") return false;
|
|
68
|
+
if (typeof y !== "number") return false;
|
|
69
|
+
if (typeof k !== "number") return false;
|
|
70
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
71
|
+
return true;
|
|
72
|
+
};
|
|
73
|
+
var isXyz = (color) => {
|
|
74
|
+
if (!isNonNullObject(color)) return false;
|
|
75
|
+
const { x, y, z, a } = color;
|
|
76
|
+
if (typeof x !== "number") return false;
|
|
77
|
+
if (typeof y !== "number") return false;
|
|
78
|
+
if (typeof z !== "number") return false;
|
|
79
|
+
if (a !== void 0 && typeof a !== "number") return false;
|
|
80
|
+
return true;
|
|
81
|
+
};
|
|
82
|
+
var isCssColor = (color) => typeof color === "string" && cssColors[color] !== void 0;
|
|
83
|
+
var isColor = (color) => {
|
|
84
|
+
if (isHex(color)) return true;
|
|
85
|
+
if (isCssColor(color)) return true;
|
|
86
|
+
if (isRgb(color)) return true;
|
|
87
|
+
if (isHsl(color)) return true;
|
|
88
|
+
if (isHsb(color)) return true;
|
|
89
|
+
if (isCmyk(color)) return true;
|
|
90
|
+
if (isXyz(color)) return true;
|
|
91
|
+
if (isLab(color)) return true;
|
|
92
|
+
if (isLch(color)) return true;
|
|
93
|
+
return false;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
isHex,
|
|
98
|
+
isRgb,
|
|
99
|
+
isHsl,
|
|
100
|
+
isHsb,
|
|
101
|
+
isLab,
|
|
102
|
+
isLch,
|
|
103
|
+
isCmyk,
|
|
104
|
+
isXyz,
|
|
105
|
+
isCssColor,
|
|
106
|
+
isColor
|
|
107
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
beforeExit,
|
|
3
|
+
beforeForcedExit,
|
|
4
|
+
forceExitEvents,
|
|
5
|
+
onAllExits,
|
|
6
|
+
onExit
|
|
7
|
+
} from "./chunk-LEXQ6E6L.js";
|
|
8
|
+
import {
|
|
9
|
+
__export
|
|
10
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
11
|
+
|
|
12
|
+
// src/node/process/index.ts
|
|
13
|
+
var process_exports = {};
|
|
14
|
+
__export(process_exports, {
|
|
15
|
+
beforeExit: () => beforeExit2,
|
|
16
|
+
beforeForcedExit: () => beforeForcedExit2,
|
|
17
|
+
forceExitEvents: () => forceExitEvents2,
|
|
18
|
+
onAllExits: () => onAllExits2,
|
|
19
|
+
onExit: () => onExit2
|
|
20
|
+
});
|
|
21
|
+
var forceExitEvents2 = forceExitEvents;
|
|
22
|
+
var beforeForcedExit2 = beforeForcedExit;
|
|
23
|
+
var beforeExit2 = beforeExit;
|
|
24
|
+
var onExit2 = onExit;
|
|
25
|
+
var onAllExits2 = onAllExits;
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
forceExitEvents2 as forceExitEvents,
|
|
29
|
+
beforeForcedExit2 as beforeForcedExit,
|
|
30
|
+
beforeExit2 as beforeExit,
|
|
31
|
+
onExit2 as onExit,
|
|
32
|
+
onAllExits2 as onAllExits,
|
|
33
|
+
process_exports
|
|
34
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
debounce,
|
|
3
|
+
throttle
|
|
4
|
+
} from "./chunk-VZDUZTW6.js";
|
|
5
|
+
import {
|
|
6
|
+
memoize
|
|
7
|
+
} from "./chunk-JWBDZPQG.js";
|
|
8
|
+
|
|
9
|
+
// src/agnostic/optim/index.ts
|
|
10
|
+
var Optim;
|
|
11
|
+
((Optim2) => {
|
|
12
|
+
Optim2.memoize = memoize;
|
|
13
|
+
Optim2.throttle = throttle;
|
|
14
|
+
Optim2.debounce = debounce;
|
|
15
|
+
})(Optim || (Optim = {}));
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
Optim
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
trimEnd,
|
|
3
|
+
trimStart
|
|
4
|
+
} from "./chunk-6XL25OZX.js";
|
|
5
|
+
import {
|
|
6
|
+
matches,
|
|
7
|
+
matchesEvery,
|
|
8
|
+
matchesSome
|
|
9
|
+
} from "./chunk-R3AWQXMY.js";
|
|
10
|
+
import {
|
|
11
|
+
CharCodes
|
|
12
|
+
} from "./chunk-34U4HX4V.js";
|
|
13
|
+
import {
|
|
14
|
+
normalizeIndent
|
|
15
|
+
} from "./chunk-JQXNEJAP.js";
|
|
16
|
+
import {
|
|
17
|
+
replaceAll
|
|
18
|
+
} from "./chunk-ZTDVUXPR.js";
|
|
19
|
+
import {
|
|
20
|
+
parseTable
|
|
21
|
+
} from "./chunk-A3CDUWGR.js";
|
|
22
|
+
import {
|
|
23
|
+
toAlphanum
|
|
24
|
+
} from "./chunk-COVPTTAD.js";
|
|
25
|
+
|
|
26
|
+
// src/agnostic/strings/index.ts
|
|
27
|
+
var Strings;
|
|
28
|
+
((Strings2) => {
|
|
29
|
+
Strings2.CharCodes = CharCodes;
|
|
30
|
+
Strings2.matches = matches;
|
|
31
|
+
Strings2.matchesSome = matchesSome;
|
|
32
|
+
Strings2.matchesEvery = matchesEvery;
|
|
33
|
+
Strings2.normalizeIndent = normalizeIndent;
|
|
34
|
+
Strings2.parseTable = parseTable;
|
|
35
|
+
Strings2.replaceAll = replaceAll;
|
|
36
|
+
Strings2.toAlphanum = toAlphanum;
|
|
37
|
+
Strings2.trimStart = trimStart;
|
|
38
|
+
Strings2.trimEnd = trimEnd;
|
|
39
|
+
})(Strings || (Strings = {}));
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
Strings
|
|
43
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isNonNullObject
|
|
3
|
-
} from "./chunk-HQLRJ7XW.js";
|
|
4
1
|
import {
|
|
5
2
|
__export
|
|
6
3
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -161,105 +158,7 @@ var cssColors = {
|
|
|
161
158
|
yellowgreen: { r: 154, g: 205, b: 50 }
|
|
162
159
|
};
|
|
163
160
|
|
|
164
|
-
// src/agnostic/colors/typechecks/index.ts
|
|
165
|
-
var isHex = (color) => {
|
|
166
|
-
if (typeof color !== "string") return false;
|
|
167
|
-
if (!color.startsWith("#")) return false;
|
|
168
|
-
const withoutHash = color.slice(1);
|
|
169
|
-
const withoutHashLength = withoutHash.length;
|
|
170
|
-
const allowedLengths = [3, 4, 6, 8];
|
|
171
|
-
if (!allowedLengths.includes(withoutHashLength)) return false;
|
|
172
|
-
return /^[0-9a-f]+$/igm.test(withoutHash);
|
|
173
|
-
};
|
|
174
|
-
var isRgb = (color) => {
|
|
175
|
-
if (!isNonNullObject(color)) return false;
|
|
176
|
-
const { r, g, b, a } = color;
|
|
177
|
-
if (typeof r !== "number") return false;
|
|
178
|
-
if (typeof g !== "number") return false;
|
|
179
|
-
if (typeof b !== "number") return false;
|
|
180
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
181
|
-
return true;
|
|
182
|
-
};
|
|
183
|
-
var isHsl = (color) => {
|
|
184
|
-
if (!isNonNullObject(color)) return false;
|
|
185
|
-
const { h, s, l, a } = color;
|
|
186
|
-
if (typeof h !== "number") return false;
|
|
187
|
-
if (typeof s !== "number") return false;
|
|
188
|
-
if (typeof l !== "number") return false;
|
|
189
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
190
|
-
return true;
|
|
191
|
-
};
|
|
192
|
-
var isHsb = (color) => {
|
|
193
|
-
if (!isNonNullObject(color)) return false;
|
|
194
|
-
const { h, s, b, a } = color;
|
|
195
|
-
if (typeof h !== "number") return false;
|
|
196
|
-
if (typeof s !== "number") return false;
|
|
197
|
-
if (typeof b !== "number") return false;
|
|
198
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
199
|
-
return true;
|
|
200
|
-
};
|
|
201
|
-
var isLab = (color) => {
|
|
202
|
-
if (!isNonNullObject(color)) return false;
|
|
203
|
-
const { l, a, b, al } = color;
|
|
204
|
-
if (typeof l !== "number") return false;
|
|
205
|
-
if (typeof a !== "number") return false;
|
|
206
|
-
if (typeof b !== "number") return false;
|
|
207
|
-
if (al !== void 0 && typeof al !== "number") return false;
|
|
208
|
-
return true;
|
|
209
|
-
};
|
|
210
|
-
var isLch = (color) => {
|
|
211
|
-
if (!isNonNullObject(color)) return false;
|
|
212
|
-
const { l, c, h, a } = color;
|
|
213
|
-
if (typeof l !== "number") return false;
|
|
214
|
-
if (typeof c !== "number") return false;
|
|
215
|
-
if (typeof h !== "number") return false;
|
|
216
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
217
|
-
return true;
|
|
218
|
-
};
|
|
219
|
-
var isCmyk = (color) => {
|
|
220
|
-
if (!isNonNullObject(color)) return false;
|
|
221
|
-
const { c, m, y, k, a } = color;
|
|
222
|
-
if (typeof c !== "number") return false;
|
|
223
|
-
if (typeof m !== "number") return false;
|
|
224
|
-
if (typeof y !== "number") return false;
|
|
225
|
-
if (typeof k !== "number") return false;
|
|
226
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
227
|
-
return true;
|
|
228
|
-
};
|
|
229
|
-
var isXyz = (color) => {
|
|
230
|
-
if (!isNonNullObject(color)) return false;
|
|
231
|
-
const { x, y, z, a } = color;
|
|
232
|
-
if (typeof x !== "number") return false;
|
|
233
|
-
if (typeof y !== "number") return false;
|
|
234
|
-
if (typeof z !== "number") return false;
|
|
235
|
-
if (a !== void 0 && typeof a !== "number") return false;
|
|
236
|
-
return true;
|
|
237
|
-
};
|
|
238
|
-
var isCssColor = (color) => typeof color === "string" && cssColors[color] !== void 0;
|
|
239
|
-
var isColor = (color) => {
|
|
240
|
-
if (isHex(color)) return true;
|
|
241
|
-
if (isCssColor(color)) return true;
|
|
242
|
-
if (isRgb(color)) return true;
|
|
243
|
-
if (isHsl(color)) return true;
|
|
244
|
-
if (isHsb(color)) return true;
|
|
245
|
-
if (isCmyk(color)) return true;
|
|
246
|
-
if (isXyz(color)) return true;
|
|
247
|
-
if (isLab(color)) return true;
|
|
248
|
-
if (isLch(color)) return true;
|
|
249
|
-
return false;
|
|
250
|
-
};
|
|
251
|
-
|
|
252
161
|
export {
|
|
253
162
|
cssColors,
|
|
254
|
-
types_exports
|
|
255
|
-
isHex,
|
|
256
|
-
isRgb,
|
|
257
|
-
isHsl,
|
|
258
|
-
isHsb,
|
|
259
|
-
isLab,
|
|
260
|
-
isLch,
|
|
261
|
-
isCmyk,
|
|
262
|
-
isXyz,
|
|
263
|
-
isCssColor,
|
|
264
|
-
isColor
|
|
163
|
+
types_exports
|
|
265
164
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
key_exports
|
|
3
|
+
} from "./chunk-HKTNK262.js";
|
|
4
|
+
import {
|
|
5
|
+
aes_256_gcm_exports
|
|
6
|
+
} from "./chunk-BGSJ5XCH.js";
|
|
7
|
+
import {
|
|
8
|
+
__export
|
|
9
|
+
} from "./chunk-WSFCRVEQ.js";
|
|
10
|
+
|
|
11
|
+
// src/node/encryption/index.ts
|
|
12
|
+
var encryption_exports = {};
|
|
13
|
+
__export(encryption_exports, {
|
|
14
|
+
AES_256_GCM: () => aes_256_gcm_exports,
|
|
15
|
+
Key: () => key_exports
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
encryption_exports
|
|
20
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
download as
|
|
2
|
+
download as download2
|
|
3
3
|
} from "./chunk-2JH4TCT2.js";
|
|
4
4
|
import {
|
|
5
|
-
download
|
|
5
|
+
download
|
|
6
6
|
} from "./chunk-IV75M3KE.js";
|
|
7
7
|
import {
|
|
8
|
-
download
|
|
8
|
+
download as download3
|
|
9
9
|
} from "./chunk-FF5NURFO.js";
|
|
10
10
|
import {
|
|
11
|
-
download as
|
|
11
|
+
download as download4
|
|
12
12
|
} from "./chunk-HWEGQVBQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isFtpClient,
|
|
@@ -29,10 +29,10 @@ __export(download_file_exports, {
|
|
|
29
29
|
downloadFile: () => downloadFile
|
|
30
30
|
});
|
|
31
31
|
async function downloadFile(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 download2(client, path, options);
|
|
33
|
+
if (isS3ClientWithBucket(client)) return download(client.client, client.bucketName, path, options);
|
|
34
|
+
if (isFtpClient(client)) return download3(client, path, options);
|
|
35
|
+
if (isSftpClient(client)) return download4(client, path, options);
|
|
36
36
|
return Outcome.makeFailure("Invalid client type");
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
falsyValues,
|
|
3
|
+
isFalsy,
|
|
4
|
+
isNotFalsy
|
|
5
|
+
} from "./chunk-QXAJXTXV.js";
|
|
6
|
+
|
|
7
|
+
// src/agnostic/booleans/index.ts
|
|
8
|
+
var Booleans;
|
|
9
|
+
((Booleans2) => {
|
|
10
|
+
Booleans2.falsyValues = falsyValues;
|
|
11
|
+
Booleans2.isFalsy = isFalsy;
|
|
12
|
+
Booleans2.isNotFalsy = isNotFalsy;
|
|
13
|
+
})(Booleans || (Booleans = {}));
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
Booleans
|
|
17
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Sanitize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RDQJSWRC.js";
|
|
4
4
|
import {
|
|
5
5
|
register
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P2H6PV4O.js";
|
|
7
7
|
|
|
8
8
|
// src/agnostic/html/string-to-nodes/index.ts
|
|
9
9
|
function stringToNodes(dirtyStr, options) {
|