@cloudflare/workers-utils 0.9.0 → 0.10.0

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.
@@ -1,4 +1,4 @@
1
- import { T as TailConsumer, al as WorkerMetadata, R as RawConfig } from './config-DMP1mcQF.mjs';
1
+ import { T as TailConsumer, am as WorkerMetadata, R as RawConfig } from './config-DAxLpjUL.mjs';
2
2
  import { AssetConfig } from '@cloudflare/workers-shared';
3
3
  import { Cloudflare } from 'cloudflare';
4
4
 
@@ -360,53 +360,9 @@ interface CfWorkerInit {
360
360
  * The list of source maps to include on upload.
361
361
  */
362
362
  sourceMaps: CfWorkerSourceMap[] | undefined;
363
- /**
364
- * All the bindings
365
- */
366
- bindings: {
367
- vars: CfVars | undefined;
368
- kv_namespaces: CfKvNamespace[] | undefined;
369
- send_email: CfSendEmailBindings[] | undefined;
370
- wasm_modules: CfWasmModuleBindings | undefined;
371
- text_blobs: CfTextBlobBindings | undefined;
372
- browser: CfBrowserBinding | undefined;
373
- ai: CfAIBinding | undefined;
374
- images: CfImagesBinding | undefined;
375
- version_metadata: CfVersionMetadataBinding | undefined;
376
- data_blobs: CfDataBlobBindings | undefined;
377
- durable_objects: {
378
- bindings: CfDurableObject[];
379
- } | undefined;
380
- workflows: CfWorkflow[] | undefined;
381
- queues: CfQueue[] | undefined;
382
- r2_buckets: CfR2Bucket[] | undefined;
383
- d1_databases: CfD1Database[] | undefined;
384
- vectorize: CfVectorize[] | undefined;
385
- hyperdrive: CfHyperdrive[] | undefined;
386
- secrets_store_secrets: CfSecretsStoreSecrets[] | undefined;
387
- services: CfService[] | undefined;
388
- vpc_services: CfVpcService[] | undefined;
389
- analytics_engine_datasets: CfAnalyticsEngineDataset[] | undefined;
390
- dispatch_namespaces: CfDispatchNamespace[] | undefined;
391
- mtls_certificates: CfMTlsCertificate[] | undefined;
392
- logfwdr: CfLogfwdr | undefined;
393
- pipelines: CfPipeline[] | undefined;
394
- unsafe: CfUnsafe | undefined;
395
- assets: CfAssetsBinding | undefined;
396
- unsafe_hello_world: CfHelloWorld[] | undefined;
397
- ratelimits: CfRateLimit[] | undefined;
398
- worker_loaders: CfWorkerLoader[] | undefined;
399
- media: CfMediaBinding | undefined;
400
- };
401
- containers?: {
363
+ containers: {
402
364
  class_name: string;
403
- }[];
404
- /**
405
- * The raw bindings - this is basically never provided and it'll be the bindings above
406
- * but if we're just taking from the api and re-putting then this is how we can do that
407
- * without going between the different types
408
- */
409
- rawBindings?: WorkerMetadataBinding[];
365
+ }[] | undefined;
410
366
  migrations: CfDurableObjectMigrations | undefined;
411
367
  compatibility_date: string | undefined;
412
368
  compatibility_flags: string[] | undefined;
@@ -659,6 +615,9 @@ type WorkerMetadataPut = {
659
615
  config?: AssetConfigMetadata;
660
616
  };
661
617
  observability?: Observability | undefined;
618
+ containers?: {
619
+ class_name: string;
620
+ }[];
662
621
  [key: string]: unknown;
663
622
  };
664
623
  type WorkerMetadataVersionsPost = WorkerMetadataPut & {
@@ -704,6 +663,118 @@ type ServiceMetadataRes = {
704
663
  }
705
664
  ];
706
665
  };
