devflare 1.0.0-next.48 → 1.0.0-next.49
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/_chunks/{account-Cdo_cRNv.js → account-BI3WZMDy.js} +1 -1
- package/dist/_chunks/{build-artifacts-CaSTDXLE.js → build-artifacts-DU5V0J0Z.js} +3 -3
- package/dist/_chunks/{build-B6vCBDdQ.js → build-e0KR38-4.js} +1 -1
- package/dist/_chunks/{cli-Btoe8xx4.js → cli-DuUz10Mn.js} +17 -13
- package/dist/_chunks/{command-utils-C48hJMln.js → command-utils-DA0Qx9_K.js} +1 -1
- package/dist/_chunks/{compiler-Dc97FkBg.js → compiler-Zw16C9Pi.js} +1 -1
- package/dist/_chunks/{config-DQ_uWv37.js → config-Brju62xy.js} +2 -2
- package/dist/_chunks/{config-path-ePwIvHNX.js → config-path-DaL1ylZ_.js} +1 -1
- package/dist/_chunks/{deploy-B0l0VWNl.js → deploy-B-Kku1Vk.js} +6 -5
- package/dist/_chunks/{dev-DaREvpZf.js → dev-D4e_RRZn.js} +3 -3
- package/dist/_chunks/{doctor-lFlh-olK.js → doctor-jm_K4dxL.js} +2 -2
- package/dist/_chunks/{family-Dfb9VR9g.js → family-_9-mGSfO.js} +1 -1
- package/dist/_chunks/{loader-RZhqzsRJ.js → loader-Cr0_OWPy.js} +137 -2
- package/dist/_chunks/{login-DnyfffOC.js → login-FjTAAQbi.js} +1 -1
- package/dist/_chunks/{preview-resources-xziKCynb.js → preview-resources-CGMBjsYB.js} +1 -1
- package/dist/_chunks/{previews-wI-pW6HM.js → previews-C7hs9-BT.js} +6 -6
- package/dist/_chunks/{productions-BpROdhLN.js → productions-T9Als4fE.js} +3 -3
- package/dist/_chunks/{routes-C4S8x2HU.js → routes-BFYCqHb-.js} +1 -1
- package/dist/_chunks/{runtime-FvXvfuZ2.js → runtime-DL-Nz3k8.js} +1 -1
- package/dist/_chunks/{tail-BKLtjVi4.js → tail-IY-ijYmv.js} +2 -2
- package/dist/_chunks/{types-BWLYVp3B.js → types-DoKsMYfm.js} +2 -2
- package/dist/_chunks/{vite-D5dfVb6G.js → vite-CGtVNf5E.js} +35 -3
- package/dist/_chunks/{worker-BUGz2bVG.js → worker-BEZI4od1.js} +3 -3
- package/dist/browser.d.ts +10 -2
- package/dist/browser.d.ts.map +1 -1
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/core.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/cron.d.ts +19 -0
- package/dist/config/cron.d.ts.map +1 -0
- package/dist/config/schema-env.d.ts +10 -2
- package/dist/config/schema-env.d.ts.map +1 -1
- package/dist/config/schema-runtime.d.ts +9 -1
- package/dist/config/schema-runtime.d.ts.map +1 -1
- package/dist/config/schema.d.ts +15 -3
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/middleware.d.ts +10 -0
- package/dist/runtime/middleware.d.ts.map +1 -1
- package/dist/sveltekit/index.js +1 -1
- package/dist/test/index.js +4 -3
- package/dist/test/scheduled.d.ts.map +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/worker-entry/composed-worker.d.ts.map +1 -1
- package/dist/worker-entry/validate-fetch-style.d.ts +12 -0
- package/dist/worker-entry/validate-fetch-style.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWor
|
|
|
3
3
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
4
4
|
import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-DiK6wPJ5.js";
|
|
5
5
|
import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
6
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
6
|
+
import { n as getConfiguredAccountId } from "./command-utils-DA0Qx9_K.js";
|
|
7
7
|
//#region src/cli/commands/account.ts
|
|
8
8
|
const ACCOUNT_SUBCOMMANDS = [
|
|
9
9
|
"info",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
3
|
+
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-Zw16C9Pi.js";
|
|
4
4
|
import { f as logLine } from "./ui-BUoZApvE.js";
|
|
5
5
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
6
6
|
import { t as resolvePackageSpecifier } from "./resolve-package-qizBfCIm.js";
|
|
7
|
-
import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-
|
|
7
|
+
import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-CGtVNf5E.js";
|
|
8
8
|
import { t as bundleWorkerEntry } from "./worker-bundler-dTTnYU3n.js";
|
|
9
9
|
import { t as detectViteProject } from "./vite-utils-OVLMV605.js";
|
|
10
10
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
2
|
-
import { t as prepareBuildArtifacts } from "./build-artifacts-
|
|
2
|
+
import { t as prepareBuildArtifacts } from "./build-artifacts-DU5V0J0Z.js";
|
|
3
3
|
//#region src/cli/commands/build.ts
|
|
4
4
|
async function runBuildCommand(parsed, logger, options) {
|
|
5
5
|
const theme = createCliTheme(parsed.options);
|
|
@@ -415,7 +415,11 @@ const CORE_HELP_PAGES = [
|
|
|
415
415
|
entry("devflare secrets --local --store store-123 --list", "List names in one local store"),
|
|
416
416
|
entry("devflare secrets --local --store store-123 --name api-token --delete", "Delete one local secret value")
|
|
417
417
|
],
|
|
418
|
-
notes: [
|
|
418
|
+
notes: [
|
|
419
|
+
"Local values are stored in `.devflare/secrets.local.json`, which is ignored by the repository template.",
|
|
420
|
+
"Command output prints store/name references only; it does not echo secret values.",
|
|
421
|
+
"Runtime secrets are local-only here: set production secret values with `wrangler secret put` or the Cloudflare dashboard. Devflare never sends secret values to Cloudflare — deploy emits Secrets Store references only."
|
|
422
|
+
]
|
|
419
423
|
},
|
|
420
424
|
{
|
|
421
425
|
path: ["types"],
|
|
@@ -1089,50 +1093,50 @@ async function runInit(parsed, logger, options) {
|
|
|
1089
1093
|
return runInitCommand(parsed, logger, options);
|
|
1090
1094
|
}
|
|
1091
1095
|
async function runDev(parsed, logger, options) {
|
|
1092
|
-
const { runDevCommand } = await import("./dev-
|
|
1096
|
+
const { runDevCommand } = await import("./dev-D4e_RRZn.js");
|
|
1093
1097
|
return runDevCommand(parsed, logger, options);
|
|
1094
1098
|
}
|
|
1095
1099
|
async function runBuild(parsed, logger, options) {
|
|
1096
|
-
const { runBuildCommand } = await import("./build-
|
|
1100
|
+
const { runBuildCommand } = await import("./build-e0KR38-4.js");
|
|
1097
1101
|
return runBuildCommand(parsed, logger, options);
|
|
1098
1102
|
}
|
|
1099
1103
|
async function runDeploy(parsed, logger, options) {
|
|
1100
|
-
const { runDeployCommand } = await import("./deploy-
|
|
1104
|
+
const { runDeployCommand } = await import("./deploy-B-Kku1Vk.js");
|
|
1101
1105
|
return runDeployCommand(parsed, logger, {
|
|
1102
1106
|
...options,
|
|
1103
1107
|
requireExplicitDeployTarget: true
|
|
1104
1108
|
});
|
|
1105
1109
|
}
|
|
1106
1110
|
async function runTypes(parsed, logger, options) {
|
|
1107
|
-
const { runTypesCommand } = await import("./types-
|
|
1111
|
+
const { runTypesCommand } = await import("./types-DoKsMYfm.js");
|
|
1108
1112
|
return runTypesCommand(parsed, logger, options);
|
|
1109
1113
|
}
|
|
1110
1114
|
async function runDoctor(parsed, logger, options) {
|
|
1111
|
-
const { runDoctorCommand } = await import("./doctor-
|
|
1115
|
+
const { runDoctorCommand } = await import("./doctor-jm_K4dxL.js");
|
|
1112
1116
|
return runDoctorCommand(parsed, logger, options);
|
|
1113
1117
|
}
|
|
1114
1118
|
async function runConfig(parsed, logger, options) {
|
|
1115
|
-
const { runConfigCommand } = await import("./config-
|
|
1119
|
+
const { runConfigCommand } = await import("./config-Brju62xy.js");
|
|
1116
1120
|
return runConfigCommand(parsed, logger, options);
|
|
1117
1121
|
}
|
|
1118
1122
|
async function runAccount(parsed, logger, options) {
|
|
1119
|
-
const { runAccountCommand } = await import("./account-
|
|
1123
|
+
const { runAccountCommand } = await import("./account-BI3WZMDy.js");
|
|
1120
1124
|
return runAccountCommand(parsed, logger, options);
|
|
1121
1125
|
}
|
|
1122
1126
|
async function runLogin(parsed, logger, options) {
|
|
1123
|
-
const { runLoginCommand } = await import("./login-
|
|
1127
|
+
const { runLoginCommand } = await import("./login-FjTAAQbi.js");
|
|
1124
1128
|
return runLoginCommand(parsed, logger, options);
|
|
1125
1129
|
}
|
|
1126
1130
|
async function runPreviews(parsed, logger, options) {
|
|
1127
|
-
const { runPreviewsCommand } = await import("./previews-
|
|
1131
|
+
const { runPreviewsCommand } = await import("./previews-C7hs9-BT.js");
|
|
1128
1132
|
return runPreviewsCommand(parsed, logger, options);
|
|
1129
1133
|
}
|
|
1130
1134
|
async function runProductions(parsed, logger, options) {
|
|
1131
|
-
const { runProductionsCommand } = await import("./productions-
|
|
1135
|
+
const { runProductionsCommand } = await import("./productions-T9Als4fE.js");
|
|
1132
1136
|
return runProductionsCommand(parsed, logger, options);
|
|
1133
1137
|
}
|
|
1134
1138
|
async function runWorker(parsed, logger, options) {
|
|
1135
|
-
const { runWorkerCommand } = await import("./worker-
|
|
1139
|
+
const { runWorkerCommand } = await import("./worker-BEZI4od1.js");
|
|
1136
1140
|
return runWorkerCommand(parsed, logger, options);
|
|
1137
1141
|
}
|
|
1138
1142
|
async function runToken(parsed, logger, options) {
|
|
@@ -1144,7 +1148,7 @@ async function runSecrets(parsed, logger, options) {
|
|
|
1144
1148
|
return runSecretsCommand(parsed, logger, options);
|
|
1145
1149
|
}
|
|
1146
1150
|
async function runTail(parsed, logger, options) {
|
|
1147
|
-
const { runTailCommand } = await import("./tail-
|
|
1151
|
+
const { runTailCommand } = await import("./tail-IY-ijYmv.js");
|
|
1148
1152
|
return runTailCommand(parsed, logger, options);
|
|
1149
1153
|
}
|
|
1150
1154
|
async function runAI() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveConfigPath, r as loadConfig } from "./loader-
|
|
1
|
+
import { i as resolveConfigPath, r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
3
3
|
//#region src/cli/command-utils.ts
|
|
4
4
|
function asOptionalString(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { C as browserBindingSchema, _ as normalizeSecretsStoreBinding, a as normalizeD1Binding, b as normalizeVpcServiceBinding, c as normalizeFlagshipBinding, d as normalizeKVBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, r as getSingleBrowserBindingName, s as normalizeDispatchNamespaceBinding, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding, y as normalizeVpcNetworkBinding } from "./schema-normalization-BCwTLTGp.js";
|
|
3
3
|
import { n as toWranglerSecretsConfig } from "./local-dev-vars-CTSa-wvF.js";
|
|
4
4
|
import { basename, isAbsolute, relative, resolve } from "pathe";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-
|
|
3
|
-
import { n as compileConfig, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-Cr0_OWPy.js";
|
|
3
|
+
import { n as compileConfig, t as compileBuildConfig } from "./compiler-Zw16C9Pi.js";
|
|
4
4
|
//#region src/cli/commands/config.ts
|
|
5
5
|
function isSupportedFormat(value) {
|
|
6
6
|
return value === "devflare" || value === "wrangler";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as resolvePreviewIdentifier, d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
3
|
+
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-Zw16C9Pi.js";
|
|
4
4
|
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
5
5
|
import { D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, T as getWorkersSubdomain, c as reconcilePreviewRegistry, w as getWorkerVersionDetail, x as formatWorkersDevUrl } from "./preview-registry-ClAbLTHH.js";
|
|
6
6
|
import { _ as yellowBold, d as green, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
7
7
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
8
8
|
import { t as resolvePackageSpecifier } from "./resolve-package-qizBfCIm.js";
|
|
9
|
-
import { t as asOptionalString } from "./command-utils-
|
|
10
|
-
import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-
|
|
9
|
+
import { t as asOptionalString } from "./command-utils-DA0Qx9_K.js";
|
|
10
|
+
import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-DU5V0J0Z.js";
|
|
11
11
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
12
|
-
import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-
|
|
12
|
+
import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-CGMBjsYB.js";
|
|
13
13
|
import { mkdir, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
14
14
|
import { basename, dirname, isAbsolute, join, resolve } from "pathe";
|
|
15
15
|
//#region src/config/service-bindings-validation.ts
|
|
@@ -1005,6 +1005,7 @@ async function runDeployCommand(parsed, logger, options) {
|
|
|
1005
1005
|
exitCode: 0
|
|
1006
1006
|
});
|
|
1007
1007
|
logger.success("Deployed successfully!");
|
|
1008
|
+
if (!preview && !isBranchScopedPreviewDeployment) logLine(logger, dim("Runtime secrets: set production secret values with `wrangler secret put` or the Cloudflare dashboard. Devflare manages local secret values (`devflare secrets --local`) and emits Secrets Store references only — it never sends secret values to Cloudflare.", theme));
|
|
1008
1009
|
return {
|
|
1009
1010
|
exitCode: 0,
|
|
1010
1011
|
output: structuredOutput
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as getDevflareDotenvPaths, d as resolveConfigEnvVars, o as EnvVarResolutionError } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, r as loadConfig } from "./loader-
|
|
2
|
+
import { i as resolveConfigPath, r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
3
3
|
import { g as normalizeR2Binding, n as getLocalKVNamespaceIdentifier, r as getSingleBrowserBindingName, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-BCwTLTGp.js";
|
|
4
4
|
import { t as applyLocalDevVarsToConfig } from "./local-dev-vars-CTSa-wvF.js";
|
|
5
5
|
import { a as cyanBold, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
6
6
|
import { clearLocalSendEmailBindings, setLocalSendEmailBindings } from "../utils/send-email.js";
|
|
7
|
-
import { C as buildSendEmailConfig, D as buildWorkerLoadersConfig, E as buildVersionMetadataConfig, O as buildWorkflowsConfig, S as buildSecretsStoreConfig, T as buildTailConsumersConfig, _ as buildMtlsCertificatesConfig, b as buildQueueProducers, c as buildAiSearchInstancesConfig, d as buildArtifactsConfig, f as buildDispatchNamespacesConfig, g as buildMediaConfig, h as buildImagesConfig, l as buildAiSearchNamespacesConfig, m as buildHyperdrivesConfig, n as getRouteDirectoryCandidate, p as buildFlagshipConfig, s as resolveServiceBindings, t as discoverRoutes, u as buildAnalyticsEngineConfig, v as buildPipelinesConfig, w as buildStreamConfig, x as buildRateLimitsConfig, y as buildQueueConsumers } from "./routes-
|
|
7
|
+
import { C as buildSendEmailConfig, D as buildWorkerLoadersConfig, E as buildVersionMetadataConfig, O as buildWorkflowsConfig, S as buildSecretsStoreConfig, T as buildTailConsumersConfig, _ as buildMtlsCertificatesConfig, b as buildQueueProducers, c as buildAiSearchInstancesConfig, d as buildArtifactsConfig, f as buildDispatchNamespacesConfig, g as buildMediaConfig, h as buildImagesConfig, l as buildAiSearchNamespacesConfig, m as buildHyperdrivesConfig, n as getRouteDirectoryCandidate, p as buildFlagshipConfig, s as resolveServiceBindings, t as discoverRoutes, u as buildAnalyticsEngineConfig, v as buildPipelinesConfig, w as buildStreamConfig, x as buildRateLimitsConfig, y as buildQueueConsumers } from "./routes-BFYCqHb-.js";
|
|
8
8
|
import { r as transformDurableObject } from "./durable-object-DMtH0XYX.js";
|
|
9
9
|
import { i as findFiles } from "./glob-CmQOvunB.js";
|
|
10
|
-
import { d as DEFAULT_FETCH_ENTRY_FILES, f as DEFAULT_QUEUE_ENTRY_FILES, g as discoverDurableObjectFiles, h as resolveWorkerSurfacePaths, i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject, p as DEFAULT_SCHEDULED_ENTRY_FILES, u as DEFAULT_EMAIL_ENTRY_FILES } from "./vite-
|
|
10
|
+
import { d as DEFAULT_FETCH_ENTRY_FILES, f as DEFAULT_QUEUE_ENTRY_FILES, g as discoverDurableObjectFiles, h as resolveWorkerSurfacePaths, i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject, p as DEFAULT_SCHEDULED_ENTRY_FILES, u as DEFAULT_EMAIL_ENTRY_FILES } from "./vite-CGtVNf5E.js";
|
|
11
11
|
import { a as createWorkerdBundlerDefaults, i as writeWorkerCompatibleBundle, n as ensureDebugShim, r as resolveWorkerCompatibleRolldownConfig, t as bundleWorkerEntry } from "./worker-bundler-dTTnYU3n.js";
|
|
12
12
|
import { t as bundleWorkflowEntrypointScript } from "./local-workflow-entrypoints-Cq_WJajd.js";
|
|
13
13
|
import { n as buildLocalSecretWrappedBindingConfig } from "./local-secrets-DMPkmOn3.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
1
|
+
import { r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
3
3
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
4
4
|
import { t as detectViteProject } from "./vite-utils-OVLMV605.js";
|
|
5
5
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
6
6
|
import { n as getGeneratedArtifactPaths } from "./generated-artifacts-dMJY4KAt.js";
|
|
7
|
-
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-
|
|
7
|
+
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-DaL1ylZ_.js";
|
|
8
8
|
import { basename, dirname, relative, resolve } from "pathe";
|
|
9
9
|
//#region src/cli/commands/doctor.ts
|
|
10
10
|
async function runDoctorCommand(parsed, logger, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as resolveConfigForEnvironment } from "./loader-
|
|
1
|
+
import { u as resolveConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
//#region src/cli/commands/previews-support/family.ts
|
|
3
3
|
function compareConfiguredWorkerFamilies(left, right) {
|
|
4
4
|
if (left.role === "primary" && right.role !== "primary") return -1;
|
|
@@ -40,6 +40,128 @@ const envConfigSchemaInner = z.lazy(() => z.object(rootConfigShape).omit({
|
|
|
40
40
|
accountId: true,
|
|
41
41
|
wsRoutes: true
|
|
42
42
|
}).partial().strict());
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/config/cron.ts
|
|
45
|
+
const CRON_FIELDS = [
|
|
46
|
+
{
|
|
47
|
+
name: "minute",
|
|
48
|
+
min: 0,
|
|
49
|
+
max: 59
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "hour",
|
|
53
|
+
min: 0,
|
|
54
|
+
max: 23
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "day-of-month",
|
|
58
|
+
min: 1,
|
|
59
|
+
max: 31
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "month",
|
|
63
|
+
min: 1,
|
|
64
|
+
max: 12,
|
|
65
|
+
names: {
|
|
66
|
+
JAN: 1,
|
|
67
|
+
FEB: 2,
|
|
68
|
+
MAR: 3,
|
|
69
|
+
APR: 4,
|
|
70
|
+
MAY: 5,
|
|
71
|
+
JUN: 6,
|
|
72
|
+
JUL: 7,
|
|
73
|
+
AUG: 8,
|
|
74
|
+
SEP: 9,
|
|
75
|
+
OCT: 10,
|
|
76
|
+
NOV: 11,
|
|
77
|
+
DEC: 12
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "day-of-week",
|
|
82
|
+
min: 0,
|
|
83
|
+
max: 7,
|
|
84
|
+
names: {
|
|
85
|
+
SUN: 0,
|
|
86
|
+
MON: 1,
|
|
87
|
+
TUE: 2,
|
|
88
|
+
WED: 3,
|
|
89
|
+
THU: 4,
|
|
90
|
+
FRI: 5,
|
|
91
|
+
SAT: 6
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
/** Resolve a single value token (number or 3-letter name) for a field. */
|
|
96
|
+
function resolveFieldValue(token, field) {
|
|
97
|
+
if (/^\d+$/.test(token)) {
|
|
98
|
+
const value = Number.parseInt(token, 10);
|
|
99
|
+
if (value < field.min || value > field.max) return null;
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
if (field.names) {
|
|
103
|
+
const named = field.names[token.toUpperCase()];
|
|
104
|
+
if (named !== void 0) return named;
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
/** Validate a single non-`*` element (a number, range, or stepped form). */
|
|
109
|
+
function isValidFieldElement(element, field) {
|
|
110
|
+
let base = element;
|
|
111
|
+
let step = null;
|
|
112
|
+
const slashIndex = element.indexOf("/");
|
|
113
|
+
if (slashIndex !== -1) {
|
|
114
|
+
base = element.slice(0, slashIndex);
|
|
115
|
+
step = element.slice(slashIndex + 1);
|
|
116
|
+
if (!/^\d+$/.test(step) || Number.parseInt(step, 10) < 1) return false;
|
|
117
|
+
}
|
|
118
|
+
if (base === "*") return true;
|
|
119
|
+
const dashIndex = base.indexOf("-");
|
|
120
|
+
if (dashIndex !== -1) {
|
|
121
|
+
const startToken = base.slice(0, dashIndex);
|
|
122
|
+
const endToken = base.slice(dashIndex + 1);
|
|
123
|
+
const start = resolveFieldValue(startToken, field);
|
|
124
|
+
const end = resolveFieldValue(endToken, field);
|
|
125
|
+
if (start === null || end === null) return false;
|
|
126
|
+
return start <= end;
|
|
127
|
+
}
|
|
128
|
+
return resolveFieldValue(base, field) !== null;
|
|
129
|
+
}
|
|
130
|
+
/** Validate a single cron field (which may be a comma-separated list). */
|
|
131
|
+
function isValidCronField(value, field) {
|
|
132
|
+
if (value.length === 0) return false;
|
|
133
|
+
const elements = value.split(",");
|
|
134
|
+
for (const element of elements) if (element.length === 0 || !isValidFieldElement(element, field)) return false;
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Returns true when `expression` is a valid Cloudflare 5-field cron expression.
|
|
139
|
+
*
|
|
140
|
+
* Accepts `*`, numbers, ranges (`1-5`), lists (`1,3,5`), steps (`*\/5`,
|
|
141
|
+
* `1-30/5`, `5/15`) and the 3-letter month (`JAN`-`DEC`) / weekday
|
|
142
|
+
* (`SUN`-`SAT`) names, with the correct per-field numeric ranges. Cloudflare
|
|
143
|
+
* cron has no seconds and no year field, so anything other than 5 fields is
|
|
144
|
+
* rejected.
|
|
145
|
+
*/
|
|
146
|
+
function isValidCronExpression(expression) {
|
|
147
|
+
if (typeof expression !== "string") return false;
|
|
148
|
+
const fields = expression.trim().split(/\s+/);
|
|
149
|
+
if (fields.length !== CRON_FIELDS.length) return false;
|
|
150
|
+
for (let index = 0; index < CRON_FIELDS.length; index++) if (!isValidCronField(fields[index], CRON_FIELDS[index])) return false;
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Human-readable message for an invalid cron expression, naming the bad value.
|
|
155
|
+
*/
|
|
156
|
+
function formatInvalidCronMessage(expression) {
|
|
157
|
+
return `Invalid cron expression "${expression}". Cloudflare cron triggers use 5 fields: minute (0-59) hour (0-23) day-of-month (1-31) month (1-12 or JAN-DEC) day-of-week (0-7 or SUN-SAT). Each field accepts *, numbers, ranges (1-5), lists (1,3,5) and steps (*/5).`;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Throw a descriptive error when `expression` is not a valid cron expression.
|
|
161
|
+
*/
|
|
162
|
+
function assertValidCronExpression(expression) {
|
|
163
|
+
if (!isValidCronExpression(expression)) throw new Error(formatInvalidCronMessage(expression));
|
|
164
|
+
}
|
|
43
165
|
/**
|
|
44
166
|
* Cloudflare Workers compatibility date schema.
|
|
45
167
|
* Must be in YYYY-MM-DD format (e.g., '2025-01-07').
|
|
@@ -77,8 +199,21 @@ const tailConsumerSchema = z.union([z.string().min(1), z.object({
|
|
|
77
199
|
}).strict()]);
|
|
78
200
|
/**
|
|
79
201
|
* Trigger configuration for scheduled (cron) events.
|
|
202
|
+
*
|
|
203
|
+
* Each cron expression is validated against the Cloudflare 5-field cron grammar
|
|
204
|
+
* at config-parse time, so a typo fails before deploy instead of silently never
|
|
205
|
+
* firing in production.
|
|
80
206
|
*/
|
|
81
|
-
const triggersSchema = z.object({ crons: z.array(z.string()).optional() }).
|
|
207
|
+
const triggersSchema = z.object({ crons: z.array(z.string()).optional() }).superRefine((triggers, ctx) => {
|
|
208
|
+
if (!triggers.crons) return;
|
|
209
|
+
triggers.crons.forEach((cron, index) => {
|
|
210
|
+
if (!isValidCronExpression(cron)) ctx.addIssue({
|
|
211
|
+
code: z.ZodIssueCode.custom,
|
|
212
|
+
path: ["crons", index],
|
|
213
|
+
message: formatInvalidCronMessage(cron)
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
}).optional();
|
|
82
217
|
/**
|
|
83
218
|
* Preview-specific Devflare behavior.
|
|
84
219
|
*/
|
|
@@ -1150,4 +1285,4 @@ var ConfigValidationError = class extends Error {
|
|
|
1150
1285
|
}
|
|
1151
1286
|
};
|
|
1152
1287
|
//#endregion
|
|
1153
|
-
export { ConfigResourceResolutionError as a, prepareConfigResourcesForDeploy as c, configSchema as d,
|
|
1288
|
+
export { ConfigResourceResolutionError as a, prepareConfigResourcesForDeploy as c, configSchema as d, assertValidCronExpression as f, resolveConfigPath as i, mergeConfigForEnvironment as l, ConfigValidationError as n, loadResolvedConfig as o, normalizeCompatibilityFlags as p, loadConfig as r, resolveResources as s, ConfigNotFoundError as t, resolveConfigForEnvironment as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
2
2
|
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
3
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
3
|
+
import { n as getConfiguredAccountId } from "./command-utils-DA0Qx9_K.js";
|
|
4
4
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
5
5
|
//#region src/cli/commands/login.ts
|
|
6
6
|
async function logResolvedAccount(cwd, logger, theme) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { l as mergeConfigForEnvironment } from "./loader-
|
|
2
|
+
import { l as mergeConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
3
3
|
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-BCwTLTGp.js";
|
|
4
4
|
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
5
5
|
import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-CsmVowJp.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as resolvePreviewIdentifier } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-
|
|
3
|
-
import { t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-Cr0_OWPy.js";
|
|
3
|
+
import { t as compileBuildConfig } from "./compiler-Zw16C9Pi.js";
|
|
4
4
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
5
5
|
import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-BUoZApvE.js";
|
|
6
|
-
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
6
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DA0Qx9_K.js";
|
|
7
7
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
8
|
-
import { t as cleanupPreviewScopedResources } from "./preview-resources-
|
|
9
|
-
import { t as findConfigPathsUnderDirectory } from "./config-path-
|
|
10
|
-
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-
|
|
8
|
+
import { t as cleanupPreviewScopedResources } from "./preview-resources-CGMBjsYB.js";
|
|
9
|
+
import { t as findConfigPathsUnderDirectory } from "./config-path-DaL1ylZ_.js";
|
|
10
|
+
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-_9-mGSfO.js";
|
|
11
11
|
//#region src/cli/preview-bindings.ts
|
|
12
12
|
function normalizeCell(value) {
|
|
13
13
|
return (value ?? "").trim().replace(/\s+/g, " ");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as loadConfig, t as ConfigNotFoundError } from "./loader-
|
|
1
|
+
import { r as loadConfig, t as ConfigNotFoundError } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
3
3
|
import { a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, m as red, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
4
4
|
import { i as findFiles } from "./glob-CmQOvunB.js";
|
|
5
|
-
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
5
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DA0Qx9_K.js";
|
|
6
6
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
7
|
-
import { i as collectConfiguredWorkerFamilies } from "./family-
|
|
7
|
+
import { i as collectConfiguredWorkerFamilies } from "./family-_9-mGSfO.js";
|
|
8
8
|
//#region src/cli/commands/productions.ts
|
|
9
9
|
const CLI_API_OPTIONS = { timeout: 1e4 };
|
|
10
10
|
const PRODUCTION_SUBCOMMANDS = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as configSchema } from "./loader-
|
|
1
|
+
import { d as configSchema } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { _ as normalizeSecretsStoreBinding, c as normalizeFlagshipBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, n as getLocalKVNamespaceIdentifier, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, s as normalizeDispatchNamespaceBinding, t as getLocalD1DatabaseIdentifier, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding } from "./schema-normalization-BCwTLTGp.js";
|
|
3
3
|
import { n as findDurableObjectClasses } from "./durable-object-DMtH0XYX.js";
|
|
4
4
|
import { r as SUPPORTED_WORKER_EXTENSIONS, t as transformWorkerEntrypoint } from "./worker-entrypoint-CQW77lG8.js";
|
|
@@ -547,4 +547,4 @@ function createRouteResolve(routes, initialEvent) {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
//#endregion
|
|
550
|
-
export {
|
|
550
|
+
export { ctx as _, assertExplicitQueueHandlerStyle as a, locals as b, defineFetchHandler as c, invokeFetchHandler as d, invokeFetchModule as f, sequence as g, resolveFetchHandler as h, assertExplicit2ArgStyle as i, defineQueueHandler as l, markWorkerStyle as m, invokeRouteModules as n, assertExplicitScheduledHandlerStyle as o, markResolveStyle as p, matchFetchRoute as r, createResolveFetch as s, createRouteResolve as t, defineScheduledHandler as u, env as v, vars as x, event as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
1
|
+
import { r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { p as getApiToken } from "./api-TzdliH-6.js";
|
|
3
3
|
import { d as green, f as logLine, g as yellow, h as whiteDim, m as red, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
4
|
-
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
4
|
+
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DA0Qx9_K.js";
|
|
5
5
|
//#region src/cli/commands/tail.ts
|
|
6
6
|
const CLOUDFLARE_API_BASE = "https://api.cloudflare.com/client/v4";
|
|
7
7
|
const TAIL_SUBPROTOCOL = "trace-v1";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
1
|
+
import { r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { o as normalizeDOBinding } from "./schema-normalization-BCwTLTGp.js";
|
|
3
3
|
import { n as bold, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
4
4
|
import { n as findDurableObjectClasses } from "./durable-object-DMtH0XYX.js";
|
|
5
5
|
import { i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN, t as DEFAULT_DO_PATTERN } from "./glob-CmQOvunB.js";
|
|
6
6
|
import { n as discoverEntrypointsAsync, t as resolvePackageSpecifier } from "./resolve-package-qizBfCIm.js";
|
|
7
7
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
8
|
-
import { r as resolveConfigCandidatePath } from "./config-path-
|
|
8
|
+
import { r as resolveConfigCandidatePath } from "./config-path-DaL1ylZ_.js";
|
|
9
9
|
import { readFile } from "node:fs/promises";
|
|
10
10
|
import { dirname, relative, resolve } from "pathe";
|
|
11
11
|
//#region src/cli/commands/type-generation/discovery.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, s as resolveResources, u as resolveConfigForEnvironment } from "./loader-
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, s as resolveResources, u as resolveConfigForEnvironment } from "./loader-Cr0_OWPy.js";
|
|
3
3
|
import { o as normalizeDOBinding } from "./schema-normalization-BCwTLTGp.js";
|
|
4
|
-
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths, n as compileConfig, o as rebaseWranglerConfigPaths, r as compileToProgrammaticConfig, t as compileBuildConfig } from "./compiler-
|
|
5
|
-
import {
|
|
4
|
+
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths, n as compileConfig, o as rebaseWranglerConfigPaths, r as compileToProgrammaticConfig, t as compileBuildConfig } from "./compiler-Zw16C9Pi.js";
|
|
5
|
+
import { h as resolveFetchHandler, i as assertExplicit2ArgStyle } from "./runtime-DL-Nz3k8.js";
|
|
6
|
+
import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-BFYCqHb-.js";
|
|
6
7
|
import { n as findDurableObjectClasses } from "./durable-object-DMtH0XYX.js";
|
|
7
8
|
import { r as SUPPORTED_WORKER_EXTENSIONS } from "./worker-entrypoint-CQW77lG8.js";
|
|
8
9
|
import { i as findFiles, t as DEFAULT_DO_PATTERN } from "./glob-CmQOvunB.js";
|
|
@@ -172,6 +173,36 @@ function hasWorkerSurfacePaths(surfacePaths) {
|
|
|
172
173
|
return Object.values(surfacePaths).some((surfacePath) => typeof surfacePath === "string" && surfacePath.length > 0);
|
|
173
174
|
}
|
|
174
175
|
//#endregion
|
|
176
|
+
//#region src/worker-entry/validate-fetch-style.ts
|
|
177
|
+
/**
|
|
178
|
+
* Validate the resolved fetch surface module's calling-convention style.
|
|
179
|
+
*
|
|
180
|
+
* `fetchSurfacePath` is the absolute, on-disk path devflare resolved for the
|
|
181
|
+
* fetch surface (`WorkerSurfacePaths.fetch`). When it is `null` there is no
|
|
182
|
+
* fetch surface to check.
|
|
183
|
+
*
|
|
184
|
+
* Throws the same `[devflare] Ambiguous 2-argument fetch handler …` error as
|
|
185
|
+
* the request-time check when the export is an unmarked 2-arg handler.
|
|
186
|
+
*/
|
|
187
|
+
async function validateFetchHandlerStyle(fetchSurfacePath) {
|
|
188
|
+
if (!fetchSurfacePath) return;
|
|
189
|
+
if (looksLikeBuildArtifactPath(fetchSurfacePath)) return;
|
|
190
|
+
let surfaceModule;
|
|
191
|
+
try {
|
|
192
|
+
surfaceModule = await import(fetchSurfacePath);
|
|
193
|
+
} catch {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let handler;
|
|
197
|
+
try {
|
|
198
|
+
handler = resolveFetchHandler(surfaceModule);
|
|
199
|
+
} catch {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
if (!handler) return;
|
|
203
|
+
assertExplicit2ArgStyle(handler);
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
175
206
|
//#region src/worker-entry/composed-worker.ts
|
|
176
207
|
/**
|
|
177
208
|
* Minimal structured codegen helper used to emit the composed worker module.
|
|
@@ -547,6 +578,7 @@ async function prepareComposedWorkerEntrypoint(cwd, config, environment, options
|
|
|
547
578
|
const surfacePaths = await resolveWorkerSurfacePaths(cwd, resolvedConfig);
|
|
548
579
|
const routeDiscovery = await discoverRoutes(cwd, resolvedConfig);
|
|
549
580
|
if (!needsComposedWorkerEntrypoint(cwd, surfacePaths, resolvedConfig, routeDiscovery)) return null;
|
|
581
|
+
await validateFetchHandlerStyle(surfacePaths.fetch);
|
|
550
582
|
const fs = await import("node:fs/promises");
|
|
551
583
|
const entryDir = resolve(cwd, ".devflare", "worker-entrypoints");
|
|
552
584
|
const entryPath = resolve(entryDir, "main.ts");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
1
|
+
import { r as loadConfig } from "./loader-Cr0_OWPy.js";
|
|
2
2
|
import { o as normalizeDOBinding } from "./schema-normalization-BCwTLTGp.js";
|
|
3
3
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
4
4
|
import { d as green, f as logLine, g as yellow, h as whiteDim, n as bold, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
5
|
-
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
6
|
-
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath, t as findConfigPathsUnderDirectory } from "./config-path-
|
|
5
|
+
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DA0Qx9_K.js";
|
|
6
|
+
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath, t as findConfigPathsUnderDirectory } from "./config-path-DaL1ylZ_.js";
|
|
7
7
|
import { basename, dirname, relative, resolve } from "pathe";
|
|
8
8
|
import MagicString from "magic-string";
|
|
9
9
|
//#region src/cli/commands/worker.ts
|
package/dist/browser.d.ts
CHANGED
|
@@ -896,12 +896,16 @@ export declare const configSchema: import("zod").ZodEffects<import("zod").ZodObj
|
|
|
896
896
|
remote?: boolean | undefined;
|
|
897
897
|
}> | undefined;
|
|
898
898
|
}>>;
|
|
899
|
-
triggers: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
899
|
+
triggers: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
|
|
900
900
|
crons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
901
901
|
}, "strip", import("zod").ZodTypeAny, {
|
|
902
902
|
crons?: string[] | undefined;
|
|
903
903
|
}, {
|
|
904
904
|
crons?: string[] | undefined;
|
|
905
|
+
}>, {
|
|
906
|
+
crons?: string[] | undefined;
|
|
907
|
+
}, {
|
|
908
|
+
crons?: string[] | undefined;
|
|
905
909
|
}>>;
|
|
906
910
|
rules: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
907
911
|
type: import("zod").ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
|
@@ -2100,12 +2104,16 @@ export declare const configSchema: import("zod").ZodEffects<import("zod").ZodObj
|
|
|
2100
2104
|
remote?: boolean | undefined;
|
|
2101
2105
|
}> | undefined;
|
|
2102
2106
|
}>>>;
|
|
2103
|
-
readonly triggers: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2107
|
+
readonly triggers: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
|
|
2104
2108
|
crons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
2105
2109
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2106
2110
|
crons?: string[] | undefined;
|
|
2107
2111
|
}, {
|
|
2108
2112
|
crons?: string[] | undefined;
|
|
2113
|
+
}>, {
|
|
2114
|
+
crons?: string[] | undefined;
|
|
2115
|
+
}, {
|
|
2116
|
+
crons?: string[] | undefined;
|
|
2109
2117
|
}>>>;
|
|
2110
2118
|
readonly rules: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
2111
2119
|
type: import("zod").ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EACN,eAAe,EACf,cAAc,EACd,OAAO,EACP,MAAM,gBAAgB,CAAA;AACvB,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EACN,aAAa,EACb,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,MAAM,cAAc,CAAA;AAGrB,KAAK,YAAY,GAAG,cAAc,UAAU,CAAC,CAAA;AAM7C,KAAK,uBAAuB,GAAG,qBAAqB,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC,CAAA;AACzF,KAAK,yBAAyB,GAAG,qBAAqB,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC,CAAA;AAC7F,KAAK,iCAAiC,GAAG,qBAAqB,CAC7D,YAAY,CAAC,+BAA+B,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O,MAAM,aAAa,yCAAyE,CAAA;AACnG,eAAO,MAAM,OAAO;;CAAoE,CAAA;AAExF,eAAO,MAAM,iBAAiB,2CAC4C,CAAA;AAC1E,eAAO,MAAM,qBAAqB,+CACgD,CAAA;AAClF,eAAO,MAAM,YAAY,sCAAkE,CAAA;AAC3F,eAAO,MAAM,YAAY,sCAAkE,CAAA;AAC3F,eAAO,MAAM,YAAY,sCAAkE,CAAA;AAC3F,eAAO,MAAM,eAAe,yCAAwE,CAAA;AACpG,eAAO,MAAM,aAAa,uCAAoE,CAAA;AAC9F,eAAO,MAAM,eAAe,yCAAwE,CAAA;AAEpG,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAqB9C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AA2BjE,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,GACjB,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAqB9C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AA2BjE,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,GACjB,OAAO,CAAC,SAAS,CAAC,CAsqBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../src/cli/help-pages/pages/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,eAAO,MAAM,eAAe,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../src/cli/help-pages/pages/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,eAAO,MAAM,eAAe,EAAE,QAAQ,EAgcrC,CAAA;AAED,eAAO,MAAM,aAAa,mMAAW,CAAA"}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as runCli, t as parseArgs } from "../_chunks/cli-
|
|
1
|
+
import { n as runCli, t as parseArgs } from "../_chunks/cli-DuUz10Mn.js";
|
|
2
2
|
export { parseArgs, runCli };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true when `expression` is a valid Cloudflare 5-field cron expression.
|
|
3
|
+
*
|
|
4
|
+
* Accepts `*`, numbers, ranges (`1-5`), lists (`1,3,5`), steps (`*\/5`,
|
|
5
|
+
* `1-30/5`, `5/15`) and the 3-letter month (`JAN`-`DEC`) / weekday
|
|
6
|
+
* (`SUN`-`SAT`) names, with the correct per-field numeric ranges. Cloudflare
|
|
7
|
+
* cron has no seconds and no year field, so anything other than 5 fields is
|
|
8
|
+
* rejected.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isValidCronExpression(expression: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Human-readable message for an invalid cron expression, naming the bad value.
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatInvalidCronMessage(expression: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Throw a descriptive error when `expression` is not a valid cron expression.
|
|
17
|
+
*/
|
|
18
|
+
export declare function assertValidCronExpression(expression: string): void;
|
|
19
|
+
//# sourceMappingURL=cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../src/config/cron.ts"],"names":[],"mappings":"AAsIA;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAiBjE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQnE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAIlE"}
|
|
@@ -901,12 +901,16 @@ export declare const envConfigSchema: z.ZodLazy<z.ZodObject<{
|
|
|
901
901
|
remote?: boolean | undefined;
|
|
902
902
|
}> | undefined;
|
|
903
903
|
}>>>;
|
|
904
|
-
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
904
|
+
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
905
905
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
906
906
|
}, "strip", z.ZodTypeAny, {
|
|
907
907
|
crons?: string[] | undefined;
|
|
908
908
|
}, {
|
|
909
909
|
crons?: string[] | undefined;
|
|
910
|
+
}>, {
|
|
911
|
+
crons?: string[] | undefined;
|
|
912
|
+
}, {
|
|
913
|
+
crons?: string[] | undefined;
|
|
910
914
|
}>>>;
|
|
911
915
|
readonly rules: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
912
916
|
type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
|
@@ -2674,12 +2678,16 @@ export declare const envConfigSchemaInner: z.ZodLazy<z.ZodObject<{
|
|
|
2674
2678
|
remote?: boolean | undefined;
|
|
2675
2679
|
}> | undefined;
|
|
2676
2680
|
}>>>;
|
|
2677
|
-
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2681
|
+
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2678
2682
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2679
2683
|
}, "strip", z.ZodTypeAny, {
|
|
2680
2684
|
crons?: string[] | undefined;
|
|
2681
2685
|
}, {
|
|
2682
2686
|
crons?: string[] | undefined;
|
|
2687
|
+
}>, {
|
|
2688
|
+
crons?: string[] | undefined;
|
|
2689
|
+
}, {
|
|
2690
|
+
crons?: string[] | undefined;
|
|
2683
2691
|
}>>>;
|
|
2684
2692
|
readonly rules: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2685
2693
|
type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-env.d.ts","sourceRoot":"","sources":["../../src/config/schema-env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"schema-env.d.ts","sourceRoot":"","sources":["../../src/config/schema-env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkB,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -89,13 +89,21 @@ export declare const tailConsumerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
89
89
|
}>]>;
|
|
90
90
|
/**
|
|
91
91
|
* Trigger configuration for scheduled (cron) events.
|
|
92
|
+
*
|
|
93
|
+
* Each cron expression is validated against the Cloudflare 5-field cron grammar
|
|
94
|
+
* at config-parse time, so a typo fails before deploy instead of silently never
|
|
95
|
+
* firing in production.
|
|
92
96
|
*/
|
|
93
|
-
export declare const triggersSchema: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
export declare const triggersSchema: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
94
98
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
99
|
}, "strip", z.ZodTypeAny, {
|
|
96
100
|
crons?: string[] | undefined;
|
|
97
101
|
}, {
|
|
98
102
|
crons?: string[] | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
crons?: string[] | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
crons?: string[] | undefined;
|
|
99
107
|
}>>;
|
|
100
108
|
/**
|
|
101
109
|
* Preview-specific Devflare behavior.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-runtime.d.ts","sourceRoot":"","sources":["../../src/config/schema-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"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CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -912,12 +912,16 @@ export declare const rootConfigShape: {
|
|
|
912
912
|
}> | undefined;
|
|
913
913
|
}>>;
|
|
914
914
|
/** Trigger configuration (cron schedules). */
|
|
915
|
-
readonly triggers: z.ZodOptional<z.ZodObject<{
|
|
915
|
+
readonly triggers: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
916
916
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
917
917
|
}, "strip", z.ZodTypeAny, {
|
|
918
918
|
crons?: string[] | undefined;
|
|
919
919
|
}, {
|
|
920
920
|
crons?: string[] | undefined;
|
|
921
|
+
}>, {
|
|
922
|
+
crons?: string[] | undefined;
|
|
923
|
+
}, {
|
|
924
|
+
crons?: string[] | undefined;
|
|
921
925
|
}>>;
|
|
922
926
|
/** Wrangler module rules for non-JavaScript imports and additional modules. */
|
|
923
927
|
readonly rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2139,12 +2143,16 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2139
2143
|
remote?: boolean | undefined;
|
|
2140
2144
|
}> | undefined;
|
|
2141
2145
|
}>>;
|
|
2142
|
-
triggers: z.ZodOptional<z.ZodObject<{
|
|
2146
|
+
triggers: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2143
2147
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2144
2148
|
}, "strip", z.ZodTypeAny, {
|
|
2145
2149
|
crons?: string[] | undefined;
|
|
2146
2150
|
}, {
|
|
2147
2151
|
crons?: string[] | undefined;
|
|
2152
|
+
}>, {
|
|
2153
|
+
crons?: string[] | undefined;
|
|
2154
|
+
}, {
|
|
2155
|
+
crons?: string[] | undefined;
|
|
2148
2156
|
}>>;
|
|
2149
2157
|
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2150
2158
|
type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
|
@@ -3344,12 +3352,16 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3344
3352
|
remote?: boolean | undefined;
|
|
3345
3353
|
}> | undefined;
|
|
3346
3354
|
}>>>;
|
|
3347
|
-
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3355
|
+
readonly triggers: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3348
3356
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3349
3357
|
}, "strip", z.ZodTypeAny, {
|
|
3350
3358
|
crons?: string[] | undefined;
|
|
3351
3359
|
}, {
|
|
3352
3360
|
crons?: string[] | undefined;
|
|
3361
|
+
}>, {
|
|
3362
|
+
crons?: string[] | undefined;
|
|
3363
|
+
}, {
|
|
3364
|
+
crons?: string[] | undefined;
|
|
3353
3365
|
}>>>;
|
|
3354
3366
|
readonly rules: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3355
3367
|
type: z.ZodEnum<["ESModule", "CommonJS", "CompiledWasm", "Text", "Data"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6EvB;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;IAC3B;;;OAGG;aACH,IAAI;IAIJ;;;OAGG;aACH,SAAS;IAET;;;OAGG;aACH,cAAc;IAEd;;;OAGG;aACH,iBAAiB;IAEjB;;;OAGG;aACH,kBAAkB;IAKlB,0CAA0C;aAC1C,QAAQ;;;;;;;IAER,4EAA4E;aAC5E,MAAM;;;;;;;;;;IAEN,mCAAmC;aACnC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEL,uCAAuC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C,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as defineConfig, t as ref } from "./_chunks/ref-CYJNAAe_.js";
|
|
2
2
|
import { i as preview } from "./_chunks/preview-C3Cdr8an.js";
|
|
3
|
-
import { a as ConfigResourceResolutionError, d as configSchema, n as ConfigValidationError, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./_chunks/loader-
|
|
4
|
-
import { n as compileConfig, s as stringifyConfig } from "./_chunks/compiler-
|
|
3
|
+
import { a as ConfigResourceResolutionError, d as configSchema, n as ConfigValidationError, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./_chunks/loader-Cr0_OWPy.js";
|
|
4
|
+
import { n as compileConfig, s as stringifyConfig } from "./_chunks/compiler-Zw16C9Pi.js";
|
|
5
5
|
import { t as workerName } from "./_chunks/workerName-CFJsLZA-.js";
|
|
6
6
|
import { n as getDurableObjectOptions, t as durableObject } from "./_chunks/decorators-QmV57ixr.js";
|
|
7
|
-
import { n as runCli, t as parseArgs } from "./_chunks/cli-
|
|
7
|
+
import { n as runCli, t as parseArgs } from "./_chunks/cli-DuUz10Mn.js";
|
|
8
8
|
import { i as vars, r as env } from "./_chunks/env-S0_nMVz1.js";
|
|
9
9
|
export { ConfigNotFoundError, ConfigResourceResolutionError, ConfigValidationError, compileConfig, configSchema, defineConfig as default, defineConfig, durableObject, env, getDurableObjectOptions, loadConfig, loadResolvedConfig, parseArgs, preview, ref, runCli, stringifyConfig, vars, workerName };
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { EventContext } from './context.js';
|
|
|
3
3
|
export { createFetchEvent, createQueueEvent, createScheduledEvent, createEmailEvent, createTailEvent, createDurableObjectFetchEvent, createDurableObjectAlarmEvent, createDurableObjectWebSocketMessageEvent, createDurableObjectWebSocketCloseEvent, createDurableObjectWebSocketErrorEvent, runWithContext, runWithEventContext, getContext, getContextOrNull, getEventContext, getEventContextOrNull, getFetchEvent, getQueueEvent, getScheduledEvent, getEmailEvent, getTailEvent, getDurableObjectEvent, getDurableObjectFetchEvent, getDurableObjectAlarmEvent, getDurableObjectWebSocketMessageEvent, getDurableObjectWebSocketCloseEvent, getDurableObjectWebSocketErrorEvent, hasContext, type RuntimeEventType, type RuntimeContextValue, type RequestContext } from './context.js';
|
|
4
4
|
export type { FetchEvent, QueueEvent, ScheduledEvent, EmailEvent, TailEvent, DurableObjectEvent, DurableObjectFetchEvent, DurableObjectAlarmEvent, DurableObjectWebSocketMessageEvent, DurableObjectWebSocketCloseEvent, DurableObjectWebSocketErrorEvent, WorkerEvent, AnyEvent } from './context.js';
|
|
5
5
|
export { createContextProxy, ContextAccessError } from './validation.js';
|
|
6
|
-
export { sequence, resolveFetchHandler, invokeFetchHandler, createResolveFetch, invokeFetchModule, defineFetchHandler, defineQueueHandler, defineScheduledHandler, markResolveStyle, markWorkerStyle, assertExplicitQueueHandlerStyle, assertExplicitScheduledHandlerStyle, type Awaitable, type ResolveFetch, type FetchMiddleware } from './middleware.js';
|
|
6
|
+
export { sequence, resolveFetchHandler, invokeFetchHandler, createResolveFetch, invokeFetchModule, defineFetchHandler, defineQueueHandler, defineScheduledHandler, markResolveStyle, markWorkerStyle, assertExplicit2ArgStyle, assertExplicitQueueHandlerStyle, assertExplicitScheduledHandlerStyle, type Awaitable, type ResolveFetch, type FetchMiddleware } from './middleware.js';
|
|
7
7
|
export { matchFetchRoute, invokeRouteModules, createRouteResolve } from './router/index.js';
|
|
8
8
|
export type { RouteSegment, RouteModuleDefinition, RouteMatchResult } from './router/types.js';
|
|
9
9
|
export { durableObject, getDurableObjectOptions, type DurableObjectOptions } from '../decorators/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAWA,OAAO,EACN,GAAG,EACH,IAAI,EACJ,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,WAAW,CAAA;AAElB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,sCAAsC,EACtC,sCAAsC,EACtC,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,MAAM,WAAW,CAAA;AAElB,YAAY,EACX,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,WAAW,EACX,QAAQ,EACR,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGrE,OAAO,EACN,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,+BAA+B,EAC/B,mCAAmC,EACnC,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,cAAc,CAAA;AAErB,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,UAAU,CAAA;AAEjB,YAAY,EACX,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EACN,aAAa,EACb,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,MAAM,eAAe,CAAA;AAKtB,OAAO,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,KAAK,2BAA2B,EAChC,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAWA,OAAO,EACN,GAAG,EACH,IAAI,EACJ,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,WAAW,CAAA;AAElB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,sCAAsC,EACtC,sCAAsC,EACtC,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,MAAM,WAAW,CAAA;AAElB,YAAY,EACX,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,WAAW,EACX,QAAQ,EACR,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGrE,OAAO,EACN,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,+BAA+B,EAC/B,mCAAmC,EACnC,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,cAAc,CAAA;AAErB,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,UAAU,CAAA;AAEjB,YAAY,EACX,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EACN,aAAa,EACb,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,MAAM,eAAe,CAAA;AAKtB,OAAO,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,KAAK,2BAA2B,EAChC,MAAM,qBAAqB,CAAA"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getDurableObjectOptions, t as durableObject } from "../_chunks/decorators-QmV57ixr.js";
|
|
2
2
|
import { A as createTailEvent, C as createDurableObjectWebSocketCloseEvent, D as createFetchEvent, E as createEmailEvent, O as createQueueEvent, S as createDurableObjectFetchEvent, T as createDurableObjectWebSocketMessageEvent, _ as runWithContext, a as getDurableObjectFetchEvent, b as createContextProxy, c as getDurableObjectWebSocketMessageEvent, d as getEventContextOrNull, f as getFetchEvent, g as hasContext, h as getTailEvent, i as getDurableObjectEvent, k as createScheduledEvent, l as getEmailEvent, m as getScheduledEvent, n as getContextOrNull, o as getDurableObjectWebSocketCloseEvent, p as getQueueEvent, r as getDurableObjectAlarmEvent, s as getDurableObjectWebSocketErrorEvent, t as getContext, u as getEventContext, v as runWithEventContext, w as createDurableObjectWebSocketErrorEvent, x as createDurableObjectAlarmEvent, y as ContextAccessError } from "../_chunks/context-CX50Y2Kb.js";
|
|
3
3
|
import { clearLocalSendEmailBindings, setLocalSendEmailBindings } from "../utils/send-email.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
export { ContextAccessError, assertExplicitQueueHandlerStyle, assertExplicitScheduledHandlerStyle, clearLocalSendEmailBindings, createContextProxy, createDurableObjectAlarmEvent, createDurableObjectFetchEvent, createDurableObjectWebSocketCloseEvent, createDurableObjectWebSocketErrorEvent, createDurableObjectWebSocketMessageEvent, createEmailEvent, createFetchEvent, createQueueEvent, createResolveFetch, createRouteResolve, createScheduledEvent, createTailEvent, ctx, defineFetchHandler, defineQueueHandler, defineScheduledHandler, durableObject, env, event, getContext, getContextOrNull, getDurableObjectAlarmEvent, getDurableObjectEvent, getDurableObjectFetchEvent, getDurableObjectOptions, getDurableObjectWebSocketCloseEvent, getDurableObjectWebSocketErrorEvent, getDurableObjectWebSocketMessageEvent, getEmailEvent, getEventContext, getEventContextOrNull, getFetchEvent, getQueueEvent, getScheduledEvent, getTailEvent, hasContext, invokeFetchHandler, invokeFetchModule, invokeRouteModules, locals, markResolveStyle, markWorkerStyle, matchFetchRoute, resolveFetchHandler, runWithContext, runWithEventContext, sequence, setLocalSendEmailBindings, vars };
|
|
4
|
+
import { _ as ctx, a as assertExplicitQueueHandlerStyle, b as locals, c as defineFetchHandler, d as invokeFetchHandler, f as invokeFetchModule, g as sequence, h as resolveFetchHandler, i as assertExplicit2ArgStyle, l as defineQueueHandler, m as markWorkerStyle, n as invokeRouteModules, o as assertExplicitScheduledHandlerStyle, p as markResolveStyle, r as matchFetchRoute, s as createResolveFetch, t as createRouteResolve, u as defineScheduledHandler, v as env, x as vars, y as event } from "../_chunks/runtime-DL-Nz3k8.js";
|
|
5
|
+
export { ContextAccessError, assertExplicit2ArgStyle, assertExplicitQueueHandlerStyle, assertExplicitScheduledHandlerStyle, clearLocalSendEmailBindings, createContextProxy, createDurableObjectAlarmEvent, createDurableObjectFetchEvent, createDurableObjectWebSocketCloseEvent, createDurableObjectWebSocketErrorEvent, createDurableObjectWebSocketMessageEvent, createEmailEvent, createFetchEvent, createQueueEvent, createResolveFetch, createRouteResolve, createScheduledEvent, createTailEvent, ctx, defineFetchHandler, defineQueueHandler, defineScheduledHandler, durableObject, env, event, getContext, getContextOrNull, getDurableObjectAlarmEvent, getDurableObjectEvent, getDurableObjectFetchEvent, getDurableObjectOptions, getDurableObjectWebSocketCloseEvent, getDurableObjectWebSocketErrorEvent, getDurableObjectWebSocketMessageEvent, getEmailEvent, getEventContext, getEventContextOrNull, getFetchEvent, getQueueEvent, getScheduledEvent, getTailEvent, hasContext, invokeFetchHandler, invokeFetchModule, invokeRouteModules, locals, markResolveStyle, markWorkerStyle, matchFetchRoute, resolveFetchHandler, runWithContext, runWithEventContext, sequence, setLocalSendEmailBindings, vars };
|
|
@@ -55,6 +55,16 @@ export declare function markWorkerStyle<T extends AnyFunction>(handler: T): T;
|
|
|
55
55
|
export declare function defineFetchHandler<T extends AnyFunction>(handler: T, options?: {
|
|
56
56
|
style?: 'resolve' | 'worker';
|
|
57
57
|
}): T;
|
|
58
|
+
/**
|
|
59
|
+
* Throw a clear error for ambiguous unmarked 2-argument fetch handlers.
|
|
60
|
+
*
|
|
61
|
+
* In R1-strict, devflare no longer guesses the calling convention from
|
|
62
|
+
* parameter names. 2-arg handlers must be marked with
|
|
63
|
+
* `defineFetchHandler(fn, { style: 'resolve' | 'worker' })` (or wrapped via
|
|
64
|
+
* `markResolveStyle` / `markWorkerStyle` / `sequence(...)`) so dispatch is
|
|
65
|
+
* unambiguous and minification-safe.
|
|
66
|
+
*/
|
|
67
|
+
export declare function assertExplicit2ArgStyle(handler: AnyFunction): void;
|
|
58
68
|
/**
|
|
59
69
|
* Tag a queue handler as worker-style: `(batch, env)` or `(batch, env, ctx)`.
|
|
60
70
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/runtime/middleware.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,WAAW,CAAA;AAEhE,KAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;AAC1C,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAQ1C;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,MAAM,SAAS,UAAU,GAAG,UAAU,IAAI,CAClE,KAAK,CAAC,EAAE,MAAM,KACV,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEtB;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,CAAC,MAAM,SAAS,UAAU,GAAG,UAAU,IAAI,CACrE,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,KACzB,SAAS,CAAC,QAAQ,CAAC,CAAA;AAExB,UAAU,mBAAmB,CAAC,MAAM,SAAS,UAAU;IACtD,eAAe,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;CACtC;AAUD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CASrE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CASpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,WAAW,EACvD,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC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UAAU,EAChE,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,GACpC,OAAO,CAAC,QAAQ,CAAC,CAYnB"}
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as loadConfig } from "../_chunks/loader-
|
|
1
|
+
import { r as loadConfig } from "../_chunks/loader-Cr0_OWPy.js";
|
|
2
2
|
import { l as normalizeHyperdriveBinding } from "../_chunks/schema-normalization-BCwTLTGp.js";
|
|
3
3
|
import { D as createFetchEvent, I as getClient, M as createEnvProxy, P as setBindingHints, v as runWithEventContext } from "../_chunks/context-CX50Y2Kb.js";
|
|
4
4
|
import { createLocalSendEmailBinding } from "../utils/send-email.js";
|
package/dist/test/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "../_chunks/preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, r as loadConfig } from "../_chunks/loader-
|
|
2
|
+
import { f as assertValidCronExpression, i as resolveConfigPath, r as loadConfig } from "../_chunks/loader-Cr0_OWPy.js";
|
|
3
3
|
import { _ as normalizeSecretsStoreBinding, f as normalizeMediaBinding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, s as normalizeDispatchNamespaceBinding, t as getLocalD1DatabaseIdentifier, u as normalizeImagesBinding, x as normalizeWorkflowBinding } from "../_chunks/schema-normalization-BCwTLTGp.js";
|
|
4
4
|
import { t as applyLocalDevVarsToConfig } from "../_chunks/local-dev-vars-CTSa-wvF.js";
|
|
5
5
|
import { g as isAuthenticated, p as getApiToken } from "../_chunks/api-TzdliH-6.js";
|
|
@@ -7,9 +7,9 @@ import { d as getPrimaryAccount, n as getEffectiveAccountId } from "../_chunks/p
|
|
|
7
7
|
import { A as createTailEvent, D as createFetchEvent, E as createEmailEvent, F as BridgeClient, M as createEnvProxy, O as createQueueEvent, P as setBindingHints, _ as runWithContext, k as createScheduledEvent, v as runWithEventContext, x as createDurableObjectAlarmEvent } from "../_chunks/context-CX50Y2Kb.js";
|
|
8
8
|
import { createLocalSendEmailBinding, wrapEnvSendEmailBindings } from "../utils/send-email.js";
|
|
9
9
|
import { n as __setTestContext, r as env, t as __clearTestContext } from "../_chunks/env-S0_nMVz1.js";
|
|
10
|
-
import {
|
|
10
|
+
import { f as invokeFetchModule, h as resolveFetchHandler, r as matchFetchRoute, t as createRouteResolve } from "../_chunks/runtime-DL-Nz3k8.js";
|
|
11
11
|
import { i as extractBindingHints, n as createLocalWorkerLoaderBinding, r as disposeLocalWorkerLoaderBindings, t as createLocalHyperdrive } from "../_chunks/local-hyperdrive-CJ90j46O.js";
|
|
12
|
-
import { T as buildTailConsumersConfig, a as hasServiceBindings, i as hasCrossWorkerDOs, m as buildHyperdrivesConfig, o as resolveDOBindings, r as clearBundleCache, s as resolveServiceBindings, t as discoverRoutes, u as buildAnalyticsEngineConfig } from "../_chunks/routes-
|
|
12
|
+
import { T as buildTailConsumersConfig, a as hasServiceBindings, i as hasCrossWorkerDOs, m as buildHyperdrivesConfig, o as resolveDOBindings, r as clearBundleCache, s as resolveServiceBindings, t as discoverRoutes, u as buildAnalyticsEngineConfig } from "../_chunks/routes-BFYCqHb-.js";
|
|
13
13
|
import { i as findFiles, t as DEFAULT_DO_PATTERN } from "../_chunks/glob-CmQOvunB.js";
|
|
14
14
|
import { a as isRemoteModeActive, i as getRemoteModeStatus } from "../_chunks/remote-config-D39BY9ji.js";
|
|
15
15
|
import { t as bundleWorkflowEntrypointScript } from "../_chunks/local-workflow-entrypoints-Cq_WJajd.js";
|
|
@@ -2389,6 +2389,7 @@ async function trigger$2(cronOrOptions) {
|
|
|
2389
2389
|
if (!scheduledHandlerPath) throw new Error("Scheduled handler not configured. Make sure your devflare.config.ts has files.scheduled set, and the file exists at the specified path (default: src/scheduled.ts)");
|
|
2390
2390
|
if (!configDir$2 || !testEnvGetter$2) throw new Error("Scheduled helper not initialized. Call createTestContext() before using cf.scheduled.trigger()");
|
|
2391
2391
|
const options = typeof cronOrOptions === "string" ? { cron: cronOrOptions } : cronOrOptions ?? {};
|
|
2392
|
+
if (options.cron !== void 0) assertValidCronExpression(options.cron);
|
|
2392
2393
|
const cron = options.cron ?? "* * * * *";
|
|
2393
2394
|
const scheduledTime = options.scheduledTime instanceof Date ? options.scheduledTime.getTime() : options.scheduledTime ?? Date.now();
|
|
2394
2395
|
const handlerModule = await import(join$1(configDir$2, scheduledHandlerPath));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled.d.ts","sourceRoot":"","sources":["../../src/test/scheduled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduled.d.ts","sourceRoot":"","sources":["../../src/test/scheduled.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,uBAAuB;IACvC,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACtC,iDAAiD;IACjD,OAAO,EAAE,OAAO,CAAA;IAChB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAA;CACrB;AAcD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC3C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC,GAAG,IAAI,CAIP;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAI1C;AAMD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAe,OAAO,CACrB,aAAa,CAAC,EAAE,MAAM,GAAG,uBAAuB,GAC9C,OAAO,CAAC,sBAAsB,CAAC,CAuFjC;AAMD,eAAO,MAAM,SAAS;;CAErB,CAAA"}
|
package/dist/vite/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as devflarePlugin, c as getDevflareConfigs, i as writeGeneratedViteConfig, n as resolveEffectiveViteProject, o as getPluginContext, r as resolveViteUserConfig, s as getCloudflareConfig, t as hasInlineViteConfig } from "../_chunks/vite-
|
|
1
|
+
import { a as devflarePlugin, c as getDevflareConfigs, i as writeGeneratedViteConfig, n as resolveEffectiveViteProject, o as getPluginContext, r as resolveViteUserConfig, s as getCloudflareConfig, t as hasInlineViteConfig } from "../_chunks/vite-CGtVNf5E.js";
|
|
2
2
|
export { devflarePlugin as default, devflarePlugin, getCloudflareConfig, getDevflareConfigs, getPluginContext, hasInlineViteConfig, resolveEffectiveViteProject, resolveViteUserConfig, writeGeneratedViteConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composed-worker.d.ts","sourceRoot":"","sources":["../../src/worker-entry/composed-worker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"composed-worker.d.ts","sourceRoot":"","sources":["../../src/worker-entry/composed-worker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AA2B/C,MAAM,WAAW,sCAAsC;IACtD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAweD,wBAAsB,+BAA+B,CACpD,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,cAAc,EACtB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,GAAE,sCAA2C,GAClD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyExB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validate the resolved fetch surface module's calling-convention style.
|
|
3
|
+
*
|
|
4
|
+
* `fetchSurfacePath` is the absolute, on-disk path devflare resolved for the
|
|
5
|
+
* fetch surface (`WorkerSurfacePaths.fetch`). When it is `null` there is no
|
|
6
|
+
* fetch surface to check.
|
|
7
|
+
*
|
|
8
|
+
* Throws the same `[devflare] Ambiguous 2-argument fetch handler …` error as
|
|
9
|
+
* the request-time check when the export is an unmarked 2-arg handler.
|
|
10
|
+
*/
|
|
11
|
+
export declare function validateFetchHandlerStyle(fetchSurfacePath: string | null): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=validate-fetch-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-fetch-style.d.ts","sourceRoot":"","sources":["../../src/worker-entry/validate-fetch-style.ts"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,wBAAsB,yBAAyB,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAqC9F"}
|
package/package.json
CHANGED