devflare 1.0.0-next.32 → 1.0.0-next.33
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/bin/devflare.js +1 -3
- package/dist/{account-g99mzrqp.js → account-p9eywryw.js} +27 -16
- package/dist/ai-r3zqmxan.js +261 -0
- package/dist/{api-2n6dd2ws.js → api-6z01z734.js} +1 -1
- package/dist/bridge/client.d.ts.map +1 -1
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/bridge/proxy.d.ts.map +1 -1
- package/dist/bridge/server.d.ts.map +1 -1
- package/dist/bridge/v2/body-streams.d.ts.map +1 -1
- package/dist/bridge/v2/codec.d.ts.map +1 -1
- package/dist/bridge/v2/frames.d.ts.map +1 -1
- package/dist/bridge/v2/value-codec.d.ts.map +1 -1
- package/dist/bridge/v2/value-serialization.d.ts.map +1 -1
- package/dist/bridge/v2/wire.d.ts.map +1 -1
- package/dist/bridge/v2/ws-relay.d.ts +1 -1
- package/dist/bridge/v2/ws-relay.d.ts.map +1 -1
- package/dist/browser-shim/handler.d.ts +1 -1
- package/dist/browser-shim/handler.d.ts.map +1 -1
- package/dist/browser-shim/server.d.ts.map +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +5 -5
- package/dist/{build-4tyjywn9.js → build-8bn7frg8.js} +16 -16
- package/dist/bundler/do-bundler.d.ts.map +1 -1
- package/dist/bundler/rolldown-shared.d.ts.map +1 -1
- package/dist/bundler/worker-bundler.d.ts.map +1 -1
- package/dist/bundler/worker-compat.d.ts.map +1 -1
- package/dist/cli/build-manifest.d.ts.map +1 -1
- package/dist/cli/command-utils.d.ts.map +1 -1
- package/dist/cli/commands/account.d.ts +1 -1
- package/dist/cli/commands/account.d.ts.map +1 -1
- package/dist/cli/commands/ai.d.ts.map +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +3 -3
- package/dist/cli/commands/build-artifacts.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts +2 -2
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/config.d.ts +2 -2
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/commands/dev.d.ts +1 -1
- package/dist/cli/commands/dev.d.ts.map +1 -1
- package/dist/cli/commands/doctor.d.ts +2 -2
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts +2 -2
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/login.d.ts +1 -1
- package/dist/cli/commands/login.d.ts.map +1 -1
- package/dist/cli/commands/previews-support/cleanup.d.ts.map +1 -1
- package/dist/cli/commands/previews-support/family.d.ts.map +1 -1
- package/dist/cli/commands/previews-support/render.d.ts +1 -1
- package/dist/cli/commands/previews-support/render.d.ts.map +1 -1
- package/dist/cli/commands/previews-support/theme.d.ts +1 -1
- package/dist/cli/commands/previews-support/theme.d.ts.map +1 -1
- package/dist/cli/commands/previews-support/types.d.ts +1 -1
- package/dist/cli/commands/previews-support/types.d.ts.map +1 -1
- package/dist/cli/commands/previews.d.ts.map +1 -1
- package/dist/cli/commands/productions.d.ts +1 -1
- package/dist/cli/commands/productions.d.ts.map +1 -1
- package/dist/cli/commands/remote.d.ts +1 -1
- package/dist/cli/commands/remote.d.ts.map +1 -1
- package/dist/cli/commands/secrets.d.ts.map +1 -1
- package/dist/cli/commands/token.d.ts +2 -2
- package/dist/cli/commands/token.d.ts.map +1 -1
- package/dist/cli/commands/type-generation/discovery.d.ts.map +1 -1
- package/dist/cli/commands/type-generation/generator.d.ts.map +1 -1
- package/dist/cli/commands/types.d.ts +2 -2
- package/dist/cli/commands/types.d.ts.map +1 -1
- package/dist/cli/commands/worker.d.ts +2 -2
- package/dist/cli/commands/worker.d.ts.map +1 -1
- package/dist/cli/dependencies.d.ts +1 -1
- package/dist/cli/dependencies.d.ts.map +1 -1
- package/dist/cli/deploy-strategy.d.ts.map +1 -1
- package/dist/cli/deploy-target.d.ts.map +1 -1
- package/dist/cli/generated-artifacts.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/account.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/core.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/misc.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/previews.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/productions.d.ts.map +1 -1
- package/dist/cli/help-pages/render.d.ts +1 -1
- package/dist/cli/help-pages/render.d.ts.map +1 -1
- package/dist/cli/help-pages/shared.d.ts.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/preview-bindings.d.ts.map +1 -1
- package/dist/cli/preview.d.ts.map +1 -1
- package/dist/cli/ui.d.ts.map +1 -1
- package/dist/cli/workspace-build-guard.d.ts.map +1 -1
- package/dist/cloudflare/account-core.d.ts.map +1 -1
- package/dist/cloudflare/account-resources.d.ts.map +1 -1
- package/dist/cloudflare/account-status.d.ts.map +1 -1
- package/dist/cloudflare/account-workers.d.ts.map +1 -1
- package/dist/cloudflare/api.d.ts.map +1 -1
- package/dist/cloudflare/auth.d.ts.map +1 -1
- package/dist/cloudflare/index.d.ts +6 -6
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +6 -6
- package/dist/cloudflare/kv-namespace.d.ts.map +1 -1
- package/dist/cloudflare/preferences.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-cache.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-inference.d.ts +1 -1
- package/dist/cloudflare/preview-registry-inference.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-shape.d.ts +1 -1
- package/dist/cloudflare/preview-registry-shape.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-types.d.ts +1 -1
- package/dist/cloudflare/preview-registry-types.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry.d.ts +1 -1
- package/dist/cloudflare/preview-registry.d.ts.map +1 -1
- package/dist/cloudflare/preview-urls.d.ts.map +1 -1
- package/dist/cloudflare/registry-schema.d.ts.map +1 -1
- package/dist/cloudflare/remote-config.d.ts.map +1 -1
- package/dist/cloudflare/tokens.d.ts.map +1 -1
- package/dist/cloudflare/usage.d.ts.map +1 -1
- package/dist/config/binding-resolution-helpers.d.ts.map +1 -1
- package/dist/config/define.d.ts +1 -1
- package/dist/config/define.d.ts.map +1 -1
- package/dist/config/deploy-resources.d.ts +2 -2
- package/dist/config/deploy-resources.d.ts.map +1 -1
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/framework-providers.d.ts.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/preview-resources.d.ts.map +1 -1
- package/dist/config/preview.d.ts +1 -3
- package/dist/config/preview.d.ts.map +1 -1
- package/dist/config/ref.d.ts +1 -1
- package/dist/config/ref.d.ts.map +1 -1
- package/dist/config/resolve-phased.d.ts.map +1 -1
- package/dist/config/resource-resolution.d.ts +3 -3
- package/dist/config/resource-resolution.d.ts.map +1 -1
- package/dist/config/schema-bindings.d.ts.map +1 -1
- package/dist/config/schema-build.d.ts.map +1 -1
- package/dist/config/schema-env.d.ts.map +1 -1
- package/dist/config/schema-normalization.d.ts +1 -1
- package/dist/config/schema-normalization.d.ts.map +1 -1
- package/dist/config/schema-runtime.d.ts.map +1 -1
- package/dist/config/schema-types-bindings-resources.d.ts +1 -2
- package/dist/config/schema-types-bindings-resources.d.ts.map +1 -1
- package/dist/config/schema-types-bindings.d.ts +1 -1
- package/dist/config/schema-types-bindings.d.ts.map +1 -1
- package/dist/config/schema-types-runtime.d.ts +2 -2
- package/dist/config/schema-types-runtime.d.ts.map +1 -1
- package/dist/config/schema-types.d.ts +1 -1
- package/dist/config/schema-types.d.ts.map +1 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/service-bindings-validation.d.ts.map +1 -1
- package/dist/config-entry.js +2 -2
- package/dist/{config-88sdhx3w.js → config-gphd6wx7.js} +6 -6
- package/dist/decorators/durable-object.d.ts.map +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/{deploy-8fpav2cw.js → deploy-vpcp41fw.js} +19 -19
- package/dist/{dev-nxevkfdv.js → dev-9scy9gap.js} +251 -255
- package/dist/dev-server/d1-migrations.d.ts.map +1 -1
- package/dist/dev-server/dev-server-state.d.ts +2 -2
- package/dist/dev-server/dev-server-state.d.ts.map +1 -1
- package/dist/dev-server/gateway-script.d.ts.map +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts.map +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts +2 -2
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
- package/dist/dev-server/miniflare-log.d.ts.map +1 -1
- package/dist/dev-server/miniflare-worker-config.d.ts +1 -1
- package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -1
- package/dist/dev-server/server-startup-helpers.d.ts +2 -2
- package/dist/dev-server/server-startup-helpers.d.ts.map +1 -1
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/vite-process.d.ts.map +1 -1
- package/dist/dev-server/vite-utils.d.ts.map +1 -1
- package/dist/dev-server/worker-source-watcher.d.ts.map +1 -1
- package/dist/dev-server/worker-surface-paths.d.ts +1 -1
- package/dist/dev-server/worker-surface-paths.d.ts.map +1 -1
- package/dist/{doctor-ztwx1y95.js → doctor-swfeeqny.js} +12 -12
- package/dist/{durable-object-v3gsnybk.js → durable-object-pf6gabpn.js} +1 -1
- package/dist/env.d.ts.map +1 -1
- package/dist/{index-mg8vwqxf.js → index-04wh9bxx.js} +2 -2
- package/dist/{index-fcmj6641.js → index-13sfensw.js} +1 -1
- package/dist/{index-6sj0v0dk.js → index-1trss579.js} +1373 -1358
- package/dist/{index-3jme4hgw.js → index-2xz4etye.js} +25 -33
- package/dist/{index-q8f4kawk.js → index-34dejneh.js} +12 -2
- package/dist/{index-rzp9ejrh.js → index-3t0e51a0.js} +1 -1
- package/dist/{index-ptwem1nt.js → index-3z20d3kd.js} +160 -208
- package/dist/{index-d8bdkx2h.js → index-4xmtkg9g.js} +2 -2
- package/dist/{index-qwgr4q7s.js → index-5dkjffqz.js} +2 -14
- package/dist/{index-aqrwyy57.js → index-7m557715.js} +2 -7
- package/dist/{index-85yjb686.js → index-97rfy7n2.js} +1 -1
- package/dist/{index-11p28kxx.js → index-atwc3csp.js} +1 -1
- package/dist/{index-ft3trvra.js → index-b20xx2vk.js} +5 -19
- package/dist/{index-s3km3y34.js → index-bhxj7ff6.js} +234 -219
- package/dist/{index-3edvz3hs.js → index-by27mzra.js} +4 -4
- package/dist/{index-t9y0sve5.js → index-c4zd39tc.js} +1 -1
- package/dist/{index-69c0ed4a.js → index-dem45895.js} +6 -11
- package/dist/{index-k9x5v335.js → index-dgx495pv.js} +30 -27
- package/dist/{index-7qd7nmdd.js → index-e7xn30bh.js} +2 -2
- package/dist/{index-1d4jg11n.js → index-h7r11y4a.js} +5 -8
- package/dist/{index-vez803pp.js → index-ksqth51q.js} +2 -2
- package/dist/{index-stgn34cr.js → index-maw0jjnn.js} +0 -1
- package/dist/{index-hpwa6vsw.js → index-n4xkaymm.js} +1 -4
- package/dist/{index-dfcp9hsd.js → index-pd97hk2j.js} +64 -72
- package/dist/{index-67gr49zr.js → index-pmnb7eke.js} +3 -3
- package/dist/{index-xz18tstn.js → index-t0r7evpw.js} +9 -9
- package/dist/{index-qz6nbwpw.js → index-t23wq5js.js} +1 -1
- package/dist/{index-hjjfxv02.js → index-w8c8tjc5.js} +1 -1
- package/dist/{index-c8p4njqy.js → index-wxdcrzcp.js} +1 -5
- package/dist/{index-15fpa5tx.js → index-x0wpeb3x.js} +2 -2
- package/dist/{index-qmmqww7h.js → index-x2fd1361.js} +5 -5
- package/dist/{index-a855bdsx.js → index-y7w3x9p1.js} +1 -1
- package/dist/{index-gn5wy09x.js → index-zdd0d9qa.js} +3 -9
- package/dist/index.js +12 -12
- package/dist/{init-cwpergap.js → init-tb8jqgvr.js} +2 -2
- package/dist/{login-r5ve73kf.js → login-7vyzeqy4.js} +10 -10
- package/dist/{previews-qjj98rpp.js → previews-jfbectpc.js} +25 -22
- package/dist/{productions-gzdtge0e.js → productions-49ct4kjm.js} +21 -18
- package/dist/{remote-q59qk463.js → remote-6876k6mz.js} +3 -3
- package/dist/runtime/context-events.d.ts.map +1 -1
- package/dist/runtime/context-types.d.ts.map +1 -1
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/exports.d.ts +21 -21
- package/dist/runtime/exports.d.ts.map +1 -1
- package/dist/runtime/index.js +5 -5
- package/dist/runtime/middleware.d.ts.map +1 -1
- package/dist/runtime/router/index.d.ts +1 -1
- package/dist/runtime/router/index.d.ts.map +1 -1
- package/dist/runtime/router/types.d.ts.map +1 -1
- package/dist/secrets/local-secrets.d.ts.map +1 -1
- package/dist/{secrets-4w5166km.js → secrets-9ne7armr.js} +7 -7
- package/dist/shims/local-hyperdrive.d.ts.map +1 -1
- package/dist/shims/local-media-bindings.d.ts.map +1 -1
- package/dist/shims/local-worker-loader.d.ts.map +1 -1
- package/dist/sveltekit/index.d.ts.map +1 -1
- package/dist/sveltekit/index.js +12 -15
- package/dist/sveltekit/local-bindings.d.ts.map +1 -1
- package/dist/sveltekit/platform.d.ts.map +1 -1
- package/dist/test/binding-hints.d.ts +1 -1
- package/dist/test/binding-hints.d.ts.map +1 -1
- package/dist/test/cf.d.ts +1 -1
- package/dist/test/containers.d.ts.map +1 -1
- package/dist/test/email.d.ts +4 -4
- package/dist/test/email.d.ts.map +1 -1
- package/dist/test/index.js +1404 -1402
- package/dist/test/offline-bindings.d.ts.map +1 -1
- package/dist/test/queue.d.ts.map +1 -1
- package/dist/test/remote-ai.d.ts.map +1 -1
- package/dist/test/remote-cloudflare.d.ts.map +1 -1
- package/dist/test/remote-vectorize.d.ts.map +1 -1
- package/dist/test/resolve-service-bindings.d.ts.map +1 -1
- package/dist/test/scheduled.d.ts.map +1 -1
- package/dist/test/simple-context-bindings.d.ts.map +1 -1
- package/dist/test/simple-context-durable-objects.d.ts.map +1 -1
- package/dist/test/simple-context-env.d.ts.map +1 -1
- package/dist/test/simple-context-handlers.d.ts.map +1 -1
- package/dist/test/simple-context-lifecycle.d.ts +1 -1
- package/dist/test/simple-context-lifecycle.d.ts.map +1 -1
- package/dist/test/simple-context-mfconfig.d.ts.map +1 -1
- package/dist/test/simple-context-multi-worker.d.ts +1 -1
- package/dist/test/simple-context-multi-worker.d.ts.map +1 -1
- package/dist/test/simple-context-paths.d.ts.map +1 -1
- package/dist/test/simple-context-runtime.d.ts.map +1 -1
- package/dist/test/simple-context-startup.d.ts.map +1 -1
- package/dist/test/simple-context.d.ts.map +1 -1
- package/dist/test/tail.d.ts +1 -1
- package/dist/test/tail.d.ts.map +1 -1
- package/dist/test/utilities/env.d.ts.map +1 -1
- package/dist/test/worker.d.ts.map +1 -1
- package/dist/{token-35jcdqq8.js → token-yp1qa70y.js} +4 -4
- package/dist/transform/durable-object.d.ts.map +1 -1
- package/dist/transform/worker-entrypoint.d.ts.map +1 -1
- package/dist/{types-6vc02evc.js → types-zekmbebk.js} +16 -18
- package/dist/utils/glob.d.ts.map +1 -1
- package/dist/utils/resolve-package.d.ts.map +1 -1
- package/dist/utils/send-email.d.ts.map +1 -1
- package/dist/utils/send-email.js +1 -1
- package/dist/vite/config-file.d.ts +1 -1
- package/dist/vite/config-file.d.ts.map +1 -1
- package/dist/vite/index.js +12 -12
- package/dist/vite/plugin-config-hook.d.ts.map +1 -1
- package/dist/vite/plugin-context.d.ts.map +1 -1
- package/dist/vite/plugin-durable-objects.d.ts +1 -1
- package/dist/vite/plugin-durable-objects.d.ts.map +1 -1
- package/dist/vite/plugin-programmatic.d.ts.map +1 -1
- package/dist/vite/plugin-service-bindings.d.ts.map +1 -1
- package/dist/vite/plugin-transform.d.ts.map +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/{worker-f2v85f7d.js → worker-706g8qeh.js} +14 -14
- package/dist/worker-entry/composed-worker.d.ts.map +1 -1
- package/dist/worker-entry/extensions.d.ts.map +1 -1
- package/dist/worker-entry/routes.d.ts.map +1 -1
- package/dist/worker-entry/surface-paths.d.ts.map +1 -1
- package/dist/{worker-entrypoint-3rmzd4c1.js → worker-entrypoint-y8s9kdcx.js} +1 -1
- package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/ai-dx4fr9jh.js +0 -107
- package/dist/{index-vhqww6tt.js → index-p93cngdp.js} +1 -1
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEFAULT_ENTRYPOINT_PATTERN,
|
|
3
3
|
findFiles,
|
|
4
4
|
findFilesSync
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-5dkjffqz.js";
|
|
6
6
|
import {
|
|
7
7
|
__require
|
|
8
8
|
} from "./index-37x76zdn.js";
|
|
@@ -52,10 +52,10 @@ async function discoverEntrypointsAsync(cwd, pattern = DEFAULT_ENTRYPOINT_PATTER
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// src/utils/resolve-package.ts
|
|
55
|
-
import {
|
|
56
|
-
import { readFileSync as readFileSync2, existsSync } from "node:fs";
|
|
57
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
55
|
+
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
58
56
|
import { createRequire } from "node:module";
|
|
57
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
58
|
+
import { dirname, resolve } from "pathe";
|
|
59
59
|
var NOT_FOUND_CODES = new Set(["MODULE_NOT_FOUND", "ERR_MODULE_NOT_FOUND"]);
|
|
60
60
|
function isNotFoundError(error) {
|
|
61
61
|
if (!error || typeof error !== "object") {
|
|
@@ -152,4 +152,4 @@ async function disposeLocalWorkerLoaderBindings() {
|
|
|
152
152
|
}));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
export { extractBindingHints,
|
|
155
|
+
export { extractBindingHints, createLocalWorkerLoaderBinding, disposeLocalWorkerLoaderBindings, createLocalHyperdrive };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
discoverDurableObjectFiles
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-dgx495pv.js";
|
|
4
4
|
import {
|
|
5
5
|
findFiles
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-5dkjffqz.js";
|
|
7
7
|
import {
|
|
8
8
|
transformDurableObject
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-p93cngdp.js";
|
|
10
10
|
import {
|
|
11
11
|
__require
|
|
12
12
|
} from "./index-37x76zdn.js";
|
|
@@ -565,9 +565,7 @@ async function resolveInternalModuleEntry(relativeCandidates) {
|
|
|
565
565
|
try {
|
|
566
566
|
await fs.access(absolutePath);
|
|
567
567
|
return absolutePath;
|
|
568
|
-
} catch {
|
|
569
|
-
continue;
|
|
570
|
-
}
|
|
568
|
+
} catch {}
|
|
571
569
|
}
|
|
572
570
|
return null;
|
|
573
571
|
}
|
|
@@ -577,10 +575,7 @@ async function resolveInternalAliasMap(outDir) {
|
|
|
577
575
|
"../runtime/index.ts",
|
|
578
576
|
"../runtime/index.js"
|
|
579
577
|
]);
|
|
580
|
-
const packageEntry = await resolveInternalModuleEntry([
|
|
581
|
-
"../browser.ts",
|
|
582
|
-
"../browser.js"
|
|
583
|
-
]);
|
|
578
|
+
const packageEntry = await resolveInternalModuleEntry(["../browser.ts", "../browser.js"]);
|
|
584
579
|
return {
|
|
585
580
|
debug: debugShimPath,
|
|
586
581
|
...runtimeEntry ? { "devflare/runtime": runtimeEntry } : {},
|
|
@@ -617,7 +612,7 @@ async function bundleWorkerEntry(options) {
|
|
|
617
612
|
}
|
|
618
613
|
|
|
619
614
|
// src/bundler/do-bundler.ts
|
|
620
|
-
import {
|
|
615
|
+
import { dirname as dirname2, relative, resolve as resolve3 } from "pathe";
|
|
621
616
|
import picomatch from "picomatch";
|
|
622
617
|
function classToBindingName(className) {
|
|
623
618
|
return className.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
discoverEntrypointsSync,
|
|
3
3
|
resolvePackageSpecifier
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-by27mzra.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_DO_PATTERN,
|
|
7
7
|
findFiles,
|
|
8
8
|
findFilesSync
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-5dkjffqz.js";
|
|
10
10
|
import {
|
|
11
11
|
SUPPORTED_WORKER_EXTENSIONS,
|
|
12
12
|
transformWorkerEntrypoint
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-7m557715.js";
|
|
14
14
|
import {
|
|
15
15
|
findDurableObjectClasses
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-p93cngdp.js";
|
|
17
17
|
import {
|
|
18
18
|
configSchema,
|
|
19
19
|
getLocalD1DatabaseIdentifier,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
normalizePipelineBinding,
|
|
29
29
|
normalizeSecretsStoreBinding,
|
|
30
30
|
normalizeWorkflowBinding
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-pd97hk2j.js";
|
|
32
32
|
import {
|
|
33
33
|
__require
|
|
34
34
|
} from "./index-37x76zdn.js";
|
|
35
35
|
|
|
36
36
|
// src/test/resolve-service-bindings.ts
|
|
37
|
-
import { dirname, join, resolve } from "path";
|
|
38
37
|
import { existsSync, readFileSync } from "fs";
|
|
38
|
+
import { dirname, join, resolve } from "path";
|
|
39
39
|
|
|
40
40
|
// src/dev-server/miniflare-bindings.ts
|
|
41
41
|
function buildQueueProducers(bindings) {
|
|
@@ -238,13 +238,15 @@ function buildSecretsStoreConfig(bindings, defaultSecretsStoreId, excludedBindin
|
|
|
238
238
|
return [];
|
|
239
239
|
}
|
|
240
240
|
const normalized = normalizeSecretsStoreBinding(binding, defaultSecretsStoreId, bindingName);
|
|
241
|
-
return [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
return [
|
|
242
|
+
[
|
|
243
|
+
bindingName,
|
|
244
|
+
{
|
|
245
|
+
store_id: normalized.storeId,
|
|
246
|
+
secret_name: normalized.secretName
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
];
|
|
248
250
|
});
|
|
249
251
|
return entries.length > 0 ? Object.fromEntries(entries) : undefined;
|
|
250
252
|
}
|
|
@@ -299,7 +301,7 @@ function clearBundleCache() {
|
|
|
299
301
|
bundleCache.clear();
|
|
300
302
|
}
|
|
301
303
|
function findDefaultServiceWorkerEntrypoint(refConfigDir) {
|
|
302
|
-
for (const candidate of ["src/worker.ts", "src/worker.js"]) {
|
|
304
|
+
for (const candidate of ["worker.ts", "worker.js", "src/worker.ts", "src/worker.js"]) {
|
|
303
305
|
const absolutePath = resolve(refConfigDir, candidate);
|
|
304
306
|
if (existsSync(absolutePath)) {
|
|
305
307
|
return absolutePath;
|
|
@@ -420,17 +422,19 @@ async function resolveReferencedLocalDurableObjects(config, configDir, workerNam
|
|
|
420
422
|
...serviceBindings
|
|
421
423
|
};
|
|
422
424
|
return {
|
|
423
|
-
workers: [
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
425
|
+
workers: [
|
|
426
|
+
{
|
|
427
|
+
name: doWorkerName,
|
|
428
|
+
script,
|
|
429
|
+
modules: true,
|
|
430
|
+
compatibilityDate: config.compatibilityDate,
|
|
431
|
+
...doRuntimeConfig,
|
|
432
|
+
...Object.keys(mergedServiceBindings).length > 0 && {
|
|
433
|
+
serviceBindings: mergedServiceBindings
|
|
434
|
+
},
|
|
435
|
+
durableObjects
|
|
436
|
+
}
|
|
437
|
+
],
|
|
434
438
|
bindings: Object.fromEntries(doClasses.map((do_) => [
|
|
435
439
|
do_.bindingName,
|
|
436
440
|
{
|
|
@@ -713,7 +717,6 @@ async function resolveDORefWorker(ref, parentConfigDir) {
|
|
|
713
717
|
doClasses.push({ bindingName, className, scriptPath: discoveredPath });
|
|
714
718
|
} else {
|
|
715
719
|
console.warn(`[devflare] DO "${bindingName}" (class: ${className}) not found in do.*.ts files in "${ref.name}"`);
|
|
716
|
-
continue;
|
|
717
720
|
}
|
|
718
721
|
}
|
|
719
722
|
}
|
|
@@ -1030,4 +1033,4 @@ async function discoverRoutes(cwd, config) {
|
|
|
1030
1033
|
};
|
|
1031
1034
|
}
|
|
1032
1035
|
|
|
1033
|
-
export { discoverDurableObjectFiles, discoverDurableObjects,
|
|
1036
|
+
export { discoverDurableObjectFiles, discoverDurableObjects, buildQueueProducers, buildQueueConsumers, buildRateLimitsConfig, buildVersionMetadataConfig, buildWorkerLoadersConfig, buildMtlsCertificatesConfig, buildDispatchNamespacesConfig, buildWorkflowsConfig, buildPipelinesConfig, buildHyperdrivesConfig, buildImagesConfig, buildMediaConfig, buildArtifactsConfig, buildAiSearchNamespacesConfig, buildAiSearchInstancesConfig, buildSecretsStoreConfig, buildSendEmailConfig, clearBundleCache, hasServiceBindings, resolveServiceBindings, hasCrossWorkerDOs, resolveDOBindings, getRouteDirectoryCandidate, discoverRoutes };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig,
|
|
3
3
|
resolveConfigPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pd97hk2j.js";
|
|
5
5
|
import {
|
|
6
6
|
getEffectiveAccountId,
|
|
7
7
|
getPrimaryAccount,
|
|
8
8
|
getWorkspaceAccountId
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-h7r11y4a.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/command-utils.ts
|
|
12
12
|
function asOptionalString(value) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
kvDelete,
|
|
9
9
|
kvGet,
|
|
10
10
|
kvPut
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-04wh9bxx.js";
|
|
12
12
|
import {
|
|
13
13
|
__require
|
|
14
14
|
} from "./index-37x76zdn.js";
|
|
@@ -168,11 +168,11 @@ async function deleteD1Database(accountId, databaseId, options) {
|
|
|
168
168
|
await apiDelete(`/accounts/${accountId}/d1/database/${encodedDatabaseId}`, options);
|
|
169
169
|
}
|
|
170
170
|
async function queryD1Database(accountId, databaseId, query, options) {
|
|
171
|
-
const { apiPost: apiPost2 } = await import("./api-
|
|
171
|
+
const { apiPost: apiPost2 } = await import("./api-6z01z734.js");
|
|
172
172
|
return apiPost2(`/accounts/${accountId}/d1/database/${databaseId}/query`, query, options);
|
|
173
173
|
}
|
|
174
174
|
async function rawD1DatabaseQuery(accountId, databaseId, query, options) {
|
|
175
|
-
const { apiPost: apiPost2 } = await import("./api-
|
|
175
|
+
const { apiPost: apiPost2 } = await import("./api-6z01z734.js");
|
|
176
176
|
return apiPost2(`/accounts/${accountId}/d1/database/${databaseId}/raw`, query, options);
|
|
177
177
|
}
|
|
178
178
|
async function listQueues(accountId, options) {
|
|
@@ -309,10 +309,7 @@ async function withServiceTimeout(operation) {
|
|
|
309
309
|
timeoutId = setTimeout(() => reject(new Error("timeout")), SERVICE_STATUS_TIMEOUT_MS);
|
|
310
310
|
});
|
|
311
311
|
try {
|
|
312
|
-
return await Promise.race([
|
|
313
|
-
operation,
|
|
314
|
-
timeoutPromise
|
|
315
|
-
]);
|
|
312
|
+
return await Promise.race([operation, timeoutPromise]);
|
|
316
313
|
} finally {
|
|
317
314
|
if (timeoutId) {
|
|
318
315
|
clearTimeout(timeoutId);
|
|
@@ -372,9 +369,9 @@ async function getAccountSummary(accountId) {
|
|
|
372
369
|
};
|
|
373
370
|
}
|
|
374
371
|
// src/cloudflare/preferences.ts
|
|
372
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
375
373
|
import { homedir } from "node:os";
|
|
376
374
|
import { join } from "node:path";
|
|
377
|
-
import { existsSync, readFileSync, writeFileSync, mkdirSync, renameSync, unlinkSync } from "node:fs";
|
|
378
375
|
|
|
379
376
|
// src/cloudflare/kv-namespace.ts
|
|
380
377
|
var DEVFLARE_KV_NAMESPACE_TITLE = "devflare-usage";
|
|
@@ -211,10 +211,7 @@ function wrapEnvSendEmailBindings(env) {
|
|
|
211
211
|
return Reflect.has(target, prop) || typeof prop === "string" && localSendEmailBindings.has(prop);
|
|
212
212
|
},
|
|
213
213
|
ownKeys(target) {
|
|
214
|
-
return Array.from(new Set([
|
|
215
|
-
...Reflect.ownKeys(target),
|
|
216
|
-
...localSendEmailBindings.keys()
|
|
217
|
-
]));
|
|
214
|
+
return Array.from(new Set([...Reflect.ownKeys(target), ...localSendEmailBindings.keys()]));
|
|
218
215
|
},
|
|
219
216
|
getOwnPropertyDescriptor(target, prop) {
|
|
220
217
|
if (typeof prop === "string" && localSendEmailBindings.has(prop)) {
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
listQueues,
|
|
12
12
|
listR2Buckets,
|
|
13
13
|
listVectorizeIndexes
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-h7r11y4a.js";
|
|
15
15
|
import {
|
|
16
16
|
isEnvVarDescriptor,
|
|
17
17
|
loadDevflareDotenvIntoProcess,
|
|
18
18
|
materializePreviewScopedConfig
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-wxdcrzcp.js";
|
|
20
20
|
|
|
21
21
|
// src/config/schema-bindings.ts
|
|
22
22
|
import { z } from "zod";
|
|
@@ -167,22 +167,14 @@ var d1BindingByIdSchema = z.object({
|
|
|
167
167
|
var d1BindingByNameSchema = z.object({
|
|
168
168
|
name: z.string()
|
|
169
169
|
}).strict();
|
|
170
|
-
var d1BindingSchema = z.union([
|
|
171
|
-
z.string(),
|
|
172
|
-
d1BindingByIdSchema,
|
|
173
|
-
d1BindingByNameSchema
|
|
174
|
-
]);
|
|
170
|
+
var d1BindingSchema = z.union([z.string(), d1BindingByIdSchema, d1BindingByNameSchema]);
|
|
175
171
|
var kvBindingByIdSchema = z.object({
|
|
176
172
|
id: z.string()
|
|
177
173
|
}).strict();
|
|
178
174
|
var kvBindingByNameSchema = z.object({
|
|
179
175
|
name: z.string()
|
|
180
176
|
}).strict();
|
|
181
|
-
var kvBindingSchema = z.union([
|
|
182
|
-
z.string(),
|
|
183
|
-
kvBindingByIdSchema,
|
|
184
|
-
kvBindingByNameSchema
|
|
185
|
-
]);
|
|
177
|
+
var kvBindingSchema = z.union([z.string(), kvBindingByIdSchema, kvBindingByNameSchema]);
|
|
186
178
|
var mtlsCertificateBindingByIdSchema = z.object({
|
|
187
179
|
certificateId: z.string().min(1),
|
|
188
180
|
remote: z.boolean().optional()
|
|
@@ -547,21 +539,9 @@ var wsRouteConfigSchema = z4.object({
|
|
|
547
539
|
var assetsConfigSchema = z4.object({
|
|
548
540
|
directory: z4.string(),
|
|
549
541
|
binding: z4.string().optional(),
|
|
550
|
-
html_handling: z4.enum([
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
"drop-trailing-slash",
|
|
554
|
-
"none"
|
|
555
|
-
]).optional(),
|
|
556
|
-
not_found_handling: z4.enum([
|
|
557
|
-
"single-page-application",
|
|
558
|
-
"404-page",
|
|
559
|
-
"none"
|
|
560
|
-
]).optional(),
|
|
561
|
-
run_worker_first: z4.union([
|
|
562
|
-
z4.boolean(),
|
|
563
|
-
z4.array(z4.string())
|
|
564
|
-
]).optional()
|
|
542
|
+
html_handling: z4.enum(["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]).optional(),
|
|
543
|
+
not_found_handling: z4.enum(["single-page-application", "404-page", "none"]).optional(),
|
|
544
|
+
run_worker_first: z4.union([z4.boolean(), z4.array(z4.string())]).optional()
|
|
565
545
|
}).strict().optional();
|
|
566
546
|
var smartPlacementSchema = z4.object({
|
|
567
547
|
mode: z4.enum(["off", "smart"]),
|
|
@@ -933,9 +913,7 @@ var svelteKitCloudflareProvider = {
|
|
|
933
913
|
};
|
|
934
914
|
}
|
|
935
915
|
};
|
|
936
|
-
var frameworkProviders = [
|
|
937
|
-
svelteKitCloudflareProvider
|
|
938
|
-
];
|
|
916
|
+
var frameworkProviders = [svelteKitCloudflareProvider];
|
|
939
917
|
function hasFrameworkInferenceGap(config) {
|
|
940
918
|
return config.files?.fetch === undefined || config.assets?.directory === undefined || config.assets?.binding === undefined;
|
|
941
919
|
}
|
|
@@ -1059,44 +1037,6 @@ ${issueMessages}`);
|
|
|
1059
1037
|
}
|
|
1060
1038
|
}
|
|
1061
1039
|
|
|
1062
|
-
// src/config/resolve-phased.ts
|
|
1063
|
-
function brandAsLocalConfig(config) {
|
|
1064
|
-
return config;
|
|
1065
|
-
}
|
|
1066
|
-
function brandAsDeployConfig(config) {
|
|
1067
|
-
return config;
|
|
1068
|
-
}
|
|
1069
|
-
async function resolveResources(config, options) {
|
|
1070
|
-
const envMerged = mergeConfigForEnvironment(config, options.environment);
|
|
1071
|
-
const previewMerged = materializePreviewScopedConfig(envMerged, {
|
|
1072
|
-
environment: options.environment,
|
|
1073
|
-
...options.preview
|
|
1074
|
-
});
|
|
1075
|
-
switch (options.phase) {
|
|
1076
|
-
case "build": {
|
|
1077
|
-
return previewMerged;
|
|
1078
|
-
}
|
|
1079
|
-
case "local": {
|
|
1080
|
-
const resolved = resolveConfigForLocalRuntime(previewMerged, undefined);
|
|
1081
|
-
return resolved;
|
|
1082
|
-
}
|
|
1083
|
-
case "deploy": {
|
|
1084
|
-
if (options.provision) {
|
|
1085
|
-
const prepared = await prepareMaterializedConfigResourcesForDeploy(previewMerged, options.preparation ?? {
|
|
1086
|
-
accountId: options.accountId,
|
|
1087
|
-
cloudflare: options.cloudflare
|
|
1088
|
-
});
|
|
1089
|
-
return prepared.config;
|
|
1090
|
-
}
|
|
1091
|
-
const materialized = await resolveMaterializedConfigResources(previewMerged, {
|
|
1092
|
-
accountId: options.accountId,
|
|
1093
|
-
cloudflare: options.cloudflare
|
|
1094
|
-
});
|
|
1095
|
-
return materialized;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
1040
|
// src/config/resource-resolution.ts
|
|
1101
1041
|
var defaultCloudflareApi = {
|
|
1102
1042
|
getPrimaryAccount,
|
|
@@ -1241,6 +1181,44 @@ async function loadResolvedConfig(options = {}) {
|
|
|
1241
1181
|
return resolveConfigResources(config, options);
|
|
1242
1182
|
}
|
|
1243
1183
|
|
|
1184
|
+
// src/config/resolve-phased.ts
|
|
1185
|
+
function brandAsLocalConfig(config) {
|
|
1186
|
+
return config;
|
|
1187
|
+
}
|
|
1188
|
+
function brandAsDeployConfig(config) {
|
|
1189
|
+
return config;
|
|
1190
|
+
}
|
|
1191
|
+
async function resolveResources(config, options) {
|
|
1192
|
+
const envMerged = mergeConfigForEnvironment(config, options.environment);
|
|
1193
|
+
const previewMerged = materializePreviewScopedConfig(envMerged, {
|
|
1194
|
+
environment: options.environment,
|
|
1195
|
+
...options.preview
|
|
1196
|
+
});
|
|
1197
|
+
switch (options.phase) {
|
|
1198
|
+
case "build": {
|
|
1199
|
+
return previewMerged;
|
|
1200
|
+
}
|
|
1201
|
+
case "local": {
|
|
1202
|
+
const resolved = resolveConfigForLocalRuntime(previewMerged, undefined);
|
|
1203
|
+
return resolved;
|
|
1204
|
+
}
|
|
1205
|
+
case "deploy": {
|
|
1206
|
+
if (options.provision) {
|
|
1207
|
+
const prepared = await prepareMaterializedConfigResourcesForDeploy(previewMerged, options.preparation ?? {
|
|
1208
|
+
accountId: options.accountId,
|
|
1209
|
+
cloudflare: options.cloudflare
|
|
1210
|
+
});
|
|
1211
|
+
return prepared.config;
|
|
1212
|
+
}
|
|
1213
|
+
const materialized = await resolveMaterializedConfigResources(previewMerged, {
|
|
1214
|
+
accountId: options.accountId,
|
|
1215
|
+
cloudflare: options.cloudflare
|
|
1216
|
+
});
|
|
1217
|
+
return materialized;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1244
1222
|
// src/config/deploy-resources.ts
|
|
1245
1223
|
var defaultDeployResourcePreparationApi = {
|
|
1246
1224
|
getPrimaryAccount,
|
|
@@ -1470,10 +1448,24 @@ async function prepareMaterializedConfigResourcesForDeploy(resolvedConfig, optio
|
|
|
1470
1448
|
const cloudflareApi = resolveDeployResourcePreparationApi(options.cloudflare);
|
|
1471
1449
|
const accountId = await resolveLookupAccountId2(resolvedConfig, options, cloudflareApi);
|
|
1472
1450
|
if (options.describeOnly) {
|
|
1473
|
-
cloudflareApi.createKVNamespace = async (_acc, name) => ({
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1451
|
+
cloudflareApi.createKVNamespace = async (_acc, name) => ({
|
|
1452
|
+
id: `<would-create:${name}>`,
|
|
1453
|
+
name
|
|
1454
|
+
});
|
|
1455
|
+
cloudflareApi.createD1Database = async (_acc, name) => ({
|
|
1456
|
+
id: `<would-create:${name}>`,
|
|
1457
|
+
name,
|
|
1458
|
+
version: "",
|
|
1459
|
+
tableCount: 0,
|
|
1460
|
+
sizeBytes: 0
|
|
1461
|
+
});
|
|
1462
|
+
cloudflareApi.createR2Bucket = async (_acc, name) => ({
|
|
1463
|
+
name
|
|
1464
|
+
});
|
|
1465
|
+
cloudflareApi.createQueue = async (_acc, name) => ({
|
|
1466
|
+
id: `<would-create:${name}>`,
|
|
1467
|
+
name
|
|
1468
|
+
});
|
|
1477
1469
|
}
|
|
1478
1470
|
try {
|
|
1479
1471
|
const hyperdriveIdsByName = await resolveOrCreateResourceIdsByName(pendingHyperdriveNameBindings, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bundleWorkerEntry
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-dem45895.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_WORKFLOW_PATTERN,
|
|
6
6
|
findFiles
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-5dkjffqz.js";
|
|
8
8
|
import {
|
|
9
9
|
normalizeWorkflowBinding
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pd97hk2j.js";
|
|
11
11
|
|
|
12
12
|
// src/workflows/local-workflow-entrypoints.ts
|
|
13
13
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -7,37 +7,37 @@ import {
|
|
|
7
7
|
} from "./index-z9gy8w6b.js";
|
|
8
8
|
import {
|
|
9
9
|
detectViteProject
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-zdd0d9qa.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageVersion
|
|
13
13
|
} from "./index-627srx16.js";
|
|
14
14
|
import {
|
|
15
15
|
logLine
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-maw0jjnn.js";
|
|
17
17
|
import {
|
|
18
18
|
bundleWorkerEntry
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-dem45895.js";
|
|
20
20
|
import {
|
|
21
21
|
prepareComposedWorkerEntrypoint,
|
|
22
22
|
resolveEffectiveViteProject,
|
|
23
23
|
writeGeneratedViteConfig
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-bhxj7ff6.js";
|
|
25
25
|
import {
|
|
26
26
|
resolvePackageSpecifier
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-by27mzra.js";
|
|
28
28
|
import {
|
|
29
29
|
compileBuildConfig,
|
|
30
30
|
isolateViteBuildOutputPaths,
|
|
31
31
|
rebaseWranglerConfigPaths,
|
|
32
32
|
writeWranglerConfig
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-w8c8tjc5.js";
|
|
34
34
|
import {
|
|
35
35
|
loadConfig,
|
|
36
36
|
resolveConfigForEnvironment
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-pd97hk2j.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveConfigEnvVars
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-wxdcrzcp.js";
|
|
41
41
|
import {
|
|
42
42
|
__require
|
|
43
43
|
} from "./index-37x76zdn.js";
|
|
@@ -578,4 +578,4 @@ with no other detail, common causes are:
|
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
export {
|
|
581
|
+
export { createBuildManifest, readBuildManifest, compareManifests, formatDriftWarning, applyDeploymentStrategy, describeDeploymentStrategy, prepareBuildArtifacts };
|
|
@@ -167,11 +167,7 @@ class EnvVarResolutionError extends Error {
|
|
|
167
167
|
mode;
|
|
168
168
|
code = "ENV_VARS_MISSING";
|
|
169
169
|
constructor(missing, mode) {
|
|
170
|
-
super([
|
|
171
|
-
"These environment variables are missing:",
|
|
172
|
-
"",
|
|
173
|
-
formatMissingEnvTree(missing)
|
|
174
|
-
].join(`
|
|
170
|
+
super(["These environment variables are missing:", "", formatMissingEnvTree(missing)].join(`
|
|
175
171
|
`));
|
|
176
172
|
this.missing = missing;
|
|
177
173
|
this.mode = mode;
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
getEffectiveAccountId,
|
|
4
4
|
getOrCreateNamedKVNamespace,
|
|
5
5
|
getPrimaryAccount
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-h7r11y4a.js";
|
|
7
7
|
import {
|
|
8
8
|
isAuthenticated,
|
|
9
9
|
kvGet,
|
|
10
10
|
kvPut
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-04wh9bxx.js";
|
|
12
12
|
|
|
13
13
|
// src/cloudflare/usage.ts
|
|
14
14
|
var USAGE_KEY_PREFIX = "usage:";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
listAccountOwnedAPITokens,
|
|
5
5
|
listAccountTokenPermissionGroups,
|
|
6
6
|
normalizeDevflareTokenName
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-atwc3csp.js";
|
|
8
8
|
import {
|
|
9
9
|
DEVFLARE_PREVIEW_REGISTRY_DATABASE,
|
|
10
10
|
cleanupPreviewRegistry,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
listTrackedRegistryState,
|
|
17
17
|
reconcilePreviewRegistry,
|
|
18
18
|
retirePreviewRegistry
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-2xz4etye.js";
|
|
20
20
|
import {
|
|
21
21
|
canProceedWithTest,
|
|
22
22
|
getAllUsageSummaries,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
setLimits,
|
|
31
31
|
setLimitsEnabled,
|
|
32
32
|
shouldSkip
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-x0wpeb3x.js";
|
|
34
34
|
import {
|
|
35
35
|
clearGlobalDefaultAccountId,
|
|
36
36
|
createD1Database,
|
|
@@ -60,13 +60,13 @@ import {
|
|
|
60
60
|
renameWorker,
|
|
61
61
|
setGlobalDefaultAccountId,
|
|
62
62
|
setWorkspaceAccountId
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-h7r11y4a.js";
|
|
64
64
|
import {
|
|
65
65
|
getApiToken,
|
|
66
66
|
getWranglerAuth,
|
|
67
67
|
hasWranglerConfig,
|
|
68
68
|
isAuthenticated
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-04wh9bxx.js";
|
|
70
70
|
|
|
71
71
|
// src/cloudflare/index.ts
|
|
72
72
|
var account = {
|