@cloudflare/workers-utils 0.47.1 → 0.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.mts +5 -0
- package/dist/{chunk-TAK63GWY.mjs → chunk-2HLTAS5V.mjs} +14 -13
- package/dist/{compliance-BFVODD7c.d.mts → compliance-BRDsvbha.d.mts} +5 -0
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +64 -5
- package/dist/index.mjs +74 -3
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/test-helpers/index.mjs +1 -1
- package/package.json +3 -3
package/dist/browser.d.mts
CHANGED
|
@@ -1030,6 +1030,11 @@ interface EnvironmentInheritable {
|
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Include source maps when uploading this worker.
|
|
1032
1032
|
*
|
|
1033
|
+
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload` and
|
|
1034
|
+
* `wrangler preview`, where source maps that can't be resolved are skipped
|
|
1035
|
+
* rather than failing the upload. Defaults to `false` for
|
|
1036
|
+
* `wrangler build --experimental-cf-build-output`.
|
|
1037
|
+
*
|
|
1033
1038
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
1034
1039
|
*
|
|
1035
1040
|
* @inheritable
|
|
@@ -171,7 +171,7 @@ function getDurableObjectClassNameToUseSQLiteMap(migrations, exports$1) {
|
|
|
171
171
|
__name(getDurableObjectClassNameToUseSQLiteMap, "getDurableObjectClassNameToUseSQLiteMap");
|
|
172
172
|
function validateDurableObjectContainerApplications(config, containers = getDurableObjectContainerApps(
|
|
173
173
|
config.containers
|
|
174
|
-
)) {
|
|
174
|
+
), configFileName2 = "Wrangler config file") {
|
|
175
175
|
const allDOs = getDurableObjectClassNameToUseSQLiteMap(
|
|
176
176
|
config.migrations,
|
|
177
177
|
config.exports
|
|
@@ -186,7 +186,7 @@ function validateDurableObjectContainerApplications(config, containers = getDura
|
|
|
186
186
|
const useSQLite = allDOs.get(container.class_name);
|
|
187
187
|
if (useSQLite === void 0 && maybeBoundDO === void 0) {
|
|
188
188
|
throw new UserError(
|
|
189
|
-
`The container class_name ${container.class_name} does not match any durable object class_name defined in your
|
|
189
|
+
`The container class_name ${container.class_name} does not match any durable object class_name defined in your ${configFileName2}. Note that the durable object must be defined in the same script as the container.`,
|
|
190
190
|
{ telemetryMessage: "no DO defined that matches container class_name" }
|
|
191
191
|
);
|
|
192
192
|
}
|
|
@@ -989,12 +989,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
|
989
989
|
return result;
|
|
990
990
|
}
|
|
991
991
|
__name(parseTree, "parseTree");
|
|
992
|
-
function findNodeAtLocation(root,
|
|
992
|
+
function findNodeAtLocation(root, path3) {
|
|
993
993
|
if (!root) {
|
|
994
994
|
return void 0;
|
|
995
995
|
}
|
|
996
996
|
let node = root;
|
|
997
|
-
for (let segment of
|
|
997
|
+
for (let segment of path3) {
|
|
998
998
|
if (typeof segment === "string") {
|
|
999
999
|
if (node.type !== "object" || !Array.isArray(node.children)) {
|
|
1000
1000
|
return void 0;
|
|
@@ -1343,14 +1343,14 @@ __name(getNodeType, "getNodeType");
|
|
|
1343
1343
|
|
|
1344
1344
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
1345
1345
|
function setProperty(text, originalPath, value, options) {
|
|
1346
|
-
const
|
|
1346
|
+
const path3 = originalPath.slice();
|
|
1347
1347
|
const errors = [];
|
|
1348
1348
|
const root = parseTree(text, errors);
|
|
1349
1349
|
let parent = void 0;
|
|
1350
1350
|
let lastSegment = void 0;
|
|
1351
|
-
while (
|
|
1352
|
-
lastSegment =
|
|
1353
|
-
parent = findNodeAtLocation(root,
|
|
1351
|
+
while (path3.length > 0) {
|
|
1352
|
+
lastSegment = path3.pop();
|
|
1353
|
+
parent = findNodeAtLocation(root, path3);
|
|
1354
1354
|
if (parent === void 0 && value !== void 0) {
|
|
1355
1355
|
if (typeof lastSegment === "string") {
|
|
1356
1356
|
value = { [lastSegment]: value };
|
|
@@ -1581,8 +1581,8 @@ function format2(documentText, range, options) {
|
|
|
1581
1581
|
return format(documentText, range, options);
|
|
1582
1582
|
}
|
|
1583
1583
|
__name(format2, "format");
|
|
1584
|
-
function modify(text,
|
|
1585
|
-
return setProperty(text,
|
|
1584
|
+
function modify(text, path3, value, options) {
|
|
1585
|
+
return setProperty(text, path3, value, options);
|
|
1586
1586
|
}
|
|
1587
1587
|
__name(modify, "modify");
|
|
1588
1588
|
function applyEdits(text, edits) {
|
|
@@ -3080,8 +3080,6 @@ function isRedirectedRawConfig(rawConfig, configPath, userConfigPath) {
|
|
|
3080
3080
|
return isRedirectedConfig({ configPath, userConfigPath });
|
|
3081
3081
|
}
|
|
3082
3082
|
__name(isRedirectedRawConfig, "isRedirectedRawConfig");
|
|
3083
|
-
|
|
3084
|
-
// src/config/index.ts
|
|
3085
3083
|
function configFormat(configPath) {
|
|
3086
3084
|
if (configPath?.endsWith("toml")) {
|
|
3087
3085
|
return "toml";
|
|
@@ -3095,7 +3093,10 @@ function configFormat(configPath) {
|
|
|
3095
3093
|
return "none";
|
|
3096
3094
|
}
|
|
3097
3095
|
__name(configFormat, "configFormat");
|
|
3098
|
-
function configFileName(configPath) {
|
|
3096
|
+
function configFileName(configPath, userConfigPath) {
|
|
3097
|
+
if (userConfigPath !== void 0) {
|
|
3098
|
+
return path.basename(userConfigPath);
|
|
3099
|
+
}
|
|
3099
3100
|
const format3 = configFormat(configPath);
|
|
3100
3101
|
switch (format3) {
|
|
3101
3102
|
case "toml":
|
|
@@ -2108,6 +2108,11 @@ interface EnvironmentInheritable {
|
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Include source maps when uploading this worker.
|
|
2110
2110
|
*
|
|
2111
|
+
* Defaults to `true` for `wrangler deploy`, `wrangler versions upload` and
|
|
2112
|
+
* `wrangler preview`, where source maps that can't be resolved are skipped
|
|
2113
|
+
* rather than failing the upload. Defaults to `false` for
|
|
2114
|
+
* `wrangler build --experimental-cf-build-output`.
|
|
2115
|
+
*
|
|
2111
2116
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
2112
2117
|
*
|
|
2113
2118
|
* @inheritable
|
package/dist/compliance.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, h as ComplianceConfig, bO as getCloudflareApiBaseUrl, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bW as getComplianceRegionSubdomain } from './compliance-
|
|
1
|
+
export { s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, h as ComplianceConfig, bO as getCloudflareApiBaseUrl, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bW as getComplianceRegionSubdomain } from './compliance-BRDsvbha.mjs';
|
|
2
2
|
import 'node:url';
|
|
3
3
|
import 'undici';
|
|
4
4
|
import '@cloudflare/workers-shared';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkflowExport, d as ContainerApp, e as WorkerMetadataBinding, T as TailConsumer, f as WorkerMetadata, g as CfTailConsumer, L as Logger, A as ApiCredentials, h as ComplianceConfig, i as Route } from './compliance-
|
|
2
|
-
export { j as ARTIFACTS_EVENT_TYPES, k as Access, l as ArtifactsEventTrigger, m as ArtifactsEventType, n as AssetConfigMetadata, o as Assets, p as AssetsOptions, q as AsyncHook, r as BinaryFile, s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, u as CacheOptions, v as CfAIBinding, w as CfAISearch, x as CfAISearchNamespace, y as CfAccount, z as CfAgentMemory, F as CfAnalyticsEngineDataset, G as CfAnalyticsSQLBinding, H as CfArtifacts, I as CfAssetsBinding, J as CfBrowserBinding, K as CfCapnp, M as CfD1Database, N as CfDataBlobBindings, O as CfDevPluginCfg, P as CfDispatchNamespace, Q as CfDurableObject, S as CfDurableObjectMigrations, U as CfExports, V as CfFlagship, X as CfHelloWorld, Y as CfHyperdrive, Z as CfImagesBinding, _ as CfK2Binding, $ as CfKvNamespace, a0 as CfLogfwdr, a1 as CfLogfwdrBinding, a2 as CfMTlsCertificate, a3 as CfMediaBinding, a4 as CfModule, a5 as CfModuleType, a6 as CfPipeline, a7 as CfPlacement, a8 as CfQueue, a9 as CfR2Bucket, aa as CfRateLimit, ab as CfScriptFormat, ac as CfSecretsStoreSecrets, ad as CfSendEmailBindings, ae as CfService, af as CfStreamBinding, ag as CfTextBlobBindings, ah as CfUnsafe, ai as CfUnsafeBinding, aj as CfUserLimits, ak as CfVars, al as CfVectorize, am as CfVersionMetadataBinding, an as CfVpcNetwork, ao as CfVpcService, ap as CfWasmModuleBindings, aq as CfWorkerContext, ar as CfWorkerInit, as as CfWorkerLoader, at as CfWorkerSourceMap, au as CfWorkflow, av as CloudchamberConfig, aw as ConfigFields, ax as ConfigModuleRuleType, ay as ConfiguredExport, az as ConnectHandler, aA as ContainerEngine, aB as ContainerObservability, aC as CustomDomainRoute, aD as DispatchNamespaceOutbound, aE as DockerConfiguration, aF as DurableObjectBindings, aG as DurableObjectCodeUpdateStrategy, aH as DurableObjectContainerImage, aI as DurableObjectExportStorage, aJ as DurableObjectMigration, aK as DurableObjectsConfig, aL as ENVIRONMENT_TAG_PREFIX, aM as Entry, aN as Environment, aO as EnvironmentNonInheritable, aP as ExportsReconciliationEntryBase, aQ as ExportsReconciliationErrorDetail, aR as ExportsReconciliationInfo, aS as ExportsReconciliationRename, aT as ExportsReconciliationResult, aU as ExportsReconciliationTransfer, aV as ExportsReconciliationTransferPending, aW as ExportsReconciliationWarning, aX as FetchKVGetValueFetcher, aY as FetchListResultFetcher, aZ as FetchPagedListResultFetcher, a_ as FetchResult, a$ as FetchResultFetcher, b0 as File, b1 as Hook, b2 as HookValues, b3 as INHERIT_SYMBOL, b4 as JSON_CONFIG_FORMATS, b5 as Json, b6 as LOGGER_LEVELS, b7 as LegacyAssetPaths, b8 as LocalS3Credentials, b9 as LogLevel, ba as LoggerLevel, bb as NodeJSCompatMode, bc as Observability, bd as PATH_TO_DEPLOY_CONFIG, be as PreviewsConfig, bf as RawDevConfig, bg as RawDurableObjectsConfig, bh as RawEnvironment, a as RedirectedRawConfig, bi as Rule, bj as SERVICE_TAG_PREFIX, bk as ServiceFetch, bl as ServiceMetadataRes, bm as StartDevWorkerInput, bn as StreamingTailConsumer, bo as TcpConnectHandler, bp as Trigger, bq as UdpConnectHandler, br as UserLimits, bs as ValidatedAssetsOptions, bt as WorkflowBinding, bu as ZoneIdRoute, bv as ZoneNameRoute, bw as addAuthorizationHeader, bx as defaultWranglerConfig, by as extractAccountTag, bz as extractWAFBlockRayId, bA as fetchInternalBase, bB as fetchKVGetValueBase, bC as fetchListResultBase, bD as fetchResultBase, bE as getBrowserRenderingHeadfulFromEnv, bF as getBuildConditionsFromEnv, bG as getBuildPlatformFromEnv, bH as getC3CommandFromEnv, bI as getCIGeneratePreviewAlias, bJ as getCIMatchTag, bK as getCIOverrideName, bL as getCIOverrideNetworkModeHost, bM as getCfFetchEnabledFromEnv, bN as getCfFetchPathFromEnv, bO as getCloudflareApiBaseUrl, bP as getCloudflareApiEnvironmentFromEnv, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bS as getCloudflareEnv, bT as getCloudflareIncludeProcessEnvFromEnv, bU as getCloudflareLoadDevVarsFromDotEnv, bV as getCloudflaredPathFromEnv, bW as getComplianceRegionSubdomain, bX as getD1ExtraLocationChoices, bY as getDisableConfigWatching, bZ as getLocalExplorerEnabledFromEnv, b_ as getLocalObservabilityEnabledFromEnv, b$ as getNoSkillsUpdatePromptsFromEnv, c0 as getOpenNextDeployFromEnv, c1 as getOutputFileDirectoryFromEnv, c2 as getOutputFilePathFromEnv, c3 as getRegistryPath, c4 as getSanitizeLogs, c5 as getSubdomainMixedStateCheckDisabled, c6 as getTraceHeader, c7 as getWorkersCIBranchName, c8 as getWranglerCacheDirFromEnv, c9 as getWranglerHideBanner, ca as getWranglerSendErrorReportsFromEnv, cb as getWranglerSendMetricsFromEnv, cc as hasCursor, cd as hasMorePages, ce as isDoNotTrackEnabled, cf as isWAFBlockResponse, cg as maybeAddTraceHeader, ch as parseRetryAfterMs, ci as parseRetryAfterValue, cj as performApiFetchBase, ck as renderError, cl as throwFetchError, cm as truncate } from './compliance-
|
|
1
|
+
import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkflowExport, d as ContainerApp, e as WorkerMetadataBinding, T as TailConsumer, f as WorkerMetadata, g as CfTailConsumer, L as Logger, A as ApiCredentials, h as ComplianceConfig, i as Route } from './compliance-BRDsvbha.mjs';
|
|
2
|
+
export { j as ARTIFACTS_EVENT_TYPES, k as Access, l as ArtifactsEventTrigger, m as ArtifactsEventType, n as AssetConfigMetadata, o as Assets, p as AssetsOptions, q as AsyncHook, r as BinaryFile, s as COMPLIANCE_REGION_CONFIG_PUBLIC, t as COMPLIANCE_REGION_CONFIG_UNKNOWN, u as CacheOptions, v as CfAIBinding, w as CfAISearch, x as CfAISearchNamespace, y as CfAccount, z as CfAgentMemory, F as CfAnalyticsEngineDataset, G as CfAnalyticsSQLBinding, H as CfArtifacts, I as CfAssetsBinding, J as CfBrowserBinding, K as CfCapnp, M as CfD1Database, N as CfDataBlobBindings, O as CfDevPluginCfg, P as CfDispatchNamespace, Q as CfDurableObject, S as CfDurableObjectMigrations, U as CfExports, V as CfFlagship, X as CfHelloWorld, Y as CfHyperdrive, Z as CfImagesBinding, _ as CfK2Binding, $ as CfKvNamespace, a0 as CfLogfwdr, a1 as CfLogfwdrBinding, a2 as CfMTlsCertificate, a3 as CfMediaBinding, a4 as CfModule, a5 as CfModuleType, a6 as CfPipeline, a7 as CfPlacement, a8 as CfQueue, a9 as CfR2Bucket, aa as CfRateLimit, ab as CfScriptFormat, ac as CfSecretsStoreSecrets, ad as CfSendEmailBindings, ae as CfService, af as CfStreamBinding, ag as CfTextBlobBindings, ah as CfUnsafe, ai as CfUnsafeBinding, aj as CfUserLimits, ak as CfVars, al as CfVectorize, am as CfVersionMetadataBinding, an as CfVpcNetwork, ao as CfVpcService, ap as CfWasmModuleBindings, aq as CfWorkerContext, ar as CfWorkerInit, as as CfWorkerLoader, at as CfWorkerSourceMap, au as CfWorkflow, av as CloudchamberConfig, aw as ConfigFields, ax as ConfigModuleRuleType, ay as ConfiguredExport, az as ConnectHandler, aA as ContainerEngine, aB as ContainerObservability, aC as CustomDomainRoute, aD as DispatchNamespaceOutbound, aE as DockerConfiguration, aF as DurableObjectBindings, aG as DurableObjectCodeUpdateStrategy, aH as DurableObjectContainerImage, aI as DurableObjectExportStorage, aJ as DurableObjectMigration, aK as DurableObjectsConfig, aL as ENVIRONMENT_TAG_PREFIX, aM as Entry, aN as Environment, aO as EnvironmentNonInheritable, aP as ExportsReconciliationEntryBase, aQ as ExportsReconciliationErrorDetail, aR as ExportsReconciliationInfo, aS as ExportsReconciliationRename, aT as ExportsReconciliationResult, aU as ExportsReconciliationTransfer, aV as ExportsReconciliationTransferPending, aW as ExportsReconciliationWarning, aX as FetchKVGetValueFetcher, aY as FetchListResultFetcher, aZ as FetchPagedListResultFetcher, a_ as FetchResult, a$ as FetchResultFetcher, b0 as File, b1 as Hook, b2 as HookValues, b3 as INHERIT_SYMBOL, b4 as JSON_CONFIG_FORMATS, b5 as Json, b6 as LOGGER_LEVELS, b7 as LegacyAssetPaths, b8 as LocalS3Credentials, b9 as LogLevel, ba as LoggerLevel, bb as NodeJSCompatMode, bc as Observability, bd as PATH_TO_DEPLOY_CONFIG, be as PreviewsConfig, bf as RawDevConfig, bg as RawDurableObjectsConfig, bh as RawEnvironment, a as RedirectedRawConfig, bi as Rule, bj as SERVICE_TAG_PREFIX, bk as ServiceFetch, bl as ServiceMetadataRes, bm as StartDevWorkerInput, bn as StreamingTailConsumer, bo as TcpConnectHandler, bp as Trigger, bq as UdpConnectHandler, br as UserLimits, bs as ValidatedAssetsOptions, bt as WorkflowBinding, bu as ZoneIdRoute, bv as ZoneNameRoute, bw as addAuthorizationHeader, bx as defaultWranglerConfig, by as extractAccountTag, bz as extractWAFBlockRayId, bA as fetchInternalBase, bB as fetchKVGetValueBase, bC as fetchListResultBase, bD as fetchResultBase, bE as getBrowserRenderingHeadfulFromEnv, bF as getBuildConditionsFromEnv, bG as getBuildPlatformFromEnv, bH as getC3CommandFromEnv, bI as getCIGeneratePreviewAlias, bJ as getCIMatchTag, bK as getCIOverrideName, bL as getCIOverrideNetworkModeHost, bM as getCfFetchEnabledFromEnv, bN as getCfFetchPathFromEnv, bO as getCloudflareApiBaseUrl, bP as getCloudflareApiEnvironmentFromEnv, bQ as getCloudflareComplianceRegion, bR as getCloudflareContainerRegistry, bS as getCloudflareEnv, bT as getCloudflareIncludeProcessEnvFromEnv, bU as getCloudflareLoadDevVarsFromDotEnv, bV as getCloudflaredPathFromEnv, bW as getComplianceRegionSubdomain, bX as getD1ExtraLocationChoices, bY as getDisableConfigWatching, bZ as getLocalExplorerEnabledFromEnv, b_ as getLocalObservabilityEnabledFromEnv, b$ as getNoSkillsUpdatePromptsFromEnv, c0 as getOpenNextDeployFromEnv, c1 as getOutputFileDirectoryFromEnv, c2 as getOutputFilePathFromEnv, c3 as getRegistryPath, c4 as getSanitizeLogs, c5 as getSubdomainMixedStateCheckDisabled, c6 as getTraceHeader, c7 as getWorkersCIBranchName, c8 as getWranglerCacheDirFromEnv, c9 as getWranglerHideBanner, ca as getWranglerSendErrorReportsFromEnv, cb as getWranglerSendMetricsFromEnv, cc as hasCursor, cd as hasMorePages, ce as isDoNotTrackEnabled, cf as isWAFBlockResponse, cg as maybeAddTraceHeader, ch as parseRetryAfterMs, ci as parseRetryAfterValue, cj as performApiFetchBase, ck as renderError, cl as throwFetchError, cm as truncate } from './compliance-BRDsvbha.mjs';
|
|
3
3
|
import * as jsoncParser from 'jsonc-parser';
|
|
4
4
|
import { UserError, TelemetryMessage } from './errors.mjs';
|
|
5
5
|
export { CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, createFatalError } from './errors.mjs';
|
|
@@ -215,12 +215,22 @@ declare function getDurableObjectClassNameToUseSQLiteMap(migrations: Config["mig
|
|
|
215
215
|
*/
|
|
216
216
|
declare function validateDurableObjectContainerApplications(config: Pick<Config, "migrations" | "exports" | "durable_objects"> & {
|
|
217
217
|
containers?: ContainerApp[];
|
|
218
|
-
}, containers?: DurableObjectContainerApp[]): void;
|
|
218
|
+
}, containers?: DurableObjectContainerApp[], configFileName?: string): void;
|
|
219
219
|
|
|
220
220
|
type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows" | "vpc_services">;
|
|
221
221
|
|
|
222
222
|
declare function configFormat(configPath: string | undefined): "json" | "jsonc" | "toml" | "none";
|
|
223
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Returns the user-facing configuration filename.
|
|
225
|
+
*
|
|
226
|
+
* Redirected and generated configurations should pass `userConfigPath` so
|
|
227
|
+
* diagnostics refer to the file the user can actually edit.
|
|
228
|
+
*
|
|
229
|
+
* @param configPath Resolved configuration path used internally.
|
|
230
|
+
* @param userConfigPath Original user-authored configuration path.
|
|
231
|
+
* @returns The configuration filename to display.
|
|
232
|
+
*/
|
|
233
|
+
declare function configFileName(configPath: string | undefined, userConfigPath?: string): string;
|
|
224
234
|
declare function formatConfigSnippet(snippet: RawConfig, configPath: Config["configPath"], formatted?: boolean): string;
|
|
225
235
|
type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
|
226
236
|
config?: string;
|
|
@@ -930,6 +940,55 @@ declare function spawnCloudflared(args: string[], options?: {
|
|
|
930
940
|
logger?: Pick<Logger, "debug" | "log" | "warn">;
|
|
931
941
|
}): Promise<ChildProcess>;
|
|
932
942
|
|
|
943
|
+
type CliCommands = {
|
|
944
|
+
deploy: string;
|
|
945
|
+
preview: string;
|
|
946
|
+
versionsUpload: string;
|
|
947
|
+
versionsDeploy: string;
|
|
948
|
+
/**
|
|
949
|
+
* Formats a command that deploys a version at the given traffic percentage.
|
|
950
|
+
*
|
|
951
|
+
* @param n Traffic percentage assigned to the version.
|
|
952
|
+
* @returns The formatted deployment command.
|
|
953
|
+
*/
|
|
954
|
+
versionsDeployAt: (n: number) => string;
|
|
955
|
+
triggersDeploy: string;
|
|
956
|
+
d1List: string;
|
|
957
|
+
d1Delete: string;
|
|
958
|
+
queuesCreate: string;
|
|
959
|
+
secretPut: string;
|
|
960
|
+
versionsSecretPut: string;
|
|
961
|
+
containerRegistryConfigure: string;
|
|
962
|
+
};
|
|
963
|
+
type CliConfigFields = {
|
|
964
|
+
workersDev: string;
|
|
965
|
+
containerObservabilityTargetPercentage: string;
|
|
966
|
+
containerObservabilityTargetCount: string;
|
|
967
|
+
};
|
|
968
|
+
type CliPresentation = {
|
|
969
|
+
cliName: string;
|
|
970
|
+
displayName: string;
|
|
971
|
+
/** A bare config-file label; callers should supply a determiner such as "your". */
|
|
972
|
+
displayConfigFileName: string;
|
|
973
|
+
configFieldAssignmentSeparator: " = " | ": ";
|
|
974
|
+
commands: CliCommands;
|
|
975
|
+
configFields: CliConfigFields;
|
|
976
|
+
};
|
|
977
|
+
type CliPresentationOverrides = Partial<Omit<CliPresentation, "commands" | "configFields">> & {
|
|
978
|
+
commands?: Partial<CliCommands>;
|
|
979
|
+
configFields?: Partial<CliConfigFields>;
|
|
980
|
+
};
|
|
981
|
+
declare const WRANGLER_CLI_PRESENTATION: CliPresentation;
|
|
982
|
+
declare const CF_CLI_PRESENTATION: CliPresentationOverrides;
|
|
983
|
+
/**
|
|
984
|
+
* Resolves consumer-specific CLI copy while retaining Wrangler-compatible
|
|
985
|
+
* defaults for commands the consumer does not implement.
|
|
986
|
+
*
|
|
987
|
+
* @param overrides Consumer-specific names and command spellings.
|
|
988
|
+
* @returns A complete presentation configuration.
|
|
989
|
+
*/
|
|
990
|
+
declare function resolveCliPresentation(overrides?: CliPresentationOverrides): CliPresentation;
|
|
991
|
+
|
|
933
992
|
type NpmVersionCheckResult = {
|
|
934
993
|
status: "up-to-date";
|
|
935
994
|
} | {
|
|
@@ -1412,4 +1471,4 @@ declare function compareMigrationPaths(a: string, b: string): number;
|
|
|
1412
1471
|
*/
|
|
1413
1472
|
declare const friendlyBindingNames: Record<ConfigBindingFieldName, string>;
|
|
1414
1473
|
|
|
1415
|
-
export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager, CfTailConsumer, CompatDate, ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, type ConvertBindingsOptions, type D1MigrationFile, DEFAULT_COMPAT_DATE, Diagnostics, type DurableObjectContainerApp, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, type GetD1MigrationFilesOptions, type LiveDurableObjectExport, type Location, Logger, type Message, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type OutputEntry, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, type PrintBindingsOptions, RawConfig, type ResolveConfigPathOptions, type ResolvedDurableObjectContainerApp, Route, TailConsumer, TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadata, WorkerMetadataBinding, WorkflowExport, YarnPackageManager, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, configFileName, configFormat, constructWranglerConfig, convertConfigToBindings, createConfigCache, experimental_patchConfig, experimental_readRawConfig, extractBindingsOfType, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getD1MigrationFiles, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getResolvedDurableObjectContainerApps, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isDockerfile, isDurableObjectContainerApp, isInteractive, isLiveDurableObjectExport, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, printBindings, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveNamedTunnel, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validateBindingRemoteSetting, validateDurableObjectContainerApplications, validatePagesConfig, writeOutput };
|
|
1474
|
+
export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager, CF_CLI_PRESENTATION, CfTailConsumer, type CliCommands, type CliConfigFields, type CliPresentation, type CliPresentationOverrides, CompatDate, ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, type ConvertBindingsOptions, type D1MigrationFile, DEFAULT_COMPAT_DATE, Diagnostics, type DurableObjectContainerApp, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, type GetD1MigrationFilesOptions, type LiveDurableObjectExport, type Location, Logger, type Message, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type OutputEntry, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, type PrintBindingsOptions, RawConfig, type ResolveConfigPathOptions, type ResolvedDurableObjectContainerApp, Route, TailConsumer, TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WRANGLER_CLI_PRESENTATION, WorkerEntrypointExport, WorkerMetadata, WorkerMetadataBinding, WorkflowExport, YarnPackageManager, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, configFileName, configFormat, constructWranglerConfig, convertConfigToBindings, createConfigCache, experimental_patchConfig, experimental_readRawConfig, extractBindingsOfType, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getD1MigrationFiles, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getResolvedDurableObjectContainerApps, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isDockerfile, isDurableObjectContainerApp, isInteractive, isLiveDurableObjectExport, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, printBindings, readFileSync, readFileSyncToBuffer, resolveCliPresentation, resolveContainerClassName, resolveNamedTunnel, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validateBindingRemoteSetting, validateDurableObjectContainerApplications, validatePagesConfig, writeOutput };
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { createRequire } from 'node:module';
|
|
|
2
2
|
export { MetricsRegistry } from './chunk-6G6FCMPX.mjs';
|
|
3
3
|
import { external_exports } from './chunk-CAPCWVOB.mjs';
|
|
4
4
|
export { formatZodError } from './chunk-CAPCWVOB.mjs';
|
|
5
|
-
import { isRedirectedRawConfig, configFileName, formatConfigSnippet, partitionExports, getDurableObjectExports, getContainerNameToClassNameMap, parsePackageJSON, readFileSync, ParseError, parseJSON, APIError, isLiveDurableObjectExport, dir, parseTOML, modify, applyEdits, format, stringify, parseJSONC } from './chunk-
|
|
6
|
-
export { APIError, ENVIRONMENT_TAG_PREFIX, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, configFileName, configFormat, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getResolvedDurableObjectContainerApps, hasDurableObjectExports, indexLocation, isDurableObjectContainerApp, isLiveDurableObjectExport, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveWranglerConfigPath, searchLocation, validateDurableObjectContainerApplications } from './chunk-
|
|
5
|
+
import { isRedirectedRawConfig, configFileName, formatConfigSnippet, partitionExports, getDurableObjectExports, getContainerNameToClassNameMap, parsePackageJSON, readFileSync, ParseError, parseJSON, APIError, isLiveDurableObjectExport, dir, parseTOML, modify, applyEdits, format, stringify, parseJSONC } from './chunk-2HLTAS5V.mjs';
|
|
6
|
+
export { APIError, ENVIRONMENT_TAG_PREFIX, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, configFileName, configFormat, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getResolvedDurableObjectContainerApps, hasDurableObjectExports, indexLocation, isDurableObjectContainerApp, isLiveDurableObjectExport, isRedirectedConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveWranglerConfigPath, searchLocation, validateDurableObjectContainerApplications } from './chunk-2HLTAS5V.mjs';
|
|
7
7
|
export { NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, getTodaysCompatDate, isCompatDate, isNodejsCompatDefaultOn, resolveNodejsCompat, stripRedundantNodejsCompatFlags } from './chunk-2Q77CKVU.mjs';
|
|
8
8
|
import { getCloudflareEnv, getCloudflareContainerRegistry, getCloudflareApiBaseUrl, getTraceHeader, getCloudflaredPathFromEnv, getOutputFilePathFromEnv, getOutputFileDirectoryFromEnv, getCIOverrideName, getWranglerCacheDirFromEnv } from './chunk-FR75DWDU.mjs';
|
|
9
9
|
export { COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareContainerRegistry, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getLocalExplorerEnabledFromEnv, getLocalObservabilityEnabledFromEnv, getNoSkillsUpdatePromptsFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, isDoNotTrackEnabled } from './chunk-FR75DWDU.mjs';
|
|
@@ -12143,6 +12143,77 @@ The local dev server started at ${origin.href}
|
|
|
12143
12143
|
return new Error(errorMessage);
|
|
12144
12144
|
}
|
|
12145
12145
|
__name(createTunnelStartupError, "createTunnelStartupError");
|
|
12146
|
+
|
|
12147
|
+
// src/cli-presentation.ts
|
|
12148
|
+
var WRANGLER_COMMANDS = {
|
|
12149
|
+
deploy: "wrangler deploy",
|
|
12150
|
+
preview: "wrangler preview",
|
|
12151
|
+
versionsUpload: "wrangler versions upload",
|
|
12152
|
+
versionsDeploy: "wrangler versions deploy",
|
|
12153
|
+
versionsDeployAt: /* @__PURE__ */ __name((n2) => `wrangler versions deploy <new-version-id>@${n2}%`, "versionsDeployAt"),
|
|
12154
|
+
triggersDeploy: "wrangler triggers deploy",
|
|
12155
|
+
d1List: "wrangler d1 list",
|
|
12156
|
+
d1Delete: "wrangler d1 delete",
|
|
12157
|
+
queuesCreate: "wrangler queues create",
|
|
12158
|
+
secretPut: "wrangler secret put",
|
|
12159
|
+
versionsSecretPut: "wrangler versions secret put",
|
|
12160
|
+
containerRegistryConfigure: "wrangler containers registries configure"
|
|
12161
|
+
};
|
|
12162
|
+
var WRANGLER_CONFIG_FIELDS = {
|
|
12163
|
+
workersDev: "workers_dev",
|
|
12164
|
+
containerObservabilityTargetPercentage: "target_instance_percentage",
|
|
12165
|
+
containerObservabilityTargetCount: "target_instance_count"
|
|
12166
|
+
};
|
|
12167
|
+
var WRANGLER_CLI_PRESENTATION = {
|
|
12168
|
+
cliName: "wrangler",
|
|
12169
|
+
displayName: "Wrangler",
|
|
12170
|
+
displayConfigFileName: "Wrangler config file",
|
|
12171
|
+
configFieldAssignmentSeparator: " = ",
|
|
12172
|
+
commands: WRANGLER_COMMANDS,
|
|
12173
|
+
configFields: WRANGLER_CONFIG_FIELDS
|
|
12174
|
+
};
|
|
12175
|
+
var CF_CLI_PRESENTATION = {
|
|
12176
|
+
cliName: "cf",
|
|
12177
|
+
displayName: "cf",
|
|
12178
|
+
displayConfigFileName: "cloudflare.config.ts",
|
|
12179
|
+
configFieldAssignmentSeparator: ": ",
|
|
12180
|
+
configFields: {
|
|
12181
|
+
workersDev: "workersDev",
|
|
12182
|
+
containerObservabilityTargetPercentage: "targetInstancePercentage",
|
|
12183
|
+
containerObservabilityTargetCount: "targetInstanceCount"
|
|
12184
|
+
},
|
|
12185
|
+
commands: {
|
|
12186
|
+
deploy: "cf deploy",
|
|
12187
|
+
preview: "cf previews deploy",
|
|
12188
|
+
versionsUpload: "cf workers versions create",
|
|
12189
|
+
versionsDeploy: "cf workers deployments create",
|
|
12190
|
+
versionsDeployAt: /* @__PURE__ */ __name((n2) => `cf workers deployments create --worker <worker-name> --strategy percentage --versions '[{"version_id":"<new-version-id>","percentage":${n2}}]'`, "versionsDeployAt"),
|
|
12191
|
+
triggersDeploy: "cf workers triggers deploy",
|
|
12192
|
+
d1List: "cf d1 list",
|
|
12193
|
+
d1Delete: "cf d1 delete",
|
|
12194
|
+
queuesCreate: "cf queues create",
|
|
12195
|
+
secretPut: "cf workers secrets update",
|
|
12196
|
+
versionsSecretPut: "cf workers secrets update",
|
|
12197
|
+
containerRegistryConfigure: "cf containers registries create"
|
|
12198
|
+
}
|
|
12199
|
+
};
|
|
12200
|
+
function resolveCliPresentation(overrides) {
|
|
12201
|
+
return {
|
|
12202
|
+
cliName: overrides?.cliName ?? WRANGLER_CLI_PRESENTATION.cliName,
|
|
12203
|
+
displayName: overrides?.displayName ?? WRANGLER_CLI_PRESENTATION.displayName,
|
|
12204
|
+
displayConfigFileName: overrides?.displayConfigFileName ?? WRANGLER_CLI_PRESENTATION.displayConfigFileName,
|
|
12205
|
+
configFieldAssignmentSeparator: overrides?.configFieldAssignmentSeparator ?? WRANGLER_CLI_PRESENTATION.configFieldAssignmentSeparator,
|
|
12206
|
+
commands: {
|
|
12207
|
+
...WRANGLER_COMMANDS,
|
|
12208
|
+
...overrides?.commands
|
|
12209
|
+
},
|
|
12210
|
+
configFields: {
|
|
12211
|
+
...WRANGLER_CONFIG_FIELDS,
|
|
12212
|
+
...overrides?.configFields
|
|
12213
|
+
}
|
|
12214
|
+
};
|
|
12215
|
+
}
|
|
12216
|
+
__name(resolveCliPresentation, "resolveCliPresentation");
|
|
12146
12217
|
var UPDATE_CHECK_TIMEOUT_MS = 3e3;
|
|
12147
12218
|
var CACHE_TTL_MS = 60 * 60 * 1e3;
|
|
12148
12219
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/";
|
|
@@ -12633,4 +12704,4 @@ __name(leadingMigrationNumber, "leadingMigrationNumber");
|
|
|
12633
12704
|
// src/index.ts
|
|
12634
12705
|
var friendlyBindingNames2 = friendlyBindingNames;
|
|
12635
12706
|
|
|
12636
|
-
export { ARTIFACTS_EVENT_TYPES, BunPackageManager, DEFAULT_COMPAT_DATE, Diagnostics, LOGGER_LEVELS, NpmPackageManager, NubPackageManager, PatchConfigError, PnpmPackageManager, YarnPackageManager, addAuthorizationHeader, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, constructWranglerConfig, convertConfigToBindings, createConfigCache, defaultWranglerConfig, experimental_patchConfig, extractAccountTag, extractBindingsOfType, extractWAFBlockRayId, fetchInternalBase, fetchKVGetValueBase, fetchLatestNpmVersion, fetchListResultBase, fetchResultBase, formatTime, friendlyBindingNames2 as friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getD1MigrationFiles, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasCursor, hasMorePages, hasProperty, isCI, isDockerfile, isInteractive, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, isWAFBlockResponse, mapWorkerMetadataBindings, maybeAddTraceHeader, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseRetryAfterMs, parseRetryAfterValue, performApiFetchBase, printBindings, renderError, resolveNamedTunnel, retryOnAPIFailure, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, throwFetchError, toUrlPath, toValidWorkerName, truncate, validateBindingRemoteSetting, validatePagesConfig, writeOutput };
|
|
12707
|
+
export { ARTIFACTS_EVENT_TYPES, BunPackageManager, CF_CLI_PRESENTATION, DEFAULT_COMPAT_DATE, Diagnostics, LOGGER_LEVELS, NpmPackageManager, NubPackageManager, PatchConfigError, PnpmPackageManager, WRANGLER_CLI_PRESENTATION, YarnPackageManager, addAuthorizationHeader, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, constructWranglerConfig, convertConfigToBindings, createConfigCache, defaultWranglerConfig, experimental_patchConfig, extractAccountTag, extractBindingsOfType, extractWAFBlockRayId, fetchInternalBase, fetchKVGetValueBase, fetchLatestNpmVersion, fetchListResultBase, fetchResultBase, formatTime, friendlyBindingNames2 as friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getD1MigrationFiles, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasCursor, hasMorePages, hasProperty, isCI, isDockerfile, isInteractive, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, isWAFBlockResponse, mapWorkerMetadataBindings, maybeAddTraceHeader, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseRetryAfterMs, parseRetryAfterValue, performApiFetchBase, printBindings, renderError, resolveCliPresentation, resolveNamedTunnel, retryOnAPIFailure, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, throwFetchError, toUrlPath, toValidWorkerName, truncate, validateBindingRemoteSetting, validatePagesConfig, writeOutput };
|