@design-edito/tools 0.1.66 → 0.1.68
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 +6 -6
- package/agnostic/colors/index.js +6 -6
- package/agnostic/css/index.js +17 -17
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +2 -2
- package/agnostic/html/hyper-json/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +2 -2
- package/agnostic/html/hyper-json/tree/index.js +2 -2
- package/agnostic/html/hyper-json/utils/index.js +2 -2
- package/agnostic/html/index.js +19 -19
- package/agnostic/html/sanitize/index.js +6 -6
- package/agnostic/html/selector-to-element/index.js +6 -6
- package/agnostic/html/string-to-nodes/index.js +7 -7
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.js +29 -29
- package/agnostic/misc/lorem-ipsum/index.js +13 -13
- package/agnostic/numbers/index.js +8 -8
- package/agnostic/objects/index.js +6 -6
- package/agnostic/strings/index.js +6 -6
- package/chunks/chunk-236C4IHT.js +98 -0
- package/chunks/chunk-2HU2AWWJ.js +35 -0
- package/chunks/chunk-3CZNTEF7.js +151 -0
- package/chunks/chunk-4ARTWFW5.js +164 -0
- package/chunks/chunk-4PJWXOLA.js +16 -0
- package/chunks/chunk-4QHGUANF.js +19 -0
- package/chunks/chunk-65YZMVWZ.js +35 -0
- package/chunks/chunk-6Z6GDMOR.js +28 -0
- package/chunks/chunk-72NLUT3X.js +29 -0
- package/chunks/chunk-72U4TDEB.js +127 -0
- package/chunks/chunk-7OK5NZTY.js +18 -0
- package/chunks/chunk-7YW5HL6N.js +168 -0
- package/chunks/chunk-B4XUXE7E.js +18 -0
- package/chunks/chunk-BZHH4R64.js +20 -0
- package/chunks/chunk-C4Q4PC53.js +63 -0
- package/chunks/chunk-CHA42BGS.js +48 -0
- package/chunks/chunk-E6HDM2M4.js +191 -0
- package/chunks/chunk-FHHXI6WC.js +31 -0
- package/chunks/chunk-FRP47Y6H.js +2456 -0
- package/chunks/chunk-GE7DNPF6.js +63 -0
- package/chunks/chunk-GGT2PUZH.js +21 -0
- package/chunks/chunk-GOTTGEXI.js +23 -0
- package/chunks/chunk-HFIE4SBE.js +16 -0
- package/chunks/chunk-IYV3EEYX.js +20 -0
- package/chunks/chunk-J35QFU6O.js +21 -0
- package/chunks/chunk-JQRLQUMJ.js +16 -0
- package/chunks/chunk-JR76DLSV.js +151 -0
- package/chunks/chunk-JX45LILQ.js +164 -0
- package/chunks/chunk-KL6EJPC3.js +35 -0
- package/chunks/chunk-LH6Z6NJY.js +191 -0
- package/chunks/chunk-MFK63FMI.js +31 -0
- package/chunks/chunk-MKHTR43Q.js +231 -0
- package/chunks/chunk-MTT7TVR3.js +127 -0
- package/chunks/chunk-MW3KNVTG.js +29 -0
- package/chunks/chunk-NA7PT2KE.js +21 -0
- package/chunks/chunk-NFIEXASV.js +164 -0
- package/chunks/chunk-Q2ZS3QNB.js +151 -0
- package/chunks/chunk-SAFV7TBT.js +31 -0
- package/chunks/chunk-SJLH36CH.js +26 -0
- package/chunks/chunk-SLCGLOYM.js +37 -0
- package/chunks/chunk-SUWMOLXI.js +191 -0
- package/chunks/chunk-SY65O2JU.js +98 -0
- package/chunks/chunk-T6IC7JVI.js +37 -0
- package/chunks/chunk-TP6V6CBV.js +177 -0
- package/chunks/chunk-U3L3X27Q.js +177 -0
- package/chunks/chunk-U5WEI3QA.js +18 -0
- package/chunks/chunk-UERX6XGZ.js +21 -0
- package/chunks/chunk-UFKH5WD2.js +21 -0
- package/chunks/chunk-UODICVLG.js +173 -0
- package/chunks/chunk-UUU6DWRQ.js +79 -0
- package/chunks/chunk-VDT6ODFV.js +20 -0
- package/chunks/chunk-VHPX7UA3.js +177 -0
- package/chunks/chunk-VR5JHUKK.js +32 -0
- package/chunks/chunk-VSBRIQPH.js +48 -0
- package/chunks/chunk-WC2LQPQP.js +26 -0
- package/chunks/chunk-WH5V6GK7.js +56 -0
- package/chunks/chunk-WIJBRYJ6.js +20 -0
- package/chunks/chunk-WP7L5ZFP.js +173 -0
- package/chunks/chunk-WTILPGGX.js +69 -0
- package/chunks/chunk-X34YXAEL.js +31 -0
- package/chunks/chunk-X6WCMUOP.js +18 -0
- package/chunks/chunk-XB3ZOIHH.js +2456 -0
- package/chunks/chunk-XQMUFSLU.js +16 -0
- package/chunks/chunk-XTOAQTLP.js +98 -0
- package/chunks/chunk-Y7YEYHRZ.js +69 -0
- package/chunks/chunk-YLJBKSLO.js +56 -0
- package/chunks/chunk-YMRGCRQ4.js +48 -0
- package/chunks/chunk-Z2CU55CF.js +20 -0
- package/chunks/chunk-ZNPRJEP5.js +28 -0
- package/chunks/chunk-ZQ7ZC7TZ.js +56 -0
- package/chunks/chunk-ZVBMPJLH.js +48 -0
- package/node/@aws-s3/index.js +3 -3
- package/node/@aws-s3/storage/file/index.js +4 -4
- package/node/@aws-s3/storage/index.js +3 -3
- package/node/@google-cloud/index.js +8 -8
- package/node/@google-cloud/storage/file/index.js +16 -16
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/index.js +8 -8
- package/node/cloud-storage/index.js +15 -15
- package/node/cloud-storage/operations/download/index.js +3 -3
- package/node/cloud-storage/operations/index.js +11 -11
- 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/index.js +21 -21
- package/node/images/prepare/index.js +21 -21
- package/node/images/transform/frame/index.js +2 -2
- package/node/images/transform/index.js +20 -20
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +2 -2
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +2 -2
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +2 -2
- package/node/images/transform/operations/_utils/frame/index.js +6 -6
- package/node/sftp/file/index.js +4 -4
- package/node/sftp/index.js +2 -2
- package/package.json +2 -2
@@ -0,0 +1,16 @@
|
|
1
|
+
import {
|
2
|
+
esm_default
|
3
|
+
} from "./chunk-YE67BQQN.js";
|
4
|
+
import {
|
5
|
+
OperationNames
|
6
|
+
} from "./chunk-MOVLLUDL.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/saturate/index.ts
|
9
|
+
var saturateSchema = esm_default.object({
|
10
|
+
name: esm_default.literal(OperationNames.Saturate),
|
11
|
+
params: esm_default.number().min(0)
|
12
|
+
});
|
13
|
+
|
14
|
+
export {
|
15
|
+
saturateSchema
|
16
|
+
};
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import {
|
2
|
+
extractColorsFromImage
|
3
|
+
} from "./chunk-ZRWVPWQC.js";
|
4
|
+
import {
|
5
|
+
clamp
|
6
|
+
} from "./chunk-OSAXBA7G.js";
|
7
|
+
import {
|
8
|
+
complementColor
|
9
|
+
} from "./chunk-2POD3TAX.js";
|
10
|
+
import {
|
11
|
+
lightenColor
|
12
|
+
} from "./chunk-U57Q62IN.js";
|
13
|
+
import {
|
14
|
+
saturateColor
|
15
|
+
} from "./chunk-MB7HWF22.js";
|
16
|
+
import {
|
17
|
+
shuffle
|
18
|
+
} from "./chunk-VJJIYJMY.js";
|
19
|
+
|
20
|
+
// src/node/images/transform/operations/_utils/frame/create-color-palette/index.ts
|
21
|
+
function densifyPalette(RGBColors, types, ligthenIntensity, saturateIntensity) {
|
22
|
+
const densifiedPalette = [];
|
23
|
+
const complementaryRGBColors = RGBColors.map((color) => complementColor(color));
|
24
|
+
if (!types) {
|
25
|
+
return RGBColors;
|
26
|
+
}
|
27
|
+
if (types.includes("default")) {
|
28
|
+
densifiedPalette.push(...RGBColors);
|
29
|
+
}
|
30
|
+
if (types.includes("default-lighten")) {
|
31
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => lightenColor(RGBColor, ligthenIntensity || 0)));
|
32
|
+
}
|
33
|
+
if (types.includes("default-saturate")) {
|
34
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => saturateColor(RGBColor, saturateIntensity)));
|
35
|
+
}
|
36
|
+
if (types.includes("complementary")) {
|
37
|
+
densifiedPalette.push(...complementaryRGBColors);
|
38
|
+
}
|
39
|
+
if (types.includes("complementary-lighten")) {
|
40
|
+
densifiedPalette.push(...complementaryRGBColors.map((RGBColor) => lightenColor(RGBColor, ligthenIntensity || 0)));
|
41
|
+
}
|
42
|
+
if (types.includes("complementary-saturate")) {
|
43
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => saturateColor(RGBColor, saturateIntensity)));
|
44
|
+
}
|
45
|
+
return densifiedPalette;
|
46
|
+
}
|
47
|
+
function createColorPalette(image, createPalette) {
|
48
|
+
if (!createPalette) {
|
49
|
+
return [
|
50
|
+
[0, 0, 0],
|
51
|
+
[0, 0, 0],
|
52
|
+
[0, 0, 0],
|
53
|
+
[0, 0, 0],
|
54
|
+
[0, 0, 0]
|
55
|
+
];
|
56
|
+
}
|
57
|
+
const colorPalette = [];
|
58
|
+
if ("extract" in createPalette && createPalette.extract) {
|
59
|
+
colorPalette.push(
|
60
|
+
...extractColorsFromImage(
|
61
|
+
{
|
62
|
+
buffer: image.buffer,
|
63
|
+
dimensions: image.dimensions,
|
64
|
+
nbChannels: image.nbChannels
|
65
|
+
},
|
66
|
+
createPalette.extract.nbColor
|
67
|
+
)
|
68
|
+
);
|
69
|
+
}
|
70
|
+
if ("use" in createPalette && createPalette.use) {
|
71
|
+
colorPalette.push(...createPalette.use.RGBColors);
|
72
|
+
}
|
73
|
+
if ("densify" in createPalette && createPalette.densify) {
|
74
|
+
colorPalette.push(
|
75
|
+
...densifyPalette(
|
76
|
+
colorPalette,
|
77
|
+
createPalette.densify.types,
|
78
|
+
createPalette.densify.ligthenIntensity,
|
79
|
+
createPalette.densify.saturateIntensity
|
80
|
+
)
|
81
|
+
);
|
82
|
+
}
|
83
|
+
if ("compose" in createPalette && createPalette.compose) {
|
84
|
+
if ("nbColor" in createPalette.compose) {
|
85
|
+
const maxNbColor = createPalette.compose.nbColor ? clamp(createPalette.compose.nbColor, 0, colorPalette.length) : colorPalette.length;
|
86
|
+
colorPalette.splice(0, maxNbColor);
|
87
|
+
}
|
88
|
+
if ("mix" in createPalette.compose) {
|
89
|
+
return shuffle(colorPalette);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
return colorPalette;
|
93
|
+
}
|
94
|
+
|
95
|
+
export {
|
96
|
+
densifyPalette,
|
97
|
+
createColorPalette
|
98
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import {
|
2
|
+
createLineBackgroundSchema
|
3
|
+
} from "./chunk-YCSC7QNV.js";
|
4
|
+
import {
|
5
|
+
createTileBackgroundSchema
|
6
|
+
} from "./chunk-E3GK7YZ7.js";
|
7
|
+
import {
|
8
|
+
positionsSchema
|
9
|
+
} from "./chunk-D47ZPEUU.js";
|
10
|
+
import {
|
11
|
+
colorSchema
|
12
|
+
} from "./chunk-U7R6TPHR.js";
|
13
|
+
import {
|
14
|
+
esm_default
|
15
|
+
} from "./chunk-YE67BQQN.js";
|
16
|
+
import {
|
17
|
+
OperationNames
|
18
|
+
} from "./chunk-MOVLLUDL.js";
|
19
|
+
|
20
|
+
// src/node/images/transform/frame/index.tsx
|
21
|
+
var createBackgroundOptionsSchema = {
|
22
|
+
colorPalette: esm_default.optional(esm_default.object({
|
23
|
+
extract: esm_default.optional(esm_default.object({
|
24
|
+
nbColor: esm_default.number()
|
25
|
+
})),
|
26
|
+
use: esm_default.optional(esm_default.object({
|
27
|
+
RGBColors: esm_default.array(esm_default.tuple([esm_default.number(), esm_default.number(), esm_default.number()]))
|
28
|
+
})),
|
29
|
+
densify: esm_default.optional(esm_default.object({
|
30
|
+
types: esm_default.array(esm_default.enum([
|
31
|
+
"default",
|
32
|
+
"default-lighten",
|
33
|
+
"default-saturate",
|
34
|
+
"complementary",
|
35
|
+
"complementary-lighten",
|
36
|
+
"complementary-saturate"
|
37
|
+
])),
|
38
|
+
ligthenIntensity: esm_default.optional(esm_default.number()),
|
39
|
+
saturateIntensity: esm_default.optional(esm_default.number())
|
40
|
+
})),
|
41
|
+
compose: esm_default.optional(esm_default.object({
|
42
|
+
nbColor: esm_default.optional(esm_default.number()),
|
43
|
+
mix: esm_default.optional(esm_default.boolean())
|
44
|
+
}))
|
45
|
+
}))
|
46
|
+
};
|
47
|
+
var frameSchema = esm_default.object({
|
48
|
+
name: esm_default.literal(OperationNames.Frame),
|
49
|
+
params: esm_default.object({
|
50
|
+
dimensions: esm_default.object({
|
51
|
+
widthPx: esm_default.number().min(0),
|
52
|
+
heightPx: esm_default.number().min(0)
|
53
|
+
}),
|
54
|
+
imageScale: esm_default.object({
|
55
|
+
xRatio: esm_default.optional(esm_default.number().min(0).max(1)),
|
56
|
+
yRatio: esm_default.optional(esm_default.number().min(0).max(1))
|
57
|
+
}).optional(),
|
58
|
+
positions: positionsSchema,
|
59
|
+
background: esm_default.union([
|
60
|
+
colorSchema,
|
61
|
+
createLineBackgroundSchema.extend(createBackgroundOptionsSchema),
|
62
|
+
createTileBackgroundSchema.extend(createBackgroundOptionsSchema)
|
63
|
+
])
|
64
|
+
})
|
65
|
+
});
|
66
|
+
|
67
|
+
export {
|
68
|
+
frameSchema
|
69
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import {
|
2
|
+
update_metadata_exports
|
3
|
+
} from "./chunk-YW5ASSIQ.js";
|
4
|
+
import {
|
5
|
+
generate_signed_url_exports
|
6
|
+
} from "./chunk-OPU4CANL.js";
|
7
|
+
import {
|
8
|
+
get_metadata_exports
|
9
|
+
} from "./chunk-KFMYB672.js";
|
10
|
+
import {
|
11
|
+
exists_exports
|
12
|
+
} from "./chunk-TXGV4KJD.js";
|
13
|
+
import {
|
14
|
+
revoke_signed_urls_exports
|
15
|
+
} from "./chunk-UUSZJMJB.js";
|
16
|
+
import {
|
17
|
+
erase_exports
|
18
|
+
} from "./chunk-7BCQCDGQ.js";
|
19
|
+
import {
|
20
|
+
get_permissions_exports
|
21
|
+
} from "./chunk-GXICX4F6.js";
|
22
|
+
import {
|
23
|
+
move_exports
|
24
|
+
} from "./chunk-T55QIYYV.js";
|
25
|
+
import {
|
26
|
+
copy_exports
|
27
|
+
} from "./chunk-SZQHLC4K.js";
|
28
|
+
import {
|
29
|
+
download_exports
|
30
|
+
} from "./chunk-IARWH6LC.js";
|
31
|
+
import {
|
32
|
+
upload_exports
|
33
|
+
} from "./chunk-7FJKDVBE.js";
|
34
|
+
import {
|
35
|
+
__export
|
36
|
+
} from "./chunk-NZLE2WMY.js";
|
37
|
+
|
38
|
+
// src/node/@google-cloud/storage/file/index.ts
|
39
|
+
var file_exports = {};
|
40
|
+
__export(file_exports, {
|
41
|
+
Copy: () => copy_exports,
|
42
|
+
Download: () => download_exports,
|
43
|
+
Erase: () => erase_exports,
|
44
|
+
Exists: () => exists_exports,
|
45
|
+
GenerateSignedUrl: () => generate_signed_url_exports,
|
46
|
+
GetMetaData: () => get_metadata_exports,
|
47
|
+
GetPermissions: () => get_permissions_exports,
|
48
|
+
Move: () => move_exports,
|
49
|
+
RevokeSignedUrls: () => revoke_signed_urls_exports,
|
50
|
+
UpdateMetadata: () => update_metadata_exports,
|
51
|
+
Upload: () => upload_exports
|
52
|
+
});
|
53
|
+
|
54
|
+
export {
|
55
|
+
file_exports
|
56
|
+
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import {
|
2
|
+
download as download4
|
3
|
+
} from "./chunk-26QQ56SS.js";
|
4
|
+
import {
|
5
|
+
download as download3
|
6
|
+
} from "./chunk-IARWH6LC.js";
|
7
|
+
import {
|
8
|
+
download as download2
|
9
|
+
} from "./chunk-V4S34MIM.js";
|
10
|
+
import {
|
11
|
+
s3IdentifierData
|
12
|
+
} from "./chunk-MOBGB2PH.js";
|
13
|
+
import {
|
14
|
+
download
|
15
|
+
} from "./chunk-MFWKY3DT.js";
|
16
|
+
import {
|
17
|
+
Outcome
|
18
|
+
} from "./chunk-JMU5PDBD.js";
|
19
|
+
import {
|
20
|
+
__export
|
21
|
+
} from "./chunk-NZLE2WMY.js";
|
22
|
+
|
23
|
+
// src/node/cloud-storage/operations/download/index.ts
|
24
|
+
var download_exports = {};
|
25
|
+
__export(download_exports, {
|
26
|
+
download: () => download5
|
27
|
+
});
|
28
|
+
import { Bucket } from "@google-cloud/storage";
|
29
|
+
import { S3 } from "aws-sdk";
|
30
|
+
import { Client as FtpClient } from "basic-ftp";
|
31
|
+
import SftpClient from "ssh2-sftp-client";
|
32
|
+
async function download5(targetPath, endpointType, endpointIdentifier, client) {
|
33
|
+
if (endpointType === "gcs-bucket" /* GCS */ && client instanceof Bucket) return await download3(targetPath, client);
|
34
|
+
if (endpointType === "s3-bucket" /* S3 */ && client instanceof S3) {
|
35
|
+
const { bucketName } = s3IdentifierData(endpointIdentifier);
|
36
|
+
if (bucketName === null) return Outcome.makeFailure("Invalid S3 bucket name");
|
37
|
+
return await download4(targetPath, bucketName, client);
|
38
|
+
}
|
39
|
+
if (endpointType === "ftp" /* FTP */ && client instanceof FtpClient) return await download(targetPath, client);
|
40
|
+
if (endpointType === "ftps" /* FTPS */ && client instanceof FtpClient) return await download(targetPath, client);
|
41
|
+
if (endpointType === "sftp" /* SFTP */ && client instanceof SftpClient) return await download2(targetPath, client);
|
42
|
+
return Outcome.makeFailure("Invalid endpoint or client type");
|
43
|
+
}
|
44
|
+
|
45
|
+
export {
|
46
|
+
download5 as download,
|
47
|
+
download_exports
|
48
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import {
|
2
|
+
bucket_exports
|
3
|
+
} from "./chunk-XSVBWVVC.js";
|
4
|
+
import {
|
5
|
+
file_exports
|
6
|
+
} from "./chunk-YLJBKSLO.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-NZLE2WMY.js";
|
10
|
+
|
11
|
+
// src/node/@google-cloud/storage/index.ts
|
12
|
+
var storage_exports = {};
|
13
|
+
__export(storage_exports, {
|
14
|
+
Bucket: () => bucket_exports,
|
15
|
+
File: () => file_exports
|
16
|
+
});
|
17
|
+
|
18
|
+
export {
|
19
|
+
storage_exports
|
20
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
Sanitize
|
3
|
+
} from "./chunk-72U4TDEB.js";
|
4
|
+
import {
|
5
|
+
register
|
6
|
+
} from "./chunk-SJLH36CH.js";
|
7
|
+
|
8
|
+
// src/agnostic/html/string-to-nodes/index.ts
|
9
|
+
function stringToNodes(dirtyStr, options) {
|
10
|
+
const actualDocument = options?.documentObj ?? window.document;
|
11
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
|
12
|
+
const sanitizeOptions = {
|
13
|
+
...options?.sanitize,
|
14
|
+
documentObj: options?.sanitize?.documentObj ?? options?.documentObj
|
15
|
+
};
|
16
|
+
const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
|
17
|
+
const wrapperDiv = actualDocument.createElement("div");
|
18
|
+
wrapperDiv.innerHTML = str;
|
19
|
+
const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
|
20
|
+
const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
|
21
|
+
return allowedNodeTypes.includes(node.nodeType);
|
22
|
+
});
|
23
|
+
return nodes;
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
stringToNodes
|
28
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import {
|
2
|
+
exists_exports
|
3
|
+
} from "./chunk-TXGV4KJD.js";
|
4
|
+
import {
|
5
|
+
generate_signed_url_exports
|
6
|
+
} from "./chunk-OPU4CANL.js";
|
7
|
+
import {
|
8
|
+
revoke_signed_urls_exports
|
9
|
+
} from "./chunk-UUSZJMJB.js";
|
10
|
+
import {
|
11
|
+
move_exports
|
12
|
+
} from "./chunk-T55QIYYV.js";
|
13
|
+
import {
|
14
|
+
update_metadata_exports
|
15
|
+
} from "./chunk-YW5ASSIQ.js";
|
16
|
+
import {
|
17
|
+
erase_exports
|
18
|
+
} from "./chunk-7BCQCDGQ.js";
|
19
|
+
import {
|
20
|
+
copy_exports
|
21
|
+
} from "./chunk-SZQHLC4K.js";
|
22
|
+
import {
|
23
|
+
get_metadata_exports
|
24
|
+
} from "./chunk-KFMYB672.js";
|
25
|
+
import {
|
26
|
+
get_permissions_exports
|
27
|
+
} from "./chunk-GXICX4F6.js";
|
28
|
+
import {
|
29
|
+
download_exports
|
30
|
+
} from "./chunk-IARWH6LC.js";
|
31
|
+
import {
|
32
|
+
upload_exports
|
33
|
+
} from "./chunk-7FJKDVBE.js";
|
34
|
+
import {
|
35
|
+
__export
|
36
|
+
} from "./chunk-NZLE2WMY.js";
|
37
|
+
|
38
|
+
// src/node/@google-cloud/storage/file/index.ts
|
39
|
+
var file_exports = {};
|
40
|
+
__export(file_exports, {
|
41
|
+
Copy: () => copy_exports,
|
42
|
+
Download: () => download_exports,
|
43
|
+
Erase: () => erase_exports,
|
44
|
+
Exists: () => exists_exports,
|
45
|
+
GenerateSignedUrl: () => generate_signed_url_exports,
|
46
|
+
GetMetaData: () => get_metadata_exports,
|
47
|
+
GetPermissions: () => get_permissions_exports,
|
48
|
+
Move: () => move_exports,
|
49
|
+
RevokeSignedUrls: () => revoke_signed_urls_exports,
|
50
|
+
UpdateMetadata: () => update_metadata_exports,
|
51
|
+
Upload: () => upload_exports
|
52
|
+
});
|
53
|
+
|
54
|
+
export {
|
55
|
+
file_exports
|
56
|
+
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import {
|
2
|
+
upload as upload4
|
3
|
+
} from "./chunk-O7UEQQ6H.js";
|
4
|
+
import {
|
5
|
+
upload as upload3
|
6
|
+
} from "./chunk-7FJKDVBE.js";
|
7
|
+
import {
|
8
|
+
upload as upload2
|
9
|
+
} from "./chunk-45WKBXSF.js";
|
10
|
+
import {
|
11
|
+
s3IdentifierData
|
12
|
+
} from "./chunk-MOBGB2PH.js";
|
13
|
+
import {
|
14
|
+
upload
|
15
|
+
} from "./chunk-ADTQQNIQ.js";
|
16
|
+
import {
|
17
|
+
Outcome
|
18
|
+
} from "./chunk-JMU5PDBD.js";
|
19
|
+
import {
|
20
|
+
__export
|
21
|
+
} from "./chunk-NZLE2WMY.js";
|
22
|
+
|
23
|
+
// src/node/cloud-storage/operations/upload/index.ts
|
24
|
+
var upload_exports = {};
|
25
|
+
__export(upload_exports, {
|
26
|
+
upload: () => upload5
|
27
|
+
});
|
28
|
+
import { Bucket } from "@google-cloud/storage";
|
29
|
+
import { S3 } from "aws-sdk";
|
30
|
+
import { Client as FtpClient } from "basic-ftp";
|
31
|
+
import SftpClient from "ssh2-sftp-client";
|
32
|
+
async function upload5(fileReadable, targetPath, endpointType, endpointIdentifier, client) {
|
33
|
+
if (endpointType === "gcs-bucket" /* GCS */ && client instanceof Bucket) return await upload3(fileReadable, targetPath, client);
|
34
|
+
if (endpointType === "s3-bucket" /* S3 */ && client instanceof S3) {
|
35
|
+
const { bucketName } = s3IdentifierData(endpointIdentifier);
|
36
|
+
if (bucketName === null) return Outcome.makeFailure("Invalid S3 bucket name");
|
37
|
+
return await upload4(fileReadable, targetPath, bucketName, client);
|
38
|
+
}
|
39
|
+
if (endpointType === "ftp" /* FTP */ && client instanceof FtpClient) return await upload(fileReadable, targetPath, client);
|
40
|
+
if (endpointType === "ftps" /* FTPS */ && client instanceof FtpClient) return await upload(fileReadable, targetPath, client);
|
41
|
+
if (endpointType === "sftp" /* SFTP */ && client instanceof SftpClient) return await upload2(fileReadable, targetPath, client);
|
42
|
+
return Outcome.makeFailure("Invalid endpoint or client type");
|
43
|
+
}
|
44
|
+
|
45
|
+
export {
|
46
|
+
upload5 as upload,
|
47
|
+
upload_exports
|
48
|
+
};
|
package/node/@aws-s3/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
storage_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-O7UEQQ6H.js";
|
3
|
+
} from "../../chunks/chunk-2H5RIOJO.js";
|
4
|
+
import "../../chunks/chunk-BWXVJB4I.js";
|
6
5
|
import "../../chunks/chunk-26QQ56SS.js";
|
6
|
+
import "../../chunks/chunk-O7UEQQ6H.js";
|
7
7
|
import "../../chunks/chunk-JMU5PDBD.js";
|
8
8
|
import "../../chunks/chunk-FENXVJYO.js";
|
9
9
|
import "../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
2
|
-
import {
|
3
|
-
upload_exports
|
4
|
-
} from "../../../../chunks/chunk-O7UEQQ6H.js";
|
1
|
+
import "../../../../chunks/chunk-BWXVJB4I.js";
|
5
2
|
import {
|
6
3
|
download_exports
|
7
4
|
} from "../../../../chunks/chunk-26QQ56SS.js";
|
5
|
+
import {
|
6
|
+
upload_exports
|
7
|
+
} from "../../../../chunks/chunk-O7UEQQ6H.js";
|
8
8
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
9
9
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
10
10
|
import "../../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-2H5RIOJO.js";
|
2
2
|
import {
|
3
3
|
file_exports
|
4
|
-
} from "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-O7UEQQ6H.js";
|
4
|
+
} from "../../../chunks/chunk-BWXVJB4I.js";
|
6
5
|
import "../../../chunks/chunk-26QQ56SS.js";
|
6
|
+
import "../../../chunks/chunk-O7UEQQ6H.js";
|
7
7
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
8
8
|
import "../../../chunks/chunk-FENXVJYO.js";
|
9
9
|
import "../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import {
|
2
2
|
storage_exports
|
3
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-Z2CU55CF.js";
|
4
4
|
import "../../chunks/chunk-XSVBWVVC.js";
|
5
5
|
import "../../chunks/chunk-FTT6ZCCS.js";
|
6
6
|
import "../../chunks/chunk-XZ7II65Z.js";
|
7
|
-
import "../../chunks/chunk-
|
8
|
-
import "../../chunks/chunk-
|
9
|
-
import "../../chunks/chunk-GXICX4F6.js";
|
7
|
+
import "../../chunks/chunk-YLJBKSLO.js";
|
8
|
+
import "../../chunks/chunk-YW5ASSIQ.js";
|
10
9
|
import "../../chunks/chunk-OPU4CANL.js";
|
11
|
-
import "../../chunks/chunk-
|
10
|
+
import "../../chunks/chunk-KFMYB672.js";
|
11
|
+
import "../../chunks/chunk-TXGV4KJD.js";
|
12
|
+
import "../../chunks/chunk-UUSZJMJB.js";
|
12
13
|
import "../../chunks/chunk-7BCQCDGQ.js";
|
14
|
+
import "../../chunks/chunk-GXICX4F6.js";
|
13
15
|
import "../../chunks/chunk-T55QIYYV.js";
|
14
|
-
import "../../chunks/chunk-KFMYB672.js";
|
15
|
-
import "../../chunks/chunk-YW5ASSIQ.js";
|
16
16
|
import "../../chunks/chunk-SZQHLC4K.js";
|
17
|
-
import "../../chunks/chunk-7FJKDVBE.js";
|
18
17
|
import "../../chunks/chunk-IARWH6LC.js";
|
18
|
+
import "../../chunks/chunk-7FJKDVBE.js";
|
19
19
|
import "../../chunks/chunk-JMU5PDBD.js";
|
20
20
|
import "../../chunks/chunk-FENXVJYO.js";
|
21
21
|
import "../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,37 +1,37 @@
|
|
1
|
-
import "../../../../chunks/chunk-
|
1
|
+
import "../../../../chunks/chunk-YLJBKSLO.js";
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../../../chunks/chunk-
|
5
|
-
import {
|
6
|
-
get_permissions_exports
|
7
|
-
} from "../../../../chunks/chunk-GXICX4F6.js";
|
3
|
+
update_metadata_exports
|
4
|
+
} from "../../../../chunks/chunk-YW5ASSIQ.js";
|
8
5
|
import {
|
9
6
|
generate_signed_url_exports
|
10
7
|
} from "../../../../chunks/chunk-OPU4CANL.js";
|
8
|
+
import {
|
9
|
+
get_metadata_exports
|
10
|
+
} from "../../../../chunks/chunk-KFMYB672.js";
|
11
|
+
import {
|
12
|
+
exists_exports
|
13
|
+
} from "../../../../chunks/chunk-TXGV4KJD.js";
|
11
14
|
import {
|
12
15
|
revoke_signed_urls_exports
|
13
|
-
} from "../../../../chunks/chunk-
|
16
|
+
} from "../../../../chunks/chunk-UUSZJMJB.js";
|
14
17
|
import {
|
15
18
|
erase_exports
|
16
19
|
} from "../../../../chunks/chunk-7BCQCDGQ.js";
|
20
|
+
import {
|
21
|
+
get_permissions_exports
|
22
|
+
} from "../../../../chunks/chunk-GXICX4F6.js";
|
17
23
|
import {
|
18
24
|
move_exports
|
19
25
|
} from "../../../../chunks/chunk-T55QIYYV.js";
|
20
|
-
import {
|
21
|
-
get_metadata_exports
|
22
|
-
} from "../../../../chunks/chunk-KFMYB672.js";
|
23
|
-
import {
|
24
|
-
update_metadata_exports
|
25
|
-
} from "../../../../chunks/chunk-YW5ASSIQ.js";
|
26
26
|
import {
|
27
27
|
copy_exports
|
28
28
|
} from "../../../../chunks/chunk-SZQHLC4K.js";
|
29
|
-
import {
|
30
|
-
upload_exports
|
31
|
-
} from "../../../../chunks/chunk-7FJKDVBE.js";
|
32
29
|
import {
|
33
30
|
download_exports
|
34
31
|
} from "../../../../chunks/chunk-IARWH6LC.js";
|
32
|
+
import {
|
33
|
+
upload_exports
|
34
|
+
} from "../../../../chunks/chunk-7FJKDVBE.js";
|
35
35
|
import "../../../../chunks/chunk-JMU5PDBD.js";
|
36
36
|
import "../../../../chunks/chunk-FENXVJYO.js";
|
37
37
|
import "../../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
revokeSignedUrls
|
3
|
-
} from "../../../../../chunks/chunk-
|
3
|
+
} from "../../../../../chunks/chunk-UUSZJMJB.js";
|
4
4
|
import "../../../../../chunks/chunk-7BCQCDGQ.js";
|
5
|
-
import "../../../../../chunks/chunk-7FJKDVBE.js";
|
6
5
|
import "../../../../../chunks/chunk-IARWH6LC.js";
|
6
|
+
import "../../../../../chunks/chunk-7FJKDVBE.js";
|
7
7
|
import "../../../../../chunks/chunk-JMU5PDBD.js";
|
8
8
|
import "../../../../../chunks/chunk-FENXVJYO.js";
|
9
9
|
import "../../../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import "../../../chunks/chunk-
|
1
|
+
import "../../../chunks/chunk-Z2CU55CF.js";
|
2
2
|
import {
|
3
3
|
bucket_exports
|
4
4
|
} from "../../../chunks/chunk-XSVBWVVC.js";
|
@@ -6,18 +6,18 @@ import "../../../chunks/chunk-FTT6ZCCS.js";
|
|
6
6
|
import "../../../chunks/chunk-XZ7II65Z.js";
|
7
7
|
import {
|
8
8
|
file_exports
|
9
|
-
} from "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-
|
11
|
-
import "../../../chunks/chunk-GXICX4F6.js";
|
9
|
+
} from "../../../chunks/chunk-YLJBKSLO.js";
|
10
|
+
import "../../../chunks/chunk-YW5ASSIQ.js";
|
12
11
|
import "../../../chunks/chunk-OPU4CANL.js";
|
13
|
-
import "../../../chunks/chunk-
|
12
|
+
import "../../../chunks/chunk-KFMYB672.js";
|
13
|
+
import "../../../chunks/chunk-TXGV4KJD.js";
|
14
|
+
import "../../../chunks/chunk-UUSZJMJB.js";
|
14
15
|
import "../../../chunks/chunk-7BCQCDGQ.js";
|
16
|
+
import "../../../chunks/chunk-GXICX4F6.js";
|
15
17
|
import "../../../chunks/chunk-T55QIYYV.js";
|
16
|
-
import "../../../chunks/chunk-KFMYB672.js";
|
17
|
-
import "../../../chunks/chunk-YW5ASSIQ.js";
|
18
18
|
import "../../../chunks/chunk-SZQHLC4K.js";
|
19
|
-
import "../../../chunks/chunk-7FJKDVBE.js";
|
20
19
|
import "../../../chunks/chunk-IARWH6LC.js";
|
20
|
+
import "../../../chunks/chunk-7FJKDVBE.js";
|
21
21
|
import "../../../chunks/chunk-JMU5PDBD.js";
|
22
22
|
import "../../../chunks/chunk-FENXVJYO.js";
|
23
23
|
import "../../../chunks/chunk-NZLE2WMY.js";
|
@@ -1,25 +1,25 @@
|
|
1
|
+
import {
|
2
|
+
client_exports
|
3
|
+
} from "../../chunks/chunk-MTGZYBK2.js";
|
4
|
+
import {
|
5
|
+
credentials_exports
|
6
|
+
} from "../../chunks/chunk-E7J4E6OB.js";
|
1
7
|
import {
|
2
8
|
operations_exports
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
5
|
-
import "../../chunks/chunk-7FJKDVBE.js";
|
6
|
-
import "../../chunks/chunk-O7UEQQ6H.js";
|
7
|
-
import "../../chunks/chunk-XF5QBETN.js";
|
9
|
+
} from "../../chunks/chunk-BANYGSW4.js";
|
10
|
+
import "../../chunks/chunk-ZZH6RUS3.js";
|
8
11
|
import "../../chunks/chunk-IARWH6LC.js";
|
9
12
|
import "../../chunks/chunk-26QQ56SS.js";
|
10
|
-
import "../../chunks/chunk-
|
11
|
-
import "../../chunks/chunk-
|
12
|
-
import "../../chunks/chunk-
|
13
|
-
import "../../chunks/chunk-V4S34MIM.js";
|
14
|
-
import {
|
15
|
-
client_exports
|
16
|
-
} from "../../chunks/chunk-MTGZYBK2.js";
|
13
|
+
import "../../chunks/chunk-EA4L7AGZ.js";
|
14
|
+
import "../../chunks/chunk-7FJKDVBE.js";
|
15
|
+
import "../../chunks/chunk-O7UEQQ6H.js";
|
17
16
|
import {
|
18
17
|
endpoint_exports
|
19
18
|
} from "../../chunks/chunk-MOBGB2PH.js";
|
20
|
-
import
|
21
|
-
|
22
|
-
|
19
|
+
import "../../chunks/chunk-V4S34MIM.js";
|
20
|
+
import "../../chunks/chunk-45WKBXSF.js";
|
21
|
+
import "../../chunks/chunk-MFWKY3DT.js";
|
22
|
+
import "../../chunks/chunk-ADTQQNIQ.js";
|
23
23
|
import "../../chunks/chunk-HQLRJ7XW.js";
|
24
24
|
import "../../chunks/chunk-JMU5PDBD.js";
|
25
25
|
import "../../chunks/chunk-FENXVJYO.js";
|