@design-edito/tools 0.2.13 → 0.2.14
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 +3 -3
- package/agnostic/colors/index.js +6 -6
- package/agnostic/css/index.js +10 -10
- package/agnostic/css/styles-set/index.js +3 -3
- package/agnostic/html/hyper-json/cast/index.js +6 -6
- package/agnostic/html/hyper-json/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +6 -6
- package/agnostic/html/hyper-json/tree/index.js +6 -6
- package/agnostic/html/hyper-json/utils/index.js +6 -6
- package/agnostic/html/index.js +13 -13
- package/agnostic/misc/index.js +14 -14
- package/agnostic/misc/lorem-ipsum/index.js +6 -6
- package/agnostic/numbers/index.js +8 -8
- package/agnostic/objects/index.js +13 -13
- package/agnostic/random/index.js +2 -2
- package/agnostic/strings/index.js +8 -8
- package/agnostic/time/index.js +8 -8
- package/chunks/{chunk-L5KVLHWF.js → chunk-3TA4CDWX.js} +4 -4
- package/chunks/{chunk-23F5NF34.js → chunk-C5BQQUAG.js} +21 -21
- package/chunks/{chunk-LPBDLSCT.js → chunk-DEW6LPOS.js} +31 -20
- package/chunks/{chunk-DBFLPPDJ.js → chunk-DWCRT664.js} +4 -4
- package/chunks/{chunk-Q373CMPR.js → chunk-GU34O65H.js} +13 -13
- package/chunks/{chunk-YPIFPJYU.js → chunk-HMZMKLMR.js} +2 -2
- package/chunks/chunk-IFQA5PWI.js +112 -0
- package/chunks/{chunk-WUW3GUNC.js → chunk-KRDVV6K3.js} +2 -2
- package/chunks/{chunk-7GIJUKYP.js → chunk-PLIJVLAB.js} +1 -1
- package/node/@aws-s3/index.js +8 -8
- package/node/@aws-s3/storage/directory/index.js +4 -4
- package/node/@aws-s3/storage/file/index.js +7 -7
- package/node/@aws-s3/storage/index.js +8 -8
- package/node/@google-cloud/index.js +13 -13
- package/node/@google-cloud/storage/directory/index.js +4 -4
- package/node/@google-cloud/storage/file/index.js +14 -14
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/index.js +15 -15
- package/node/cloud-storage/index.js +40 -40
- package/node/cloud-storage/operations/copy-dir/index.js +2 -2
- package/node/cloud-storage/operations/copy-file/index.js +2 -2
- package/node/cloud-storage/operations/download-file/index.js +2 -2
- package/node/cloud-storage/operations/exists-file/index.js +2 -2
- package/node/cloud-storage/operations/index.js +50 -50
- package/node/cloud-storage/operations/list-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-file/index.js +2 -2
- package/node/cloud-storage/operations/remove-dir/index.js +2 -2
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.js +2 -2
- package/node/cloud-storage/operations/upload-file/index.js +2 -2
- package/node/files/index.js +4 -4
- package/node/ftps/directory/index.js +4 -4
- package/node/ftps/file/index.js +7 -7
- package/node/ftps/index.js +7 -7
- package/node/images/index.js +8 -7
- package/node/images/transform/index.d.ts +9 -2
- package/node/images/transform/index.js +8 -7
- package/node/images/transform/operations/composite/index.d.ts +7 -0
- package/node/images/transform/operations/composite/index.js +12 -0
- package/node/sftp/directory/index.js +4 -4
- package/node/sftp/file/index.js +7 -7
- package/node/sftp/index.js +7 -7
- package/package.json +1 -1
- package/chunks/{chunk-LSUYC3S2.js → chunk-24ZUWYIR.js} +3 -3
- package/chunks/{chunk-OIXMQDBV.js → chunk-5TRAENM3.js} +6 -6
- package/chunks/{chunk-NVKPR4H5.js → chunk-646R6BQZ.js} +3 -3
- package/chunks/{chunk-P7VNHQBT.js → chunk-6EJIBLPQ.js} +6 -6
- package/chunks/{chunk-C6VNKTJ5.js → chunk-6NLNUGBI.js} +3 -3
- package/chunks/{chunk-EZ22Z22X.js → chunk-A7K5DUP7.js} +3 -3
- package/chunks/{chunk-J5BXM6NQ.js → chunk-CA3UPHYO.js} +3 -3
- package/chunks/{chunk-QTF7LWGT.js → chunk-CNMP2GU4.js} +3 -3
- package/chunks/{chunk-CXB2UFYS.js → chunk-DPQRXSZH.js} +3 -3
- package/chunks/{chunk-7N7ULH2L.js → chunk-EOTOFHUR.js} +3 -3
- package/chunks/{chunk-6QX4OHYB.js → chunk-FS6LRTDK.js} +3 -3
- package/chunks/{chunk-RCEI45JF.js → chunk-H4LW6FP3.js} +3 -3
- package/chunks/{chunk-XG7THU7X.js → chunk-LEYJ4I5W.js} +6 -6
- package/chunks/{chunk-5VBWOSWF.js → chunk-NOLQR5RW.js} +3 -3
- package/chunks/{chunk-MCXQONL2.js → chunk-NRABY36Z.js} +13 -13
- package/chunks/{chunk-ZSOK5Z67.js → chunk-OA7Y2A5T.js} +3 -3
- package/chunks/{chunk-S32K7POB.js → chunk-OVG5RGI3.js} +4 -4
- package/chunks/{chunk-DIJAUFYY.js → chunk-S5MTHWQ7.js} +6 -6
- package/chunks/{chunk-ADE5WQX7.js → chunk-UK4HNSEJ.js} +3 -3
- package/chunks/{chunk-CKENYYWH.js → chunk-X5F6XGEP.js} +3 -3
- package/chunks/{chunk-ZH3QMMVD.js → chunk-ZBAKY6DB.js} +3 -3
- package/chunks/{chunk-G5RRNREY.js → chunk-ZPDKBMUH.js} +3 -3
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
isLightenOperationParams,
|
|
3
|
+
lighten
|
|
4
|
+
} from "./chunk-RHKFMXM3.js";
|
|
5
|
+
import {
|
|
6
|
+
composite,
|
|
7
|
+
isCompositeOperationParams
|
|
8
|
+
} from "./chunk-IFQA5PWI.js";
|
|
4
9
|
import {
|
|
5
10
|
hue,
|
|
6
11
|
isHueOperationParams
|
|
7
12
|
} from "./chunk-QSU3CVGF.js";
|
|
8
13
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
isSaturateOperationParams,
|
|
15
|
+
saturate
|
|
16
|
+
} from "./chunk-FQ4UTWMP.js";
|
|
17
|
+
import {
|
|
18
|
+
flip
|
|
19
|
+
} from "./chunk-WNDMYNDU.js";
|
|
12
20
|
import {
|
|
13
21
|
isNormalizeOperationParams,
|
|
14
22
|
normalize
|
|
15
23
|
} from "./chunk-3G6FOHII.js";
|
|
16
|
-
import {
|
|
17
|
-
isLightenOperationParams,
|
|
18
|
-
lighten
|
|
19
|
-
} from "./chunk-RHKFMXM3.js";
|
|
20
24
|
import {
|
|
21
25
|
isResizeOperationParams,
|
|
22
26
|
resize
|
|
23
27
|
} from "./chunk-EDJ3TVNV.js";
|
|
28
|
+
import {
|
|
29
|
+
flop
|
|
30
|
+
} from "./chunk-YA2YCZUF.js";
|
|
24
31
|
import {
|
|
25
32
|
isRotateOperationParams,
|
|
26
33
|
rotate
|
|
27
34
|
} from "./chunk-AI6AGF4I.js";
|
|
28
|
-
import {
|
|
29
|
-
isSaturateOperationParams,
|
|
30
|
-
saturate
|
|
31
|
-
} from "./chunk-FQ4UTWMP.js";
|
|
32
|
-
import {
|
|
33
|
-
extend,
|
|
34
|
-
isExtendOperationParams
|
|
35
|
-
} from "./chunk-HMAK6VAF.js";
|
|
36
35
|
import {
|
|
37
36
|
blur,
|
|
38
37
|
isBlurOperationParams
|
|
@@ -45,13 +44,18 @@ import {
|
|
|
45
44
|
extract,
|
|
46
45
|
isExtractOperationParams
|
|
47
46
|
} from "./chunk-HFZGH6V2.js";
|
|
47
|
+
import {
|
|
48
|
+
extend,
|
|
49
|
+
isExtendOperationParams
|
|
50
|
+
} from "./chunk-HMAK6VAF.js";
|
|
48
51
|
import {
|
|
49
52
|
flatten,
|
|
50
53
|
isFlattenOperationParams
|
|
51
54
|
} from "./chunk-2M33FCDG.js";
|
|
52
55
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
isLevelOperationParams,
|
|
57
|
+
level
|
|
58
|
+
} from "./chunk-2HJPX7E3.js";
|
|
55
59
|
import {
|
|
56
60
|
Outcome
|
|
57
61
|
} from "./chunk-JMU5PDBD.js";
|
|
@@ -74,6 +78,7 @@ import sharp from "sharp";
|
|
|
74
78
|
var OpName = /* @__PURE__ */ ((OpName2) => {
|
|
75
79
|
OpName2["BLUR"] = "blur";
|
|
76
80
|
OpName2["BRIGHTEN"] = "brighten";
|
|
81
|
+
OpName2["COMPOSITE"] = "composite";
|
|
77
82
|
OpName2["EXTEND"] = "extend";
|
|
78
83
|
OpName2["EXTRACT"] = "extract";
|
|
79
84
|
OpName2["FLATTEN"] = "flatten";
|
|
@@ -109,7 +114,8 @@ function isOperationDescriptor(obj) {
|
|
|
109
114
|
["normalize" /* NORMALIZE */]: isNormalizeOperationParams,
|
|
110
115
|
["resize" /* RESIZE */]: isResizeOperationParams,
|
|
111
116
|
["rotate" /* ROTATE */]: isRotateOperationParams,
|
|
112
|
-
["saturate" /* SATURATE */]: isSaturateOperationParams
|
|
117
|
+
["saturate" /* SATURATE */]: isSaturateOperationParams,
|
|
118
|
+
["composite" /* COMPOSITE */]: isCompositeOperationParams
|
|
113
119
|
};
|
|
114
120
|
const simpleOperations = /* @__PURE__ */ new Set(["flip" /* FLIP */, "flop" /* FLOP */]);
|
|
115
121
|
if (simpleOperations.has(name)) return Outcome.makeSuccess({ name });
|
|
@@ -126,6 +132,9 @@ var TransformErrCodes = /* @__PURE__ */ ((TransformErrCodes2) => {
|
|
|
126
132
|
return TransformErrCodes2;
|
|
127
133
|
})(TransformErrCodes || {});
|
|
128
134
|
async function transform(input, operationsSequence, limits) {
|
|
135
|
+
if (typeof input === "object" && "create" in input && input.create !== null) {
|
|
136
|
+
return transformSharpInstance(sharp(input), operationsSequence, limits);
|
|
137
|
+
}
|
|
129
138
|
if (Buffer.isBuffer(input)) return transformBuffer(input, operationsSequence, limits);
|
|
130
139
|
return transformSharpInstance(input, operationsSequence, limits);
|
|
131
140
|
}
|
|
@@ -176,6 +185,8 @@ async function transformSharpInstance(sharpInstance, operationsSequence, limits)
|
|
|
176
185
|
return rotate(sharpInstance, operation);
|
|
177
186
|
case "saturate" /* SATURATE */:
|
|
178
187
|
return saturate(sharpInstance, operation);
|
|
188
|
+
case "composite" /* COMPOSITE */:
|
|
189
|
+
return composite(sharpInstance, operation);
|
|
179
190
|
default:
|
|
180
191
|
return sharpInstance;
|
|
181
192
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
directory_exports
|
|
3
|
+
} from "./chunk-X5F6XGEP.js";
|
|
4
4
|
import {
|
|
5
5
|
bucket_exports
|
|
6
6
|
} from "./chunk-UEAMPAHK.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
file_exports
|
|
9
|
+
} from "./chunk-GU34O65H.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
revoke_signed_urls_exports
|
|
6
|
-
} from "./chunk-G5RRNREY.js";
|
|
2
|
+
get_permissions_exports
|
|
3
|
+
} from "./chunk-YKPA3MQL.js";
|
|
7
4
|
import {
|
|
8
5
|
get_metadata_exports
|
|
9
6
|
} from "./chunk-42K3MQQ5.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
8
|
+
revoke_signed_urls_exports
|
|
9
|
+
} from "./chunk-ZPDKBMUH.js";
|
|
10
|
+
import {
|
|
11
|
+
update_metadata_exports
|
|
12
|
+
} from "./chunk-HWVEI3RH.js";
|
|
13
13
|
import {
|
|
14
14
|
generate_signed_url_exports
|
|
15
15
|
} from "./chunk-PAIUCLVK.js";
|
|
16
|
+
import {
|
|
17
|
+
download_exports
|
|
18
|
+
} from "./chunk-2JH4TCT2.js";
|
|
16
19
|
import {
|
|
17
20
|
remove_exports
|
|
18
21
|
} from "./chunk-7J7CYOXU.js";
|
|
19
22
|
import {
|
|
20
23
|
upload_exports
|
|
21
24
|
} from "./chunk-FB3GNE2B.js";
|
|
22
|
-
import {
|
|
23
|
-
copy_exports
|
|
24
|
-
} from "./chunk-CWZFRUBS.js";
|
|
25
25
|
import {
|
|
26
26
|
stat_exports
|
|
27
27
|
} from "./chunk-W3RXHN5I.js";
|
|
28
|
+
import {
|
|
29
|
+
copy_exports
|
|
30
|
+
} from "./chunk-CWZFRUBS.js";
|
|
28
31
|
import {
|
|
29
32
|
exists_exports
|
|
30
33
|
} from "./chunk-5VHFXWFM.js";
|
|
31
|
-
import {
|
|
32
|
-
download_exports
|
|
33
|
-
} from "./chunk-2JH4TCT2.js";
|
|
34
34
|
import {
|
|
35
35
|
move_exports
|
|
36
36
|
} from "./chunk-6IYUA43Q.js";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isSharpColor
|
|
3
|
+
} from "./chunk-MFYNJMVM.js";
|
|
4
|
+
import {
|
|
5
|
+
zod_default
|
|
6
|
+
} from "./chunk-DZ2T5DTY.js";
|
|
7
|
+
import {
|
|
8
|
+
Outcome
|
|
9
|
+
} from "./chunk-JMU5PDBD.js";
|
|
10
|
+
|
|
11
|
+
// src/node/images/transform/operations/composite/index.ts
|
|
12
|
+
var isSharpCreate = zod_default.object({
|
|
13
|
+
create: zod_default.object({
|
|
14
|
+
width: zod_default.number(),
|
|
15
|
+
height: zod_default.number(),
|
|
16
|
+
channels: zod_default.literal(3).or(zod_default.literal(4)),
|
|
17
|
+
background: zod_default.custom((val) => isSharpColor(val))
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
var isSharpText = zod_default.object({
|
|
21
|
+
text: zod_default.object({
|
|
22
|
+
text: zod_default.string(),
|
|
23
|
+
font: zod_default.string().optional(),
|
|
24
|
+
fontfile: zod_default.string().optional(),
|
|
25
|
+
width: zod_default.number(),
|
|
26
|
+
height: zod_default.number(),
|
|
27
|
+
align: zod_default.enum(["left", "center", "right"]).optional(),
|
|
28
|
+
justify: zod_default.boolean().optional(),
|
|
29
|
+
dpi: zod_default.number().optional(),
|
|
30
|
+
rgba: zod_default.boolean().optional(),
|
|
31
|
+
spacing: zod_default.number().optional()
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
var isSharpCreateRaw = zod_default.object({
|
|
35
|
+
raw: zod_default.object({
|
|
36
|
+
width: zod_default.number(),
|
|
37
|
+
height: zod_default.number(),
|
|
38
|
+
channels: zod_default.literal(3).or(zod_default.literal(4)),
|
|
39
|
+
data: zod_default.instanceof(Buffer),
|
|
40
|
+
animated: zod_default.boolean().optional()
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
function isCompositeOperationParams(obj) {
|
|
44
|
+
const schema = zod_default.object({
|
|
45
|
+
composite: zod_default.array(zod_default.object({
|
|
46
|
+
input: zod_default.union([
|
|
47
|
+
zod_default.string(),
|
|
48
|
+
zod_default.instanceof(Buffer),
|
|
49
|
+
isSharpCreate,
|
|
50
|
+
isSharpText,
|
|
51
|
+
isSharpCreateRaw
|
|
52
|
+
]),
|
|
53
|
+
top: zod_default.number().optional(),
|
|
54
|
+
left: zod_default.number().optional(),
|
|
55
|
+
blend: zod_default.enum([
|
|
56
|
+
"clear",
|
|
57
|
+
"source",
|
|
58
|
+
"over",
|
|
59
|
+
"in",
|
|
60
|
+
"out",
|
|
61
|
+
"atop",
|
|
62
|
+
"dest",
|
|
63
|
+
"dest-over",
|
|
64
|
+
"dest-in",
|
|
65
|
+
"dest-out",
|
|
66
|
+
"dest-atop",
|
|
67
|
+
"xor",
|
|
68
|
+
"add",
|
|
69
|
+
"saturate",
|
|
70
|
+
"multiply",
|
|
71
|
+
"screen",
|
|
72
|
+
"overlay",
|
|
73
|
+
"darken",
|
|
74
|
+
"lighten",
|
|
75
|
+
"color-dodge",
|
|
76
|
+
"colour-dodge",
|
|
77
|
+
"color-burn",
|
|
78
|
+
"colour-burn",
|
|
79
|
+
"hard-light",
|
|
80
|
+
"soft-light",
|
|
81
|
+
"difference",
|
|
82
|
+
"exclusion"
|
|
83
|
+
]).optional(),
|
|
84
|
+
tile: zod_default.boolean().optional(),
|
|
85
|
+
gravity: zod_default.enum([
|
|
86
|
+
"north",
|
|
87
|
+
"northeast",
|
|
88
|
+
"east",
|
|
89
|
+
"southeast",
|
|
90
|
+
"south",
|
|
91
|
+
"southwest",
|
|
92
|
+
"west",
|
|
93
|
+
"northwest",
|
|
94
|
+
"center",
|
|
95
|
+
"centre"
|
|
96
|
+
]).optional(),
|
|
97
|
+
premultiplied: zod_default.boolean().optional(),
|
|
98
|
+
density: zod_default.number().optional()
|
|
99
|
+
}))
|
|
100
|
+
});
|
|
101
|
+
const result = schema.safeParse(obj);
|
|
102
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
|
103
|
+
return Outcome.makeSuccess(result.data);
|
|
104
|
+
}
|
|
105
|
+
async function composite(sharpInstance, params) {
|
|
106
|
+
return sharpInstance.composite(params.composite);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
isCompositeOperationParams,
|
|
111
|
+
composite
|
|
112
|
+
};
|
package/node/@aws-s3/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
storage_exports
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
5
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-KRDVV6K3.js";
|
|
4
|
+
import "../../chunks/chunk-ZBAKY6DB.js";
|
|
5
|
+
import "../../chunks/chunk-6EJIBLPQ.js";
|
|
6
|
+
import "../../chunks/chunk-ZSUG52DO.js";
|
|
7
|
+
import "../../chunks/chunk-ON6LC3HE.js";
|
|
8
|
+
import "../../chunks/chunk-4XSDRT23.js";
|
|
9
|
+
import "../../chunks/chunk-IV75M3KE.js";
|
|
6
10
|
import "../../chunks/chunk-3TKBCG7Y.js";
|
|
7
11
|
import "../../chunks/chunk-FD5WR2A5.js";
|
|
8
|
-
import "../../chunks/chunk-C6QTHDDM.js";
|
|
9
12
|
import "../../chunks/chunk-VROZGPC5.js";
|
|
10
13
|
import "../../chunks/chunk-4XBUJAQU.js";
|
|
14
|
+
import "../../chunks/chunk-C6QTHDDM.js";
|
|
11
15
|
import "../../chunks/chunk-ZEZCYPLQ.js";
|
|
12
|
-
import "../../chunks/chunk-IV75M3KE.js";
|
|
13
|
-
import "../../chunks/chunk-ZSUG52DO.js";
|
|
14
|
-
import "../../chunks/chunk-ON6LC3HE.js";
|
|
15
|
-
import "../../chunks/chunk-4XSDRT23.js";
|
|
16
16
|
import "../../chunks/chunk-QWZ4ZNFA.js";
|
|
17
17
|
import "../../chunks/chunk-JMU5PDBD.js";
|
|
18
18
|
import "../../chunks/chunk-FENXVJYO.js";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-
|
|
2
|
-
import {
|
|
3
|
-
copy_dir_exports
|
|
4
|
-
} from "../../../../chunks/chunk-4XBUJAQU.js";
|
|
1
|
+
import "../../../../chunks/chunk-ZBAKY6DB.js";
|
|
5
2
|
import {
|
|
6
3
|
list_exports
|
|
7
4
|
} from "../../../../chunks/chunk-ZSUG52DO.js";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
remove_dir_exports
|
|
13
10
|
} from "../../../../chunks/chunk-4XSDRT23.js";
|
|
11
|
+
import {
|
|
12
|
+
copy_dir_exports
|
|
13
|
+
} from "../../../../chunks/chunk-4XBUJAQU.js";
|
|
14
14
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
|
15
15
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
|
16
16
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-
|
|
1
|
+
import "../../../../chunks/chunk-6EJIBLPQ.js";
|
|
2
|
+
import {
|
|
3
|
+
download_exports
|
|
4
|
+
} from "../../../../chunks/chunk-IV75M3KE.js";
|
|
2
5
|
import {
|
|
3
6
|
remove_exports
|
|
4
7
|
} from "../../../../chunks/chunk-3TKBCG7Y.js";
|
|
5
8
|
import {
|
|
6
9
|
upload_exports
|
|
7
10
|
} from "../../../../chunks/chunk-FD5WR2A5.js";
|
|
8
|
-
import {
|
|
9
|
-
copy_exports
|
|
10
|
-
} from "../../../../chunks/chunk-C6QTHDDM.js";
|
|
11
11
|
import {
|
|
12
12
|
stat_exports
|
|
13
13
|
} from "../../../../chunks/chunk-VROZGPC5.js";
|
|
14
|
+
import {
|
|
15
|
+
copy_exports
|
|
16
|
+
} from "../../../../chunks/chunk-C6QTHDDM.js";
|
|
14
17
|
import {
|
|
15
18
|
exists_exports
|
|
16
19
|
} from "../../../../chunks/chunk-ZEZCYPLQ.js";
|
|
17
|
-
import {
|
|
18
|
-
download_exports
|
|
19
|
-
} from "../../../../chunks/chunk-IV75M3KE.js";
|
|
20
20
|
import {
|
|
21
21
|
move_exports
|
|
22
22
|
} from "../../../../chunks/chunk-QWZ4ZNFA.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "../../../chunks/chunk-
|
|
1
|
+
import "../../../chunks/chunk-KRDVV6K3.js";
|
|
2
2
|
import {
|
|
3
3
|
directory_exports
|
|
4
|
-
} from "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-ZBAKY6DB.js";
|
|
5
5
|
import {
|
|
6
6
|
file_exports
|
|
7
|
-
} from "../../../chunks/chunk-
|
|
7
|
+
} from "../../../chunks/chunk-6EJIBLPQ.js";
|
|
8
|
+
import "../../../chunks/chunk-ZSUG52DO.js";
|
|
9
|
+
import "../../../chunks/chunk-ON6LC3HE.js";
|
|
10
|
+
import "../../../chunks/chunk-4XSDRT23.js";
|
|
11
|
+
import "../../../chunks/chunk-IV75M3KE.js";
|
|
8
12
|
import "../../../chunks/chunk-3TKBCG7Y.js";
|
|
9
13
|
import "../../../chunks/chunk-FD5WR2A5.js";
|
|
10
|
-
import "../../../chunks/chunk-C6QTHDDM.js";
|
|
11
14
|
import "../../../chunks/chunk-VROZGPC5.js";
|
|
12
15
|
import "../../../chunks/chunk-4XBUJAQU.js";
|
|
16
|
+
import "../../../chunks/chunk-C6QTHDDM.js";
|
|
13
17
|
import "../../../chunks/chunk-ZEZCYPLQ.js";
|
|
14
|
-
import "../../../chunks/chunk-IV75M3KE.js";
|
|
15
|
-
import "../../../chunks/chunk-ZSUG52DO.js";
|
|
16
|
-
import "../../../chunks/chunk-ON6LC3HE.js";
|
|
17
|
-
import "../../../chunks/chunk-4XSDRT23.js";
|
|
18
18
|
import "../../../chunks/chunk-QWZ4ZNFA.js";
|
|
19
19
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
|
20
20
|
import "../../../chunks/chunk-FENXVJYO.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
storage_exports
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
5
|
-
import "../../chunks/chunk-HWVEI3RH.js";
|
|
6
|
-
import "../../chunks/chunk-G5RRNREY.js";
|
|
7
|
-
import "../../chunks/chunk-42K3MQQ5.js";
|
|
8
|
-
import "../../chunks/chunk-YKPA3MQL.js";
|
|
9
|
-
import "../../chunks/chunk-PAIUCLVK.js";
|
|
3
|
+
} from "../../chunks/chunk-DWCRT664.js";
|
|
4
|
+
import "../../chunks/chunk-X5F6XGEP.js";
|
|
10
5
|
import "../../chunks/chunk-UEAMPAHK.js";
|
|
11
6
|
import "../../chunks/chunk-ZNA7SWFK.js";
|
|
12
|
-
import "../../chunks/chunk-
|
|
7
|
+
import "../../chunks/chunk-GU34O65H.js";
|
|
8
|
+
import "../../chunks/chunk-YKPA3MQL.js";
|
|
9
|
+
import "../../chunks/chunk-42K3MQQ5.js";
|
|
10
|
+
import "../../chunks/chunk-ZPDKBMUH.js";
|
|
11
|
+
import "../../chunks/chunk-HWVEI3RH.js";
|
|
12
|
+
import "../../chunks/chunk-PAIUCLVK.js";
|
|
13
|
+
import "../../chunks/chunk-37TRFYZT.js";
|
|
14
|
+
import "../../chunks/chunk-BWYH445G.js";
|
|
15
|
+
import "../../chunks/chunk-QLDN574K.js";
|
|
16
|
+
import "../../chunks/chunk-2JH4TCT2.js";
|
|
13
17
|
import "../../chunks/chunk-7J7CYOXU.js";
|
|
14
18
|
import "../../chunks/chunk-FB3GNE2B.js";
|
|
15
|
-
import "../../chunks/chunk-CWZFRUBS.js";
|
|
16
19
|
import "../../chunks/chunk-W3RXHN5I.js";
|
|
17
20
|
import "../../chunks/chunk-V3L55I2S.js";
|
|
21
|
+
import "../../chunks/chunk-CWZFRUBS.js";
|
|
18
22
|
import "../../chunks/chunk-5VHFXWFM.js";
|
|
19
|
-
import "../../chunks/chunk-2JH4TCT2.js";
|
|
20
|
-
import "../../chunks/chunk-37TRFYZT.js";
|
|
21
|
-
import "../../chunks/chunk-BWYH445G.js";
|
|
22
|
-
import "../../chunks/chunk-QLDN574K.js";
|
|
23
23
|
import "../../chunks/chunk-6IYUA43Q.js";
|
|
24
24
|
import "../../chunks/chunk-JMU5PDBD.js";
|
|
25
25
|
import "../../chunks/chunk-FENXVJYO.js";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-
|
|
2
|
-
import {
|
|
3
|
-
copy_dir_exports
|
|
4
|
-
} from "../../../../chunks/chunk-V3L55I2S.js";
|
|
1
|
+
import "../../../../chunks/chunk-X5F6XGEP.js";
|
|
5
2
|
import {
|
|
6
3
|
list_exports
|
|
7
4
|
} from "../../../../chunks/chunk-37TRFYZT.js";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
remove_dir_exports
|
|
13
10
|
} from "../../../../chunks/chunk-QLDN574K.js";
|
|
11
|
+
import {
|
|
12
|
+
copy_dir_exports
|
|
13
|
+
} from "../../../../chunks/chunk-V3L55I2S.js";
|
|
14
14
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
|
15
15
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
|
16
16
|
import "../../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import "../../../../chunks/chunk-
|
|
1
|
+
import "../../../../chunks/chunk-GU34O65H.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunks/chunk-
|
|
5
|
-
import {
|
|
6
|
-
revoke_signed_urls_exports
|
|
7
|
-
} from "../../../../chunks/chunk-G5RRNREY.js";
|
|
3
|
+
get_permissions_exports
|
|
4
|
+
} from "../../../../chunks/chunk-YKPA3MQL.js";
|
|
8
5
|
import {
|
|
9
6
|
get_metadata_exports
|
|
10
7
|
} from "../../../../chunks/chunk-42K3MQQ5.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "../../../../chunks/chunk-
|
|
9
|
+
revoke_signed_urls_exports
|
|
10
|
+
} from "../../../../chunks/chunk-ZPDKBMUH.js";
|
|
11
|
+
import {
|
|
12
|
+
update_metadata_exports
|
|
13
|
+
} from "../../../../chunks/chunk-HWVEI3RH.js";
|
|
14
14
|
import {
|
|
15
15
|
generate_signed_url_exports
|
|
16
16
|
} from "../../../../chunks/chunk-PAIUCLVK.js";
|
|
17
|
+
import {
|
|
18
|
+
download_exports
|
|
19
|
+
} from "../../../../chunks/chunk-2JH4TCT2.js";
|
|
17
20
|
import {
|
|
18
21
|
remove_exports
|
|
19
22
|
} from "../../../../chunks/chunk-7J7CYOXU.js";
|
|
20
23
|
import {
|
|
21
24
|
upload_exports
|
|
22
25
|
} from "../../../../chunks/chunk-FB3GNE2B.js";
|
|
23
|
-
import {
|
|
24
|
-
copy_exports
|
|
25
|
-
} from "../../../../chunks/chunk-CWZFRUBS.js";
|
|
26
26
|
import {
|
|
27
27
|
stat_exports
|
|
28
28
|
} from "../../../../chunks/chunk-W3RXHN5I.js";
|
|
29
|
+
import {
|
|
30
|
+
copy_exports
|
|
31
|
+
} from "../../../../chunks/chunk-CWZFRUBS.js";
|
|
29
32
|
import {
|
|
30
33
|
exists_exports
|
|
31
34
|
} from "../../../../chunks/chunk-5VHFXWFM.js";
|
|
32
|
-
import {
|
|
33
|
-
download_exports
|
|
34
|
-
} from "../../../../chunks/chunk-2JH4TCT2.js";
|
|
35
35
|
import {
|
|
36
36
|
move_exports
|
|
37
37
|
} from "../../../../chunks/chunk-6IYUA43Q.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
revokeSignedUrls
|
|
3
|
-
} from "../../../../../chunks/chunk-
|
|
3
|
+
} from "../../../../../chunks/chunk-ZPDKBMUH.js";
|
|
4
|
+
import "../../../../../chunks/chunk-2JH4TCT2.js";
|
|
4
5
|
import "../../../../../chunks/chunk-7J7CYOXU.js";
|
|
5
6
|
import "../../../../../chunks/chunk-FB3GNE2B.js";
|
|
6
|
-
import "../../../../../chunks/chunk-2JH4TCT2.js";
|
|
7
7
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
|
8
8
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
|
9
9
|
import "../../../../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../../../chunks/chunk-
|
|
1
|
+
import "../../../chunks/chunk-DWCRT664.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-HWVEI3RH.js";
|
|
6
|
-
import "../../../chunks/chunk-G5RRNREY.js";
|
|
7
|
-
import "../../../chunks/chunk-42K3MQQ5.js";
|
|
8
|
-
import "../../../chunks/chunk-YKPA3MQL.js";
|
|
9
|
-
import "../../../chunks/chunk-PAIUCLVK.js";
|
|
3
|
+
directory_exports
|
|
4
|
+
} from "../../../chunks/chunk-X5F6XGEP.js";
|
|
10
5
|
import {
|
|
11
6
|
bucket_exports
|
|
12
7
|
} from "../../../chunks/chunk-UEAMPAHK.js";
|
|
13
8
|
import "../../../chunks/chunk-ZNA7SWFK.js";
|
|
14
9
|
import {
|
|
15
|
-
|
|
16
|
-
} from "../../../chunks/chunk-
|
|
10
|
+
file_exports
|
|
11
|
+
} from "../../../chunks/chunk-GU34O65H.js";
|
|
12
|
+
import "../../../chunks/chunk-YKPA3MQL.js";
|
|
13
|
+
import "../../../chunks/chunk-42K3MQQ5.js";
|
|
14
|
+
import "../../../chunks/chunk-ZPDKBMUH.js";
|
|
15
|
+
import "../../../chunks/chunk-HWVEI3RH.js";
|
|
16
|
+
import "../../../chunks/chunk-PAIUCLVK.js";
|
|
17
|
+
import "../../../chunks/chunk-37TRFYZT.js";
|
|
18
|
+
import "../../../chunks/chunk-BWYH445G.js";
|
|
19
|
+
import "../../../chunks/chunk-QLDN574K.js";
|
|
20
|
+
import "../../../chunks/chunk-2JH4TCT2.js";
|
|
17
21
|
import "../../../chunks/chunk-7J7CYOXU.js";
|
|
18
22
|
import "../../../chunks/chunk-FB3GNE2B.js";
|
|
19
|
-
import "../../../chunks/chunk-CWZFRUBS.js";
|
|
20
23
|
import "../../../chunks/chunk-W3RXHN5I.js";
|
|
21
24
|
import "../../../chunks/chunk-V3L55I2S.js";
|
|
25
|
+
import "../../../chunks/chunk-CWZFRUBS.js";
|
|
22
26
|
import "../../../chunks/chunk-5VHFXWFM.js";
|
|
23
|
-
import "../../../chunks/chunk-2JH4TCT2.js";
|
|
24
|
-
import "../../../chunks/chunk-37TRFYZT.js";
|
|
25
|
-
import "../../../chunks/chunk-BWYH445G.js";
|
|
26
|
-
import "../../../chunks/chunk-QLDN574K.js";
|
|
27
27
|
import "../../../chunks/chunk-6IYUA43Q.js";
|
|
28
28
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
|
29
29
|
import "../../../chunks/chunk-FENXVJYO.js";
|