@cloudflare/workers-utils 0.20.0 → 0.21.1
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/browser.d.mts +1 -1
- package/dist/{chunk-XXCQEG76.mjs → chunk-GMTGAG26.mjs} +6 -2
- package/dist/{config-CeDY2o0q.d.mts → config-BH_2HMEf.d.mts} +4 -1
- package/dist/index.d.mts +12 -4
- package/dist/index.mjs +88 -39
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +7 -2
- package/dist/test-helpers/index.mjs +20 -3
- package/package.json +15 -4
package/dist/browser.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailConsumer,
|
|
1
|
+
import { T as TailConsumer, av as WorkerMetadata, R as RawConfig } from './config-BH_2HMEf.mjs';
|
|
2
2
|
import { AssetConfig } from '@cloudflare/workers-shared';
|
|
3
3
|
import { Cloudflare } from 'cloudflare';
|
|
4
4
|
|
|
@@ -2821,8 +2821,12 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
|
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
2823
|
__name(findRedirectedWranglerConfig, "findRedirectedWranglerConfig");
|
|
2824
|
+
function isRedirectedConfig(config) {
|
|
2825
|
+
return config.configPath !== void 0 && config.configPath !== config.userConfigPath;
|
|
2826
|
+
}
|
|
2827
|
+
__name(isRedirectedConfig, "isRedirectedConfig");
|
|
2824
2828
|
function isRedirectedRawConfig(rawConfig, configPath, userConfigPath) {
|
|
2825
|
-
return
|
|
2829
|
+
return isRedirectedConfig({ configPath, userConfigPath });
|
|
2826
2830
|
}
|
|
2827
2831
|
__name(isRedirectedRawConfig, "isRedirectedRawConfig");
|
|
2828
2832
|
|
|
@@ -3175,4 +3179,4 @@ smol-toml/dist/index.js:
|
|
|
3175
3179
|
*)
|
|
3176
3180
|
*/
|
|
3177
3181
|
|
|
3178
|
-
export { APIError, CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, ParseError, UserError, applyEdits, configFileName, configFormat, createFatalError, dedent, dist_default, experimental_readRawConfig, findWranglerConfig, format2 as format, formatConfigSnippet, indexLocation, isDirectory, isRedirectedRawConfig, modify, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation };
|
|
3182
|
+
export { APIError, CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, ParseError, UserError, applyEdits, configFileName, configFormat, createFatalError, dedent, dist_default, experimental_readRawConfig, findWranglerConfig, format2 as format, formatConfigSnippet, indexLocation, isDirectory, isRedirectedConfig, isRedirectedRawConfig, modify, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation };
|
|
@@ -174,6 +174,7 @@ interface CfWorkflow {
|
|
|
174
174
|
limits?: {
|
|
175
175
|
steps?: number;
|
|
176
176
|
};
|
|
177
|
+
schedule?: string | string[];
|
|
177
178
|
}
|
|
178
179
|
interface CfQueue {
|
|
179
180
|
binding: string;
|
|
@@ -1497,6 +1498,8 @@ type WorkflowBinding = {
|
|
|
1497
1498
|
/** Maximum number of steps a Workflow instance can execute */
|
|
1498
1499
|
steps?: number;
|
|
1499
1500
|
};
|
|
1501
|
+
/** Optional cron schedule(s) for automatically triggering workflow instances */
|
|
1502
|
+
schedule?: string | string[];
|
|
1500
1503
|
};
|
|
1501
1504
|
/**
|
|
1502
1505
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|
|
@@ -2580,4 +2583,4 @@ interface EnvironmentMap {
|
|
|
2580
2583
|
}
|
|
2581
2584
|
declare const defaultWranglerConfig: Config;
|
|
2582
2585
|
|
|
2583
|
-
export { type
|
|
2586
|
+
export { type CfVectorize as $, type Assets as A, type Binding as B, type ComputedFields as C, type DurableObjectMigration as D, type Environment as E, type CfWasmModuleBindings as F, type CfTextBlobBindings as G, type CfBrowserBinding as H, type CfAIBinding as I, type CfImagesBinding as J, type CfMediaBinding as K, type CfStreamBinding as L, type CfVersionMetadataBinding as M, type CfDataBlobBindings as N, type Observability as O, type PreviewsConfig as P, type CfDurableObject as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfWorkflow as V, type WorkerMetadataBinding as W, type CfQueue as X, type CfR2Bucket as Y, type ZoneIdRoute as Z, type CfD1Database as _, type RedirectedRawConfig as a, type CfAISearchNamespace as a0, type CfAISearch as a1, type CfSecretsStoreSecrets as a2, type CfArtifacts as a3, type CfHelloWorld as a4, type CfFlagship as a5, type CfWorkerLoader as a6, type CfRateLimit as a7, type CfHyperdrive as a8, type CfService as a9, type Trigger as aA, INHERIT_SYMBOL as aB, SERVICE_TAG_PREFIX as aC, ENVIRONMENT_TAG_PREFIX as aD, PATH_TO_DEPLOY_CONFIG as aE, JSON_CONFIG_FORMATS as aF, type CfVpcService as aa, type CfVpcNetwork as ab, type CfAnalyticsEngineDataset as ac, type CfDispatchNamespace as ad, type CfMTlsCertificate as ae, type CfLogfwdr as af, type CfLogfwdrBinding as ag, type CfAssetsBinding as ah, type CfPipeline as ai, type CfUnsafeBinding as aj, type CfCapnp as ak, type CfUnsafe as al, type CfDurableObjectMigrations as am, type CfPlacement as an, type CfTailConsumer as ao, type CfUserLimits as ap, type CfWorkerInit as aq, type CfWorkerContext as ar, type CfWorkerSourceMap as as, type Json as at, type AssetConfigMetadata as au, type WorkerMetadata as av, type ServiceMetadataRes as aw, type ServiceFetch as ax, type File as ay, type BinaryFile as az, type Config as b, type RawDevConfig as c, type ConfigFields as d, type RawEnvironment as e, defaultWranglerConfig as f, type ZoneNameRoute as g, type CustomDomainRoute as h, type Route as i, type CloudchamberConfig as j, type ContainerApp as k, type DurableObjectBindings as l, type WorkflowBinding as m, type EnvironmentNonInheritable as n, type Rule as o, type ConfigModuleRuleType as p, type DispatchNamespaceOutbound as q, type CacheOptions as r, type DockerConfiguration as s, type ContainerEngine as t, type CfScriptFormat as u, type CfModuleType as v, type CfModule as w, type CfVars as x, type CfKvNamespace as y, type CfSendEmailBindings as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Binding, R as RawConfig,
|
|
2
|
-
export {
|
|
1
|
+
import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, W as WorkerMetadataBinding } from './config-BH_2HMEf.mjs';
|
|
2
|
+
export { au as AssetConfigMetadata, A as Assets, az as BinaryFile, r as CacheOptions, I as CfAIBinding, a1 as CfAISearch, a0 as CfAISearchNamespace, ac as CfAnalyticsEngineDataset, a3 as CfArtifacts, ah as CfAssetsBinding, H as CfBrowserBinding, ak as CfCapnp, _ as CfD1Database, N as CfDataBlobBindings, ad as CfDispatchNamespace, Q as CfDurableObject, am as CfDurableObjectMigrations, a5 as CfFlagship, a4 as CfHelloWorld, a8 as CfHyperdrive, J as CfImagesBinding, y as CfKvNamespace, af as CfLogfwdr, ag as CfLogfwdrBinding, ae as CfMTlsCertificate, K as CfMediaBinding, w as CfModule, v as CfModuleType, ai as CfPipeline, an as CfPlacement, X as CfQueue, Y as CfR2Bucket, a7 as CfRateLimit, u as CfScriptFormat, a2 as CfSecretsStoreSecrets, z as CfSendEmailBindings, a9 as CfService, L as CfStreamBinding, ao as CfTailConsumer, G as CfTextBlobBindings, al as CfUnsafe, aj as CfUnsafeBinding, ap as CfUserLimits, x as CfVars, $ as CfVectorize, M as CfVersionMetadataBinding, ab as CfVpcNetwork, aa as CfVpcService, F as CfWasmModuleBindings, ar as CfWorkerContext, aq as CfWorkerInit, a6 as CfWorkerLoader, as as CfWorkerSourceMap, V as CfWorkflow, j as CloudchamberConfig, d as ConfigFields, p as ConfigModuleRuleType, k as ContainerApp, t as ContainerEngine, h as CustomDomainRoute, q as DispatchNamespaceOutbound, s as DockerConfiguration, l as DurableObjectBindings, D as DurableObjectMigration, aD as ENVIRONMENT_TAG_PREFIX, E as Environment, n as EnvironmentNonInheritable, ay as File, aB as INHERIT_SYMBOL, aF as JSON_CONFIG_FORMATS, at as Json, O as Observability, aE as PATH_TO_DEPLOY_CONFIG, P as PreviewsConfig, c as RawDevConfig, e as RawEnvironment, a as RedirectedRawConfig, i as Route, o as Rule, aC as SERVICE_TAG_PREFIX, ax as ServiceFetch, aw as ServiceMetadataRes, S as StreamingTailConsumer, T as TailConsumer, aA as Trigger, U as UserLimits, av as WorkerMetadata, m as WorkflowBinding, Z as ZoneIdRoute, g as ZoneNameRoute, f as defaultWranglerConfig } from './config-BH_2HMEf.mjs';
|
|
3
3
|
import * as jsoncParser from 'jsonc-parser';
|
|
4
4
|
export { constructWranglerConfig } from './browser.mjs';
|
|
5
5
|
export { Counter, MetricsRegistry } from './prometheus-metrics.mjs';
|
|
@@ -39,6 +39,7 @@ declare function resolveWranglerConfigPath({ config, script, }: {
|
|
|
39
39
|
declare function findWranglerConfig(referencePath?: string, { useRedirectIfAvailable }?: {
|
|
40
40
|
useRedirectIfAvailable?: boolean | undefined;
|
|
41
41
|
}): ConfigPaths;
|
|
42
|
+
declare function isRedirectedConfig(config: Pick<ComputedFields, "configPath" | "userConfigPath">): boolean;
|
|
42
43
|
|
|
43
44
|
/**
|
|
44
45
|
* Diagnostic errors and warnings.
|
|
@@ -861,16 +862,23 @@ declare function spawnCloudflared(args: string[], options?: {
|
|
|
861
862
|
logger?: Logger;
|
|
862
863
|
}): Promise<ChildProcess>;
|
|
863
864
|
|
|
864
|
-
interface
|
|
865
|
+
interface QuickTunnelResult {
|
|
866
|
+
mode: "quick";
|
|
865
867
|
publicUrl: URL;
|
|
866
868
|
}
|
|
869
|
+
interface NamedTunnelResult {
|
|
870
|
+
mode: "named";
|
|
871
|
+
}
|
|
872
|
+
type TunnelResult = QuickTunnelResult | NamedTunnelResult;
|
|
867
873
|
interface Tunnel {
|
|
868
874
|
ready: () => Promise<TunnelResult>;
|
|
875
|
+
isOpen: () => boolean;
|
|
869
876
|
dispose: () => void;
|
|
870
877
|
extendExpiry: (ms?: number) => void;
|
|
871
878
|
}
|
|
872
879
|
interface TunnelOptions {
|
|
873
880
|
origin: URL;
|
|
881
|
+
token?: string;
|
|
874
882
|
timeoutMs?: number;
|
|
875
883
|
expiryMs?: number;
|
|
876
884
|
reminderIntervalMs?: number;
|
|
@@ -887,4 +895,4 @@ interface TunnelOptions {
|
|
|
887
895
|
*/
|
|
888
896
|
declare function startTunnel(options: TunnelOptions): Tunnel;
|
|
889
897
|
|
|
890
|
-
export { APIError, Binding, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, DeprecationError, Diagnostics, FatalError, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, type ParseFile, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, type Tunnel, type TunnelOptions, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTodaysCompatDate, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation, spawnCloudflared, startTunnel, validatePagesConfig };
|
|
898
|
+
export { APIError, Binding, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, DeprecationError, Diagnostics, FatalError, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, type ParseFile, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, type Tunnel, type TunnelOptions, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTodaysCompatDate, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRedirectedConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation, spawnCloudflared, startTunnel, validatePagesConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { assertNever, constructWranglerConfig, getTodaysCompatDate, isCompatDate, mapWorkerMetadataBindings } from './chunk-BLWXWFJK.mjs';
|
|
2
2
|
export { MetricsRegistry } from './chunk-O4YGOZSW.mjs';
|
|
3
|
-
import { isDirectory, UserError, isRedirectedRawConfig, dedent, configFileName, formatConfigSnippet, FatalError, removeDirSync, readFileSync, parseTOML, modify, applyEdits, format, dist_default, parseJSONC } from './chunk-
|
|
4
|
-
export { APIError, CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, ParseError, UserError, configFileName, configFormat, createFatalError, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, indexLocation, isDirectory, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation } from './chunk-
|
|
3
|
+
import { isDirectory, UserError, isRedirectedRawConfig, dedent, configFileName, formatConfigSnippet, FatalError, removeDirSync, readFileSync, parseTOML, modify, applyEdits, format, dist_default, parseJSONC } from './chunk-GMTGAG26.mjs';
|
|
4
|
+
export { APIError, CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, ParseError, UserError, configFileName, configFormat, createFatalError, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, indexLocation, isDirectory, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation } from './chunk-GMTGAG26.mjs';
|
|
5
5
|
export { ENVIRONMENT_TAG_PREFIX, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, PATH_TO_DEPLOY_CONFIG, SERVICE_TAG_PREFIX } from './chunk-OZQVB3L3.mjs';
|
|
6
6
|
import { __commonJS, __name, __require, __export, __toESM, __reExport } from './chunk-DCOBXSFB.mjs';
|
|
7
7
|
import fs, { accessSync, constants, writeFileSync, renameSync, existsSync, unlinkSync, mkdirSync, chmodSync } from 'node:fs';
|
|
@@ -5548,13 +5548,13 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
5548
5548
|
isDispatchNamespace,
|
|
5549
5549
|
preserveOriginalMain
|
|
5550
5550
|
);
|
|
5551
|
-
const
|
|
5551
|
+
const isRedirectedConfig2 = isRedirectedRawConfig(
|
|
5552
5552
|
rawConfig,
|
|
5553
5553
|
configPath,
|
|
5554
5554
|
userConfigPath
|
|
5555
5555
|
);
|
|
5556
5556
|
const definedEnvironments = Object.keys(rawConfig.env ?? {});
|
|
5557
|
-
if (
|
|
5557
|
+
if (isRedirectedConfig2 && definedEnvironments.length > 0) {
|
|
5558
5558
|
diagnostics.errors.push(
|
|
5559
5559
|
dedent`
|
|
5560
5560
|
Redirected configurations cannot include environments but the following have been found:\n${definedEnvironments.map((env) => ` - ${env}`).join("\n")}
|
|
@@ -5570,7 +5570,7 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
5570
5570
|
assert(envName === void 0 || typeof envName === "string");
|
|
5571
5571
|
let activeEnv = topLevelEnv;
|
|
5572
5572
|
if (envName) {
|
|
5573
|
-
if (
|
|
5573
|
+
if (isRedirectedConfig2) {
|
|
5574
5574
|
if (!isPagesConfig(rawConfig) && rawConfig.targetEnvironment && rawConfig.targetEnvironment !== envName) {
|
|
5575
5575
|
const via = args.env !== void 0 ? "via the `--env/-e` CLI argument" : "via the CLOUDFLARE_ENV environment variable";
|
|
5576
5576
|
throw new Error(dedent`
|
|
@@ -5631,9 +5631,9 @@ Consider adding an environment configuration section to the ${configFileName(con
|
|
|
5631
5631
|
const config = {
|
|
5632
5632
|
configPath,
|
|
5633
5633
|
userConfigPath,
|
|
5634
|
-
topLevelName:
|
|
5635
|
-
definedEnvironments:
|
|
5636
|
-
targetEnvironment:
|
|
5634
|
+
topLevelName: isRedirectedConfig2 ? rawConfig.topLevelName : rawConfig.name,
|
|
5635
|
+
definedEnvironments: isRedirectedConfig2 ? rawConfig.definedEnvironments : definedEnvironments,
|
|
5636
|
+
targetEnvironment: isRedirectedConfig2 ? rawConfig.targetEnvironment : envName,
|
|
5637
5637
|
pages_build_output_dir: normalizeAndValidatePagesBuildOutputDir(
|
|
5638
5638
|
configPath,
|
|
5639
5639
|
rawConfig.pages_build_output_dir
|
|
@@ -6328,7 +6328,9 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
6328
6328
|
"Removed",
|
|
6329
6329
|
"error"
|
|
6330
6330
|
);
|
|
6331
|
-
|
|
6331
|
+
if (topLevelEnv === void 0 || rawConfig?.unsafe === void 0) {
|
|
6332
|
+
experimental(diagnostics, rawEnv, "unsafe");
|
|
6333
|
+
}
|
|
6332
6334
|
const route = normalizeAndValidateRoute(diagnostics, topLevelEnv, rawEnv);
|
|
6333
6335
|
const account_id = inheritableInWranglerEnvironments(
|
|
6334
6336
|
diagnostics,
|
|
@@ -7116,14 +7118,16 @@ var validateDefines = /* @__PURE__ */ __name((envName) => (diagnostics, field, v
|
|
|
7116
7118
|
if (configDefines.length > 0) {
|
|
7117
7119
|
if (typeof value === "object" && value !== null) {
|
|
7118
7120
|
const configEnvDefines = config === void 0 ? [] : Object.keys(value);
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7121
|
+
const missingDefines = configDefines.filter(
|
|
7122
|
+
(varName) => !(varName in value)
|
|
7123
|
+
);
|
|
7124
|
+
if (missingDefines.length > 0) {
|
|
7125
|
+
diagnostics.warnings.push(
|
|
7126
|
+
`The following define entries exist at the top level, but not on "${fieldPath}".
|
|
7127
|
+
This is probably not what you want, since "define" configuration is not inherited by environments.
|
|
7128
|
+
Please add these entries to "env.${envName}.define":
|
|
7129
|
+
` + missingDefines.map((varName) => `- ${varName}`).join("\n")
|
|
7130
|
+
);
|
|
7127
7131
|
}
|
|
7128
7132
|
for (const varName of configEnvDefines) {
|
|
7129
7133
|
if (!configDefines.includes(varName)) {
|
|
@@ -7164,14 +7168,14 @@ var validateVars = /* @__PURE__ */ __name((envName) => (diagnostics, field, valu
|
|
|
7164
7168
|
const configVars = Object.keys(config?.vars ?? {});
|
|
7165
7169
|
if (configVars.length > 0) {
|
|
7166
7170
|
if (typeof value === "object" && value !== null) {
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
This is not what you
|
|
7172
|
-
Please add
|
|
7173
|
-
|
|
7174
|
-
|
|
7171
|
+
const missingVars = configVars.filter((varName) => !(varName in value));
|
|
7172
|
+
if (missingVars.length > 0) {
|
|
7173
|
+
diagnostics.warnings.push(
|
|
7174
|
+
`The following vars exist at the top level, but not on "${fieldPath}".
|
|
7175
|
+
This is probably not what you want, since "vars" configuration is not inherited by environments.
|
|
7176
|
+
Please add these vars to "env.${envName}.vars":
|
|
7177
|
+
` + missingVars.map((varName) => `- ${varName}`).join("\n")
|
|
7178
|
+
);
|
|
7175
7179
|
}
|
|
7176
7180
|
}
|
|
7177
7181
|
}
|
|
@@ -7434,6 +7438,42 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
7434
7438
|
);
|
|
7435
7439
|
isValid2 = false;
|
|
7436
7440
|
}
|
|
7441
|
+
if (hasProperty(value, "schedule") && value.schedule !== void 0) {
|
|
7442
|
+
if (typeof value.schedule === "string") {
|
|
7443
|
+
if (value.schedule.length === 0) {
|
|
7444
|
+
diagnostics.errors.push(
|
|
7445
|
+
`"${field}" bindings "schedule" field must not be an empty string.`
|
|
7446
|
+
);
|
|
7447
|
+
isValid2 = false;
|
|
7448
|
+
}
|
|
7449
|
+
} else if (Array.isArray(value.schedule)) {
|
|
7450
|
+
if (value.schedule.length === 0) {
|
|
7451
|
+
diagnostics.errors.push(
|
|
7452
|
+
`"${field}" bindings "schedule" field must not be an empty array.`
|
|
7453
|
+
);
|
|
7454
|
+
isValid2 = false;
|
|
7455
|
+
} else if (!value.schedule.every((s) => typeof s === "string")) {
|
|
7456
|
+
diagnostics.errors.push(
|
|
7457
|
+
`"${field}" bindings should, optionally, have a string or array of strings "schedule" field but got ${JSON.stringify(
|
|
7458
|
+
value
|
|
7459
|
+
)}.`
|
|
7460
|
+
);
|
|
7461
|
+
isValid2 = false;
|
|
7462
|
+
} else if (value.schedule.some((s) => s === "")) {
|
|
7463
|
+
diagnostics.errors.push(
|
|
7464
|
+
`"${field}" bindings "schedule" field must not contain empty strings.`
|
|
7465
|
+
);
|
|
7466
|
+
isValid2 = false;
|
|
7467
|
+
}
|
|
7468
|
+
} else {
|
|
7469
|
+
diagnostics.errors.push(
|
|
7470
|
+
`"${field}" bindings should, optionally, have a string or array of strings "schedule" field but got ${JSON.stringify(
|
|
7471
|
+
value
|
|
7472
|
+
)}.`
|
|
7473
|
+
);
|
|
7474
|
+
isValid2 = false;
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7437
7477
|
if (hasProperty(value, "limits") && value.limits !== void 0) {
|
|
7438
7478
|
if (typeof value.limits !== "object" || value.limits === null || Array.isArray(value.limits)) {
|
|
7439
7479
|
diagnostics.errors.push(
|
|
@@ -7472,7 +7512,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
7472
7512
|
"class_name",
|
|
7473
7513
|
"script_name",
|
|
7474
7514
|
"remote",
|
|
7475
|
-
"limits"
|
|
7515
|
+
"limits",
|
|
7516
|
+
"schedule"
|
|
7476
7517
|
]);
|
|
7477
7518
|
return isValid2;
|
|
7478
7519
|
}, "validateWorkflowBinding");
|
|
@@ -8380,6 +8421,11 @@ var validateQueueBinding = /* @__PURE__ */ __name((diagnostics, field, value) =>
|
|
|
8380
8421
|
isValid2 = false;
|
|
8381
8422
|
}
|
|
8382
8423
|
}
|
|
8424
|
+
if (hasProperty(value, "delivery_delay") && value.delivery_delay !== void 0) {
|
|
8425
|
+
diagnostics.warnings.push(
|
|
8426
|
+
`The "delivery_delay" field in "${field}" is deprecated and has no effect. Queue-level settings should be configured using "wrangler queues update" instead. This setting will be removed in a future version.`
|
|
8427
|
+
);
|
|
8428
|
+
}
|
|
8383
8429
|
if (!isRemoteValid(value, field, diagnostics)) {
|
|
8384
8430
|
isValid2 = false;
|
|
8385
8431
|
}
|
|
@@ -10665,17 +10711,14 @@ function startTunnel(options) {
|
|
|
10665
10711
|
const timeoutMs = options.timeoutMs ?? TUNNEL_STARTUP_TIMEOUT_MS;
|
|
10666
10712
|
const reminderIntervalMs = options.reminderIntervalMs ?? DEFAULT_TUNNEL_REMINDER_INTERVAL_MS;
|
|
10667
10713
|
const defaultExpiryMs = options.expiryMs ?? DEFAULT_TUNNEL_EXPIRY_MS;
|
|
10714
|
+
const isNamedTunnel = options.token !== void 0;
|
|
10668
10715
|
const timeFormatter = new Intl.DateTimeFormat(void 0, {
|
|
10669
10716
|
timeStyle: "short"
|
|
10670
10717
|
});
|
|
10671
|
-
const cloudflaredArgs = [
|
|
10672
|
-
"tunnel",
|
|
10673
|
-
"--no-autoupdate",
|
|
10674
|
-
"--url",
|
|
10675
|
-
options.origin.href
|
|
10676
|
-
];
|
|
10718
|
+
const cloudflaredArgs = isNamedTunnel ? ["tunnel", "--no-autoupdate", "run"] : ["tunnel", "--no-autoupdate", "--url", options.origin.href];
|
|
10677
10719
|
const cloudflaredPromise = spawnCloudflared(cloudflaredArgs, {
|
|
10678
10720
|
stdio: "pipe",
|
|
10721
|
+
env: options.token ? { TUNNEL_TOKEN: options.token } : void 0,
|
|
10679
10722
|
skipVersionCheck: true,
|
|
10680
10723
|
logger
|
|
10681
10724
|
}).then((process2) => {
|
|
@@ -10685,15 +10728,20 @@ function startTunnel(options) {
|
|
|
10685
10728
|
}
|
|
10686
10729
|
return process2;
|
|
10687
10730
|
});
|
|
10688
|
-
const readyPromise = cloudflaredPromise.then(
|
|
10689
|
-
(
|
|
10731
|
+
const readyPromise = cloudflaredPromise.then((process2) => {
|
|
10732
|
+
if (isNamedTunnel) {
|
|
10733
|
+
return { mode: "named" };
|
|
10734
|
+
}
|
|
10735
|
+
return waitForQuickTunnelReady(process2, timeoutMs, {
|
|
10690
10736
|
logger,
|
|
10691
10737
|
origin: options.origin
|
|
10692
|
-
})
|
|
10693
|
-
).then((result) => {
|
|
10738
|
+
});
|
|
10739
|
+
}).then((result) => {
|
|
10694
10740
|
expiresAt = Date.now() + defaultExpiryMs;
|
|
10695
10741
|
scheduleExpiryTimeout();
|
|
10696
|
-
scheduleReminder(
|
|
10742
|
+
scheduleReminder(
|
|
10743
|
+
result.mode === "quick" ? result.publicUrl.origin : void 0
|
|
10744
|
+
);
|
|
10697
10745
|
return result;
|
|
10698
10746
|
});
|
|
10699
10747
|
function disposeTunnel() {
|
|
@@ -10726,7 +10774,7 @@ function startTunnel(options) {
|
|
|
10726
10774
|
return;
|
|
10727
10775
|
}
|
|
10728
10776
|
logger?.log(
|
|
10729
|
-
`The tunnel is still open at ${publicURL}. It expires in ${formatTunnelDuration(remainingMs)}. ${options.extendHint ?? ""}`
|
|
10777
|
+
`${publicURL ? `The tunnel is still open at ${publicURL}.` : "The tunnel is still open."} It expires in ${formatTunnelDuration(remainingMs)}. ${options.extendHint ?? ""}`
|
|
10730
10778
|
);
|
|
10731
10779
|
}, reminderIntervalMs);
|
|
10732
10780
|
reminderInterval.unref?.();
|
|
@@ -10779,6 +10827,7 @@ function startTunnel(options) {
|
|
|
10779
10827
|
__name(extendExpiry, "extendExpiry");
|
|
10780
10828
|
return {
|
|
10781
10829
|
ready: /* @__PURE__ */ __name(() => readyPromise, "ready"),
|
|
10830
|
+
isOpen: /* @__PURE__ */ __name(() => !disposed, "isOpen"),
|
|
10782
10831
|
dispose: disposeTunnel,
|
|
10783
10832
|
extendExpiry
|
|
10784
10833
|
};
|
|
@@ -10840,7 +10889,7 @@ function waitForQuickTunnelReady(cloudflared, timeoutMs, options) {
|
|
|
10840
10889
|
if (match && !resolved) {
|
|
10841
10890
|
resolved = true;
|
|
10842
10891
|
clearTimeout(timeoutId);
|
|
10843
|
-
resolve({ publicUrl: new URL(match[0]) });
|
|
10892
|
+
resolve({ mode: "quick", publicUrl: new URL(match[0]) });
|
|
10844
10893
|
}
|
|
10845
10894
|
});
|
|
10846
10895
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/compatibility-date.ts":{"bytes":1130,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":427,"imports":[],"format":"esm"},"src/assert-never.ts":{"bytes":46,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/map-worker-metadata-bindings.ts":{"bytes":10365,"imports":[{"path":"src/assert-never.ts","kind":"import-statement","original":"./assert-never"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/construct-wrangler-config.ts":{"bytes":5039,"imports":[{"path":"src/compatibility-date.ts","kind":"import-statement","original":"./compatibility-date"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/map-worker-metadata-bindings.ts","kind":"import-statement","original":"./map-worker-metadata-bindings"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/browser.ts":{"bytes":71,"imports":[{"path":"src/construct-wrangler-config.ts","kind":"import-statement","original":"./construct-wrangler-config"}],"format":"esm"},"src/config/environment.ts":{"bytes":47680,"imports":[],"format":"esm"},"src/config/config.ts":{"bytes":12088,"imports":[],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js":{"bytes":2787,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js":{"bytes":3985,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js":{"bytes":4937,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js":{"bytes":6532,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js":{"bytes":4687,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js":{"bytes":7675,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js":{"bytes":5694,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js":{"bytes":6453,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js":{"bytes":1883,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js","kind":"import-statement","original":"./stringify.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js":{"bytes":19188,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js":{"bytes":10250,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./scanner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js":{"bytes":24708,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./scanner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js":{"bytes":8613,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js","kind":"import-statement","original":"./format"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js","kind":"import-statement","original":"./parser"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js":{"bytes":9363,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js","kind":"import-statement","original":"./impl/format"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js","kind":"import-statement","original":"./impl/edit"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./impl/scanner"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js","kind":"import-statement","original":"./impl/parser"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/errors.ts":{"bytes":2592,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/parse.ts":{"bytes":9692,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js","kind":"import-statement","original":"jsonc-parser"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs":{"bytes":971,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs":{"bytes":535,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs","kind":"import-statement","original":"empathic/resolve"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs":{"bytes":2033,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs","kind":"import-statement","original":"empathic/walk"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytes":1634,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/config-helpers.ts":{"bytes":5031,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs","kind":"import-statement","original":"empathic/find"},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/index.ts":{"bytes":3449,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/patch-config.ts":{"bytes":3360,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js","kind":"import-statement","original":"jsonc-parser"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/worker.ts":{"bytes":9827,"imports":[],"format":"esm"},"src/types.ts":{"bytes":10052,"imports":[],"format":"esm"},"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs":{"bytes":505,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs":{"bytes":139434,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../workflows-shared/src/lib/validators.ts":{"bytes":2050,"imports":[{"path":"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs","kind":"import-statement","original":"itty-time"},{"path":"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js":{"bytes":7763,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js":{"bytes":9611,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js":{"bytes":7979,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js":{"bytes":1787,"imports":[{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js":{"bytes":484,"imports":[{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js","kind":"require-call","original":"./lib/OSPaths.js"},{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js":{"bytes":1971,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js","kind":"require-call","original":"os-paths"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js":{"bytes":464,"imports":[{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js","kind":"require-call","original":"./lib/XDG.js"},{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js":{"bytes":3254,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js","kind":"require-call","original":"xdg-portable"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js":{"bytes":500,"imports":[{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js","kind":"require-call","original":"./lib/XDGAppPaths.js"},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js":{"bytes":148,"imports":[{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js","kind":"import-statement","original":"../mod.cjs.js"},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js","kind":"import-statement","original":"../mod.cjs.js"}],"format":"esm"},"src/fs-helpers.ts":{"bytes":2580,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/global-wrangler-config-path.ts":{"bytes":689,"imports":[{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js","kind":"import-statement","original":"xdg-app-paths"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/environment-variables/factory.ts":{"bytes":10999,"imports":[{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/environment-variables/misc-variables.ts":{"bytes":14105,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"../global-wrangler-config-path"},{"path":"src/environment-variables/factory.ts","kind":"import-statement","original":"./factory"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/diagnostics.ts":{"bytes":2606,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-helpers.ts":{"bytes":19739,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation.ts":{"bytes":150312,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../workflows-shared/src/lib/validators.ts","kind":"import-statement","original":"@cloudflare/workflows-shared/src/lib/validators"},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"../environment-variables/misc-variables"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"../fs-helpers"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config-helpers"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./validation-helpers"},{"path":"src/config/index.ts","kind":"import-statement","original":"."},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-pages.ts":{"bytes":5938,"imports":[{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/config/config.ts","kind":"import-statement","original":"./config"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./validation-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/prometheus-metrics.ts":{"bytes":2014,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js":{"bytes":4450,"imports":[{"path":"child_process","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js":{"bytes":50,"imports":[{"path":"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js","kind":"require-call","original":"./lib/command-exists"}],"format":"cjs"},"src/cloudflared.ts":{"bytes":21506,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js","kind":"import-statement","original":"command-exists"},{"path":"undici","kind":"import-statement","external":true},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"./environment-variables/misc-variables"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"./global-wrangler-config-path"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tunnel.ts":{"bytes":7921,"imports":[{"path":"src/cloudflared.ts","kind":"import-statement","original":"./cloudflared"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":2458,"imports":[{"path":"src/config/environment.ts","kind":"import-statement","original":"./config/environment"},{"path":"src/config/config.ts","kind":"import-statement","original":"./config/config"},{"path":"src/config/index.ts","kind":"import-statement","original":"./config"},{"path":"src/config/patch-config.ts","kind":"import-statement","original":"./config/patch-config"},{"path":"src/worker.ts","kind":"import-statement","original":"./worker"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/parse.ts","kind":"import-statement","original":"./parse"},{"path":"src/config/validation.ts","kind":"import-statement","original":"./config/validation"},{"path":"src/config/validation-pages.ts","kind":"import-statement","original":"./config/validation-pages"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./config/diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./config/validation-helpers"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config/config-helpers"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/assert-never.ts","kind":"import-statement","original":"./assert-never"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/map-worker-metadata-bindings.ts","kind":"import-statement","original":"./map-worker-metadata-bindings"},{"path":"src/construct-wrangler-config.ts","kind":"import-statement","original":"./construct-wrangler-config"},{"path":"src/environment-variables/factory.ts","kind":"import-statement","original":"./environment-variables/factory"},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"./environment-variables/misc-variables"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"./global-wrangler-config-path"},{"path":"src/compatibility-date.ts","kind":"import-statement","original":"./compatibility-date"},{"path":"src/config/validation.ts","kind":"import-statement","original":"./config/validation"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"src/prometheus-metrics.ts","kind":"import-statement","original":"./prometheus-metrics"},{"path":"src/tunnel.ts","kind":"import-statement","original":"./tunnel"},{"path":"src/cloudflared.ts","kind":"import-statement","original":"./cloudflared"}],"format":"esm"},"src/test-helpers/normalize.ts":{"bytes":3274,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/mock-console.ts":{"bytes":2413,"imports":[{"path":"node:util","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"src/test-helpers/normalize.ts","kind":"import-statement","original":"./normalize"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/run-in-tmp.ts":{"bytes":1085,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"../fs-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/seed.ts":{"bytes":500,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/wrangler-config.ts":{"bytes":1835,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/config/index.ts","kind":"import-statement","original":"../config"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/index.ts":{"bytes":401,"imports":[{"path":"src/test-helpers/mock-console.ts","kind":"import-statement","original":"./mock-console"},{"path":"src/test-helpers/normalize.ts","kind":"import-statement","original":"./normalize"},{"path":"src/test-helpers/run-in-tmp.ts","kind":"import-statement","original":"./run-in-tmp"},{"path":"src/test-helpers/seed.ts","kind":"import-statement","original":"./seed"},{"path":"src/test-helpers/wrangler-config.ts","kind":"import-statement","original":"./wrangler-config"}],"format":"esm"}},"outputs":{"dist/browser.mjs":{"imports":[{"path":"dist/chunk-BLWXWFJK.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["constructWranglerConfig"],"entryPoint":"src/browser.ts","inputs":{"src/browser.ts":{"bytesInOutput":0}},"bytes":166},"dist/index.mjs":{"imports":[{"path":"dist/chunk-BLWXWFJK.mjs","kind":"import-statement"},{"path":"dist/chunk-O4YGOZSW.mjs","kind":"import-statement"},{"path":"dist/chunk-XXCQEG76.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"undici","kind":"import-statement","external":true}],"exports":["APIError","COMPLIANCE_REGION_CONFIG_PUBLIC","COMPLIANCE_REGION_CONFIG_UNKNOWN","CommandLineArgsError","DeprecationError","Diagnostics","ENVIRONMENT_TAG_PREFIX","FatalError","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","JsonFriendlyFatalError","MetricsRegistry","MissingConfigError","PATH_TO_DEPLOY_CONFIG","ParseError","PatchConfigError","SERVICE_TAG_PREFIX","UserError","assertNever","bucketFormatMessage","configFileName","configFormat","constructWranglerConfig","createFatalError","defaultWranglerConfig","experimental_patchConfig","experimental_readRawConfig","findWranglerConfig","formatConfigSnippet","friendlyBindingNames","getBindingTypeFriendlyName","getBooleanEnvironmentVariableFactory","getBrowserRenderingHeadfulFromEnv","getBuildConditionsFromEnv","getBuildPlatformFromEnv","getC3CommandFromEnv","getCIGeneratePreviewAlias","getCIMatchTag","getCIOverrideName","getCIOverrideNetworkModeHost","getCfFetchEnabledFromEnv","getCfFetchPathFromEnv","getCloudflareApiBaseUrl","getCloudflareApiEnvironmentFromEnv","getCloudflareComplianceRegion","getCloudflareEnv","getCloudflareIncludeProcessEnvFromEnv","getCloudflareLoadDevVarsFromDotEnv","getCloudflaredPathFromEnv","getComplianceRegionSubdomain","getD1ExtraLocationChoices","getDisableConfigWatching","getDockerPath","getEnvironmentVariableFactory","getGlobalWranglerConfigPath","getLocalExplorerEnabledFromEnv","getOpenNextDeployFromEnv","getOutputFileDirectoryFromEnv","getOutputFilePathFromEnv","getRegistryPath","getSanitizeLogs","getSubdomainMixedStateCheckDisabled","getTodaysCompatDate","getTraceHeader","getWorkersCIBranchName","getWranglerCacheDirFromEnv","getWranglerHideBanner","getWranglerSendErrorReportsFromEnv","getWranglerSendMetricsFromEnv","hasProperty","indexLocation","isCompatDate","isDirectory","isDockerfile","isOptionalProperty","isPagesConfig","isRequiredProperty","isValidR2BucketName","mapWorkerMetadataBindings","normalizeAndValidateConfig","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","removeDir","removeDirSync","resolveWranglerConfigPath","searchLocation","spawnCloudflared","startTunnel","validatePagesConfig"],"entryPoint":"src/index.ts","inputs":{"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js":{"bytesInOutput":4302},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js":{"bytesInOutput":5184},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js":{"bytesInOutput":4128},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js":{"bytesInOutput":1544},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js":{"bytesInOutput":312},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js":{"bytesInOutput":1739},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js":{"bytesInOutput":307},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js":{"bytesInOutput":2291},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js":{"bytesInOutput":340},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js":{"bytesInOutput":5231},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js":{"bytesInOutput":222},"src/index.ts":{"bytesInOutput":0},"src/config/config.ts":{"bytesInOutput":3305},"src/config/patch-config.ts":{"bytesInOutput":1912},"src/config/validation.ts":{"bytesInOutput":142433},"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs":{"bytesInOutput":135},"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs":{"bytesInOutput":113408},"../workflows-shared/src/lib/validators.ts":{"bytesInOutput":863},"src/environment-variables/misc-variables.ts":{"bytesInOutput":6077},"src/global-wrangler-config-path.ts":{"bytesInOutput":393},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js":{"bytesInOutput":251},"src/environment-variables/factory.ts":{"bytesInOutput":1924},"src/config/diagnostics.ts":{"bytesInOutput":2250},"src/config/validation-helpers.ts":{"bytesInOutput":12493},"src/config/validation-pages.ts":{"bytesInOutput":4503},"src/cloudflared.ts":{"bytesInOutput":16830},"src/tunnel.ts":{"bytesInOutput":7503}},"bytes":345186},"dist/chunk-BLWXWFJK.mjs":{"imports":[{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:assert","kind":"import-statement","external":true}],"exports":["assertNever","constructWranglerConfig","getTodaysCompatDate","isCompatDate","mapWorkerMetadataBindings"],"inputs":{"src/compatibility-date.ts":{"bytesInOutput":508},"src/assert-never.ts":{"bytesInOutput":69},"src/map-worker-metadata-bindings.ts":{"bytesInOutput":10511},"src/construct-wrangler-config.ts":{"bytesInOutput":2837}},"bytes":14314},"dist/prometheus-metrics.mjs":{"imports":[{"path":"dist/chunk-O4YGOZSW.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["MetricsRegistry"],"entryPoint":"src/prometheus-metrics.ts","inputs":{},"bytes":119},"dist/chunk-O4YGOZSW.mjs":{"imports":[{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["MetricsRegistry"],"inputs":{"src/prometheus-metrics.ts":{"bytesInOutput":1217}},"bytes":1327},"dist/test-helpers/index.mjs":{"imports":[{"path":"dist/chunk-XXCQEG76.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:util","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["mockConsoleMethods","mockCreateDate","mockEndDate","mockModifiedDate","mockQueuedDate","mockStartDate","normalizeString","readWranglerConfig","runInTempDir","seed","writeDeployRedirectConfig","writeRedirectedWranglerConfig","writeWranglerConfig"],"entryPoint":"src/test-helpers/index.ts","inputs":{"src/test-helpers/mock-console.ts":{"bytesInOutput":2271},"src/test-helpers/normalize.ts":{"bytesInOutput":2741},"src/test-helpers/index.ts":{"bytesInOutput":0},"src/test-helpers/run-in-tmp.ts":{"bytesInOutput":837},"src/test-helpers/seed.ts":{"bytesInOutput":345},"src/test-helpers/wrangler-config.ts":{"bytesInOutput":1745}},"bytes":8640},"dist/chunk-XXCQEG76.mjs":{"imports":[{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true}],"exports":["APIError","CommandLineArgsError","DeprecationError","FatalError","JsonFriendlyFatalError","MissingConfigError","ParseError","UserError","applyEdits","configFileName","configFormat","createFatalError","dedent","dist_default","experimental_readRawConfig","findWranglerConfig","format","formatConfigSnippet","indexLocation","isDirectory","isRedirectedRawConfig","modify","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","removeDir","removeDirSync","resolveWranglerConfigPath","searchLocation"],"inputs":{"src/errors.ts":{"bytesInOutput":1499},"src/parse.ts":{"bytesInOutput":7709},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js":{"bytesInOutput":13719},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js":{"bytesInOutput":7379},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js":{"bytesInOutput":13841},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js":{"bytesInOutput":6542},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js":{"bytesInOutput":4978},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js":{"bytesInOutput":1202},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js":{"bytesInOutput":2207},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js":{"bytesInOutput":2493},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js":{"bytesInOutput":3824},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js":{"bytesInOutput":2447},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js":{"bytesInOutput":4706},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js":{"bytesInOutput":3069},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js":{"bytesInOutput":4707},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js":{"bytesInOutput":70},"src/config/config-helpers.ts":{"bytesInOutput":3492},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs":{"bytesInOutput":352},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs":{"bytesInOutput":342},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs":{"bytesInOutput":199},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytesInOutput":1494},"src/config/index.ts":{"bytesInOutput":1696},"src/fs-helpers.ts":{"bytesInOutput":673}},"bytes":106572},"dist/chunk-OZQVB3L3.mjs":{"imports":[],"exports":["ENVIRONMENT_TAG_PREFIX","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","PATH_TO_DEPLOY_CONFIG","SERVICE_TAG_PREFIX"],"inputs":{"src/constants.ts":{"bytesInOutput":245}},"bytes":391},"dist/chunk-DCOBXSFB.mjs":{"imports":[],"exports":["__commonJS","__export","__name","__reExport","__require","__toESM"],"inputs":{},"bytes":2136}}}
|
|
1
|
+
{"inputs":{"src/compatibility-date.ts":{"bytes":1130,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":427,"imports":[],"format":"esm"},"src/assert-never.ts":{"bytes":46,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/map-worker-metadata-bindings.ts":{"bytes":10365,"imports":[{"path":"src/assert-never.ts","kind":"import-statement","original":"./assert-never"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/construct-wrangler-config.ts":{"bytes":5039,"imports":[{"path":"src/compatibility-date.ts","kind":"import-statement","original":"./compatibility-date"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/map-worker-metadata-bindings.ts","kind":"import-statement","original":"./map-worker-metadata-bindings"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/browser.ts":{"bytes":71,"imports":[{"path":"src/construct-wrangler-config.ts","kind":"import-statement","original":"./construct-wrangler-config"}],"format":"esm"},"src/config/environment.ts":{"bytes":47793,"imports":[],"format":"esm"},"src/config/config.ts":{"bytes":12088,"imports":[],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js":{"bytes":2787,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js":{"bytes":3985,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js":{"bytes":4937,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js":{"bytes":6532,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js":{"bytes":4687,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js":{"bytes":7675,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js":{"bytes":5694,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js":{"bytes":6453,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js":{"bytes":1883,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js","kind":"import-statement","original":"./stringify.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js":{"bytes":19188,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js":{"bytes":10250,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./scanner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js":{"bytes":24708,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./scanner"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js":{"bytes":8613,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js","kind":"import-statement","original":"./format"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js","kind":"import-statement","original":"./parser"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js":{"bytes":9363,"imports":[{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js","kind":"import-statement","original":"./impl/format"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js","kind":"import-statement","original":"./impl/edit"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js","kind":"import-statement","original":"./impl/scanner"},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js","kind":"import-statement","original":"./impl/parser"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/errors.ts":{"bytes":2592,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/parse.ts":{"bytes":9692,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js","kind":"import-statement","original":"jsonc-parser"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs":{"bytes":971,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs":{"bytes":535,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs","kind":"import-statement","original":"empathic/resolve"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs":{"bytes":2033,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs","kind":"import-statement","original":"empathic/walk"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytes":1634,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/config-helpers.ts":{"bytes":5252,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs","kind":"import-statement","original":"empathic/find"},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/index.ts":{"bytes":3449,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/patch-config.ts":{"bytes":3360,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js","kind":"import-statement","original":"jsonc-parser"},{"path":"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/worker.ts":{"bytes":9858,"imports":[],"format":"esm"},"src/types.ts":{"bytes":10052,"imports":[],"format":"esm"},"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs":{"bytes":505,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs":{"bytes":139434,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../workflows-shared/src/lib/validators.ts":{"bytes":2050,"imports":[{"path":"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs","kind":"import-statement","original":"itty-time"},{"path":"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js":{"bytes":7763,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js":{"bytes":9611,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js":{"bytes":7979,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js":{"bytes":1787,"imports":[{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js":{"bytes":484,"imports":[{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js","kind":"require-call","original":"./lib/OSPaths.js"},{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js":{"bytes":1971,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js","kind":"require-call","original":"os-paths"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js":{"bytes":464,"imports":[{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js","kind":"require-call","original":"./lib/XDG.js"},{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js":{"bytes":3254,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js","kind":"require-call","original":"xdg-portable"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js":{"bytes":500,"imports":[{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js","kind":"require-call","original":"./lib/XDGAppPaths.js"},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js","kind":"require-call","original":"./platform-adapters/node.js"}],"format":"cjs"},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js":{"bytes":148,"imports":[{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js","kind":"import-statement","original":"../mod.cjs.js"},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js","kind":"import-statement","original":"../mod.cjs.js"}],"format":"esm"},"src/fs-helpers.ts":{"bytes":2580,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/global-wrangler-config-path.ts":{"bytes":689,"imports":[{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js","kind":"import-statement","original":"xdg-app-paths"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/environment-variables/factory.ts":{"bytes":10999,"imports":[{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/environment-variables/misc-variables.ts":{"bytes":14105,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"../global-wrangler-config-path"},{"path":"src/environment-variables/factory.ts","kind":"import-statement","original":"./factory"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/diagnostics.ts":{"bytes":2606,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-helpers.ts":{"bytes":19739,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation.ts":{"bytes":152242,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../workflows-shared/src/lib/validators.ts","kind":"import-statement","original":"@cloudflare/workflows-shared/src/lib/validators"},{"path":"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js","kind":"import-statement","original":"ts-dedent"},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"../environment-variables/misc-variables"},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"../fs-helpers"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config-helpers"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./validation-helpers"},{"path":"src/config/index.ts","kind":"import-statement","original":"."},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-pages.ts":{"bytes":5938,"imports":[{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/config/config.ts","kind":"import-statement","original":"./config"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./validation-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/prometheus-metrics.ts":{"bytes":2014,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js":{"bytes":4450,"imports":[{"path":"child_process","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js":{"bytes":50,"imports":[{"path":"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js","kind":"require-call","original":"./lib/command-exists"}],"format":"cjs"},"src/cloudflared.ts":{"bytes":21506,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js","kind":"import-statement","original":"command-exists"},{"path":"undici","kind":"import-statement","external":true},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"./environment-variables/misc-variables"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"./global-wrangler-config-path"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tunnel.ts":{"bytes":8528,"imports":[{"path":"src/cloudflared.ts","kind":"import-statement","original":"./cloudflared"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":2479,"imports":[{"path":"src/config/environment.ts","kind":"import-statement","original":"./config/environment"},{"path":"src/config/config.ts","kind":"import-statement","original":"./config/config"},{"path":"src/config/index.ts","kind":"import-statement","original":"./config"},{"path":"src/config/patch-config.ts","kind":"import-statement","original":"./config/patch-config"},{"path":"src/worker.ts","kind":"import-statement","original":"./worker"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/parse.ts","kind":"import-statement","original":"./parse"},{"path":"src/config/validation.ts","kind":"import-statement","original":"./config/validation"},{"path":"src/config/validation-pages.ts","kind":"import-statement","original":"./config/validation-pages"},{"path":"src/config/diagnostics.ts","kind":"import-statement","original":"./config/diagnostics"},{"path":"src/config/validation-helpers.ts","kind":"import-statement","original":"./config/validation-helpers"},{"path":"src/config/config-helpers.ts","kind":"import-statement","original":"./config/config-helpers"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/assert-never.ts","kind":"import-statement","original":"./assert-never"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/map-worker-metadata-bindings.ts","kind":"import-statement","original":"./map-worker-metadata-bindings"},{"path":"src/construct-wrangler-config.ts","kind":"import-statement","original":"./construct-wrangler-config"},{"path":"src/environment-variables/factory.ts","kind":"import-statement","original":"./environment-variables/factory"},{"path":"src/environment-variables/misc-variables.ts","kind":"import-statement","original":"./environment-variables/misc-variables"},{"path":"src/global-wrangler-config-path.ts","kind":"import-statement","original":"./global-wrangler-config-path"},{"path":"src/compatibility-date.ts","kind":"import-statement","original":"./compatibility-date"},{"path":"src/config/validation.ts","kind":"import-statement","original":"./config/validation"},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"./fs-helpers"},{"path":"src/prometheus-metrics.ts","kind":"import-statement","original":"./prometheus-metrics"},{"path":"src/tunnel.ts","kind":"import-statement","original":"./tunnel"},{"path":"src/cloudflared.ts","kind":"import-statement","original":"./cloudflared"}],"format":"esm"},"src/test-helpers/normalize.ts":{"bytes":3274,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/mock.ts":{"bytes":2796,"imports":[{"path":"node:util","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"src/test-helpers/normalize.ts","kind":"import-statement","original":"./normalize"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/run-in-tmp.ts":{"bytes":1085,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"src/fs-helpers.ts","kind":"import-statement","original":"../fs-helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/seed.ts":{"bytes":500,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/wrangler-config.ts":{"bytes":1835,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/config/index.ts","kind":"import-statement","original":"../config"},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/parse.ts","kind":"import-statement","original":"../parse"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/test-helpers/index.ts":{"bytes":409,"imports":[{"path":"src/test-helpers/mock.ts","kind":"import-statement","original":"./mock"},{"path":"src/test-helpers/normalize.ts","kind":"import-statement","original":"./normalize"},{"path":"src/test-helpers/run-in-tmp.ts","kind":"import-statement","original":"./run-in-tmp"},{"path":"src/test-helpers/seed.ts","kind":"import-statement","original":"./seed"},{"path":"src/test-helpers/wrangler-config.ts","kind":"import-statement","original":"./wrangler-config"}],"format":"esm"}},"outputs":{"dist/browser.mjs":{"imports":[{"path":"dist/chunk-BLWXWFJK.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["constructWranglerConfig"],"entryPoint":"src/browser.ts","inputs":{"src/browser.ts":{"bytesInOutput":0}},"bytes":166},"dist/index.mjs":{"imports":[{"path":"dist/chunk-BLWXWFJK.mjs","kind":"import-statement"},{"path":"dist/chunk-O4YGOZSW.mjs","kind":"import-statement"},{"path":"dist/chunk-GMTGAG26.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"undici","kind":"import-statement","external":true}],"exports":["APIError","COMPLIANCE_REGION_CONFIG_PUBLIC","COMPLIANCE_REGION_CONFIG_UNKNOWN","CommandLineArgsError","DeprecationError","Diagnostics","ENVIRONMENT_TAG_PREFIX","FatalError","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","JsonFriendlyFatalError","MetricsRegistry","MissingConfigError","PATH_TO_DEPLOY_CONFIG","ParseError","PatchConfigError","SERVICE_TAG_PREFIX","UserError","assertNever","bucketFormatMessage","configFileName","configFormat","constructWranglerConfig","createFatalError","defaultWranglerConfig","experimental_patchConfig","experimental_readRawConfig","findWranglerConfig","formatConfigSnippet","friendlyBindingNames","getBindingTypeFriendlyName","getBooleanEnvironmentVariableFactory","getBrowserRenderingHeadfulFromEnv","getBuildConditionsFromEnv","getBuildPlatformFromEnv","getC3CommandFromEnv","getCIGeneratePreviewAlias","getCIMatchTag","getCIOverrideName","getCIOverrideNetworkModeHost","getCfFetchEnabledFromEnv","getCfFetchPathFromEnv","getCloudflareApiBaseUrl","getCloudflareApiEnvironmentFromEnv","getCloudflareComplianceRegion","getCloudflareEnv","getCloudflareIncludeProcessEnvFromEnv","getCloudflareLoadDevVarsFromDotEnv","getCloudflaredPathFromEnv","getComplianceRegionSubdomain","getD1ExtraLocationChoices","getDisableConfigWatching","getDockerPath","getEnvironmentVariableFactory","getGlobalWranglerConfigPath","getLocalExplorerEnabledFromEnv","getOpenNextDeployFromEnv","getOutputFileDirectoryFromEnv","getOutputFilePathFromEnv","getRegistryPath","getSanitizeLogs","getSubdomainMixedStateCheckDisabled","getTodaysCompatDate","getTraceHeader","getWorkersCIBranchName","getWranglerCacheDirFromEnv","getWranglerHideBanner","getWranglerSendErrorReportsFromEnv","getWranglerSendMetricsFromEnv","hasProperty","indexLocation","isCompatDate","isDirectory","isDockerfile","isOptionalProperty","isPagesConfig","isRedirectedConfig","isRequiredProperty","isValidR2BucketName","mapWorkerMetadataBindings","normalizeAndValidateConfig","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","removeDir","removeDirSync","resolveWranglerConfigPath","searchLocation","spawnCloudflared","startTunnel","validatePagesConfig"],"entryPoint":"src/index.ts","inputs":{"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js":{"bytesInOutput":4302},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js":{"bytesInOutput":5184},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js":{"bytesInOutput":4128},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js":{"bytesInOutput":1544},"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js":{"bytesInOutput":312},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js":{"bytesInOutput":1739},"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js":{"bytesInOutput":307},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js":{"bytesInOutput":2291},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js":{"bytesInOutput":340},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js":{"bytesInOutput":5231},"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js":{"bytesInOutput":222},"src/index.ts":{"bytesInOutput":0},"src/config/config.ts":{"bytesInOutput":3305},"src/config/patch-config.ts":{"bytesInOutput":1912},"src/config/validation.ts":{"bytesInOutput":144365},"../../node_modules/.pnpm/itty-time@2.0.2/node_modules/itty-time/index.mjs":{"bytesInOutput":135},"../../node_modules/.pnpm/zod@3.22.3/node_modules/zod/lib/index.mjs":{"bytesInOutput":113408},"../workflows-shared/src/lib/validators.ts":{"bytesInOutput":863},"src/environment-variables/misc-variables.ts":{"bytesInOutput":6077},"src/global-wrangler-config-path.ts":{"bytesInOutput":393},"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js":{"bytesInOutput":251},"src/environment-variables/factory.ts":{"bytesInOutput":1924},"src/config/diagnostics.ts":{"bytesInOutput":2250},"src/config/validation-helpers.ts":{"bytesInOutput":12493},"src/config/validation-pages.ts":{"bytesInOutput":4503},"src/cloudflared.ts":{"bytesInOutput":16830},"src/tunnel.ts":{"bytesInOutput":7900}},"bytes":347559},"dist/chunk-BLWXWFJK.mjs":{"imports":[{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:assert","kind":"import-statement","external":true}],"exports":["assertNever","constructWranglerConfig","getTodaysCompatDate","isCompatDate","mapWorkerMetadataBindings"],"inputs":{"src/compatibility-date.ts":{"bytesInOutput":508},"src/assert-never.ts":{"bytesInOutput":69},"src/map-worker-metadata-bindings.ts":{"bytesInOutput":10511},"src/construct-wrangler-config.ts":{"bytesInOutput":2837}},"bytes":14314},"dist/prometheus-metrics.mjs":{"imports":[{"path":"dist/chunk-O4YGOZSW.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["MetricsRegistry"],"entryPoint":"src/prometheus-metrics.ts","inputs":{},"bytes":119},"dist/chunk-O4YGOZSW.mjs":{"imports":[{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"}],"exports":["MetricsRegistry"],"inputs":{"src/prometheus-metrics.ts":{"bytesInOutput":1217}},"bytes":1327},"dist/test-helpers/index.mjs":{"imports":[{"path":"dist/chunk-GMTGAG26.mjs","kind":"import-statement"},{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:util","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"vitest","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["createDeferred","mockConsoleMethods","mockCreateDate","mockEndDate","mockModifiedDate","mockQueuedDate","mockStartDate","normalizeString","readWranglerConfig","runInTempDir","seed","writeDeployRedirectConfig","writeRedirectedWranglerConfig","writeWranglerConfig"],"entryPoint":"src/test-helpers/index.ts","inputs":{"src/test-helpers/mock.ts":{"bytesInOutput":2636},"src/test-helpers/normalize.ts":{"bytesInOutput":2741},"src/test-helpers/index.ts":{"bytesInOutput":0},"src/test-helpers/run-in-tmp.ts":{"bytesInOutput":837},"src/test-helpers/seed.ts":{"bytesInOutput":345},"src/test-helpers/wrangler-config.ts":{"bytesInOutput":1745}},"bytes":9007},"dist/chunk-GMTGAG26.mjs":{"imports":[{"path":"dist/chunk-OZQVB3L3.mjs","kind":"import-statement"},{"path":"dist/chunk-DCOBXSFB.mjs","kind":"import-statement"},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true}],"exports":["APIError","CommandLineArgsError","DeprecationError","FatalError","JsonFriendlyFatalError","MissingConfigError","ParseError","UserError","applyEdits","configFileName","configFormat","createFatalError","dedent","dist_default","experimental_readRawConfig","findWranglerConfig","format","formatConfigSnippet","indexLocation","isDirectory","isRedirectedConfig","isRedirectedRawConfig","modify","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","removeDir","removeDirSync","resolveWranglerConfigPath","searchLocation"],"inputs":{"src/errors.ts":{"bytesInOutput":1499},"src/parse.ts":{"bytesInOutput":7709},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js":{"bytesInOutput":13719},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js":{"bytesInOutput":7379},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/parser.js":{"bytesInOutput":13841},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js":{"bytesInOutput":6542},"../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js":{"bytesInOutput":4978},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js":{"bytesInOutput":1202},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js":{"bytesInOutput":2207},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js":{"bytesInOutput":2493},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js":{"bytesInOutput":3824},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js":{"bytesInOutput":2447},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js":{"bytesInOutput":4706},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js":{"bytesInOutput":3069},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js":{"bytesInOutput":4707},"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js":{"bytesInOutput":70},"src/config/config-helpers.ts":{"bytesInOutput":3664},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs":{"bytesInOutput":352},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs":{"bytesInOutput":342},"../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs":{"bytesInOutput":199},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytesInOutput":1494},"src/config/index.ts":{"bytesInOutput":1696},"src/fs-helpers.ts":{"bytesInOutput":673}},"bytes":106766},"dist/chunk-OZQVB3L3.mjs":{"imports":[],"exports":["ENVIRONMENT_TAG_PREFIX","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","PATH_TO_DEPLOY_CONFIG","SERVICE_TAG_PREFIX"],"inputs":{"src/constants.ts":{"bytesInOutput":245}},"bytes":391},"dist/chunk-DCOBXSFB.mjs":{"imports":[],"exports":["__commonJS","__export","__name","__reExport","__require","__toESM"],"inputs":{},"bytes":2136}}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RawConfig, a as RedirectedRawConfig } from '../config-
|
|
1
|
+
import { R as RawConfig, a as RedirectedRawConfig } from '../config-BH_2HMEf.mjs';
|
|
2
2
|
import '@cloudflare/workers-shared';
|
|
3
3
|
|
|
4
4
|
declare function mockConsoleMethods(): {
|
|
@@ -9,6 +9,11 @@ declare function mockConsoleMethods(): {
|
|
|
9
9
|
warn: string;
|
|
10
10
|
getAndClearOut: () => "";
|
|
11
11
|
};
|
|
12
|
+
declare function createDeferred<T>(): {
|
|
13
|
+
promise: Promise<T>;
|
|
14
|
+
resolve: (value: T) => void;
|
|
15
|
+
reject: (reason?: unknown) => void;
|
|
16
|
+
};
|
|
12
17
|
|
|
13
18
|
declare const mockCreateDate: Date;
|
|
14
19
|
declare const mockModifiedDate: Date;
|
|
@@ -32,4 +37,4 @@ declare function writeRedirectedWranglerConfig(config: RedirectedRawConfig, path
|
|
|
32
37
|
declare function writeDeployRedirectConfig(configPath: string): void;
|
|
33
38
|
declare function readWranglerConfig(path?: string): RawConfig;
|
|
34
39
|
|
|
35
|
-
export { mockConsoleMethods, mockCreateDate, mockEndDate, mockModifiedDate, mockQueuedDate, mockStartDate, normalizeString, readWranglerConfig, runInTempDir, seed, writeDeployRedirectConfig, writeRedirectedWranglerConfig, writeWranglerConfig };
|
|
40
|
+
export { createDeferred, mockConsoleMethods, mockCreateDate, mockEndDate, mockModifiedDate, mockQueuedDate, mockStartDate, normalizeString, readWranglerConfig, runInTempDir, seed, writeDeployRedirectConfig, writeRedirectedWranglerConfig, writeWranglerConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDir, formatConfigSnippet, parseTOML, parseJSONC } from '../chunk-
|
|
1
|
+
import { removeDir, formatConfigSnippet, parseTOML, parseJSONC } from '../chunk-GMTGAG26.mjs';
|
|
2
2
|
import { PATH_TO_DEPLOY_CONFIG } from '../chunk-OZQVB3L3.mjs';
|
|
3
3
|
import { __name } from '../chunk-DCOBXSFB.mjs';
|
|
4
4
|
import * as util from 'node:util';
|
|
@@ -80,7 +80,7 @@ function replaceThinSpaces(str) {
|
|
|
80
80
|
}
|
|
81
81
|
__name(replaceThinSpaces, "replaceThinSpaces");
|
|
82
82
|
|
|
83
|
-
// src/test-helpers/mock
|
|
83
|
+
// src/test-helpers/mock.ts
|
|
84
84
|
var debugSpy;
|
|
85
85
|
var logSpy;
|
|
86
86
|
var infoSpy;
|
|
@@ -155,6 +155,23 @@ function mockConsoleMethods() {
|
|
|
155
155
|
return std;
|
|
156
156
|
}
|
|
157
157
|
__name(mockConsoleMethods, "mockConsoleMethods");
|
|
158
|
+
function createDeferred() {
|
|
159
|
+
let resolve2;
|
|
160
|
+
let reject;
|
|
161
|
+
const promise = new Promise((_resolve, _reject) => {
|
|
162
|
+
resolve2 = _resolve;
|
|
163
|
+
reject = _reject;
|
|
164
|
+
});
|
|
165
|
+
if (!resolve2 || !reject) {
|
|
166
|
+
throw new Error("Failed to create deferred promise");
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
promise,
|
|
170
|
+
resolve: resolve2,
|
|
171
|
+
reject
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
__name(createDeferred, "createDeferred");
|
|
158
175
|
var originalCwd = process.cwd();
|
|
159
176
|
function runInTempDir({ homedir } = { homedir: "./home" }) {
|
|
160
177
|
let tmpDir;
|
|
@@ -243,4 +260,4 @@ function readWranglerConfig(path3 = "./wrangler.toml") {
|
|
|
243
260
|
}
|
|
244
261
|
__name(readWranglerConfig, "readWranglerConfig");
|
|
245
262
|
|
|
246
|
-
export { mockConsoleMethods, mockCreateDate, mockEndDate, mockModifiedDate, mockQueuedDate, mockStartDate, normalizeString, readWranglerConfig, runInTempDir, seed, writeDeployRedirectConfig, writeRedirectedWranglerConfig, writeWranglerConfig };
|
|
263
|
+
export { createDeferred, mockConsoleMethods, mockCreateDate, mockEndDate, mockModifiedDate, mockQueuedDate, mockStartDate, normalizeString, readWranglerConfig, runInTempDir, seed, writeDeployRedirectConfig, writeRedirectedWranglerConfig, writeWranglerConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/workers-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Internal utility package for workers-sdk. Not intended for external use — APIs may change without notice.",
|
|
5
5
|
"homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/workers-utils#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"sideEffects": false,
|
|
19
20
|
"exports": {
|
|
20
21
|
".": {
|
|
21
22
|
"browser": "./dist/browser.mjs",
|
|
@@ -31,6 +32,9 @@
|
|
|
31
32
|
"types": "./dist/test-helpers/index.d.mts"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"undici": "7.24.8"
|
|
37
|
+
},
|
|
34
38
|
"devDependencies": {
|
|
35
39
|
"@types/command-exists": "^1.2.0",
|
|
36
40
|
"@types/node": "^22.10.1",
|
|
@@ -45,12 +49,19 @@
|
|
|
45
49
|
"tsdown": "^0.15.9",
|
|
46
50
|
"tsup": "8.3.0",
|
|
47
51
|
"typescript": "~5.8.3",
|
|
48
|
-
"undici": "7.24.8",
|
|
49
52
|
"vitest": "4.1.0",
|
|
50
53
|
"xdg-app-paths": "^8.3.0",
|
|
51
|
-
"@cloudflare/workers-shared": "0.19.
|
|
54
|
+
"@cloudflare/workers-shared": "0.19.6",
|
|
52
55
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
53
|
-
"@cloudflare/workflows-shared": "0.
|
|
56
|
+
"@cloudflare/workflows-shared": "0.11.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"vitest": "^4.1.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"vitest": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
54
65
|
},
|
|
55
66
|
"volta": {
|
|
56
67
|
"extends": "../../package.json"
|