666
+ type ServiceFetch = (request: Request) => Promise<Response> | Response;
667
+ type File<Contents = string, Path = string> = {
668
+ path: Path;
669
+ } | {
670
+ contents: Contents;
671
+ path?: Path;
672
+ };
673
+ type BinaryFile = File<Uint8Array>;
674
+ type QueueConsumer = NonNullable<Config["queues"]["consumers"]>[number];
675
+ type Trigger = {
676
+ type: "workers.dev";
677
+ } | {
678
+ type: "route";
679
+ pattern: string;
680
+ } | ({
681
+ type: "route";
682
+ } & ZoneIdRoute) | ({
683
+ type: "route";
684
+ } & ZoneNameRoute) | ({
685
+ type: "route";
686
+ } & CustomDomainRoute) | {
687
+ type: "cron";
688
+ cron: string;
689
+ } | ({
690
+ type: "queue-consumer";
691
+ } & QueueConsumer);
692
+ type BindingOmit<T> = Omit<T, "binding">;
693
+ type NameOmit<T> = Omit<T, "name">;
694
+ type Binding = {
695
+ type: "plain_text";
696
+ value: string;
697
+ /**
698
+ * Hide this environment variable in output as it may be sensitive
699
+ * This is a @deprecated feature to support current Wrangler behaviour, and sensitive
700
+ * variables should be marked as `type: secret_text` in future
701
+ */
702
+ hidden?: boolean;
703
+ } | {
704
+ type: "secret_text";
705
+ value: string;
706
+ } | {
707
+ type: "json";
708
+ value: Json;
709
+ } | ({
710
+ type: "kv_namespace";
711
+ } & BindingOmit<CfKvNamespace>) | ({
712
+ type: "send_email";
713
+ } & NameOmit<CfSendEmailBindings>) | {
714
+ type: "wasm_module";
715
+ source: BinaryFile;
716
+ } | {
717
+ type: "text_blob";
718
+ source: File;
719
+ } | ({
720
+ type: "browser";
721
+ } & BindingOmit<CfBrowserBinding>) | ({
722
+ type: "ai";
723
+ } & BindingOmit<CfAIBinding>) | ({
724
+ type: "images";
725
+ } & BindingOmit<CfImagesBinding>) | {
726
+ type: "version_metadata";
727
+ } | {
728
+ type: "data_blob";
729
+ source: BinaryFile;
730
+ } | ({
731
+ type: "durable_object_namespace";
732
+ } & NameOmit<CfDurableObject>) | ({
733
+ type: "workflow";
734
+ } & BindingOmit<CfWorkflow>) | ({
735
+ type: "queue";
736
+ } & BindingOmit<CfQueue>) | ({
737
+ type: "r2_bucket";
738
+ } & BindingOmit<CfR2Bucket>) | ({
739
+ type: "d1";
740
+ } & BindingOmit<CfD1Database>) | ({
741
+ type: "vectorize";
742
+ } & BindingOmit<CfVectorize>) | ({
743
+ type: "hyperdrive";
744
+ } & BindingOmit<CfHyperdrive>) | ({
745
+ type: "service";
746
+ } & BindingOmit<CfService>) | {
747
+ type: "fetcher";
748
+ fetcher: ServiceFetch;
749
+ } | ({
750
+ type: "analytics_engine";
751
+ } & BindingOmit<CfAnalyticsEngineDataset>) | ({
752
+ type: "dispatch_namespace";
753
+ } & BindingOmit<CfDispatchNamespace>) | ({
754
+ type: "mtls_certificate";
755
+ } & BindingOmit<CfMTlsCertificate>) | ({
756
+ type: "pipeline";
757
+ } & BindingOmit<CfPipeline>) | ({
758
+ type: "secrets_store_secret";
759
+ } & BindingOmit<CfSecretsStoreSecrets>) | ({
760
+ type: "logfwdr";
761
+ } & NameOmit<CfLogfwdrBinding>) | ({
762
+ type: "unsafe_hello_world";
763
+ } & BindingOmit<CfHelloWorld>) | ({
764
+ type: "ratelimit";
765
+ } & NameOmit<CfRateLimit>) | ({
766
+ type: "worker_loader";
767
+ } & BindingOmit<CfWorkerLoader>) | ({
768
+ type: "vpc_service";
769
+ } & BindingOmit<CfVpcService>) | ({
770
+ type: "media";
771
+ } & BindingOmit<CfMediaBinding>) | ({
772
+ type: `unsafe_${string}`;
773
+ } & Omit<CfUnsafeBinding, "name" | "type">) | {
774
+ type: "assets";
775
+ } | {
776
+ type: "inherit";
777
+ };
707
778
 
