@cloudflare/vite-plugin 1.62.3 → 1.62.5
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/dist/index.mjs
CHANGED
|
@@ -43602,7 +43602,11 @@ function validateContainerApp(envName, topLevelName, configPath, options = {}) {
|
|
|
43602
43602
|
}
|
|
43603
43603
|
validateOptionalTypedArray(diagnostics, `${field}.constraints.tiers`, constraints.tiers, "number");
|
|
43604
43604
|
validateOptionalProperty(diagnostics, `${field}.constraints`, "jurisdiction", constraints.jurisdiction, "string");
|
|
43605
|
-
if (constraints.jurisdiction && ![
|
|
43605
|
+
if (constraints.jurisdiction && ![
|
|
43606
|
+
"eu",
|
|
43607
|
+
"fedramp",
|
|
43608
|
+
"us"
|
|
43609
|
+
].includes(constraints.jurisdiction)) diagnostics.errors.push(`${field}.constraints.jurisdiction must be one of: "eu", "fedramp", "us"`);
|
|
43606
43610
|
if (validateOptionalTypedArray(diagnostics, `${field}.constraints.regions`, constraints.regions, "string") && constraints.regions && Array.isArray(constraints.regions)) {
|
|
43607
43611
|
const validRegions = [
|
|
43608
43612
|
"ENAM",
|
|
@@ -45648,7 +45652,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
45648
45652
|
}, {});
|
|
45649
45653
|
}
|
|
45650
45654
|
__name$6(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
45651
|
-
var DEFAULT_COMPAT_DATE = "2026-
|
|
45655
|
+
var DEFAULT_COMPAT_DATE = "2026-10-01";
|
|
45652
45656
|
function constructWranglerConfig(config$2) {
|
|
45653
45657
|
const mappedBindings = mapWorkerMetadataBindings(config$2.bindings);
|
|
45654
45658
|
const durableObjectClassNames = config$2.bindings.filter((binding) => binding.type === "durable_object_namespace" && binding.script_name === config$2.name).map((durableObject) => durableObject.class_name);
|
|
@@ -47247,10 +47251,13 @@ You can try:
|
|
|
47247
47251
|
__name$6(validateBinary, "validateBinary");
|
|
47248
47252
|
function redactCloudflaredArgsForLogging(args) {
|
|
47249
47253
|
const redacted = [...args];
|
|
47254
|
+
const sensitiveArgs = ["--token", "--allowed-mail"];
|
|
47250
47255
|
for (let i$1 = 0; i$1 < redacted.length; i$1++) {
|
|
47251
47256
|
const arg = redacted[i$1];
|
|
47252
|
-
|
|
47253
|
-
|
|
47257
|
+
for (const sensitiveArg of sensitiveArgs) {
|
|
47258
|
+
if (arg === sensitiveArg && i$1 + 1 < redacted.length) redacted[i$1 + 1] = "[REDACTED]";
|
|
47259
|
+
if (arg.startsWith(`${sensitiveArg}=`)) redacted[i$1] = `${sensitiveArg}=[REDACTED]`;
|
|
47260
|
+
}
|
|
47254
47261
|
}
|
|
47255
47262
|
return redacted;
|
|
47256
47263
|
}
|
|
@@ -47449,6 +47456,18 @@ async function spawnCloudflared(args, options) {
|
|
|
47449
47456
|
confirmDownload: options?.confirmDownload,
|
|
47450
47457
|
logger: logger$2
|
|
47451
47458
|
});
|
|
47459
|
+
if (args.some((arg) => arg === "--allowed-mail" || arg.startsWith("--allowed-mail="))) {
|
|
47460
|
+
const minimumVersion$1 = "2026.9.2";
|
|
47461
|
+
const installedVersion = getInstalledVersion(binPath);
|
|
47462
|
+
if (!installedVersion || isVersionOutdated(installedVersion, minimumVersion$1)) throw new UserError(`[cloudflared] --allowed-mail requires cloudflared ${minimumVersion$1} or later.
|
|
47463
|
+
|
|
47464
|
+
` + (installedVersion ? `The selected binary (${binPath}) is version ${installedVersion}.
|
|
47465
|
+
|
|
47466
|
+
` : `Could not determine the version of the selected binary (${binPath}).
|
|
47467
|
+
|
|
47468
|
+
`) + `Update cloudflared in your PATH or set CLOUDFLARED_PATH to a compatible binary.
|
|
47469
|
+
Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`, { telemetryMessage: "tunnel cloudflared allowed mail unsupported version" });
|
|
47470
|
+
}
|
|
47452
47471
|
logger$2?.debug(`Spawning cloudflared: ${binPath} ${redactCloudflaredArgsForLogging(args).join(" ")}`);
|
|
47453
47472
|
return spawn(binPath, args, {
|
|
47454
47473
|
stdio: options?.stdio ?? "inherit",
|
|
@@ -56964,7 +56983,11 @@ const StandardContainerBaseSchema = BaseContainerSchema.extend({
|
|
|
56964
56983
|
"OC",
|
|
56965
56984
|
"AFR"
|
|
56966
56985
|
])).optional(),
|
|
56967
|
-
jurisdiction: _enum([
|
|
56986
|
+
jurisdiction: _enum([
|
|
56987
|
+
"eu",
|
|
56988
|
+
"fedramp",
|
|
56989
|
+
"us"
|
|
56990
|
+
]).optional()
|
|
56968
56991
|
}).optional(),
|
|
56969
56992
|
rollout: strictObject({
|
|
56970
56993
|
kind: _enum([
|
|
@@ -84685,6 +84708,10 @@ var CF_CLIENT_REGISTERED_SCOPES = [
|
|
|
84685
84708
|
"ip-prefix-bgp-on-demand.write",
|
|
84686
84709
|
"ip-prefix.read",
|
|
84687
84710
|
"ip-prefix.write",
|
|
84711
|
+
"k2.consume",
|
|
84712
|
+
"k2.produce",
|
|
84713
|
+
"k2.read",
|
|
84714
|
+
"k2.write",
|
|
84688
84715
|
"l4-ddos-managed-ruleset.read",
|
|
84689
84716
|
"l4-ddos-managed-ruleset.write",
|
|
84690
84717
|
"load-balancers-account.read",
|
|
@@ -84838,6 +84865,8 @@ var CF_CLIENT_REGISTERED_SCOPES = [
|
|
|
84838
84865
|
"zone-disable-esc.write",
|
|
84839
84866
|
"zone-dns-settings.read",
|
|
84840
84867
|
"zone-dns-settings.write",
|
|
84868
|
+
"zone-observability.read",
|
|
84869
|
+
"zone-observability.write",
|
|
84841
84870
|
"zone-security-center-insights.read",
|
|
84842
84871
|
"zone-security-center-insights.write",
|
|
84843
84872
|
"zone-settings.read",
|
|
@@ -85755,7 +85784,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
85755
85784
|
//#endregion
|
|
85756
85785
|
//#region ../remote-bindings/dist/index.mjs
|
|
85757
85786
|
var import_undici = require_undici();
|
|
85758
|
-
var version$2 = "0.0.
|
|
85787
|
+
var version$2 = "0.0.43";
|
|
85759
85788
|
var NoDefaultValueProvided = class extends UserError {
|
|
85760
85789
|
constructor() {
|
|
85761
85790
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|