@design-edito/tools 0.1.69 → 0.1.71
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 +4 -4
- package/agnostic/colors/index.js +9 -9
- package/agnostic/colors/lighten-color/index.js +2 -2
- package/agnostic/colors/saturate-color/index.js +2 -2
- package/agnostic/css/bem/index.js +2 -2
- package/agnostic/css/index.js +9 -9
- package/agnostic/html/hyper-json/cast/index.js +7 -7
- package/agnostic/html/hyper-json/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +7 -7
- package/agnostic/html/hyper-json/tree/index.js +7 -7
- package/agnostic/html/hyper-json/utils/index.js +7 -7
- package/agnostic/html/index.js +18 -18
- package/agnostic/misc/index.js +13 -13
- package/agnostic/misc/lorem-ipsum/index.js +5 -5
- package/agnostic/misc/normalize-extension/index.d.ts +1 -0
- package/agnostic/misc/normalize-extension/index.js +92 -0
- package/agnostic/numbers/index.js +4 -4
- package/agnostic/objects/index.js +14 -14
- package/agnostic/optim/index.js +3 -3
- package/agnostic/strings/index.js +5 -5
- package/agnostic/time/index.js +6 -6
- package/chunks/chunk-2EEVPIJE.js +177 -0
- package/chunks/chunk-336RBB5E.js +151 -0
- package/chunks/chunk-3LPD7IXF.js +56 -0
- package/chunks/chunk-45LGGA3Z.js +31 -0
- package/chunks/chunk-476BHNJO.js +37 -0
- package/chunks/chunk-7UDN6KBA.js +151 -0
- package/chunks/chunk-AQTNG5G4.js +2456 -0
- package/chunks/chunk-AUJB3IJD.js +20 -0
- package/chunks/chunk-B5XLWFTJ.js +20 -0
- package/chunks/chunk-BWKM2VQJ.js +191 -0
- package/chunks/chunk-CKCTYZF7.js +48 -0
- package/chunks/chunk-E2BDKTLL.js +48 -0
- package/chunks/chunk-E4RVKTMW.js +56 -0
- package/chunks/chunk-FCMQVBJW.js +20 -0
- package/chunks/chunk-FZJUZYTP.js +177 -0
- package/chunks/chunk-G5UR6736.js +31 -0
- package/chunks/chunk-GSZSM3BU.js +37 -0
- package/chunks/chunk-HBKSSDSX.js +20 -0
- package/chunks/chunk-HNKD4ZRZ.js +177 -0
- package/chunks/chunk-JMA64OLZ.js +191 -0
- package/chunks/chunk-JMJZCVSA.js +141 -0
- package/chunks/chunk-JS3NE4VI.js +2456 -0
- package/chunks/chunk-LZ4P3AYG.js +2456 -0
- package/chunks/chunk-MDVYILPB.js +56 -0
- package/chunks/chunk-NSM7QLE4.js +20 -0
- package/chunks/chunk-PCTJ7TUG.js +191 -0
- package/chunks/chunk-Q4MSGUKR.js +37 -0
- package/chunks/chunk-RDIF5NJQ.js +151 -0
- package/chunks/chunk-TEBR4NTW.js +37 -0
- package/chunks/chunk-TU3UWOAE.js +56 -0
- package/chunks/chunk-TZ7MNWDS.js +20 -0
- package/chunks/chunk-UYRX3PTS.js +2456 -0
- package/chunks/chunk-WGQHXHXS.js +31 -0
- package/chunks/chunk-WU7NORZV.js +191 -0
- package/chunks/chunk-XB3YCG6I.js +48 -0
- package/chunks/chunk-XVYKCWPR.js +48 -0
- package/chunks/chunk-YMF7CUJA.js +20 -0
- package/chunks/chunk-YVLZX2JQ.js +164 -0
- package/chunks/chunk-Z6ZTRJ67.js +177 -0
- package/chunks/chunk-ZLNDBNP4.js +31 -0
- package/chunks/chunk-ZSPOYMNQ.js +151 -0
- package/node/@google-cloud/index.js +8 -8
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/file/index.js +11 -11
- package/node/@google-cloud/storage/index.js +8 -8
- package/node/cloud-storage/index.js +11 -11
- package/node/cloud-storage/operations/download/index.js +3 -3
- package/node/cloud-storage/operations/index.js +7 -7
- package/node/cloud-storage/operations/upload/index.js +3 -3
- package/node/files/index.js +3 -3
- package/node/ftps/file/index.js +4 -4
- package/node/ftps/index.js +2 -2
- package/node/images/format/index.d.ts +9 -0
- package/node/images/format/index.js +20 -1
- package/node/images/index.js +26 -26
- package/node/images/prepare/index.js +26 -26
- package/node/images/transform/frame/index.js +2 -2
- package/node/images/transform/index.js +24 -24
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +4 -4
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +5 -5
- package/node/images/transform/operations/_utils/frame/index.js +8 -8
- package/package.json +1 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
make
|
3
|
+
} from "./chunk-RLAZR3NL.js";
|
4
|
+
import {
|
5
|
+
isArrayOf
|
6
|
+
} from "./chunk-6RGDWX4A.js";
|
7
|
+
import {
|
8
|
+
findDuplicates
|
9
|
+
} from "./chunk-YS6WMSWC.js";
|
10
|
+
import {
|
11
|
+
randomPick,
|
12
|
+
randomPickMany
|
13
|
+
} from "./chunk-AQBJ6HNB.js";
|
14
|
+
import {
|
15
|
+
shuffle
|
16
|
+
} from "./chunk-VJJIYJMY.js";
|
17
|
+
|
18
|
+
// src/agnostic/arrays/index.tsx
|
19
|
+
var Arrays;
|
20
|
+
((Arrays2) => {
|
21
|
+
Arrays2.findDuplicates = findDuplicates;
|
22
|
+
Arrays2.isArrayOf = isArrayOf;
|
23
|
+
Arrays2.make = make;
|
24
|
+
Arrays2.randomPick = randomPick;
|
25
|
+
Arrays2.randomPickMany = randomPickMany;
|
26
|
+
Arrays2.shuffle = shuffle;
|
27
|
+
})(Arrays || (Arrays = {}));
|
28
|
+
|
29
|
+
export {
|
30
|
+
Arrays
|
31
|
+
};
|
@@ -0,0 +1,151 @@
|
|
1
|
+
import {
|
2
|
+
formatImage
|
3
|
+
} from "./chunk-JMJZCVSA.js";
|
4
|
+
import {
|
5
|
+
transform
|
6
|
+
} from "./chunk-2EEVPIJE.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/images/prepare/index.ts
|
12
|
+
var prepare_exports = {};
|
13
|
+
__export(prepare_exports, {
|
14
|
+
MAX_NB_OUTPUTS: () => MAX_NB_OUTPUTS,
|
15
|
+
OUTPUT_ZIP_FOLDER: () => OUTPUT_ZIP_FOLDER,
|
16
|
+
exportZipBuffer: () => exportZipBuffer,
|
17
|
+
prepareImage: () => prepareImage
|
18
|
+
});
|
19
|
+
import sharp from "sharp";
|
20
|
+
import { Writable } from "node:stream";
|
21
|
+
import archiver from "archiver";
|
22
|
+
var MAX_NB_OUTPUTS = 50;
|
23
|
+
var OUTPUT_ZIP_FOLDER = "./output-zips";
|
24
|
+
async function prepareImage(imageBuffer, customOptions) {
|
25
|
+
const sharpImage = sharp(imageBuffer);
|
26
|
+
const sharpImageMetadata = await sharpImage.metadata();
|
27
|
+
const imageBufferMetadata = {
|
28
|
+
width: sharpImageMetadata.width ?? 0,
|
29
|
+
height: sharpImageMetadata.height ?? 0,
|
30
|
+
format: sharpImageMetadata.format || "png"
|
31
|
+
};
|
32
|
+
const options = getOptions(imageBufferMetadata, customOptions);
|
33
|
+
const nbOutputs = options.qualities.length * (options.ratios.length + 1) * (options.widths.length + 1) * (options.heights.length + 1);
|
34
|
+
if (nbOutputs > MAX_NB_OUTPUTS) throw Error("Nb output exceeds supported max nb output");
|
35
|
+
let transformedBuffer = imageBuffer;
|
36
|
+
try {
|
37
|
+
transformedBuffer = await transform(imageBuffer, options.inputOperations, options.checkValidOperations);
|
38
|
+
} catch (e) {
|
39
|
+
console.log("Images:Prepare:Transform:Buffer:Error", { e });
|
40
|
+
}
|
41
|
+
const transformedBufferMetadata = await sharp(transformedBuffer).metadata();
|
42
|
+
const exportsBuffers = [
|
43
|
+
{
|
44
|
+
buffer: imageBuffer,
|
45
|
+
name: generateFileName({
|
46
|
+
...imageBufferMetadata,
|
47
|
+
quality: 100,
|
48
|
+
suffix: "original",
|
49
|
+
prefix: options.name
|
50
|
+
})
|
51
|
+
},
|
52
|
+
{
|
53
|
+
buffer: transformedBuffer,
|
54
|
+
name: generateFileName({
|
55
|
+
width: transformedBufferMetadata.width || 0,
|
56
|
+
height: transformedBufferMetadata.height || 0,
|
57
|
+
format: transformedBufferMetadata.format || "png",
|
58
|
+
quality: 100,
|
59
|
+
suffix: "transformed-unresized",
|
60
|
+
prefix: options.name
|
61
|
+
})
|
62
|
+
}
|
63
|
+
];
|
64
|
+
for (const width of options.widths) {
|
65
|
+
for (const height of options.heights) {
|
66
|
+
for (const quality of options.qualities) {
|
67
|
+
for (const format of options.formats) {
|
68
|
+
const exportBuffer = await formatImage(transformedBuffer, {
|
69
|
+
format,
|
70
|
+
quality,
|
71
|
+
width,
|
72
|
+
height
|
73
|
+
});
|
74
|
+
exportsBuffers.push({
|
75
|
+
buffer: exportBuffer,
|
76
|
+
name: generateFileName({
|
77
|
+
width,
|
78
|
+
height,
|
79
|
+
quality,
|
80
|
+
format,
|
81
|
+
prefix: options.name
|
82
|
+
})
|
83
|
+
});
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
console.log("Images:Transform:Export:ZIP", generateZipName(options.name));
|
89
|
+
const zipBuffer = exportZipBuffer(exportsBuffers, generateZipName(options.name));
|
90
|
+
return zipBuffer;
|
91
|
+
}
|
92
|
+
function exportZipBuffer(zipSources, zipDirectoryName) {
|
93
|
+
return new Promise(async (resolve) => {
|
94
|
+
const archive = archiver("zip", { zlib: { level: 9 } });
|
95
|
+
if (zipDirectoryName) {
|
96
|
+
archive.directory(zipDirectoryName + "/", false);
|
97
|
+
}
|
98
|
+
zipSources.forEach((zipSource) => {
|
99
|
+
const fileName = zipDirectoryName ? `${zipDirectoryName}/${zipSource.name}` : zipSource.name;
|
100
|
+
archive.append(zipSource.buffer, { name: fileName });
|
101
|
+
});
|
102
|
+
const chunks = [];
|
103
|
+
const writable = new Writable();
|
104
|
+
writable._write = (chunk, _enc, callback) => {
|
105
|
+
chunks.push(chunk);
|
106
|
+
callback();
|
107
|
+
};
|
108
|
+
archive.pipe(writable);
|
109
|
+
await archive.finalize();
|
110
|
+
const bufferZip = Buffer.concat(chunks);
|
111
|
+
resolve(bufferZip);
|
112
|
+
});
|
113
|
+
}
|
114
|
+
function getOptions(imageBufferMetadata, options) {
|
115
|
+
return {
|
116
|
+
center: [0.5, 0.5],
|
117
|
+
qualities: [100],
|
118
|
+
inputOperations: [],
|
119
|
+
...options,
|
120
|
+
checkValidOperations: options?.checkValidOperations ?? false,
|
121
|
+
name: options?.name ?? "",
|
122
|
+
formats: [imageBufferMetadata.format, ...options?.formats ? options.formats : []],
|
123
|
+
ratios: [...options?.ratios ? options.ratios : []],
|
124
|
+
widths: [imageBufferMetadata.width, ...options?.widths ? options.widths : []],
|
125
|
+
heights: [imageBufferMetadata.height, ...options?.heights ? options.heights : []]
|
126
|
+
};
|
127
|
+
}
|
128
|
+
function generateZipName(name = "") {
|
129
|
+
const date = /* @__PURE__ */ new Date();
|
130
|
+
return `${name}_image-exports_${date.toLocaleDateString()}_${date.toLocaleTimeString()}_${date.getTime()}`.replace(/\/|:/g, "-").replace(/ /g, "").trim();
|
131
|
+
}
|
132
|
+
function generateFileName({
|
133
|
+
width,
|
134
|
+
height,
|
135
|
+
quality,
|
136
|
+
format,
|
137
|
+
suffix,
|
138
|
+
prefix
|
139
|
+
}) {
|
140
|
+
prefix = prefix ? `${prefix}_` : "image-formats_";
|
141
|
+
suffix = `${suffix ? `_${suffix}` : ""}.${format}`;
|
142
|
+
return `${prefix}${width}x${height}_Q${quality}${suffix}`;
|
143
|
+
}
|
144
|
+
|
145
|
+
export {
|
146
|
+
MAX_NB_OUTPUTS,
|
147
|
+
OUTPUT_ZIP_FOLDER,
|
148
|
+
prepareImage,
|
149
|
+
exportZipBuffer,
|
150
|
+
prepare_exports
|
151
|
+
};
|
@@ -1,19 +1,19 @@
|
|
1
1
|
import {
|
2
2
|
storage_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-FTT6ZCCS.js";
|
3
|
+
} from "../../chunks/chunk-NSM7QLE4.js";
|
4
|
+
import "../../chunks/chunk-H73SGDQI.js";
|
6
5
|
import "../../chunks/chunk-XZ7II65Z.js";
|
7
|
-
import "../../chunks/chunk-
|
6
|
+
import "../../chunks/chunk-FTT6ZCCS.js";
|
7
|
+
import "../../chunks/chunk-TU3UWOAE.js";
|
8
8
|
import "../../chunks/chunk-YW5ASSIQ.js";
|
9
|
-
import "../../chunks/chunk-
|
9
|
+
import "../../chunks/chunk-SZQHLC4K.js";
|
10
10
|
import "../../chunks/chunk-TXGV4KJD.js";
|
11
|
-
import "../../chunks/chunk-
|
12
|
-
import "../../chunks/chunk-T55QIYYV.js";
|
11
|
+
import "../../chunks/chunk-OPU4CANL.js";
|
13
12
|
import "../../chunks/chunk-GXICX4F6.js";
|
13
|
+
import "../../chunks/chunk-KFMYB672.js";
|
14
14
|
import "../../chunks/chunk-UUSZJMJB.js";
|
15
|
+
import "../../chunks/chunk-T55QIYYV.js";
|
15
16
|
import "../../chunks/chunk-7BCQCDGQ.js";
|
16
|
-
import "../../chunks/chunk-SZQHLC4K.js";
|
17
17
|
import "../../chunks/chunk-IARWH6LC.js";
|
18
18
|
import "../../chunks/chunk-7FJKDVBE.js";
|
19
19
|
import "../../chunks/chunk-JMU5PDBD.js";
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
2
|
-
import {
|
3
|
-
get_metadata_exports
|
4
|
-
} from "../../../../chunks/chunk-FTT6ZCCS.js";
|
1
|
+
import "../../../../chunks/chunk-H73SGDQI.js";
|
5
2
|
import {
|
6
3
|
list_exports
|
7
4
|
} from "../../../../chunks/chunk-XZ7II65Z.js";
|
5
|
+
import {
|
6
|
+
get_metadata_exports
|
7
|
+
} from "../../../../chunks/chunk-FTT6ZCCS.js";
|
8
8
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
9
9
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
10
10
|
import "../../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,31 +1,31 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
1
|
+
import "../../../../chunks/chunk-TU3UWOAE.js";
|
2
2
|
import {
|
3
3
|
update_metadata_exports
|
4
4
|
} from "../../../../chunks/chunk-YW5ASSIQ.js";
|
5
5
|
import {
|
6
|
-
|
7
|
-
} from "../../../../chunks/chunk-
|
6
|
+
copy_exports
|
7
|
+
} from "../../../../chunks/chunk-SZQHLC4K.js";
|
8
8
|
import {
|
9
9
|
exists_exports
|
10
10
|
} from "../../../../chunks/chunk-TXGV4KJD.js";
|
11
11
|
import {
|
12
|
-
|
13
|
-
} from "../../../../chunks/chunk-
|
14
|
-
import {
|
15
|
-
move_exports
|
16
|
-
} from "../../../../chunks/chunk-T55QIYYV.js";
|
12
|
+
generate_signed_url_exports
|
13
|
+
} from "../../../../chunks/chunk-OPU4CANL.js";
|
17
14
|
import {
|
18
15
|
get_permissions_exports
|
19
16
|
} from "../../../../chunks/chunk-GXICX4F6.js";
|
17
|
+
import {
|
18
|
+
get_metadata_exports
|
19
|
+
} from "../../../../chunks/chunk-KFMYB672.js";
|
20
20
|
import {
|
21
21
|
revoke_signed_urls_exports
|
22
22
|
} from "../../../../chunks/chunk-UUSZJMJB.js";
|
23
|
+
import {
|
24
|
+
move_exports
|
25
|
+
} from "../../../../chunks/chunk-T55QIYYV.js";
|
23
26
|
import {
|
24
27
|
erase_exports
|
25
28
|
} from "../../../../chunks/chunk-7BCQCDGQ.js";
|
26
|
-
import {
|
27
|
-
copy_exports
|
28
|
-
} from "../../../../chunks/chunk-SZQHLC4K.js";
|
29
29
|
import {
|
30
30
|
download_exports
|
31
31
|
} from "../../../../chunks/chunk-IARWH6LC.js";
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-NSM7QLE4.js";
|
2
2
|
import {
|
3
3
|
bucket_exports
|
4
|
-
} from "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-FTT6ZCCS.js";
|
4
|
+
} from "../../../chunks/chunk-H73SGDQI.js";
|
6
5
|
import "../../../chunks/chunk-XZ7II65Z.js";
|
6
|
+
import "../../../chunks/chunk-FTT6ZCCS.js";
|
7
7
|
import {
|
8
8
|
file_exports
|
9
|
-
} from "../../../chunks/chunk-
|
9
|
+
} from "../../../chunks/chunk-TU3UWOAE.js";
|
10
10
|
import "../../../chunks/chunk-YW5ASSIQ.js";
|
11
|
-
import "../../../chunks/chunk-
|
11
|
+
import "../../../chunks/chunk-SZQHLC4K.js";
|
12
12
|
import "../../../chunks/chunk-TXGV4KJD.js";
|
13
|
-
import "../../../chunks/chunk-
|
14
|
-
import "../../../chunks/chunk-T55QIYYV.js";
|
13
|
+
import "../../../chunks/chunk-OPU4CANL.js";
|
15
14
|
import "../../../chunks/chunk-GXICX4F6.js";
|
15
|
+
import "../../../chunks/chunk-KFMYB672.js";
|
16
16
|
import "../../../chunks/chunk-UUSZJMJB.js";
|
17
|
+
import "../../../chunks/chunk-T55QIYYV.js";
|
17
18
|
import "../../../chunks/chunk-7BCQCDGQ.js";
|
18
|
-
import "../../../chunks/chunk-SZQHLC4K.js";
|
19
19
|
import "../../../chunks/chunk-IARWH6LC.js";
|
20
20
|
import "../../../chunks/chunk-7FJKDVBE.js";
|
21
21
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
@@ -1,27 +1,27 @@
|
|
1
|
-
import {
|
2
|
-
client_exports
|
3
|
-
} from "../../chunks/chunk-MTGZYBK2.js";
|
4
1
|
import {
|
5
2
|
credentials_exports
|
6
3
|
} from "../../chunks/chunk-E7J4E6OB.js";
|
4
|
+
import {
|
5
|
+
client_exports
|
6
|
+
} from "../../chunks/chunk-MTGZYBK2.js";
|
7
7
|
import {
|
8
8
|
operations_exports
|
9
|
-
} from "../../chunks/chunk-
|
10
|
-
import "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-TZ7MNWDS.js";
|
10
|
+
import "../../chunks/chunk-E2BDKTLL.js";
|
11
11
|
import "../../chunks/chunk-IARWH6LC.js";
|
12
|
+
import "../../chunks/chunk-V4S34MIM.js";
|
12
13
|
import "../../chunks/chunk-26QQ56SS.js";
|
13
|
-
import "../../chunks/chunk-
|
14
|
+
import "../../chunks/chunk-MFWKY3DT.js";
|
15
|
+
import "../../chunks/chunk-CKCTYZF7.js";
|
14
16
|
import "../../chunks/chunk-7FJKDVBE.js";
|
17
|
+
import "../../chunks/chunk-45WKBXSF.js";
|
15
18
|
import "../../chunks/chunk-O7UEQQ6H.js";
|
19
|
+
import "../../chunks/chunk-ADTQQNIQ.js";
|
16
20
|
import {
|
17
21
|
endpoint_exports
|
18
22
|
} from "../../chunks/chunk-MOBGB2PH.js";
|
19
|
-
import "../../chunks/chunk-V4S34MIM.js";
|
20
|
-
import "../../chunks/chunk-45WKBXSF.js";
|
21
|
-
import "../../chunks/chunk-ADTQQNIQ.js";
|
22
|
-
import "../../chunks/chunk-MFWKY3DT.js";
|
23
|
-
import "../../chunks/chunk-HQLRJ7XW.js";
|
24
23
|
import "../../chunks/chunk-JMU5PDBD.js";
|
24
|
+
import "../../chunks/chunk-HQLRJ7XW.js";
|
25
25
|
import "../../chunks/chunk-FENXVJYO.js";
|
26
26
|
import "../../chunks/chunk-NZLE2WMY.js";
|
27
27
|
export {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
download
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-E2BDKTLL.js";
|
4
4
|
import "../../../../chunks/chunk-IARWH6LC.js";
|
5
|
-
import "../../../../chunks/chunk-26QQ56SS.js";
|
6
|
-
import "../../../../chunks/chunk-MOBGB2PH.js";
|
7
5
|
import "../../../../chunks/chunk-V4S34MIM.js";
|
6
|
+
import "../../../../chunks/chunk-26QQ56SS.js";
|
8
7
|
import "../../../../chunks/chunk-MFWKY3DT.js";
|
8
|
+
import "../../../../chunks/chunk-MOBGB2PH.js";
|
9
9
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
10
10
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
11
11
|
import "../../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-TZ7MNWDS.js";
|
2
2
|
import {
|
3
3
|
download_exports
|
4
|
-
} from "../../../chunks/chunk-
|
4
|
+
} from "../../../chunks/chunk-E2BDKTLL.js";
|
5
5
|
import "../../../chunks/chunk-IARWH6LC.js";
|
6
|
+
import "../../../chunks/chunk-V4S34MIM.js";
|
6
7
|
import "../../../chunks/chunk-26QQ56SS.js";
|
8
|
+
import "../../../chunks/chunk-MFWKY3DT.js";
|
7
9
|
import {
|
8
10
|
upload_exports
|
9
|
-
} from "../../../chunks/chunk-
|
11
|
+
} from "../../../chunks/chunk-CKCTYZF7.js";
|
10
12
|
import "../../../chunks/chunk-7FJKDVBE.js";
|
11
|
-
import "../../../chunks/chunk-O7UEQQ6H.js";
|
12
|
-
import "../../../chunks/chunk-MOBGB2PH.js";
|
13
|
-
import "../../../chunks/chunk-V4S34MIM.js";
|
14
13
|
import "../../../chunks/chunk-45WKBXSF.js";
|
14
|
+
import "../../../chunks/chunk-O7UEQQ6H.js";
|
15
15
|
import "../../../chunks/chunk-ADTQQNIQ.js";
|
16
|
-
import "../../../chunks/chunk-
|
16
|
+
import "../../../chunks/chunk-MOBGB2PH.js";
|
17
17
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
18
18
|
import "../../../chunks/chunk-FENXVJYO.js";
|
19
19
|
import "../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
upload
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-CKCTYZF7.js";
|
4
4
|
import "../../../../chunks/chunk-7FJKDVBE.js";
|
5
|
-
import "../../../../chunks/chunk-O7UEQQ6H.js";
|
6
|
-
import "../../../../chunks/chunk-MOBGB2PH.js";
|
7
5
|
import "../../../../chunks/chunk-45WKBXSF.js";
|
6
|
+
import "../../../../chunks/chunk-O7UEQQ6H.js";
|
8
7
|
import "../../../../chunks/chunk-ADTQQNIQ.js";
|
8
|
+
import "../../../../chunks/chunk-MOBGB2PH.js";
|
9
9
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
10
10
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
11
11
|
import "../../../../chunks/chunk-NZLE2WMY.js";
|
package/node/files/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
isInDirectory
|
3
|
-
} from "../../chunks/chunk-NRITRUZW.js";
|
4
1
|
import {
|
5
2
|
readWrite
|
6
3
|
} from "../../chunks/chunk-7DBNMU6N.js";
|
4
|
+
import {
|
5
|
+
isInDirectory
|
6
|
+
} from "../../chunks/chunk-NRITRUZW.js";
|
7
7
|
import {
|
8
8
|
Subpaths
|
9
9
|
} from "../../chunks/chunk-HGCG2J77.js";
|
package/node/ftps/file/index.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
2
|
-
import {
|
3
|
-
upload_exports
|
4
|
-
} from "../../../chunks/chunk-ADTQQNIQ.js";
|
1
|
+
import "../../../chunks/chunk-FMRPJBUC.js";
|
5
2
|
import {
|
6
3
|
download_exports
|
7
4
|
} from "../../../chunks/chunk-MFWKY3DT.js";
|
5
|
+
import {
|
6
|
+
upload_exports
|
7
|
+
} from "../../../chunks/chunk-ADTQQNIQ.js";
|
8
8
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
9
9
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
10
|
import "../../../chunks/chunk-NZLE2WMY.js";
|
package/node/ftps/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
file_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-ADTQQNIQ.js";
|
3
|
+
} from "../../chunks/chunk-FMRPJBUC.js";
|
5
4
|
import "../../chunks/chunk-MFWKY3DT.js";
|
5
|
+
import "../../chunks/chunk-ADTQQNIQ.js";
|
6
6
|
import "../../chunks/chunk-JMU5PDBD.js";
|
7
7
|
import "../../chunks/chunk-FENXVJYO.js";
|
8
8
|
import "../../chunks/chunk-NZLE2WMY.js";
|
@@ -35,6 +35,15 @@ export type FormatHeifOptions = FormatCommonOptions & {
|
|
35
35
|
};
|
36
36
|
export type FormatKeepOptions = FormatCommonOptions;
|
37
37
|
export type FormatOptions = FormatJpgOptions | FormatPngOptions | FormatWebpOptions | FormatAvifOptions | FormatTiffOptions | FormatHeifOptions;
|
38
|
+
export declare const isFormatCommonOptions: (options: unknown) => options is FormatCommonOptions;
|
39
|
+
export declare const isFormatJpgOptions: (options: unknown) => options is FormatJpgOptions;
|
40
|
+
export declare const isFormatPngOptions: (options: unknown) => options is FormatPngOptions;
|
41
|
+
export declare const isFormatWebpOptions: (options: unknown) => options is FormatWebpOptions;
|
42
|
+
export declare const isFormatAvifOptions: (options: unknown) => options is FormatAvifOptions;
|
43
|
+
export declare const isFormatTiffOptions: (options: unknown) => options is FormatTiffOptions;
|
44
|
+
export declare const isFormatHeifOptions: (options: unknown) => options is FormatHeifOptions;
|
45
|
+
export declare const isFormatKeepOptions: (options: unknown) => options is FormatKeepOptions;
|
46
|
+
export declare const isFormatOptions: (options: unknown) => options is FormatOptions;
|
38
47
|
export declare function format(input: Buffer, type: 'jpg' | 'jpeg', options: FormatJpgOptions): Promise<Outcome.Either<Buffer, string>>;
|
39
48
|
export declare function format(input: Buffer, type: 'png', options: FormatPngOptions): Promise<Outcome.Either<Buffer, string>>;
|
40
49
|
export declare function format(input: Buffer, type: 'webp', options: FormatWebpOptions): Promise<Outcome.Either<Buffer, string>>;
|
@@ -1,6 +1,15 @@
|
|
1
1
|
import {
|
2
2
|
format,
|
3
3
|
formatImage,
|
4
|
+
isFormatAvifOptions,
|
5
|
+
isFormatCommonOptions,
|
6
|
+
isFormatHeifOptions,
|
7
|
+
isFormatJpgOptions,
|
8
|
+
isFormatKeepOptions,
|
9
|
+
isFormatOptions,
|
10
|
+
isFormatPngOptions,
|
11
|
+
isFormatTiffOptions,
|
12
|
+
isFormatWebpOptions,
|
4
13
|
toAvif,
|
5
14
|
toHeif,
|
6
15
|
toHeight,
|
@@ -9,13 +18,23 @@ import {
|
|
9
18
|
toTiff,
|
10
19
|
toWebp,
|
11
20
|
toWidth
|
12
|
-
} from "../../../chunks/chunk-
|
21
|
+
} from "../../../chunks/chunk-JMJZCVSA.js";
|
22
|
+
import "../../../chunks/chunk-YE67BQQN.js";
|
13
23
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
14
24
|
import "../../../chunks/chunk-OSAXBA7G.js";
|
15
25
|
import "../../../chunks/chunk-NZLE2WMY.js";
|
16
26
|
export {
|
17
27
|
format,
|
18
28
|
formatImage,
|
29
|
+
isFormatAvifOptions,
|
30
|
+
isFormatCommonOptions,
|
31
|
+
isFormatHeifOptions,
|
32
|
+
isFormatJpgOptions,
|
33
|
+
isFormatKeepOptions,
|
34
|
+
isFormatOptions,
|
35
|
+
isFormatPngOptions,
|
36
|
+
isFormatTiffOptions,
|
37
|
+
isFormatWebpOptions,
|
19
38
|
toAvif,
|
20
39
|
toHeif,
|
21
40
|
toHeight,
|
package/node/images/index.js
CHANGED
@@ -1,56 +1,56 @@
|
|
1
1
|
import {
|
2
2
|
prepare_exports
|
3
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-ZSPOYMNQ.js";
|
4
4
|
import {
|
5
5
|
format_exports
|
6
|
-
} from "../../chunks/chunk-
|
6
|
+
} from "../../chunks/chunk-JMJZCVSA.js";
|
7
7
|
import {
|
8
8
|
transform_exports
|
9
|
-
} from "../../chunks/chunk-
|
10
|
-
import "../../chunks/chunk-
|
11
|
-
import "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-2EEVPIJE.js";
|
10
|
+
import "../../chunks/chunk-JRYI4VBX.js";
|
11
|
+
import "../../chunks/chunk-YVLZX2JQ.js";
|
12
|
+
import "../../chunks/chunk-XTOAQTLP.js";
|
12
13
|
import "../../chunks/chunk-ZRWVPWQC.js";
|
13
|
-
import "../../chunks/chunk-
|
14
|
+
import "../../chunks/chunk-GE7DNPF6.js";
|
14
15
|
import "../../chunks/chunk-CP454IJD.js";
|
15
|
-
import "../../chunks/chunk-
|
16
|
-
import "../../chunks/chunk-E3GK7YZ7.js";
|
16
|
+
import "../../chunks/chunk-X244JGZD.js";
|
17
17
|
import "../../chunks/chunk-YCSC7QNV.js";
|
18
|
+
import "../../chunks/chunk-E3GK7YZ7.js";
|
18
19
|
import "../../chunks/chunk-AWVQJNGX.js";
|
19
20
|
import "../../chunks/chunk-OCM3RLO6.js";
|
20
|
-
import "../../chunks/chunk-
|
21
|
-
import "../../chunks/chunk-
|
22
|
-
import "../../chunks/chunk-
|
21
|
+
import "../../chunks/chunk-W6JPRXQ4.js";
|
22
|
+
import "../../chunks/chunk-662SOZWA.js";
|
23
|
+
import "../../chunks/chunk-6IZ5HUJJ.js";
|
23
24
|
import "../../chunks/chunk-LSOHLSF5.js";
|
24
|
-
import "../../chunks/chunk-NAP2XNYN.js";
|
25
25
|
import "../../chunks/chunk-ZMMNN3QA.js";
|
26
26
|
import "../../chunks/chunk-D33KC6NN.js";
|
27
|
-
import "../../chunks/chunk-
|
27
|
+
import "../../chunks/chunk-NAP2XNYN.js";
|
28
|
+
import "../../chunks/chunk-WRRA3BN4.js";
|
28
29
|
import "../../chunks/chunk-C3ZKLONL.js";
|
29
|
-
import "../../chunks/chunk-T2T5BYTW.js";
|
30
|
-
import "../../chunks/chunk-Z4PVE6SR.js";
|
31
|
-
import "../../chunks/chunk-6IZ5HUJJ.js";
|
32
|
-
import "../../chunks/chunk-YEYXAV23.js";
|
33
|
-
import "../../chunks/chunk-662SOZWA.js";
|
34
|
-
import "../../chunks/chunk-W6JPRXQ4.js";
|
35
30
|
import "../../chunks/chunk-G3HAKMUB.js";
|
36
31
|
import "../../chunks/chunk-D47ZPEUU.js";
|
37
|
-
import "../../chunks/chunk-
|
32
|
+
import "../../chunks/chunk-Z4PVE6SR.js";
|
38
33
|
import "../../chunks/chunk-U7R6TPHR.js";
|
34
|
+
import "../../chunks/chunk-T2T5BYTW.js";
|
35
|
+
import "../../chunks/chunk-UNHNZAVP.js";
|
36
|
+
import "../../chunks/chunk-YEYXAV23.js";
|
37
|
+
import "../../chunks/chunk-6EIF24H5.js";
|
39
38
|
import "../../chunks/chunk-3UM5CZA5.js";
|
39
|
+
import "../../chunks/chunk-CM6AHRTS.js";
|
40
40
|
import "../../chunks/chunk-MOVLLUDL.js";
|
41
41
|
import "../../chunks/chunk-YE67BQQN.js";
|
42
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
42
43
|
import "../../chunks/chunk-ENMBK6H7.js";
|
43
44
|
import "../../chunks/chunk-4CIS3R7T.js";
|
44
|
-
import "../../chunks/chunk-JMU5PDBD.js";
|
45
45
|
import "../../chunks/chunk-OSAXBA7G.js";
|
46
|
+
import "../../chunks/chunk-2POD3TAX.js";
|
47
|
+
import "../../chunks/chunk-U57Q62IN.js";
|
48
|
+
import "../../chunks/chunk-MB7HWF22.js";
|
49
|
+
import "../../chunks/chunk-QLC3A6PC.js";
|
50
|
+
import "../../chunks/chunk-YVLJKJV2.js";
|
46
51
|
import "../../chunks/chunk-D3ERTRDW.js";
|
47
52
|
import "../../chunks/chunk-VJJIYJMY.js";
|
48
53
|
import "../../chunks/chunk-FENXVJYO.js";
|
49
|
-
import "../../chunks/chunk-PXRLKO5Y.js";
|
50
|
-
import "../../chunks/chunk-2POD3TAX.js";
|
51
|
-
import "../../chunks/chunk-3LAWRHHB.js";
|
52
|
-
import "../../chunks/chunk-YVLJKJV2.js";
|
53
|
-
import "../../chunks/chunk-QLC3A6PC.js";
|
54
54
|
import "../../chunks/chunk-NZLE2WMY.js";
|
55
55
|
export {
|
56
56
|
format_exports as Exports,
|