708
779
  /**
709
780
  * The `Environment` interface declares all the configuration fields that
@@ -2241,4 +2312,4 @@ interface EnvironmentMap {
2241
2312
  }
2242
2313
  declare const defaultWranglerConfig: Config;
2243
2314
 
2244
- export { type CfRateLimit as $, type Assets as A, type CfTextBlobBindings as B, type CfWorkerInit as C, type DurableObjectMigration as D, type Environment as E, type CfBrowserBinding as F, type CfAIBinding as G, type CfImagesBinding as H, type CfMediaBinding as I, type CfVersionMetadataBinding as J, type CfDataBlobBindings as K, type CfDurableObject as L, type CfWorkflow as M, type CfQueue as N, type Observability as O, type CfR2Bucket as P, type CfD1Database as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfVectorize as V, type WorkerMetadataBinding as W, type CfSecretsStoreSecrets as X, type CfHelloWorld as Y, type ZoneIdRoute as Z, type CfWorkerLoader as _, type RedirectedRawConfig as a, type CfHyperdrive as a0, type CfService as a1, type CfVpcService as a2, type CfAnalyticsEngineDataset as a3, type CfDispatchNamespace as a4, type CfMTlsCertificate as a5, type CfLogfwdr as a6, type CfLogfwdrBinding as a7, type CfAssetsBinding as a8, type CfPipeline as a9, type CfUnsafeBinding as aa, type CfCapnp as ab, type CfUnsafe as ac, type CfDurableObjectMigrations as ad, type CfPlacement as ae, type CfTailConsumer as af, type CfUserLimits as ag, type CfWorkerContext as ah, type CfWorkerSourceMap as ai, type Json as aj, type AssetConfigMetadata as ak, type WorkerMetadata as al, type ServiceMetadataRes as am, INHERIT_SYMBOL as an, SERVICE_TAG_PREFIX as ao, ENVIRONMENT_TAG_PREFIX as ap, PATH_TO_DEPLOY_CONFIG as aq, JSON_CONFIG_FORMATS as ar, 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 DockerConfiguration as r, type ContainerEngine as s, type CfScriptFormat as t, type CfModuleType as u, type CfModule as v, type CfVars as w, type CfKvNamespace as x, type CfSendEmailBindings as y, type CfWasmModuleBindings as z };
2315
+ export { type CfRateLimit as $, type Assets as A, type Binding as B, type Config as C, type DurableObjectMigration as D, type Environment as E, type CfBrowserBinding as F, type CfAIBinding as G, type CfImagesBinding as H, type CfMediaBinding as I, type CfVersionMetadataBinding as J, type CfDataBlobBindings as K, type CfDurableObject as L, type CfWorkflow as M, type CfQueue as N, type Observability as O, type CfR2Bucket as P, type CfD1Database as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfVectorize as V, type WorkerMetadataBinding as W, type CfSecretsStoreSecrets as X, type CfHelloWorld as Y, type ZoneIdRoute as Z, type CfWorkerLoader as _, type RedirectedRawConfig as a, type CfHyperdrive as a0, type CfService as a1, type CfVpcService as a2, type CfAnalyticsEngineDataset as a3, type CfDispatchNamespace as a4, type CfMTlsCertificate as a5, type CfLogfwdr as a6, type CfLogfwdrBinding as a7, type CfAssetsBinding as a8, type CfPipeline as a9, type CfUnsafeBinding as aa, type CfCapnp as ab, type CfUnsafe as ac, type CfDurableObjectMigrations as ad, type CfPlacement as ae, type CfTailConsumer as af, type CfUserLimits as ag, type CfWorkerInit as ah, type CfWorkerContext as ai, type CfWorkerSourceMap as aj, type Json as ak, type AssetConfigMetadata as al, type WorkerMetadata as am, type ServiceMetadataRes as an, type ServiceFetch as ao, type File as ap, type BinaryFile as aq, type Trigger as ar, INHERIT_SYMBOL as as, SERVICE_TAG_PREFIX as at, ENVIRONMENT_TAG_PREFIX as au, PATH_TO_DEPLOY_CONFIG as av, JSON_CONFIG_FORMATS as aw, type RawDevConfig as b, type ConfigFields as c, type RawEnvironment as d, defaultWranglerConfig as e, type ZoneNameRoute as f, type CustomDomainRoute as g, type Route as h, type CloudchamberConfig as i, type ContainerApp as j, type DurableObjectBindings as k, type WorkflowBinding as l, type EnvironmentNonInheritable as m, type Rule as n, type ConfigModuleRuleType as o, type DispatchNamespaceOutbound as p, type DockerConfiguration as q, type ContainerEngine as r, type CfScriptFormat as s, type CfModuleType as t, type CfModule as u, type CfVars as v, type CfKvNamespace as w, type CfSendEmailBindings as x, type CfWasmModuleBindings as y, type CfTextBlobBindings as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CfWorkerInit, R as RawConfig, b as Config, W as WorkerMetadataBinding } from './config-DMP1mcQF.mjs';
2
- export { ak as AssetConfigMetadata, A as Assets, G as CfAIBinding, a3 as CfAnalyticsEngineDataset, a8 as CfAssetsBinding, F as CfBrowserBinding, ab as CfCapnp, Q as CfD1Database, K as CfDataBlobBindings, a4 as CfDispatchNamespace, L as CfDurableObject, ad as CfDurableObjectMigrations, Y as CfHelloWorld, a0 as CfHyperdrive, H as CfImagesBinding, x as CfKvNamespace, a6 as CfLogfwdr, a7 as CfLogfwdrBinding, a5 as CfMTlsCertificate, I as CfMediaBinding, v as CfModule, u as CfModuleType, a9 as CfPipeline, ae as CfPlacement, N as CfQueue, P as CfR2Bucket, $ as CfRateLimit, t as CfScriptFormat, X as CfSecretsStoreSecrets, y as CfSendEmailBindings, a1 as CfService, af as CfTailConsumer, B as CfTextBlobBindings, ac as CfUnsafe, aa as CfUnsafeBinding, ag as CfUserLimits, w as CfVars, V as CfVectorize, J as CfVersionMetadataBinding, a2 as CfVpcService, z as CfWasmModuleBindings, ah as CfWorkerContext, _ as CfWorkerLoader, ai as CfWorkerSourceMap, M as CfWorkflow, j as CloudchamberConfig, d as ConfigFields, p as ConfigModuleRuleType, k as ContainerApp, s as ContainerEngine, h as CustomDomainRoute, q as DispatchNamespaceOutbound, r as DockerConfiguration, l as DurableObjectBindings, D as DurableObjectMigration, ap as ENVIRONMENT_TAG_PREFIX, E as Environment, n as EnvironmentNonInheritable, an as INHERIT_SYMBOL, ar as JSON_CONFIG_FORMATS, aj as Json, O as Observability, aq as PATH_TO_DEPLOY_CONFIG, c as RawDevConfig, e as RawEnvironment, a as RedirectedRawConfig, i as Route, o as Rule, ao as SERVICE_TAG_PREFIX, am as ServiceMetadataRes, S as StreamingTailConsumer, T as TailConsumer, U as UserLimits, al as WorkerMetadata, m as WorkflowBinding, Z as ZoneIdRoute, g as ZoneNameRoute, f as defaultWranglerConfig } from './config-DMP1mcQF.mjs';
1
+ import { B as Binding, R as RawConfig, C as Config, W as WorkerMetadataBinding } from './config-DAxLpjUL.mjs';
2
+ export { al as AssetConfigMetadata, A as Assets, aq as BinaryFile, G as CfAIBinding, a3 as CfAnalyticsEngineDataset, a8 as CfAssetsBinding, F as CfBrowserBinding, ab as CfCapnp, Q as CfD1Database, K as CfDataBlobBindings, a4 as CfDispatchNamespace, L as CfDurableObject, ad as CfDurableObjectMigrations, Y as CfHelloWorld, a0 as CfHyperdrive, H as CfImagesBinding, w as CfKvNamespace, a6 as CfLogfwdr, a7 as CfLogfwdrBinding, a5 as CfMTlsCertificate, I as CfMediaBinding, u as CfModule, t as CfModuleType, a9 as CfPipeline, ae as CfPlacement, N as CfQueue, P as CfR2Bucket, $ as CfRateLimit, s as CfScriptFormat, X as CfSecretsStoreSecrets, x as CfSendEmailBindings, a1 as CfService, af as CfTailConsumer, z as CfTextBlobBindings, ac as CfUnsafe, aa as CfUnsafeBinding, ag as CfUserLimits, v as CfVars, V as CfVectorize, J as CfVersionMetadataBinding, a2 as CfVpcService, y as CfWasmModuleBindings, ai as CfWorkerContext, ah as CfWorkerInit, _ as CfWorkerLoader, aj as CfWorkerSourceMap, M as CfWorkflow, i as CloudchamberConfig, c as ConfigFields, o as ConfigModuleRuleType, j as ContainerApp, r as ContainerEngine, g as CustomDomainRoute, p as DispatchNamespaceOutbound, q as DockerConfiguration, k as DurableObjectBindings, D as DurableObjectMigration, au as ENVIRONMENT_TAG_PREFIX, E as Environment, m as EnvironmentNonInheritable, ap as File, as as INHERIT_SYMBOL, aw as JSON_CONFIG_FORMATS, ak as Json, O as Observability, av as PATH_TO_DEPLOY_CONFIG, b as RawDevConfig, d as RawEnvironment, a as RedirectedRawConfig, h as Route, n as Rule, at as SERVICE_TAG_PREFIX, ao as ServiceFetch, an as ServiceMetadataRes, S as StreamingTailConsumer, T as TailConsumer, ar as Trigger, U as UserLimits, am as WorkerMetadata, l as WorkflowBinding, Z as ZoneIdRoute, f as ZoneNameRoute, e as defaultWranglerConfig } from './config-DAxLpjUL.mjs';
3
3
  import * as jsoncParser from 'jsonc-parser';
4
4
  export { constructWranglerConfig } from './browser.mjs';
5
5
  import '@cloudflare/workers-shared';
@@ -79,7 +79,19 @@ declare class Diagnostics {
79
79
  */
