void 0.9.3 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auth-cmd-CPkWrQR9.mjs → auth-cmd-DLvXvN-0.mjs} +2 -2
- package/dist/{better-auth-shared-CmEQZs1T.d.mts → better-auth-shared-a7H3wk9J.d.mts} +2 -2
- package/dist/{cache-1SVxZ7BK.mjs → cache-CHFZmqa5.mjs} +1 -1
- package/dist/{cancel-deploy-JaFClLr7.mjs → cancel-deploy-BwpT4U4a.mjs} +1 -1
- package/dist/cli/cli.mjs +273 -36
- package/dist/{client-DIfOFf1W.mjs → client-CTHvucDv.mjs} +166 -45
- package/dist/{create-project-DCUrFJxa.mjs → create-project-CruTH_TQ.mjs} +1 -1
- package/dist/{db-UW4IYQFw.mjs → db-BxnfKs7f.mjs} +14 -14
- package/dist/{delete-CYknzwXU.mjs → delete-IQe1O4Re.mjs} +1 -1
- package/dist/{deploy-RQXpVBL-.mjs → deploy-CuxXxVgz.mjs} +195 -89
- package/dist/{domain-B7RntQ1r.mjs → domain-Bq6kzr_T.mjs} +1 -1
- package/dist/{env-C_ZcxxED.mjs → env-BD3U_0Av.mjs} +1 -1
- package/dist/{env-helpers-Bd2wVdxz.d.mts → env-helpers-ZatKyjen.d.mts} +1 -1
- package/dist/{gen-O5mXZ76K.mjs → gen-Dgi4D7GC.mjs} +1 -1
- package/dist/git-metadata-Ce0AtSZL.mjs +82 -0
- package/dist/github-cmd-CD0Z8KCF.mjs +441 -0
- package/dist/{handler-hm9KldPP.d.mts → handler-DczZlaXR.d.mts} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +18 -18
- package/dist/{init-DGrLx2ls.mjs → init-CTe46nIr.mjs} +113 -77
- package/dist/{link-7MoXUMaI.mjs → link-BGFW4pHD.mjs} +2 -2
- package/dist/{list-N2mCHv8q.mjs → list-CbGxdbe7.mjs} +1 -1
- package/dist/{login-tt1OmNVg.mjs → login-v4wle1vn.mjs} +1 -1
- package/dist/{logs-Cl7q2CjZ.mjs → logs-BFgY5Vqc.mjs} +1 -1
- package/dist/{mcp-BXD35N2J.mjs → mcp-STKL-uWs.mjs} +1 -1
- package/dist/{node-Df8UjQ2H.mjs → node-B07cZs0d.mjs} +3 -3
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +1 -0
- package/dist/pages/head-client.d.mts +1 -1
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +1 -1
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/{plugin-inference--7geW5Z2.mjs → plugin-inference-C3fLzFvP.mjs} +2 -0
- package/dist/{prepare-DT-7QII_.mjs → prepare-DH2WnEpD.mjs} +3 -3
- package/dist/{preset-2aBxMfY1.mjs → preset-B7ZQZn0u.mjs} +2 -2
- package/dist/{project-cmd-CLrqSbqj.mjs → project-cmd-DZh-vbEL.mjs} +8 -8
- package/dist/{protocol-B9GZA4Bn.d.mts → protocol-63PHtCHS.d.mts} +3 -3
- package/dist/{rollback-CEbAwbHK.mjs → rollback-o0M0Qo_n.mjs} +1 -1
- package/dist/{runner-DLZ9E_cX.mjs → runner-BQyKUqAL.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +3 -3
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +2 -2
- package/dist/runtime/client-react.d.mts +2 -2
- package/dist/runtime/client-react.mjs +1 -1
- package/dist/runtime/client-solid.d.mts +2 -2
- package/dist/runtime/client-solid.mjs +1 -1
- package/dist/runtime/client-svelte.d.mts +2 -2
- package/dist/runtime/client-svelte.mjs +1 -1
- package/dist/runtime/client-vue.d.mts +2 -2
- package/dist/runtime/client-vue.mjs +1 -1
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/client.mjs +1 -1
- package/dist/runtime/env-helpers.d.mts +1 -1
- package/dist/runtime/env-public-client.d.mts +1 -1
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/env-public.mjs +1 -1
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +1 -1
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.mjs +1 -1
- package/dist/runtime/live.d.mts +2 -2
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/migration-handler-pg.mjs +1 -1
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws.d.mts +3 -3
- package/dist/{scan-B2H1Vo2C.mjs → scan-DGEp1-1Q.mjs} +17 -9
- package/dist/{secret-C_uTY7xx.mjs → secret-gs_yyGZL.mjs} +1 -1
- package/package.json +2 -2
- package/schema.json +3 -3
- package/skills/void/docs/guide/deployment.md +26 -11
- package/skills/void/docs/guide/edge/headers.md +10 -3
- package/skills/void/docs/guide/edge/rewrites.md +5 -5
- package/skills/void/docs/reference/cli.md +89 -2
- /package/dist/{auth-migrations-CuQkjjWE.mjs → auth-migrations-BP-hMzYl.mjs} +0 -0
- /package/dist/{auth-CDeb2XAl.d.mts → auth-nEUVHuFI.d.mts} +0 -0
- /package/dist/{better-auth-shared-QAfk8CAS.mjs → better-auth-shared-D0Mbmx5V.mjs} +0 -0
- /package/dist/{defer-CouVukrf.mjs → defer-C-bdSM_b.mjs} +0 -0
- /package/dist/{drizzle-DYstYz0j.mjs → drizzle-DqstQTGq.mjs} +0 -0
- /package/dist/{env-raw-RDkMnSTC.mjs → env-raw-Dtj1UAoK.mjs} +0 -0
- /package/dist/{fetch-error-CimrygMq.d.mts → fetch-error-BQMdPvge.d.mts} +0 -0
- /package/dist/{fetch-error-BFIoojjf.mjs → fetch-error-C6qffTl2.mjs} +0 -0
- /package/dist/{head-BsSTGnIe.d.mts → head-JAH2l3fg.d.mts} +0 -0
- /package/dist/{headers-VkAnACKX.mjs → headers-BNWymgnH.mjs} +0 -0
- /package/dist/{package-json-B2TD0JLu.mjs → package-json-Bg_GJdJB.mjs} +0 -0
- /package/dist/{pg-CMZ_5wsC.mjs → pg-CempqvEJ.mjs} +0 -0
- /package/dist/{providers-3Kkv63Ha.d.mts → providers-BkiAlEad.d.mts} +0 -0
- /package/dist/{runner-pg-Cv9V7ydr.mjs → runner-pg-BAheiT6v.mjs} +0 -0
- /package/dist/{skills-BRKc--As.mjs → skills--OMgLmXW.mjs} +0 -0
- /package/dist/{standard-schema-Dnsh2vnl.d.mts → standard-schema-BCBv-QaP.d.mts} +0 -0
- /package/dist/{subcommand-prompt-OD-x_Tsm.mjs → subcommand-prompt-ClwpLlKD.mjs} +0 -0
- /package/dist/{types-DEWCqHtl.d.mts → types-BnHMXezo.d.mts} +0 -0
- /package/dist/{yarn-pnp-0SwYgQxx.mjs → yarn-pnp-DhCHHLAz.mjs} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { f as getToken, m as isStagingMode, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
5
5
|
import { _ as me, c as R, g as ge, i as Ee, l as Re, u as Se, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
7
7
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-BTNuNoJ0.mjs";
|
|
8
8
|
import { c as getDatabaseDialect, f as readConfig } from "./config-8dLIngKW.mjs";
|
|
9
|
-
import { r as detectFramework } from "./plugin-inference
|
|
9
|
+
import { r as detectFramework } from "./plugin-inference-C3fLzFvP.mjs";
|
|
10
10
|
import { r as parseDotenvFile, t as expandDotenv } from "./dotenv-lS94ymhM.mjs";
|
|
11
11
|
import { t as MagicString } from "./magic-string.es-C1Fb0uxq.mjs";
|
|
12
12
|
import { n as writeDrizzleConfig } from "./config--wXmVOoe.mjs";
|
|
13
13
|
import { n as getAgentById, r as getPackageDir, t as detectAgents } from "./agents-MhSzNMiC.mjs";
|
|
14
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
15
|
-
import { t as promptForLoginToken } from "./login-
|
|
16
|
-
import { r as formatProjectCommand } from "./preset-
|
|
17
|
-
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
14
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-CruTH_TQ.mjs";
|
|
15
|
+
import { t as promptForLoginToken } from "./login-v4wle1vn.mjs";
|
|
16
|
+
import { r as formatProjectCommand } from "./preset-B7ZQZn0u.mjs";
|
|
17
|
+
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DhCHHLAz.mjs";
|
|
18
18
|
import { createRequire } from "node:module";
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { fileURLToPath } from "node:url";
|
|
@@ -1767,95 +1767,129 @@ function getNodeVersionLine(root) {
|
|
|
1767
1767
|
if (existsSync(join(root, ".node-version"))) return "node-version-file: .node-version";
|
|
1768
1768
|
return "node-version: lts/*";
|
|
1769
1769
|
}
|
|
1770
|
-
|
|
1770
|
+
const WORKFLOW_DEFAULT_API_URL = "https://api.void.cloud";
|
|
1771
|
+
function getWorkflowSetupSteps(root, pm) {
|
|
1771
1772
|
const nodeVersion = getNodeVersionLine(root);
|
|
1772
1773
|
switch (pm) {
|
|
1773
|
-
case "pnpm": return
|
|
1774
|
-
|
|
1775
|
-
push:
|
|
1776
|
-
branches: [main]
|
|
1777
|
-
|
|
1778
|
-
jobs:
|
|
1779
|
-
deploy:
|
|
1780
|
-
runs-on: ubuntu-latest
|
|
1781
|
-
steps:
|
|
1782
|
-
- uses: actions/checkout@v6
|
|
1783
|
-
- uses: pnpm/action-setup@v5
|
|
1774
|
+
case "pnpm": return {
|
|
1775
|
+
setup: ` - uses: pnpm/action-setup@v5
|
|
1784
1776
|
- uses: actions/setup-node@v6
|
|
1785
1777
|
with:
|
|
1786
1778
|
${nodeVersion}
|
|
1787
|
-
cache: pnpm
|
|
1788
|
-
- run: pnpm install
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
case "yarn": return `name: Deploy
|
|
1794
|
-
on:
|
|
1795
|
-
push:
|
|
1796
|
-
branches: [main]
|
|
1797
|
-
|
|
1798
|
-
jobs:
|
|
1799
|
-
deploy:
|
|
1800
|
-
runs-on: ubuntu-latest
|
|
1801
|
-
steps:
|
|
1802
|
-
- uses: actions/checkout@v6
|
|
1803
|
-
- uses: actions/setup-node@v6
|
|
1779
|
+
cache: pnpm`,
|
|
1780
|
+
install: " - run: pnpm install --frozen-lockfile",
|
|
1781
|
+
runner: "pnpm exec void"
|
|
1782
|
+
};
|
|
1783
|
+
case "yarn": return {
|
|
1784
|
+
setup: ` - uses: actions/setup-node@v6
|
|
1804
1785
|
with:
|
|
1805
1786
|
${nodeVersion}
|
|
1806
|
-
cache: yarn
|
|
1807
|
-
- run: yarn install --immutable
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1787
|
+
cache: yarn`,
|
|
1788
|
+
install: " - run: yarn install --immutable",
|
|
1789
|
+
runner: "yarn void"
|
|
1790
|
+
};
|
|
1791
|
+
case "bun": return {
|
|
1792
|
+
setup: " - uses: oven-sh/setup-bun@v2",
|
|
1793
|
+
install: " - run: bun install --frozen-lockfile",
|
|
1794
|
+
runner: "bunx void"
|
|
1795
|
+
};
|
|
1796
|
+
default: return {
|
|
1797
|
+
setup: ` - uses: actions/setup-node@v6
|
|
1798
|
+
with:
|
|
1799
|
+
${nodeVersion}
|
|
1800
|
+
cache: npm`,
|
|
1801
|
+
install: " - run: npm ci",
|
|
1802
|
+
runner: "npx void"
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* Scaffold the GitHub Actions workflow that deploys via GitHub OIDC — no
|
|
1808
|
+
* long-lived secret stored in the repo. `void deploy` itself detects GitHub
|
|
1809
|
+
* Actions, mints an OIDC token (audience `void`), exchanges it at
|
|
1810
|
+
* `POST $VOID_API_URL/auth/github-oidc` for a short-lived, project-scoped deploy
|
|
1811
|
+
* token, and uses it — so the workflow is a single `void deploy` step (no
|
|
1812
|
+
* curl/jq). `permissions: id-token: write` is still required: it is what lets
|
|
1813
|
+
* the job (and thus the CLI) mint the OIDC token.
|
|
1814
|
+
*
|
|
1815
|
+
* `slug` is the linked project slug when known (from `.void/project.json`);
|
|
1816
|
+
* otherwise a `${{ vars.VOID_PROJECT }}` placeholder is emitted with a comment
|
|
1817
|
+
* telling the user to set the repository variable.
|
|
1818
|
+
*/
|
|
1819
|
+
function getWorkflowYaml(root, pm, slug) {
|
|
1820
|
+
const { setup, install, runner } = getWorkflowSetupSteps(root, pm);
|
|
1821
|
+
return `name: Deploy to Void
|
|
1813
1822
|
on:
|
|
1814
1823
|
push:
|
|
1815
1824
|
branches: [main]
|
|
1816
1825
|
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1826
|
+
# Latest push wins: cancel an in-flight deploy for the same repo+branch so a
|
|
1827
|
+
# newer commit is never overtaken by an older one. Keyed by repo + ref only —
|
|
1828
|
+
# workflow-level concurrency cannot read the \`env\` context, so VOID_PROJECT is
|
|
1829
|
+
# not used here (one repo+branch deploys to one project in this scaffold).
|
|
1830
|
+
concurrency:
|
|
1831
|
+
group: void-deploy-\${{ github.repository }}-\${{ github.ref }}
|
|
1832
|
+
cancel-in-progress: true
|
|
1833
|
+
|
|
1834
|
+
# id-token: write lets the job mint a GitHub OIDC token. No long-lived
|
|
1835
|
+
# VOID_TOKEN secret is stored — \`void deploy\` mints that OIDC token and
|
|
1836
|
+
# exchanges it for a short-lived, project-scoped deploy token at deploy time.
|
|
1837
|
+
permissions:
|
|
1838
|
+
id-token: write
|
|
1839
|
+
contents: read
|
|
1840
|
+
|
|
1841
|
+
env:
|
|
1842
|
+
# Override with a VOID_API_URL repository variable to target staging.
|
|
1843
|
+
VOID_API_URL: \${{ vars.VOID_API_URL || '${WORKFLOW_DEFAULT_API_URL}' }}
|
|
1844
|
+
${slug ? `VOID_PROJECT: ${slug}` : `# Set a VOID_PROJECT repository variable to your project slug
|
|
1845
|
+
# (Settings → Secrets and variables → Actions → Variables).
|
|
1846
|
+
VOID_PROJECT: \${{ vars.VOID_PROJECT }}`}
|
|
1832
1847
|
|
|
1833
1848
|
jobs:
|
|
1834
1849
|
deploy:
|
|
1835
1850
|
runs-on: ubuntu-latest
|
|
1836
1851
|
steps:
|
|
1837
1852
|
- uses: actions/checkout@v6
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
- run: npm ci
|
|
1843
|
-
- run: npx void deploy
|
|
1844
|
-
env:
|
|
1845
|
-
VOID_TOKEN: \${{ secrets.VOID_TOKEN }}
|
|
1853
|
+
${setup}
|
|
1854
|
+
${install}
|
|
1855
|
+
- name: Deploy
|
|
1856
|
+
run: ${runner} deploy --project "$VOID_PROJECT"
|
|
1846
1857
|
`;
|
|
1847
|
-
}
|
|
1848
1858
|
}
|
|
1849
1859
|
function setupGithubActions(root, state) {
|
|
1850
|
-
const
|
|
1860
|
+
const workflowDir = join(root, ".github", "workflows");
|
|
1861
|
+
const workflowPath = join(workflowDir, "void-deploy.yml");
|
|
1851
1862
|
if (existsSync(workflowPath)) {
|
|
1852
|
-
R.warn("deploy.yml already exists, skipping");
|
|
1863
|
+
R.warn("void-deploy.yml already exists, skipping");
|
|
1853
1864
|
return;
|
|
1854
1865
|
}
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1866
|
+
const slug = readProjectConfig(root)?.slug ?? null;
|
|
1867
|
+
mkdirSync(workflowDir, { recursive: true });
|
|
1868
|
+
writeFileSync(workflowPath, getWorkflowYaml(root, state.packageManager, slug));
|
|
1869
|
+
R.success("Created .github/workflows/void-deploy.yml");
|
|
1870
|
+
if (slug) Se(`Pushes to main will build and deploy "${slug}" via GitHub OIDC — no token to store.\nConnect the repo to your project in the Void dashboard to authorize it.`, "GitHub Actions OIDC deploy");
|
|
1871
|
+
else Se("Pushes to main will build and deploy via GitHub OIDC — no token to store.\nSet a VOID_PROJECT repository variable (Settings → Secrets and variables → Actions → Variables)\nto your project slug, and connect the repo to your project in the Void dashboard.", "GitHub Actions OIDC deploy");
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Bake a resolved project slug into an already-written `void-deploy.yml`.
|
|
1875
|
+
*
|
|
1876
|
+
* Step 8 (GitHub Actions) runs BEFORE Step 9 (project link), so when a user
|
|
1877
|
+
* links a project during the same interactive init the workflow was written
|
|
1878
|
+
* with the `${{ vars.VOID_PROJECT }}` placeholder. Once the link resolves a
|
|
1879
|
+
* slug, rewrite the placeholder `env.VOID_PROJECT` block in place so the user
|
|
1880
|
+
* does not also have to set a repository variable. No-op (returns `false`)
|
|
1881
|
+
* when the workflow is missing or the placeholder is not present (e.g. the
|
|
1882
|
+
* slug was already known at scaffold time, or the user declined linking).
|
|
1883
|
+
*/
|
|
1884
|
+
function patchWorkflowProjectSlug(root, slug) {
|
|
1885
|
+
const workflowPath = join(root, ".github", "workflows", "void-deploy.yml");
|
|
1886
|
+
if (!existsSync(workflowPath)) return false;
|
|
1887
|
+
const yaml = readFileSync(workflowPath, "utf-8");
|
|
1888
|
+
const placeholderBlock = " # Set a VOID_PROJECT repository variable to your project slug\n # (Settings → Secrets and variables → Actions → Variables).\n VOID_PROJECT: ${{ vars.VOID_PROJECT }}";
|
|
1889
|
+
if (!yaml.includes(placeholderBlock)) return false;
|
|
1890
|
+
writeFileSync(workflowPath, yaml.replace(placeholderBlock, ` VOID_PROJECT: ${slug}`));
|
|
1891
|
+
R.success(`Set VOID_PROJECT: ${slug} in .github/workflows/void-deploy.yml`);
|
|
1892
|
+
return true;
|
|
1859
1893
|
}
|
|
1860
1894
|
function writeFileIfMissing(root, filePath, content) {
|
|
1861
1895
|
const fullPath = join(root, filePath);
|
|
@@ -2764,7 +2798,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2764
2798
|
const agentSetup = await resolveAgentSetup(root);
|
|
2765
2799
|
injectAgentBlock(root, agentSetup.instructionFilePath);
|
|
2766
2800
|
if (agentSetup.agents.length > 0) {
|
|
2767
|
-
const { linkSkillsForSpecificAgents } = await import("./skills
|
|
2801
|
+
const { linkSkillsForSpecificAgents } = await import("./skills--OMgLmXW.mjs");
|
|
2768
2802
|
linkSkillsForSpecificAgents(root, agentSetup.agents);
|
|
2769
2803
|
} else R.info("Skills linking skipped for generic agent setup");
|
|
2770
2804
|
setupMcpConfig(root, agentSetup.agents);
|
|
@@ -2789,10 +2823,9 @@ async function runInitCommand(root, initArgs) {
|
|
|
2789
2823
|
}
|
|
2790
2824
|
}
|
|
2791
2825
|
const githubStepSkipForSubpackage = isInsideWorkspaceSubpackage(root);
|
|
2792
|
-
if ((!targeted || initArgs?.github) && !githubStepSkipForSubpackage) if (
|
|
2793
|
-
else if (targeted) setupGithubActions(root, state);
|
|
2826
|
+
if ((!targeted || initArgs?.github) && !githubStepSkipForSubpackage) if (targeted) setupGithubActions(root, state);
|
|
2794
2827
|
else {
|
|
2795
|
-
const setupGha = await ue({ message: "Create .github/workflows/deploy.yml to deploy on pushes to main?" });
|
|
2828
|
+
const setupGha = await ue({ message: "Create .github/workflows/void-deploy.yml to deploy on pushes to main?" });
|
|
2796
2829
|
if (q(setupGha)) {
|
|
2797
2830
|
me("Setup cancelled.");
|
|
2798
2831
|
process.exit(0);
|
|
@@ -2810,7 +2843,10 @@ async function runInitCommand(root, initArgs) {
|
|
|
2810
2843
|
}
|
|
2811
2844
|
if (scaffoldAddedDependencies) installProjectDependencies(root, state.packageManager);
|
|
2812
2845
|
if (scaffoldedStarterMode && !workspaceSubpackageSkip) generateStarterMigration(root, scaffoldedStarterMode);
|
|
2813
|
-
if (!targeted)
|
|
2846
|
+
if (!targeted) {
|
|
2847
|
+
const linked = await maybeSetupDeployProject(root);
|
|
2848
|
+
if (linked?.slug) patchWorkflowProjectSlug(root, linked.slug);
|
|
2849
|
+
}
|
|
2814
2850
|
if (workspaceSubpackageSkip) if (scaffoldedStarterMode) ye("Run your workspace install, then `void db generate` to finish setup.");
|
|
2815
2851
|
else ye("Run your workspace install to finish setup.");
|
|
2816
2852
|
else ye(`Run \`${getDevCommand(root, framework)}\` to start developing`);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getSiteDomain, f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
5
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-CruTH_TQ.mjs";
|
|
6
6
|
import { r as resolveProjectBySlug } from "./resolve-project-D4O1_fZz.mjs";
|
|
7
7
|
//#region src/cli/link.ts
|
|
8
8
|
async function runLink(root, slug) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-D4O1_fZz.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as runLogin, a as isExpiredTokenError, f as getToken, g as removeToken, m as isStagingMode, n as PlatformClient, p as getTokenSource, v as saveToken } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/login.ts
|
|
5
5
|
async function promptForLoginToken(root = process.cwd()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/logs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { a as writeProjectConfig } from "./project-CH9pdo16.mjs";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYPVRT.mjs";
|
|
3
3
|
import { f as readConfig } from "./config-8dLIngKW.mjs";
|
|
4
|
-
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-
|
|
5
|
-
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-
|
|
6
|
-
import { getMiniflareDatabasePath } from "./runner-
|
|
4
|
+
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DqstQTGq.mjs";
|
|
5
|
+
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-BP-hMzYl.mjs";
|
|
6
|
+
import { getMiniflareDatabasePath } from "./runner-BQyKUqAL.mjs";
|
|
7
7
|
import { loadEnv } from "vite";
|
|
8
8
|
//#region src/auth/node.ts
|
|
9
9
|
async function runLocalVoidAuthMigrations(root, dialect, persistRoot = join(root, ".void"), databaseId = "local", configPath = findVoidAuthConfig(root)) {
|
package/dist/pages/client.d.mts
CHANGED
package/dist/pages/client.mjs
CHANGED
package/dist/pages/head.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-JAH2l3fg.mjs";
|
|
2
2
|
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
2
|
-
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-JAH2l3fg.mjs";
|
|
2
|
+
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-BnHMXezo.mjs";
|
|
3
3
|
import { serializePageData } from "./serialize.mjs";
|
|
4
4
|
import { RewriteDestination } from "void/routes";
|
|
5
5
|
|
package/dist/pages/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as join } from "../pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
|
2
2
|
import { r as resolvePagesDir } from "../project-paths-CCMrHYQm.mjs";
|
|
3
3
|
import { f as readConfig } from "../config-8dLIngKW.mjs";
|
|
4
4
|
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-VCAM1oh3.mjs";
|
|
5
|
-
import { i as parseRedirectsFile } from "../headers-
|
|
5
|
+
import { i as parseRedirectsFile } from "../headers-BNWymgnH.mjs";
|
|
6
6
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
7
7
|
import { serializePageData } from "./serialize.mjs";
|
|
8
8
|
//#region src/pages/manifest.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { w as ValidationError } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-
|
|
1
|
+
import { w as ValidationError } from "../handler-DczZlaXR.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-63PHtCHS.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isConvertedResponse } from "../runtime/response.mjs";
|
|
2
|
-
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-
|
|
2
|
+
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-C-bdSM_b.mjs";
|
|
3
3
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
4
4
|
import { serializePageData } from "./serialize.mjs";
|
|
5
5
|
//#region src/pages/protocol.ts
|
|
@@ -398,6 +398,7 @@ function validateServerRenderExport(entry) {
|
|
|
398
398
|
return false;
|
|
399
399
|
}
|
|
400
400
|
if (node.type !== "ExportNamedDeclaration") return false;
|
|
401
|
+
if (node.exportKind === "type") return false;
|
|
401
402
|
const declaration = node.declaration;
|
|
402
403
|
if (declaration?.type === "FunctionDeclaration") {
|
|
403
404
|
const fn = declaration;
|
|
@@ -405,6 +406,7 @@ function validateServerRenderExport(entry) {
|
|
|
405
406
|
}
|
|
406
407
|
if (declaration?.type === "VariableDeclaration") return (declaration.declarations ?? []).some((decl) => isIdentifier(decl.id) && decl.id.name === "render");
|
|
407
408
|
return (node.specifiers ?? []).some((specifier) => {
|
|
409
|
+
if (specifier.exportKind === "type") return false;
|
|
408
410
|
const exported = specifier.exported;
|
|
409
411
|
return isIdentifier(exported) && exported.name === "render";
|
|
410
412
|
});
|
|
@@ -5,12 +5,12 @@ import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYP
|
|
|
5
5
|
import { c as R, g as ge, u as Se, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { n as ensureProjectTsconfig, r as writeFileIfChanged } from "./project-tsconfig-BTNuNoJ0.mjs";
|
|
7
7
|
import { c as getDatabaseDialect, f as readConfig } from "./config-8dLIngKW.mjs";
|
|
8
|
-
import { r as scanRoutes } from "./scan-
|
|
9
|
-
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference
|
|
8
|
+
import { r as scanRoutes } from "./scan-DGEp1-1Q.mjs";
|
|
9
|
+
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-C3fLzFvP.mjs";
|
|
10
10
|
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-D03ryMXz.mjs";
|
|
11
11
|
import { t as discoverSchema } from "./discover-C8N1I4tK.mjs";
|
|
12
12
|
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-CaJaIRXU.mjs";
|
|
13
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
13
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-DqstQTGq.mjs";
|
|
14
14
|
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
16
|
import { loadEnv } from "vite";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, c as resolve } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
3
|
-
import { s as hasSsrEntry } from "./plugin-inference
|
|
4
|
-
import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-
|
|
3
|
+
import { s as hasSsrEntry } from "./plugin-inference-C3fLzFvP.mjs";
|
|
4
|
+
import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-Bg_GJdJB.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
//#region src/cli/preset.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getSiteDomain, f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/projects.ts
|
|
5
5
|
async function runProjectsCommand(root) {
|
|
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
|
|
|
34
34
|
//#region src/cli/project-cmd.ts
|
|
35
35
|
async function runProjectCommand(root, args) {
|
|
36
36
|
if (args.subcommand === "status") {
|
|
37
|
-
const { runListCommand } = await import("./list-
|
|
37
|
+
const { runListCommand } = await import("./list-CbGxdbe7.mjs");
|
|
38
38
|
return runListCommand(root, args.name || void 0);
|
|
39
39
|
}
|
|
40
40
|
if (args.subcommand === "link") {
|
|
41
|
-
const { runLink } = await import("./link-
|
|
41
|
+
const { runLink } = await import("./link-BGFW4pHD.mjs");
|
|
42
42
|
return runLink(root, args.name || void 0);
|
|
43
43
|
}
|
|
44
44
|
if (args.subcommand === "list") return runProjectsCommand(root);
|
|
45
45
|
if (args.subcommand === "logs") {
|
|
46
|
-
const { runLogsCommand } = await import("./logs-
|
|
46
|
+
const { runLogsCommand } = await import("./logs-BFgY5Vqc.mjs");
|
|
47
47
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
48
48
|
}
|
|
49
49
|
if (args.subcommand === "rollback") {
|
|
50
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
50
|
+
const { runRollbackCommand } = await import("./rollback-o0M0Qo_n.mjs");
|
|
51
51
|
return runRollbackCommand(root, args.deployId || void 0);
|
|
52
52
|
}
|
|
53
53
|
if (args.subcommand === "cancel") {
|
|
54
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
54
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-BwpT4U4a.mjs");
|
|
55
55
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
56
56
|
}
|
|
57
57
|
if (args.subcommand === "delete") {
|
|
58
|
-
const { runDeleteCommand } = await import("./delete-
|
|
58
|
+
const { runDeleteCommand } = await import("./delete-IQe1O4Re.mjs");
|
|
59
59
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
60
60
|
}
|
|
61
61
|
if (args.subcommand === "purge-cache") {
|
|
62
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
62
|
+
const { runPurgeCacheCommand } = await import("./cache-CHFZmqa5.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as HeadDescriptor, t as HeadConfig } from "./head-
|
|
2
|
-
import { n as CloudBindings, r as CloudContext } from "./handler-
|
|
3
|
-
import { a as PageRenderMode, t as DevCssAsset } from "./types-
|
|
1
|
+
import { n as HeadDescriptor, t as HeadConfig } from "./head-JAH2l3fg.mjs";
|
|
2
|
+
import { n as CloudBindings, r as CloudContext } from "./handler-DczZlaXR.mjs";
|
|
3
|
+
import { a as PageRenderMode, t as DevCssAsset } from "./types-BnHMXezo.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/pages/protocol.d.ts
|
|
6
6
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { f as getToken, n as PlatformClient } from "./client-CTHvucDv.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/rollback.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { t as collectMigrations } from "./collect-9rO3JFNM.mjs";
|
|
3
3
|
import { r as classifyMigration } from "./plan-aD3wRDqF.mjs";
|
|
4
|
-
import { n as hasPackageDependency, r as readNearestPackageJson } from "./package-json-
|
|
4
|
+
import { n as hasPackageDependency, r as readNearestPackageJson } from "./package-json-Bg_GJdJB.mjs";
|
|
5
5
|
import { existsSync, mkdirSync } from "node:fs";
|
|
6
6
|
import { createHash, createHmac } from "node:crypto";
|
|
7
7
|
//#region src/migrations/runner.ts
|
package/dist/runtime/ai.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cfAccessHeaders } from "../cf-access-DKDsgwOU.mjs";
|
|
2
|
-
import { i as getRawRuntimeEnv } from "../env-raw-
|
|
2
|
+
import { i as getRawRuntimeEnv } from "../env-raw-Dtj1UAoK.mjs";
|
|
3
3
|
//#region src/runtime/ai-types.ts
|
|
4
4
|
/** Maps provider prefix to expected env var name for the API key */
|
|
5
5
|
const PROVIDER_KEY_MAP = {
|
package/dist/runtime/auth.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-
|
|
1
|
+
import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
export { AuthSession, AuthState, AuthUser, VoidAuthConfig, VoidAuthConfigContext, authContext, defineAuth, getSession, getUser, requireAuth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-
|
|
1
|
+
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-a7H3wk9J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth-pg.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as applyPgAuthMigrations } from "../auth-migrations-
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
3
|
-
import { t as disablePgPassFallback } from "../pg-
|
|
1
|
+
import { t as applyPgAuthMigrations } from "../auth-migrations-BP-hMzYl.mjs";
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D0Mbmx5V.mjs";
|
|
3
|
+
import { t as disablePgPassFallback } from "../pg-CempqvEJ.mjs";
|
|
4
4
|
//#region src/runtime/better-auth-pg.ts
|
|
5
5
|
function resolveConnectionString(env) {
|
|
6
6
|
const connectionString = typeof env.DATABASE_URL === "string" && env.DATABASE_URL.length > 0 ? env.DATABASE_URL : typeof env.HYPERDRIVE?.connectionString === "string" && env.HYPERDRIVE.connectionString.length > 0 ? env.HYPERDRIVE.connectionString : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-
|
|
1
|
+
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-a7H3wk9J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as applySqliteAuthMigrations } from "../auth-migrations-
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
1
|
+
import { n as applySqliteAuthMigrations } from "../auth-migrations-BP-hMzYl.mjs";
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D0Mbmx5V.mjs";
|
|
3
3
|
//#region src/runtime/better-auth.ts
|
|
4
4
|
async function resolveDatabase(env) {
|
|
5
5
|
if (!env.DB) throw new Error("auth: Better Auth requires the \"DB\" D1 binding for sqlite apps.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-react.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FetchError } from "../fetch-error-
|
|
1
|
+
import { t as FetchError } from "../fetch-error-C6qffTl2.mjs";
|
|
2
2
|
import { fetch } from "./fetch.mjs";
|
|
3
3
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
4
4
|
import { auth, createAuthClient } from "./auth-client-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-solid.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FetchError } from "../fetch-error-
|
|
1
|
+
import { t as FetchError } from "../fetch-error-C6qffTl2.mjs";
|
|
2
2
|
import { fetch } from "./fetch.mjs";
|
|
3
3
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
4
4
|
import { auth, createAuthClient } from "./auth-client-solid.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-svelte.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FetchError } from "../fetch-error-
|
|
1
|
+
import { t as FetchError } from "../fetch-error-C6qffTl2.mjs";
|
|
2
2
|
import { fetch } from "./fetch.mjs";
|
|
3
3
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
4
4
|
import { auth, createAuthClient } from "./auth-client-svelte.mjs";
|