void 0.21.2 → 0.21.3
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/{account-cmd-D8OC-U7y.mjs → account-cmd-DGt9cpRe.mjs} +4 -4
- package/dist/{agents-gni4eqBu.mjs → agents-B_pX_HmQ.mjs} +1 -1
- package/dist/ast-CPGPjb0V.mjs +18 -0
- package/dist/{auth-CAw7zHqj.mjs → auth-CZuiVsFh.mjs} +1 -1
- package/dist/{auth-B9_D6ygs.mjs → auth-DLNN0D3Z.mjs} +4 -4
- package/dist/{auth-link-BYFeMJAp.mjs → auth-link-Cl9vOuf7.mjs} +4 -4
- package/dist/{auth-router-OHZNmrb_.mjs → auth-router-D4ZcMUSf.mjs} +6 -6
- package/dist/{better-auth-shared-BoVwA5Vm.d.mts → better-auth-shared-BVkjZ3vM.d.mts} +1 -0
- package/dist/{better-auth-shared-syGYYmnY.mjs → better-auth-shared-rsBGBvWJ.mjs} +3 -6
- package/dist/{build-cmd-Bft7EY51.mjs → build-cmd-Dpt0jd-x.mjs} +4 -4
- package/dist/{cache-CKV1Gz2w.mjs → cache-7_UeZdTk.mjs} +4 -4
- package/dist/{cancel-deploy-BAKmkX4f.mjs → cancel-deploy-D23R1RXT.mjs} +3 -3
- package/dist/{cf-access-rAZxzMkL.mjs → cf-access-P0iZnu0q.mjs} +1 -1
- package/dist/{cf-build-output-CTdlo6Rt.mjs → cf-build-output-CGT03qCD.mjs} +2 -2
- package/dist/cli/cf-compat.mjs +2 -2
- package/dist/cli/cli.mjs +47 -43
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/client-4cDVv7BO.mjs +2 -0
- package/dist/{client-PdAJ-F0t.mjs → client-QTl6ko_D.mjs} +28 -5
- package/dist/{cloudflare-auth-BCmTc1X_.mjs → cloudflare-auth-B9jPCkV2.mjs} +1 -1
- package/dist/{cloudflare-cmd-D6PrKn7o.mjs → cloudflare-cmd-BjNxR1XF.mjs} +3 -3
- package/dist/{cloudflare-connect-DloREDlc.mjs → cloudflare-connect-CCUozPOe.mjs} +3 -3
- package/dist/{cloudflare-operations-BHNJVDbN.mjs → cloudflare-operations-BipGMJ5O.mjs} +1 -1
- package/dist/{cloudflare-operations-CPEdHYhM.mjs → cloudflare-operations-sMZXpk_S.mjs} +4 -4
- package/dist/collect-DLyFDiKW.mjs +2 -0
- package/dist/{collect-DXHNWHcT.mjs → collect-DiTn9yr6.mjs} +1 -1
- package/dist/config-0acf1oys.mjs +2 -0
- package/dist/{config-DywxBLQC.d.mts → config-CF69HgXc.d.mts} +7 -0
- package/dist/{config-Dxr6cTXn.mjs → config-CafTW6Cz.mjs} +12 -1
- package/dist/{config-BSe70f4T.mjs → config-D8MOgiQV.mjs} +3 -3
- package/dist/config-DPByhVck.mjs +32 -0
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config--T87TD8T.mjs → config-s7Xj7tPb.mjs} +1 -1
- package/dist/{config-write-y3CBI_ux.mjs → config-write-BSduPMY8.mjs} +3 -3
- package/dist/{connect-DLx1pRYk.mjs → connect-4Ph5Y0QE.mjs} +7 -7
- package/dist/{create-project-JV9-6ICF.mjs → create-project-BniEV0OW.mjs} +1 -1
- package/dist/{create-project-BZBl_gQ0.mjs → create-project-DBfFSZKY.mjs} +4 -4
- package/dist/{db-B98_UV4H.mjs → db-DzJRn-qz.mjs} +123 -55
- package/dist/{delete-BEEyqlwd.mjs → delete-D6dZ9B6B.mjs} +4 -4
- package/dist/deploy-BH0grP4y.mjs +2 -0
- package/dist/{deploy-Bsymb0_c.mjs → deploy-CsMJrPfM.mjs} +520 -260
- package/dist/discover-AMCBXivQ.mjs +2 -0
- package/dist/{discover-C4O6YxVS.mjs → discover-BcPPiF1o.mjs} +2 -2
- package/dist/{dist-4WkAWhWx.mjs → dist-BVqXeR_h.mjs} +9 -1
- package/dist/dist-_UUlL6bg.mjs +2 -0
- package/dist/{domain-Av2AkLQP.mjs → domain-Dmhvb2oU.mjs} +4 -4
- package/dist/{email-C5kaZXzJ.mjs → email--tEtMoj_.mjs} +1 -1
- package/dist/{email-CUqa6TtH.mjs → email-BRKOG2RG.mjs} +9 -9
- package/dist/{entry-DdRFGK0y.mjs → entry-CF5wvH4w.mjs} +4 -21
- package/dist/{env-D4RIGEzz.mjs → env-Csi-tMbT.mjs} +7 -7
- package/dist/{env-Yz4HcvHs.mjs → env-D5liuQYR.mjs} +5 -2
- package/dist/{env-DX_v-Q-v.mjs → env-_v349JBd.mjs} +1 -1
- package/dist/{env-types-CWDtqHgw.mjs → env-types-C2_bIk_b.mjs} +2 -2
- package/dist/{env-validation-BsFEXps5.mjs → env-validation-BB4GkLxn.mjs} +4 -4
- package/dist/{env-validation-DIDGM7h4.mjs → env-validation-BXge7uyK.mjs} +1 -1
- package/dist/{gen-pg-Ojg8Y.mjs → gen-Dz3X1Qab.mjs} +8 -8
- package/dist/gen-Vnv2f65C.mjs +2 -0
- package/dist/{generate-C0VY6RVf.mjs → generate-GDbL7sUr.mjs} +2 -2
- package/dist/{github-cmd-BEK4VprE.mjs → github-cmd-BED3_9JD.mjs} +4 -4
- package/dist/{headers-B_HBMgi0.mjs → headers-BOg_velo.mjs} +2 -2
- package/dist/{help-iQOt7WHk.mjs → help-DC7gdz7L.mjs} +7 -3
- package/dist/help-DQMfeKMz.mjs +2 -0
- package/dist/index.mjs +132 -158
- package/dist/{init-D5niUPAz.mjs → init-CRGDXzVC.mjs} +105 -289
- package/dist/{link-3lGrfXzd.mjs → link-CsHOinF7.mjs} +5 -5
- package/dist/{list-CVjGr_C6.mjs → list-CDb-4bZ1.mjs} +5 -5
- package/dist/{local-d1-DzykTWY8.mjs → local-d1-CC8sKFGu.mjs} +3 -3
- package/dist/{login-BgQJzxAl.mjs → login-BQyISZuW.mjs} +3 -3
- package/dist/login-r2gL8l7B.mjs +2 -0
- package/dist/{logs-DbzD-QDf.mjs → logs-BdfiOezj.mjs} +4 -4
- package/dist/{migrate-BV8qHiCb.mjs → migrate-B8KuoYsO.mjs} +69 -44
- package/dist/migrate-TsHGBnDA.mjs +2 -0
- package/dist/{node-Cupyf7-s.mjs → node-BM43oz4G.mjs} +5 -5
- package/dist/{operator-auth-BkVgJqv-.mjs → operator-auth-8KnOVXVd.mjs} +2 -2
- package/dist/{operator-client-A0iex2yi.mjs → operator-client-DUwumHpQ.mjs} +2 -2
- package/dist/{operator-cmd-CR6Lxzt0.mjs → operator-cmd-Co-PeaeD.mjs} +6 -6
- package/dist/{package-json-iCbMg5XF.mjs → package-json-DXfiT1jV.mjs} +1 -1
- package/dist/pages/index.d.mts +1 -1
- package/dist/pages/index.mjs +11 -6
- package/dist/pages/islands-plugin.d.mts +271 -1
- package/dist/pages/islands-plugin.mjs +95 -18
- package/dist/parse-filename-DioPHiR9.mjs +77 -0
- package/dist/{platform-auth-config-De7BqRJm.mjs → platform-auth-config-TSw8edHw.mjs} +5 -5
- package/dist/{platform-auth-protection-Dcat-6zu.mjs → platform-auth-protection-Ba1XqGhn.mjs} +6 -6
- package/dist/{platform-auth-recovery-C9gsM640.mjs → platform-auth-recovery-BkT3EsF2.mjs} +5 -5
- package/dist/{platform-cmd-Cl9Uhzru.mjs → platform-cmd-C8OqhqPt.mjs} +1 -1
- package/dist/{platform-cmd-CudokNIg.mjs → platform-cmd-CRSKfu8k.mjs} +5 -5
- package/dist/{platform-domain-Ckpd2kXw.mjs → platform-domain-j9YCXRm6.mjs} +3 -3
- package/dist/{platform-lifecycle-DVzM2T4j.mjs → platform-lifecycle-78H0XQUA.mjs} +277 -229
- package/dist/{platform-lifecycle-DlpiGcjr.mjs → platform-lifecycle-DDc9zCeJ.mjs} +1 -1
- package/dist/{platform-management-ibuS1as0.mjs → platform-management-6w8-DUjC.mjs} +2 -2
- package/dist/{platform-management-44Bxd3YC.mjs → platform-management-DzKNsMlt.mjs} +1 -1
- package/dist/{platform-recovery-D_KmvdSk.mjs → platform-recovery-Do8VOyDE.mjs} +3 -3
- package/dist/{platform-registry-BJbgZLS1.mjs → platform-registry-QBa4DK32.mjs} +1 -1
- package/dist/{plugin-inference-DsvtJLll.mjs → plugin-inference-BMfKRSqE.mjs} +188 -85
- package/dist/prepare-BZXkjdNe.mjs +2 -0
- package/dist/{prepare-pcWcxSCh.mjs → prepare-C3kt3Rst.mjs} +11 -11
- package/dist/{prepare-_T-Haxrr.mjs → prepare-DyZ-Yok5.mjs} +1 -1
- package/dist/{prerender-render-Cf_WDE9W.mjs → prerender-render-D9qbLs2f.mjs} +1 -1
- package/dist/prerender-render.mjs +1 -1
- package/dist/{preset-Dowh9tTt.mjs → preset-UHj9ARyP.mjs} +4 -4
- package/dist/{project-BEBFDFLz.mjs → project-BuUwfj6f.mjs} +1 -1
- package/dist/{project-CWNIPoXc.mjs → project-C0Fqu05O.mjs} +2 -2
- package/dist/{project-cmd-BuF9doku.mjs → project-cmd-B44I8J_W.mjs} +15 -15
- package/dist/{project-paths-CKQ-Q5JS.mjs → project-paths-GgcMozYz.mjs} +1 -1
- package/dist/{project-team-B1Tia8vd.mjs → project-team-BkbYIsXN.mjs} +4 -4
- package/dist/{project-token-Bwxjf4y6.mjs → project-token-C8xEEQnB.mjs} +4 -4
- package/dist/{project-tsconfig-CwfqUnVp.mjs → project-tsconfig-B8GeM0RM.mjs} +2 -2
- package/dist/{provision-Cck2m3jJ.mjs → provision-BhreDAOS.mjs} +141 -78
- package/dist/provision-DNtrtaVD.mjs +3 -0
- package/dist/{requests-CphRF98D.mjs → requests-DFyhBMaf.mjs} +3 -3
- package/dist/{resolve-project-Xvis70DG.mjs → resolve-project-BG5ORGID.mjs} +1 -1
- package/dist/resolve-project-DtbidV4y.mjs +2 -0
- package/dist/{rollback-BYHJV2yD.mjs → rollback-DHHxXZiS.mjs} +4 -4
- package/dist/{route-types-Id82-veQ.mjs → route-types-Clm4WD0B.mjs} +39 -16
- package/dist/{runner-CQs_cDSG.mjs → runner-B8wXwWlo.mjs} +1 -1
- package/dist/{runner-mysql-1o47achK.mjs → runner-mysql-CEG5JozK.mjs} +1 -1
- package/dist/{runner-mysql-BhwMk2Bm.mjs → runner-mysql-DmWchSWJ.mjs} +1 -1
- package/dist/{runner-BGVsGgkb.mjs → runner-p-dMs2UN.mjs} +3 -3
- package/dist/{runner-pg-D7z01mQS.mjs → runner-pg-Bh4AgZdj.mjs} +1 -1
- package/dist/{runner-pg-CJ_JeGF6.mjs → runner-pg-D4OPlil-.mjs} +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +2 -2
- package/dist/runtime/db.mjs +8 -5
- package/dist/runtime/durable.mjs +1 -1
- package/dist/runtime/email/testing.mjs +1 -1
- package/dist/runtime/env-public.mjs +1 -1
- package/dist/runtime/env.d.mts +1 -1
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/kv.mjs +1 -1
- package/dist/runtime/live-server.mjs +38 -23
- package/dist/runtime/queues.mjs +1 -1
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/storage.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +1 -1
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/{scan-DJbooZm2.mjs → scan-4tfN-PSn.mjs} +113 -99
- package/dist/{scan-DdDvRCU1.mjs → scan-ClYmX3sa.mjs} +35 -137
- package/dist/{secret-Rt9c4Ttw.mjs → secret-DN9sSNiV.mjs} +6 -6
- package/dist/{skills-B-690E7h.mjs → skills-O6FUaizK.mjs} +2 -2
- package/dist/sveltekit.mjs +1 -1
- package/dist/{validate-qNhV00PD.mjs → validate-CIUwFpjB.mjs} +2 -2
- package/dist/validate-EKmJWxmy.mjs +2 -0
- package/dist/{wrangler-D01qs6VB.mjs → wrangler-BymcxrRa.mjs} +3 -3
- package/dist/{yarn-pnp-CVEc3gE7.mjs → yarn-pnp-BV4AzNul.mjs} +1 -1
- package/package.json +7 -7
- package/schema.json +18 -0
- package/skills/void/docs/guide/app-types.md +1 -1
- package/skills/void/docs/guide/auth.md +2 -2
- package/skills/void/docs/guide/database/d1.md +6 -0
- package/skills/void/docs/guide/durable-state.md +1 -1
- package/skills/void/docs/guide/edge/rewrites.md +2 -3
- package/skills/void/docs/guide/env-migration.md +1 -1
- package/skills/void/docs/guide/pages-routing/markdown.md +1 -1
- package/skills/void/docs/guide/platform/development/local.md +1 -1
- package/skills/void/docs/guide/platform/installation/prerequisites.md +2 -2
- package/skills/void/docs/guide/platform/installation/setup.md +1 -1
- package/skills/void/docs/guide/server-routing.md +2 -3
- package/skills/void/docs/guide/ssr.md +4 -10
- package/skills/void/docs/guide/websockets.md +1 -1
- package/skills/void/docs/integrations/cloudflare.md +2 -0
- package/skills/void/docs/reference/api.md +1 -1
- package/skills/void/docs/reference/cli.md +9 -3
- package/skills/void/docs/reference/config.md +11 -0
- package/skills/void/docs/reference/resource-inference.md +1 -1
- package/dist/client-DAAivdid.mjs +0 -2
- package/dist/collect-DAUItMDS.mjs +0 -2
- package/dist/config-DDIFxQYx.mjs +0 -2
- package/dist/config-uP7ZDtVZ.mjs +0 -21
- package/dist/deploy-CsjbRNyv.mjs +0 -2
- package/dist/discover-BBzDZe_o.mjs +0 -2
- package/dist/dist-D7-nEOXi.mjs +0 -2
- package/dist/gen-B87rlalt.mjs +0 -2
- package/dist/help-r_vrpH_d.mjs +0 -2
- package/dist/login-Bz0zEPoy.mjs +0 -2
- package/dist/migrate-BXY3B3m7.mjs +0 -2
- package/dist/prepare-D4CkM3_v.mjs +0 -2
- package/dist/provision-CNgEBkVA.mjs +0 -3
- package/dist/resolve-project-BTotl8Nn.mjs +0 -2
- package/dist/validate-DqJ33oHj.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as relative } from "./dist-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { l as relative } from "./dist-BVqXeR_h.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
3
3
|
import { existsSync, statSync } from "node:fs";
|
|
4
4
|
//#region src/drizzle/discover.ts
|
|
5
5
|
/**
|
|
@@ -8,6 +8,14 @@ const isWindows = process.platform === "win32";
|
|
|
8
8
|
* slash is a literal character, not a separator.
|
|
9
9
|
*/
|
|
10
10
|
const toForwardSlash = (path) => path.startsWith("\\\\?\\") ? path : path.replace(BACKSLASH_RE, "/");
|
|
11
|
+
/**
|
|
12
|
+
* Normalize separators to `/`, safely. On Windows it converts `\` to `/`. On
|
|
13
|
+
* POSIX it does nothing, because there a backslash is a legal filename character
|
|
14
|
+
* and rewriting it would corrupt the path.
|
|
15
|
+
*/
|
|
16
|
+
function toSlash(path) {
|
|
17
|
+
return isWindows ? toForwardSlash(path) : path;
|
|
18
|
+
}
|
|
11
19
|
const w = nodePath.win32;
|
|
12
20
|
function slashed(fn) {
|
|
13
21
|
return (...args) => toForwardSlash(fn(...args));
|
|
@@ -39,4 +47,4 @@ posix.win32 = win32.win32 = win32;
|
|
|
39
47
|
const path = isWindows ? win32 : posix;
|
|
40
48
|
const { basename, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, parse, relative, resolve, sep, toNamespacedPath } = path;
|
|
41
49
|
//#endregion
|
|
42
|
-
export { join as a, posix as c,
|
|
50
|
+
export { join as a, posix as c, toSlash as d, win32 as f, isAbsolute as i, relative as l, dirname as n, normalize as o, extname as r, path as s, basename as t, resolve as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as import_picocolors } from "./output-CCH48AMM.mjs";
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
3
|
-
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-
|
|
2
|
+
import { c as getToken } from "./auth-DLNN0D3Z.mjs";
|
|
3
|
+
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-C0Fqu05O.mjs";
|
|
4
4
|
import { N as note, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
-
import { n as PlatformClient } from "./client-
|
|
5
|
+
import { n as PlatformClient } from "./client-QTl6ko_D.mjs";
|
|
6
6
|
//#region src/cli/domain.ts
|
|
7
7
|
async function runDomainCommand(root, args) {
|
|
8
8
|
const platform = readDeploymentPlatform(root);
|
|
@@ -40,7 +40,7 @@ async function runDomainCommand(root, args) {
|
|
|
40
40
|
}
|
|
41
41
|
async function runCloudflareDomainCommand(root, args) {
|
|
42
42
|
if (args.projectSlug) throw new Error("domain: --project selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
43
|
-
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-
|
|
43
|
+
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-BipGMJ5O.mjs");
|
|
44
44
|
if (args.subcommand === "add") {
|
|
45
45
|
const result = await changeCloudflareDomain(root, args.hostname, "add");
|
|
46
46
|
log.success(result.modified ? `Domain ${args.hostname} added and activated on Cloudflare.` : `Domain ${args.hostname} is already configured.`);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as join } from "./dist-
|
|
1
|
+
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
2
|
import { c as import_picocolors, i as createSpinner } from "./output-CCH48AMM.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
5
|
-
import { c as getToken, d as openBrowser } from "./auth-
|
|
6
|
-
import { o as readProjectConfig } from "./project-
|
|
7
|
-
import { m as readConfig } from "./config-
|
|
8
|
-
import { k as writeProvisionedWranglerConfig } from "./wrangler-
|
|
3
|
+
import { L as resolveDeployTransport, O as isWranglerNonInteractiveOrCI, X as runWranglerAuthToken, _ as deriveWorkerName, _t as findEmailConfigConflicts, bt as renderEmailChecklist, gt as createNodeEmailDns, h as createDeployWranglerRunner, ht as applyEmailSetup, k as loadProvisionModule, v as discoverRootWranglerConfig, vt as preflightEmail, yt as renderAddressMap } from "./deploy-CsMJrPfM.mjs";
|
|
4
|
+
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
5
|
+
import { c as getToken, d as openBrowser } from "./auth-DLNN0D3Z.mjs";
|
|
6
|
+
import { o as readProjectConfig } from "./project-C0Fqu05O.mjs";
|
|
7
|
+
import { m as readConfig } from "./config-CafTW6Cz.mjs";
|
|
8
|
+
import { k as writeProvisionedWranglerConfig } from "./wrangler-BymcxrRa.mjs";
|
|
9
9
|
import { E as confirm, F as password, N as note, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
10
|
-
import { a as scanEmailHandlersSync } from "./email
|
|
11
|
-
import { n as PlatformClient, t as PlatformApiError } from "./client-
|
|
10
|
+
import { a as scanEmailHandlersSync } from "./email--tEtMoj_.mjs";
|
|
11
|
+
import { n as PlatformClient, t as PlatformApiError } from "./client-QTl6ko_D.mjs";
|
|
12
12
|
import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
13
13
|
import { tmpdir } from "node:os";
|
|
14
14
|
import { execSync } from "node:child_process";
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import { a as join, l as relative } from "./dist-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { a as join, l as relative } from "./dist-BVqXeR_h.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
3
|
+
import { n as isIdentifier } from "./ast-CPGPjb0V.mjs";
|
|
3
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
5
|
import { parseSync } from "vite";
|
|
5
|
-
//#region src/shared/ast.ts
|
|
6
|
-
function isIdentifier(node) {
|
|
7
|
-
return node?.type === "Identifier" && typeof node.name === "string";
|
|
8
|
-
}
|
|
9
|
-
function isLiteral(node) {
|
|
10
|
-
return node?.type === "Literal";
|
|
11
|
-
}
|
|
12
|
-
function isMemberExpression(node) {
|
|
13
|
-
return node?.type === "MemberExpression";
|
|
14
|
-
}
|
|
15
|
-
function isCallExpression(node) {
|
|
16
|
-
return node?.type === "CallExpression";
|
|
17
|
-
}
|
|
18
|
-
function isObjectExpression(node) {
|
|
19
|
-
return node?.type === "ObjectExpression";
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
6
|
//#region src/ssr/entry.ts
|
|
23
7
|
const SSR_SERVER_ENTRY_RELATIVE_PATHS = ["src/main.ssr.ts", "src/main.ssr.tsx"];
|
|
24
8
|
const SSR_CLIENT_ENTRY_RELATIVE_PATHS = ["src/main.client.ts", "src/main.client.tsx"];
|
|
@@ -45,7 +29,6 @@ function hasSsrEntry(root, paths = readProjectPaths(root)) {
|
|
|
45
29
|
function validateServerRenderExport(entry) {
|
|
46
30
|
const { absolutePath, relativePath } = entry;
|
|
47
31
|
const source = readFileSync(absolutePath, "utf-8");
|
|
48
|
-
if (/\bexport\s+(?:async\s+)?function\s+render\b/.test(source) || /\bexport\s+const\s+render\b/.test(source) || /\bexport\s+default\s+(?:defineRender\b|(?:async\s+)?function\b)/.test(source)) return;
|
|
49
32
|
let parsed;
|
|
50
33
|
try {
|
|
51
34
|
parsed = parseSync(relativePath, source);
|
|
@@ -97,4 +80,4 @@ function validateSsrEntry(root, paths = readProjectPaths(root)) {
|
|
|
97
80
|
return validateSsrEntries(root, paths)?.server.absolutePath ?? null;
|
|
98
81
|
}
|
|
99
82
|
//#endregion
|
|
100
|
-
export { validateSsrEntries as a,
|
|
83
|
+
export { validateSsrEntries as a, hasSsrEntry as i, SSR_SERVER_ENTRY_RELATIVE_PATHS as n, validateSsrEntry as o, getSsrServerEntryPath as r, SSR_CLIENT_ENTRY_RELATIVE_PATHS as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as join } from "./dist-
|
|
1
|
+
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
2
|
import { r as cliTitle } from "./output-CCH48AMM.mjs";
|
|
3
|
-
import { c as getToken } from "./auth-
|
|
4
|
-
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-
|
|
5
|
-
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
6
|
-
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-
|
|
3
|
+
import { c as getToken } from "./auth-DLNN0D3Z.mjs";
|
|
4
|
+
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-C0Fqu05O.mjs";
|
|
5
|
+
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-C2_bIk_b.mjs";
|
|
6
|
+
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-BB4GkLxn.mjs";
|
|
7
7
|
import { N as note, O as intro, P as outro, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
8
|
-
import { n as PlatformClient } from "./client-
|
|
8
|
+
import { n as PlatformClient } from "./client-QTl6ko_D.mjs";
|
|
9
9
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
10
10
|
//#region src/cli/env.ts
|
|
11
11
|
async function runEnvCommand(root, args) {
|
|
@@ -26,7 +26,7 @@ async function runCheck(root, useRemoteSecrets) {
|
|
|
26
26
|
const platform = readDeploymentPlatform(root);
|
|
27
27
|
if (platform === "none") throw new Error("env: Deployment is disabled. Run `void init` to choose a platform.");
|
|
28
28
|
if (platform === "cloudflare") {
|
|
29
|
-
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
29
|
+
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-BipGMJ5O.mjs");
|
|
30
30
|
remoteSecrets = await listCloudflareSecrets(resolveCloudflareOperationContext(root));
|
|
31
31
|
} else {
|
|
32
32
|
const token = getToken(root);
|
|
@@ -10,9 +10,12 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
10
10
|
*/
|
|
11
11
|
const runtimeRequestContext = new AsyncLocalStorage();
|
|
12
12
|
/** @internal Reuse a resource only within the current runtime request. */
|
|
13
|
-
function getRuntimeRequestResource(key, initialize) {
|
|
13
|
+
function getRuntimeRequestResource(key, initialize, outsideScope) {
|
|
14
14
|
const scope = runtimeRequestContext.getStore();
|
|
15
|
-
if (!scope)
|
|
15
|
+
if (!scope) {
|
|
16
|
+
if (outsideScope) return outsideScope();
|
|
17
|
+
throw new Error("env: Request-scoped resource is unavailable outside a runtime handler.");
|
|
18
|
+
}
|
|
16
19
|
if (scope.resources.has(key)) return scope.resources.get(key);
|
|
17
20
|
const resource = initialize();
|
|
18
21
|
scope.resources.set(key, resource);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as relative } from "./dist-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { l as relative } from "./dist-BVqXeR_h.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
3
3
|
import { i as voidWarn } from "./log-ChfPKsVd.mjs";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
//#region src/codegen/env-types.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as join, n as dirname, u as resolve } from "./dist-
|
|
1
|
+
import { a as join, n as dirname, u as resolve } from "./dist-BVqXeR_h.mjs";
|
|
2
2
|
import { i as voidWarn } from "./log-ChfPKsVd.mjs";
|
|
3
|
-
import { t as findEnvFile } from "./env-types-
|
|
4
|
-
import { a as loadLocalEnv, i as isClientEnvKey, r as findLegacyEnvFiles } from "./env-
|
|
5
|
-
import { o as resolveWranglerArgv } from "./preset-
|
|
3
|
+
import { t as findEnvFile } from "./env-types-C2_bIk_b.mjs";
|
|
4
|
+
import { a as loadLocalEnv, i as isClientEnvKey, r as findLegacyEnvFiles } from "./env-_v349JBd.mjs";
|
|
5
|
+
import { o as resolveWranglerArgv } from "./preset-UHj9ARyP.mjs";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars, r as SelfHostSchemaError } from "./env-validation-
|
|
1
|
+
import { a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars, r as SelfHostSchemaError } from "./env-validation-BB4GkLxn.mjs";
|
|
2
2
|
export { SelfHostSchemaError, computeInvalidEmittedKeys, deriveSelfHostSchemaFacts, readEmittedWorkerVars };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as join, l as relative, n as dirname } from "./dist-
|
|
1
|
+
import { a as join, l as relative, n as dirname } from "./dist-BVqXeR_h.mjs";
|
|
2
2
|
import { r as cliTitle } from "./output-CCH48AMM.mjs";
|
|
3
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
4
|
-
import { m as readConfig, u as getDatabaseDialect } from "./config-
|
|
5
|
-
import { n as ensureProjectTsconfig } from "./project-tsconfig-
|
|
6
|
-
import { n as readJournal, t as collectMigrations } from "./collect-
|
|
3
|
+
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
4
|
+
import { m as readConfig, u as getDatabaseDialect } from "./config-CafTW6Cz.mjs";
|
|
5
|
+
import { n as ensureProjectTsconfig } from "./project-tsconfig-B8GeM0RM.mjs";
|
|
6
|
+
import { n as readJournal, t as collectMigrations } from "./collect-DiTn9yr6.mjs";
|
|
7
7
|
import { I as select, O as intro, P as outro, T as cancel, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
8
|
-
import { t as writeDrizzleConfig } from "./config-
|
|
9
|
-
import { r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-
|
|
10
|
-
import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
8
|
+
import { t as writeDrizzleConfig } from "./config-D8MOgiQV.mjs";
|
|
9
|
+
import { r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-CIUwFpjB.mjs";
|
|
10
|
+
import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-BV4AzNul.mjs";
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
13
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as join, n as dirname } from "./dist-
|
|
2
|
-
import { t as collectMigrations } from "./collect-
|
|
1
|
+
import { a as join, n as dirname } from "./dist-BVqXeR_h.mjs";
|
|
2
|
+
import { t as collectMigrations } from "./collect-DiTn9yr6.mjs";
|
|
3
3
|
import { n as openMigrationValidationDatabase } from "./sqlite-validation-BzKMWnO4.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
//#region src/drizzle/generate.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as import_picocolors } from "./output-CCH48AMM.mjs";
|
|
2
|
-
import { c as getToken, d as openBrowser, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback } from "./auth-
|
|
3
|
-
import { o as readProjectConfig } from "./project-
|
|
2
|
+
import { c as getToken, d as openBrowser, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback } from "./auth-DLNN0D3Z.mjs";
|
|
3
|
+
import { o as readProjectConfig } from "./project-C0Fqu05O.mjs";
|
|
4
4
|
import { B as text, E as confirm, I as select, T as cancel, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
-
import { n as PlatformClient, o as parsePlatformErrorBody, s as platformErrorMessage, t as PlatformApiError } from "./client-
|
|
6
|
-
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-
|
|
5
|
+
import { n as PlatformClient, o as parsePlatformErrorBody, s as platformErrorMessage, t as PlatformApiError } from "./client-QTl6ko_D.mjs";
|
|
6
|
+
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-BG5ORGID.mjs";
|
|
7
7
|
import { t as collectGitDeployMetadata } from "./git-metadata-D-gurjzG.mjs";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
//#region src/cli/github-cmd.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as join } from "./dist-
|
|
2
|
-
import { a as convertFallbacksConfig, c as convertRewritesConfig, f as isProtocolRelative, l as countSplats, n as VALID_REDIRECT_STATUSES, o as convertHeadersConfig, p as parseHostPrefixedSource, s as convertRedirectsConfig } from "./config-
|
|
1
|
+
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
|
+
import { a as convertFallbacksConfig, c as convertRewritesConfig, f as isProtocolRelative, l as countSplats, n as VALID_REDIRECT_STATUSES, o as convertHeadersConfig, p as parseHostPrefixedSource, s as convertRedirectsConfig } from "./config-CafTW6Cz.mjs";
|
|
3
3
|
import { i as voidWarn } from "./log-ChfPKsVd.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/cli/headers.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as join } from "./dist-
|
|
1
|
+
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
2
|
import { c as import_picocolors, l as sectionTitle, s as helpLine, t as categoryTitle } from "./output-CCH48AMM.mjs";
|
|
3
3
|
import { N as note, P as outro } from "./dist-Dn6nn2IU.mjs";
|
|
4
|
-
import { n as getPackageDir } from "./agents-
|
|
5
|
-
import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-
|
|
4
|
+
import { n as getPackageDir } from "./agents-B_pX_HmQ.mjs";
|
|
5
|
+
import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-DUwumHpQ.mjs";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
//#region src/cli/ascii.ts
|
|
8
8
|
const asciiArts = [
|
|
@@ -747,6 +747,10 @@ const HELP_TREE = {
|
|
|
747
747
|
command: "--require-email",
|
|
748
748
|
description: "Fail instead of deploying without email when the mail domain is not set up (with --platform cloudflare)"
|
|
749
749
|
},
|
|
750
|
+
{
|
|
751
|
+
command: "--atomic",
|
|
752
|
+
description: "Publish a Durable Object Worker without pre-traffic staging (Cloudflare only)"
|
|
753
|
+
},
|
|
750
754
|
{
|
|
751
755
|
command: "--debug",
|
|
752
756
|
description: "Mirror the deploy log to stderr (always written to ~/.void/logs)"
|