80
80
  declare function isValidR2BucketName(name: string | undefined): name is string;
81
81
  declare const bucketFormatMessage = "Bucket names must begin and end with an alphanumeric character, only contain lowercase letters, numbers, and hyphens, and be between 3 and 63 characters long.";
82
- declare const friendlyBindingNames: Record<keyof CfWorkerInit["bindings"], string>;
82
+ /**
83
+ * Config field names for bindings (e.g., "kv_namespaces", "d1_databases").
84
+ * These are the keys used in Wrangler's config file
85
+ */
86
+ type ConfigBindingFieldName = "data_blobs" | "durable_objects" | "kv_namespaces" | "send_email" | "queues" | "d1_databases" | "vectorize" | "hyperdrive" | "r2_buckets" | "logfwdr" | "services" | "analytics_engine_datasets" | "text_blobs" | "browser" | "ai" | "images" | "media" | "version_metadata" | "unsafe" | "vars" | "wasm_modules" | "dispatch_namespaces" | "mtls_certificates" | "workflows" | "pipelines" | "secrets_store_secrets" | "ratelimits" | "assets" | "unsafe_hello_world" | "worker_loaders" | "vpc_services";
87
+ /**
88
+ * @deprecated new code should use getBindingTypeFriendlyName() instead
89
+ */
90
+ declare const friendlyBindingNames: Record<ConfigBindingFieldName, string>;
91
+ /**
92
+ * Get a friendly name for a binding type, handling unsafe bindings
93
+ */
94
+ declare function getBindingTypeFriendlyName(bindingType: Binding["type"]): string;
83
95
  type NormalizeAndValidateConfigArgs = {
84
96
  name?: string;
85
97
  env?: string;
@@ -132,7 +144,6 @@ type ReadConfigOptions = ResolveConfigPathOptions & {
132
144
  hideWarnings?: boolean;
133
145
  preserveOriginalMain?: boolean;
134
146
  };
135
- type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows" | "vpc_services">;
136
147
  declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?: ReadConfigOptions) => {
137
148
  rawConfig: RawConfig;
138
149
  configPath: string | undefined;
@@ -213,14 +224,14 @@ type Message = {
213
224
  notes?: Message[];
214
225
  kind?: "warning" | "error";
215
226
  } & TelemetryMessage;
216
- type Location = File & {
227
+ type Location = ParseFile & {
217
228
  line: number;
218
229
  column: number;
219
230
  length?: number;
220
231
  lineText?: string;
221
232
  suggestion?: string;
222
233
  };
223
- type File = {
234
+ type ParseFile = {
224
235
  file?: string;
225
236
  fileText?: string;
226
237
  };
@@ -289,11 +300,11 @@ declare function readFileSync(file: string): string;
289
300
  /**
290
301
  * Calculates the line and column location from an index.
291
302
  */
292
- declare function indexLocation(file: File, index: number): Location;
303
+ declare function indexLocation(file: ParseFile, index: number): Location;
293
304
  /**
294
305
  * Guesses the line and column location of a search query.
295
306
  */
296
- declare function searchLocation(file: File, query: unknown): Location;
307
+ declare function searchLocation(file: ParseFile, query: unknown): Location;
297
308
  /**
298
309
  * Parse a human-readable time duration in seconds (including fractional)
299
310
  *
@@ -377,6 +388,10 @@ type VariableNames =
377
388
  | "CLOUDFLARE_COMPLIANCE_REGION"
378
389
  /** API token for R2 SQL service. */
379
390
  | "WRANGLER_R2_SQL_AUTH_TOKEN"
391
+ /** Controls whether to fetch the cf.json file. Set to "false" or "0" to disable fetching and use fallback data. Defaults to "true". */
392
+ | "CLOUDFLARE_CF_FETCH_ENABLED"
393
+ /** Custom path for caching the cf.json file. Overrides the default node_modules/.mf/cf.json location. */
394
+ | "CLOUDFLARE_CF_FETCH_PATH"
380
395
  /** Local database connection strings for Hyperdrive development. The * should be replaced with the Hyperdrive binding name in the Worker. */
381
396
  | `CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_${string}`
382
397
  /** Suppress Hyperdrive-related warnings during development. */
@@ -431,7 +446,7 @@ type VariableNames =
431
446
  | "WRANGLER_CF_AUTHORIZATION_TOKEN"
432
447
  /** Enable the local explorer UI at /cdn-cgi/explorer (experimental, default: false). */
433
448
  | "X_LOCAL_EXPLORER"
434
- /** Override command used by `wrangler init` (default: "create cloudflare@^2.5.0"). */
449
+ /** Override command used by `wrangler init` (default: "create cloudflare"). */
435
450
  | "WRANGLER_C3_COMMAND"
436
451
  /** Enable/disable telemetry data collection. */
437
452
  | "WRANGLER_SEND_METRICS"
@@ -502,7 +517,7 @@ declare function getEnvironmentVariableFactory<Choices extends readonly string[]
502
517
  /**
503
518
  * `WRANGLER_C3_COMMAND` can override the command used by `wrangler init` when delegating to C3.
504
519
  *
505
- * By default this will use `create cloudflare@2`.
520
+ * By default this will use `create cloudflare`.
506
521
  *
507
522
  * To run against the beta release of C3 use:
508
523
  *
@@ -535,7 +550,7 @@ declare const getWranglerSendErrorReportsFromEnv: () => boolean | undefined;
535
550
  /**
536
551
  * Set `WRANGLER_API_ENVIRONMENT` environment variable to "staging" to tell Wrangler to hit the staging APIs rather than production.
537
552
  */
538
- declare const getCloudflareApiEnvironmentFromEnv: () => "production" | "staging";
553
+ declare const getCloudflareApiEnvironmentFromEnv: () => "staging" | "production";
539
554
  /**
540
555
  * The compliance region to use for the API requests.
541
556
  */
@@ -680,6 +695,36 @@ declare const getOpenNextDeployFromEnv: () => string | undefined;
680
695
  * This is an experimental feature flag. Defaults to false when not set.
681
696
  */
682
697
  declare const getLocalExplorerEnabledFromEnv: () => boolean;
698
+ /**
699
+ * `CLOUDFLARE_CF_FETCH_ENABLED` controls whether Miniflare fetches the `cf.json` file
700
+ * containing request.cf properties from workers.cloudflare.com.
701
+ *
702
+ * - If set to "false", disables fetching and uses fallback data (no files created)
703
+ * - If set to "true" or not set, uses the default behavior (fetches and caches cf.json)
704
+ *
705
+ * This is particularly useful for non-JavaScript projects that don't want
706
+ * a node_modules directory created automatically.
707
+ *
708
+ * Example:
709
+ * ```sh
710
+ * # Disable cf fetching entirely
711
+ * CLOUDFLARE_CF_FETCH_ENABLED=false npx wrangler dev
712
+ * ```
713
+ */
714
+ declare const getCfFetchEnabledFromEnv: () => boolean;
715
+ /**
716
+ * `CLOUDFLARE_CF_FETCH_PATH` specifies a custom path for caching the cf.json file.
717
+ *
718
+ * - If set, uses the specified path instead of the default node_modules/.mf/cf.json
719
+ * - If not set, uses the default location (node_modules/.mf/cf.json)
720
+ *
721
+ * Example:
722
+ * ```sh
723
+ * # Use a custom cache location
724
+ * CLOUDFLARE_CF_FETCH_PATH=/tmp/cf-cache.json npx wrangler dev
725
+ * ```
726
+ */
727
+ declare const getCfFetchPathFromEnv: () => string | undefined;
683
728
 
684
729
  declare function getGlobalWranglerConfigPath(): string;
685
730
 
@@ -733,4 +778,4 @@ declare function formatCompatibilityDate(date: Date): CompatDate;
733
778
  */
734
779
  declare function isDirectory(path: string): boolean;
735
780
 
736
- export { APIError, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CfWorkerInit, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingOptions, DeprecationError, FatalError, type File, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatCompatibilityDate, formatConfigSnippet, friendlyBindingNames, getBooleanEnvironmentVariableFactory, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getLocalWorkerdCompatibilityDate, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, resolveWranglerConfigPath, searchLocation, validatePagesConfig };
781
+ export { APIError, Binding, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingFieldName, DeprecationError, FatalError, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, type ParseFile, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatCompatibilityDate, formatConfigSnippet, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getLocalWorkerdCompatibilityDate, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, resolveWranglerConfigPath, searchLocation, validatePagesConfig };
package/dist/index.mjs CHANGED
@@ -793,7 +793,7 @@ __name(assertOneOf, "assertOneOf");
793
793
  // src/environment-variables/misc-variables.ts
794
794
  var getC3CommandFromEnv = getEnvironmentVariableFactory({
795
795
  variableName: "WRANGLER_C3_COMMAND",
796
- defaultValue: /* @__PURE__ */ __name(() => "create cloudflare@^2.5.0", "defaultValue")
796
+ defaultValue: /* @__PURE__ */ __name(() => "create cloudflare", "defaultValue")
797
797
  });
798
798
  var getWranglerSendMetricsFromEnv = getBooleanEnvironmentVariableFactory({
799
799
  variableName: "WRANGLER_SEND_METRICS"
@@ -923,6 +923,13 @@ var getLocalExplorerEnabledFromEnv = getBooleanEnvironmentVariableFactory({
923
923
  variableName: "X_LOCAL_EXPLORER",
924
924
  defaultValue: false
925
925
  });
926
+ var getCfFetchEnabledFromEnv = getBooleanEnvironmentVariableFactory({
927
+ variableName: "CLOUDFLARE_CF_FETCH_ENABLED",
928
+ defaultValue: true
929
+ });
930
+ var getCfFetchPathFromEnv = getEnvironmentVariableFactory({
931
+ variableName: "CLOUDFLARE_CF_FETCH_PATH"
932
+ });
926
933
 
927
934
  // src/config/diagnostics.ts
928
935
  var Diagnostics = class {
@@ -1367,6 +1374,53 @@ var friendlyBindingNames = {
1367
1374
  worker_loaders: "Worker Loader",
1368
1375
  vpc_services: "VPC Service"
1369
1376
  };
1377
+ var bindingTypeFriendlyNames = {
1378
+ // The 3 binding types below are all rendered as "Environment Variable" to preserve existing behaviour (friendlyBindingNames.vars)
1379
+ plain_text: "Environment Variable",
1380
+ secret_text: "Environment Variable",
1381
+ json: "Environment Variable",
1382
+ kv_namespace: "KV Namespace",
1383
+ send_email: "Send Email",
1384
+ wasm_module: "Wasm Module",
1385
+ text_blob: "Text Blob",
1386
+ browser: "Browser",
1387
+ ai: "AI",
1388
+ images: "Images",
1389
+ version_metadata: "Worker Version Metadata",
1390
+ data_blob: "Data Blob",
1391
+ durable_object_namespace: "Durable Object",
1392
+ workflow: "Workflow",
1393
+ queue: "Queue",
1394
+ r2_bucket: "R2 Bucket",
1395
+ d1: "D1 Database",
1396
+ vectorize: "Vectorize Index",
1397
+ hyperdrive: "Hyperdrive Config",
1398
+ service: "Worker",
1399
+ fetcher: "Service Binding",
1400
+ analytics_engine: "Analytics Engine Dataset",
1401
+ dispatch_namespace: "Dispatch Namespace",
1402
+ mtls_certificate: "mTLS Certificate",
1403
+ pipeline: "Pipeline",
1404
+ secrets_store_secret: "Secrets Store Secret",
1405
+ logfwdr: "logfwdr",
1406
+ unsafe_hello_world: "Hello World",
1407
+ ratelimit: "Rate Limit",
1408
+ worker_loader: "Worker Loader",
1409
+ vpc_service: "VPC Service",
1410
+ media: "Media",
1411
+ assets: "Assets",
1412
+ inherit: "Inherited"
1413
+ };
1414
+ function getBindingTypeFriendlyName(bindingType) {
1415
+ if (bindingType in bindingTypeFriendlyNames) {
1416
+ return bindingTypeFriendlyNames[bindingType];
1417
+ }
1418
+ if (bindingType.startsWith("unsafe_")) {
1419
+ return "Unsafe Metadata";
1420
+ }
1421
+ return bindingType;
1422
+ }
1423
+ __name(getBindingTypeFriendlyName, "getBindingTypeFriendlyName");
1370
1424
  var ENGLISH = new Intl.ListFormat("en-US");
1371
1425
  var ALLOWED_INSTANCE_TYPES = [
1372
1426
  "lite",
@@ -5304,4 +5358,4 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
5304
5358
  }
5305
5359
  __name(validateDurableObjectBinding2, "validateDurableObjectBinding");
5306
5360
 
5307
- export { COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, PatchConfigError, bucketFormatMessage, defaultWranglerConfig, experimental_patchConfig, friendlyBindingNames, getBooleanEnvironmentVariableFactory, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, normalizeAndValidateConfig, validatePagesConfig };
5361
+ export { COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, PatchConfigError, bucketFormatMessage, defaultWranglerConfig, experimental_patchConfig, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, normalizeAndValidateConfig, validatePagesConfig };
@@ -1 +1 @@
1
- {"inputs":{"src/compatibility-date.ts":{"bytes":3472,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","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":8899,"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":4908,"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":40989,"imports":[],"format":"esm"},"src/config/config.ts":{"bytes":11934,"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":2600,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/parse.ts":{"bytes":9544,"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/yocto-queue@1.0.0/node_modules/yocto-queue/index.js":{"bytes":1277,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js":{"bytes":1502,"imports":[{"path":"../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js","kind":"import-statement","original":"yocto-queue"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js":{"bytes":1121,"imports":[{"path":"../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js","kind":"import-statement","original":"p-limit"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js":{"bytes":1443,"imports":[{"path":"node:process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js","kind":"import-statement","original":"p-locate"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js":{"bytes":298,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js":{"bytes":2679,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js","kind":"import-statement","original":"locate-path"},{"path":"../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js","kind":"import-statement","original":"path-exists"},{"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":4889,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js","kind":"import-statement","original":"find-up"},{"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":3417,"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":10832,"imports":[],"format":"esm"},"src/types.ts":{"bytes":5648,"imports":[],"format":"esm"},"../workflows-shared/src/lib/validators.ts":{"bytes":1108,"imports":[{"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":445,"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":9855,"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":11655,"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":2230,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-helpers.ts":{"bytes":19697,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation.ts":{"bytes":126307,"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":5899,"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/index.ts":{"bytes":2101,"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/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"}],"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":1718,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","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":"<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-4233U5MA.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.mjs","kind":"import-statement"}],"exports":["constructWranglerConfig"],"entryPoint":"src/browser.ts","inputs":{"src/browser.ts":{"bytesInOutput":0}},"bytes":135},"dist/index.mjs":{"imports":[{"path":"dist/chunk-4233U5MA.mjs","kind":"import-statement"},{"path":"dist/chunk-AT3LIX2I.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.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":"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:fs","kind":"import-statement","external":true}],"exports":["APIError","COMPLIANCE_REGION_CONFIG_PUBLIC","COMPLIANCE_REGION_CONFIG_UNKNOWN","CommandLineArgsError","DeprecationError","ENVIRONMENT_TAG_PREFIX","FatalError","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","JsonFriendlyFatalError","MissingConfigError","PATH_TO_DEPLOY_CONFIG","ParseError","PatchConfigError","SERVICE_TAG_PREFIX","UserError","assertNever","bucketFormatMessage","configFileName","configFormat","constructWranglerConfig","createFatalError","defaultWranglerConfig","experimental_patchConfig","experimental_readRawConfig","findWranglerConfig","formatCompatibilityDate","formatConfigSnippet","friendlyBindingNames","getBooleanEnvironmentVariableFactory","getBuildConditionsFromEnv","getBuildPlatformFromEnv","getC3CommandFromEnv","getCIGeneratePreviewAlias","getCIMatchTag","getCIOverrideName","getCIOverrideNetworkModeHost","getCloudflareApiBaseUrl","getCloudflareApiEnvironmentFromEnv","getCloudflareComplianceRegion","getCloudflareEnv","getCloudflareIncludeProcessEnvFromEnv","getCloudflareLoadDevVarsFromDotEnv","getComplianceRegionSubdomain","getD1ExtraLocationChoices","getDisableConfigWatching","getDockerPath","getEnvironmentVariableFactory","getGlobalWranglerConfigPath","getLocalExplorerEnabledFromEnv","getLocalWorkerdCompatibilityDate","getOpenNextDeployFromEnv","getOutputFileDirectoryFromEnv","getOutputFilePathFromEnv","getRegistryPath","getSanitizeLogs","getSubdomainMixedStateCheckDisabled","getTraceHeader","getWorkersCIBranchName","getWranglerHideBanner","getWranglerSendErrorReportsFromEnv","getWranglerSendMetricsFromEnv","hasProperty","indexLocation","isCompatDate","isDirectory","isDockerfile","isOptionalProperty","isPagesConfig","isRequiredProperty","isValidR2BucketName","mapWorkerMetadataBindings","normalizeAndValidateConfig","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","resolveWranglerConfigPath","searchLocation","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":4292},"../../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},"src/index.ts":{"bytesInOutput":0},"src/config/config.ts":{"bytesInOutput":3152},"src/config/patch-config.ts":{"bytesInOutput":1912},"src/config/validation.ts":{"bytesInOutput":119534},"../workflows-shared/src/lib/validators.ts":{"bytesInOutput":566},"src/environment-variables/misc-variables.ts":{"bytesInOutput":5438},"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/fs-helpers.ts":{"bytesInOutput":181},"src/environment-variables/factory.ts":{"bytesInOutput":1850},"src/config/diagnostics.ts":{"bytesInOutput":1876},"src/config/validation-helpers.ts":{"bytesInOutput":12440},"src/config/validation-pages.ts":{"bytesInOutput":4456}},"bytes":176797},"dist/chunk-4233U5MA.mjs":{"imports":[{"path":"dist/chunk-LDFBMPMW.mjs","kind":"import-statement"},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["assertNever","constructWranglerConfig","formatCompatibilityDate","getLocalWorkerdCompatibilityDate","isCompatDate","mapWorkerMetadataBindings"],"inputs":{"src/compatibility-date.ts":{"bytesInOutput":1376},"src/assert-never.ts":{"bytesInOutput":69},"src/map-worker-metadata-bindings.ts":{"bytesInOutput":8897},"src/construct-wrangler-config.ts":{"bytesInOutput":2797}},"bytes":13529},"dist/test-helpers/index.mjs":{"imports":[{"path":"dist/chunk-AT3LIX2I.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.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:fs/promises","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":915},"src/test-helpers/seed.ts":{"bytesInOutput":345},"src/test-helpers/wrangler-config.ts":{"bytesInOutput":1745}},"bytes":8665},"dist/chunk-AT3LIX2I.mjs":{"imports":[{"path":"dist/chunk-LDFBMPMW.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:url","kind":"import-statement","external":true},{"path":"node:process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","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","isRedirectedRawConfig","modify","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","resolveWranglerConfigPath","searchLocation"],"inputs":{"src/errors.ts":{"bytesInOutput":1625},"src/parse.ts":{"bytesInOutput":7594},"../../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":3340},"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js":{"bytesInOutput":1504},"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js":{"bytesInOutput":1083},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytesInOutput":1494},"src/config/index.ts":{"bytesInOutput":1696}},"bytes":107195},"dist/chunk-LDFBMPMW.mjs":{"imports":[],"exports":["ENVIRONMENT_TAG_PREFIX","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","PATH_TO_DEPLOY_CONFIG","SERVICE_TAG_PREFIX","__commonJS","__export","__name","__reExport","__require","__toESM"],"inputs":{"src/constants.ts":{"bytesInOutput":245}},"bytes":2516}}}
1
+ {"inputs":{"src/compatibility-date.ts":{"bytes":3472,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","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":8899,"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":4908,"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":40989,"imports":[],"format":"esm"},"src/config/config.ts":{"bytes":11934,"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":2600,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/parse.ts":{"bytes":9564,"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/yocto-queue@1.0.0/node_modules/yocto-queue/index.js":{"bytes":1277,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js":{"bytes":1502,"imports":[{"path":"../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js","kind":"import-statement","original":"yocto-queue"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js":{"bytes":1121,"imports":[{"path":"../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js","kind":"import-statement","original":"p-limit"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js":{"bytes":1443,"imports":[{"path":"node:process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js","kind":"import-statement","original":"p-locate"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js":{"bytes":298,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js":{"bytes":2679,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js","kind":"import-statement","original":"locate-path"},{"path":"../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js","kind":"import-statement","original":"path-exists"},{"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":4889,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js","kind":"import-statement","original":"find-up"},{"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":3146,"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":9118,"imports":[],"format":"esm"},"src/types.ts":{"bytes":9198,"imports":[],"format":"esm"},"../workflows-shared/src/lib/validators.ts":{"bytes":1108,"imports":[{"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":445,"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":10155,"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":12876,"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":2230,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation-helpers.ts":{"bytes":19697,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/config/validation.ts":{"bytes":128788,"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":5899,"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/index.ts":{"bytes":2142,"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/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"}],"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":1718,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","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":"<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-4233U5MA.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.mjs","kind":"import-statement"}],"exports":["constructWranglerConfig"],"entryPoint":"src/browser.ts","inputs":{"src/browser.ts":{"bytesInOutput":0}},"bytes":135},"dist/index.mjs":{"imports":[{"path":"dist/chunk-4233U5MA.mjs","kind":"import-statement"},{"path":"dist/chunk-AT3LIX2I.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.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":"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:fs","kind":"import-statement","external":true}],"exports":["APIError","COMPLIANCE_REGION_CONFIG_PUBLIC","COMPLIANCE_REGION_CONFIG_UNKNOWN","CommandLineArgsError","DeprecationError","ENVIRONMENT_TAG_PREFIX","FatalError","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","JsonFriendlyFatalError","MissingConfigError","PATH_TO_DEPLOY_CONFIG","ParseError","PatchConfigError","SERVICE_TAG_PREFIX","UserError","assertNever","bucketFormatMessage","configFileName","configFormat","constructWranglerConfig","createFatalError","defaultWranglerConfig","experimental_patchConfig","experimental_readRawConfig","findWranglerConfig","formatCompatibilityDate","formatConfigSnippet","friendlyBindingNames","getBindingTypeFriendlyName","getBooleanEnvironmentVariableFactory","getBuildConditionsFromEnv","getBuildPlatformFromEnv","getC3CommandFromEnv","getCIGeneratePreviewAlias","getCIMatchTag","getCIOverrideName","getCIOverrideNetworkModeHost","getCfFetchEnabledFromEnv","getCfFetchPathFromEnv","getCloudflareApiBaseUrl","getCloudflareApiEnvironmentFromEnv","getCloudflareComplianceRegion","getCloudflareEnv","getCloudflareIncludeProcessEnvFromEnv","getCloudflareLoadDevVarsFromDotEnv","getComplianceRegionSubdomain","getD1ExtraLocationChoices","getDisableConfigWatching","getDockerPath","getEnvironmentVariableFactory","getGlobalWranglerConfigPath","getLocalExplorerEnabledFromEnv","getLocalWorkerdCompatibilityDate","getOpenNextDeployFromEnv","getOutputFileDirectoryFromEnv","getOutputFilePathFromEnv","getRegistryPath","getSanitizeLogs","getSubdomainMixedStateCheckDisabled","getTraceHeader","getWorkersCIBranchName","getWranglerHideBanner","getWranglerSendErrorReportsFromEnv","getWranglerSendMetricsFromEnv","hasProperty","indexLocation","isCompatDate","isDirectory","isDockerfile","isOptionalProperty","isPagesConfig","isRequiredProperty","isValidR2BucketName","mapWorkerMetadataBindings","normalizeAndValidateConfig","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","resolveWranglerConfigPath","searchLocation","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":4292},"../../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},"src/index.ts":{"bytesInOutput":0},"src/config/config.ts":{"bytesInOutput":3152},"src/config/patch-config.ts":{"bytesInOutput":1912},"src/config/validation.ts":{"bytesInOutput":121044},"../workflows-shared/src/lib/validators.ts":{"bytesInOutput":566},"src/environment-variables/misc-variables.ts":{"bytesInOutput":5680},"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/fs-helpers.ts":{"bytesInOutput":181},"src/environment-variables/factory.ts":{"bytesInOutput":1850},"src/config/diagnostics.ts":{"bytesInOutput":1876},"src/config/validation-helpers.ts":{"bytesInOutput":12440},"src/config/validation-pages.ts":{"bytesInOutput":4456}},"bytes":178632},"dist/chunk-4233U5MA.mjs":{"imports":[{"path":"dist/chunk-LDFBMPMW.mjs","kind":"import-statement"},{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["assertNever","constructWranglerConfig","formatCompatibilityDate","getLocalWorkerdCompatibilityDate","isCompatDate","mapWorkerMetadataBindings"],"inputs":{"src/compatibility-date.ts":{"bytesInOutput":1376},"src/assert-never.ts":{"bytesInOutput":69},"src/map-worker-metadata-bindings.ts":{"bytesInOutput":8897},"src/construct-wrangler-config.ts":{"bytesInOutput":2797}},"bytes":13529},"dist/test-helpers/index.mjs":{"imports":[{"path":"dist/chunk-AT3LIX2I.mjs","kind":"import-statement"},{"path":"dist/chunk-LDFBMPMW.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:fs/promises","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":915},"src/test-helpers/seed.ts":{"bytesInOutput":345},"src/test-helpers/wrangler-config.ts":{"bytesInOutput":1745}},"bytes":8665},"dist/chunk-AT3LIX2I.mjs":{"imports":[{"path":"dist/chunk-LDFBMPMW.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:url","kind":"import-statement","external":true},{"path":"node:process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","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","isRedirectedRawConfig","modify","parseByteSize","parseHumanDuration","parseJSON","parseJSONC","parseNonHyphenedUuid","parsePackageJSON","parseTOML","readFileSync","readFileSyncToBuffer","resolveWranglerConfigPath","searchLocation"],"inputs":{"src/errors.ts":{"bytesInOutput":1625},"src/parse.ts":{"bytesInOutput":7594},"../../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":3340},"../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js":{"bytesInOutput":1504},"../../node_modules/.pnpm/locate-path@7.1.0/node_modules/locate-path/index.js":{"bytesInOutput":1083},"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js":{"bytesInOutput":1494},"src/config/index.ts":{"bytesInOutput":1696}},"bytes":107195},"dist/chunk-LDFBMPMW.mjs":{"imports":[],"exports":["ENVIRONMENT_TAG_PREFIX","INHERIT_SYMBOL","JSON_CONFIG_FORMATS","PATH_TO_DEPLOY_CONFIG","SERVICE_TAG_PREFIX","__commonJS","__export","__name","__reExport","__require","__toESM"],"inputs":{"src/constants.ts":{"bytesInOutput":245}},"bytes":2516}}}
@@ -1,4 +1,4 @@
1
- import { R as RawConfig, a as RedirectedRawConfig } from '../config-DMP1mcQF.mjs';
1
+ import { R as RawConfig, a as RedirectedRawConfig } from '../config-DAxLpjUL.mjs';
2
2
  import '@cloudflare/workers-shared';
3
3
 
4
4
  declare function mockConsoleMethods(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/workers-utils",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Utility package for common Worker operations",
5
5
  "homepage": "https://github.com/cloudflare/workers-sdk#readme",
6
6
  "bugs": {
@@ -43,7 +43,7 @@
43
43
  "vitest": "~3.2.0",
44
44
  "xdg-app-paths": "^8.3.0",
45
45
  "@cloudflare/eslint-config-shared": "1.2.1",
46
- "@cloudflare/workers-shared": "0.18.10",
46
+ "@cloudflare/workers-shared": "0.19.0",
47
47
  "@cloudflare/workers-tsconfig": "0.0.0",
48
48
  "@cloudflare/workflows-shared": "0.4.0"
49
49
  },