void 1.6.1 → 1.7.0
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-DRhmCWcm.mjs → account-cmd-BfkJ_1PC.mjs} +6 -6
- package/dist/{application-analysis-HRFsZOv3.mjs → application-analysis-OV0CBJ80.mjs} +8 -19
- package/dist/{application-routing-P4TggvWp.mjs → application-routing-QpyC5G8z.mjs} +2 -1
- package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
- package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
- package/dist/{auth-CH4PLAX1.d.mts → auth-CZrthGxs.d.mts} +8 -1
- package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
- package/dist/{auth-link-CVXP1G6G.mjs → auth-link-CW1Zh6FM.mjs} +6 -6
- package/dist/{auth-router-D1pGdbvB.mjs → auth-router-CNBKnEZi.mjs} +3 -3
- package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-C-0uZg8-.d.mts} +1 -1
- package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
- package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-C9qOKW9W.mjs} +5 -5
- package/dist/{cache-2khBO1MR.mjs → cache-DVBBbWQL.mjs} +5 -5
- package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-COavnjud.mjs} +4 -4
- package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
- package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
- package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
- package/dist/cli/cli.mjs +68 -1868
- package/dist/cli/cloudflare-operation-process.mjs +10 -8
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli-main-DFteHrJI.mjs +1889 -0
- package/dist/client-BAxLpSKv.mjs +1 -0
- package/dist/{client-CoxPEhJq.mjs → client-BEZmTP6p.mjs} +10 -4
- package/dist/{cloudflare-auth-CEu-1Ps_.mjs → cloudflare-auth-DGIivpTb.mjs} +1 -1
- package/dist/{cloudflare-cmd-fZ6AMSWk.mjs → cloudflare-cmd-DJaxC-bc.mjs} +5 -5
- package/dist/{cloudflare-config-eQunqX6A.mjs → cloudflare-config-DtOGAbeB.mjs} +3 -3
- package/dist/{cloudflare-connect-9OZe4XVQ.mjs → cloudflare-connect-BjpWmglw.mjs} +3 -3
- package/dist/{cloudflare-operations-oLvAd9Nd.mjs → cloudflare-operations-CZkjFrzH.mjs} +1 -1
- package/dist/{cloudflare-operations-CrskD4_O.mjs → cloudflare-operations-k7wYUv56.mjs} +6 -6
- package/dist/{cloudflare-process-DjJ638A-.mjs → cloudflare-process-BcPvlMFd.mjs} +3 -3
- package/dist/{config-BITKQ3O6.mjs → config-5oSQhZNj.mjs} +7 -5
- package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
- package/dist/{config-BBlVXZCU.mjs → config-DcqUBGCb.mjs} +3 -3
- package/dist/{config-WlvEcL82.mjs → config-eeDzKBS9.mjs} +2 -2
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config-BgysUhnm.mjs → config-wo2EaH0X.mjs} +1 -1
- package/dist/{connect-CKvmkl2R.mjs → connect-j1F1C_rW.mjs} +7 -7
- package/dist/{create-project-Bq0M8MtO.mjs → create-project-CE3jOmd5.mjs} +5 -5
- package/dist/{create-project-BiMmR5wA.mjs → create-project-DZH3aYGQ.mjs} +1 -1
- package/dist/{db-DjtGAcOz.mjs → db-DyLzzxvM.mjs} +39 -39
- package/dist/{db-types-C_8amnB0.mjs → db-types-DdHHUVPy.mjs} +1 -1
- package/dist/{delete-CY4L8fi2.mjs → delete-Dey6YoMA.mjs} +5 -5
- package/dist/{deploy-D_gEojD2.mjs → deploy-Ccw2D2lw.mjs} +507 -122
- package/dist/deploy-DEZkUS77.mjs +2 -0
- package/dist/{deploy-managed-static-BHVbB_-A.mjs → deploy-managed-static-BBVtpuGv.mjs} +18 -18
- package/dist/{deploy-transport-DEyOUfac.mjs → deploy-transport-Dt0IvSVW.mjs} +2 -2
- package/dist/deploy.mjs +8 -8
- package/dist/discover-1DJD4YXD.mjs +1 -0
- package/dist/{discover-Dhkzxgdt.mjs → discover-CVFCWU7W.mjs} +1 -1
- package/dist/{dispatch-BNLB5_Gm.mjs → dispatch-pYaww76u.mjs} +6 -6
- package/dist/{dist-D23AAMxT.mjs → dist-BQdgCVQF.mjs} +1 -1
- package/dist/{dist-eV_Ep60B.mjs → dist-DeTdhbZc.mjs} +1 -1
- package/dist/{domain-BlH90Ods.mjs → domain-Dh3mG8Vs.mjs} +6 -6
- package/dist/{email-Bkq8ZL1p.mjs → email-DKyMjOYM.mjs} +11 -11
- package/dist/{email-cloudflare-MvJIxrwx.mjs → email-cloudflare-CTt2n_W2.mjs} +13 -9
- package/dist/{entry-CBZsCy3O.mjs → entry-Bw-G1VVx.mjs} +2 -2
- package/dist/{env-AvuCSeCH.mjs → env-DkZzh_Dd.mjs} +7 -7
- package/dist/env-mask-D31Qztl9.mjs +46 -0
- package/dist/{env-types-DqzVBKnS.mjs → env-types-Dz9qkiOn.mjs} +1 -1
- package/dist/{env-validation-GV1oD4EV.mjs → env-validation-1snjKtDX.mjs} +4 -4
- package/dist/{env-validation-C8Cmvas0.mjs → env-validation-C8NL3lEH.mjs} +1 -1
- package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
- package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
- package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
- package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
- package/dist/{gen-B9bCV5qu.mjs → gen-BZmFOGDQ.mjs} +7 -7
- package/dist/gen-C6iknRdI.mjs +1 -0
- package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-7Oky9qgH.mjs} +6 -6
- package/dist/{handler-CKeTtYID.mjs → handler-C9SnmeW1.mjs} +6 -5
- package/dist/{handler-BR6Tvjkp.d.mts → handler-DjqciiDc.d.mts} +20 -7
- package/dist/{headers-CuTEdP9C.mjs → headers-CimYIfQI.mjs} +1 -1
- package/dist/{help-1OCFDsRr.mjs → help-CNuUb47C.mjs} +7 -3
- package/dist/help-C_cqTByy.mjs +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +155 -110
- package/dist/{info-CJxua_db.mjs → info-DwB8IWIx.mjs} +4 -4
- package/dist/{init-B-4CluYx.mjs → init-CUGSmcED.mjs} +34 -32
- package/dist/{link-DAXOT-G_.mjs → link-BlRTGHan.mjs} +6 -6
- package/dist/{list-BYSOo9fm.mjs → list-iCg7d5Pa.mjs} +7 -7
- package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
- package/dist/{live-0xrcVpyq.d.mts → live-zKGbRT4h.d.mts} +2 -2
- package/dist/{local-d1-BLgsNUj9.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
- package/dist/login-C4q1S-5b.mjs +1 -0
- package/dist/{login-CJopTWX4.mjs → login-TA51e5Fw.mjs} +5 -5
- package/dist/{logs-DE0weBsR.mjs → logs-BlyAxlvx.mjs} +6 -6
- package/dist/{migrate-ChHHZBTi.mjs → migrate-BH6LCr00.mjs} +6 -6
- package/dist/migrate-CVBsSFhC.mjs +1 -0
- package/dist/nitro.d.mts +5 -0
- package/dist/nitro.mjs +27 -8
- package/dist/{node-CZ6lGNLn.mjs → node-B0otYjDv.mjs} +4 -4
- package/dist/{operator-args-D79WQP70.mjs → operator-args-DuKAQ3Ks.mjs} +1 -1
- package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
- package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
- package/dist/{operator-cmd-BUqsdk2K.mjs → operator-cmd-CoHlJjcT.mjs} +7 -7
- package/dist/operator-cmd-DnaCnCSP.mjs +1 -0
- package/dist/output-CNsMDEd2.mjs +1 -0
- package/dist/{output-BCdLioKP.mjs → output-CXJTIAtF.mjs} +1 -1
- package/dist/pages/client.d.mts +18 -13
- package/dist/pages/client.mjs +40 -69
- package/dist/pages/index.d.mts +4 -3
- package/dist/pages/index.mjs +11 -7
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/platform-args-B7-wQ0_B.mjs +1 -0
- package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-DfT8yQBF.mjs} +1 -1
- package/dist/{platform-auth-config-K4m_LE8b.mjs → platform-auth-config-MO0VdVs9.mjs} +10 -10
- package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-Dv208eyL.mjs} +8 -8
- package/dist/{platform-auth-recovery-BOdFrl7R.mjs → platform-auth-recovery-DvAQ674F.mjs} +7 -7
- package/dist/{platform-cmd-DpCHawGF.mjs → platform-cmd-BpUA19r_.mjs} +1 -1
- package/dist/{platform-cmd-Ds3EAV5t.mjs → platform-cmd-dlSxrcQ7.mjs} +9 -9
- package/dist/{platform-domain-rWJshybd.mjs → platform-domain-DSO4eUEw.mjs} +5 -5
- package/dist/{platform-lifecycle-D9RdGub1.mjs → platform-lifecycle-BSvsyB_x.mjs} +17 -17
- package/dist/{platform-lifecycle-BH34I0rh.mjs → platform-lifecycle-CfcFygHb.mjs} +1 -1
- package/dist/{platform-management-BfLW0Zlo.mjs → platform-management-BMdyt667.mjs} +1 -1
- package/dist/{platform-management-BRefdHGD.mjs → platform-management-CrP1XhVd.mjs} +4 -4
- package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-CgDiwflR.mjs} +5 -5
- package/dist/{platform-recovery-DZuZGJtt.mjs → platform-recovery-CHWwXVZ6.mjs} +3 -3
- package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-BTQVbnTC.mjs} +3 -3
- package/dist/{plugin-inference-CdLbxZL_.mjs → plugin-inference-g66Q1Mx9.mjs} +5 -8
- package/dist/prepare-Bx4a8cb1.mjs +1 -0
- package/dist/{prepare-BuNbuFlA.mjs → prepare-DJYHjpzq.mjs} +3 -3
- package/dist/{prepare-BerOZiD4.mjs → prepare-DXduEwQp.mjs} +12 -9
- package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BN9Lmebs.mjs} +29 -13
- package/dist/prerender-render.d.mts +10 -2
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-B_bUyZ3J.mjs → project-cmd-Dfb1Sg8w.mjs} +18 -18
- package/dist/{project-paths-CdGv9Tmi.mjs → project-paths-G0yut6Zz.mjs} +12 -8
- package/dist/{project-team-MjT5K4rQ.mjs → project-team-BO2dyc7S.mjs} +5 -5
- package/dist/{project-token-BKHGwY3k.mjs → project-token-ByO2mEI2.mjs} +5 -5
- package/dist/{project-tsconfig-Cf2NFjlM.mjs → project-tsconfig-nhnTWO_Y.mjs} +4 -2
- package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust-CoQfwRBR.mjs} +5 -5
- package/dist/{protocol-CkwjASep.d.mts → protocol-xZMvWsrg.d.mts} +5 -3
- package/dist/{protocol-COyySMki.mjs → protocol-yxdHxFLN.mjs} +47 -11
- package/dist/{provision-DQF6Kw-6.mjs → provision-CMH4-8ri.mjs} +1 -1
- package/dist/{provision-BbCzpbXs.mjs → provision-D5q-ptD3.mjs} +2 -2
- package/dist/{requests-daJmVpjk.mjs → requests-CPOiDkjh.mjs} +4 -4
- package/dist/resolve-project-BALVa9q0.mjs +1 -0
- package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-ClvLMTI9.mjs} +1 -1
- package/dist/{rollback-BgL0wY1J.mjs → rollback-BfCs2la4.mjs} +7 -7
- package/dist/{route-types-CZc1YXjF.mjs → route-types-Cl3x0Q8B.mjs} +265 -12
- package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
- package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
- package/dist/routes-stub.d.mts +10 -1
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
- package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +2 -2
- package/dist/runtime/auth.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 +1 -1
- package/dist/runtime/client-react.d.mts +3 -3
- package/dist/runtime/client-react.mjs +2 -2
- package/dist/runtime/client-solid.d.mts +3 -3
- package/dist/runtime/client-solid.mjs +2 -2
- package/dist/runtime/client-svelte.d.mts +3 -3
- package/dist/runtime/client-svelte.mjs +2 -2
- package/dist/runtime/client-vue.d.mts +3 -3
- package/dist/runtime/client-vue.mjs +2 -2
- package/dist/runtime/client.d.mts +3 -3
- package/dist/runtime/client.mjs +2 -2
- package/dist/runtime/email/testing.mjs +2 -2
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.mjs +2 -46
- package/dist/runtime/fetch-server.d.mts +1 -1
- package/dist/runtime/fetch-server.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +2 -2
- 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.d.mts +3 -1
- package/dist/runtime/live-client.d.mts +11 -2
- package/dist/runtime/live-client.mjs +8 -0
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.mjs +1 -1
- package/dist/runtime/remote/index.mjs +1 -1
- package/dist/runtime/route-url.d.mts +2 -2
- package/dist/runtime/route-url.mjs +1 -1
- package/dist/runtime/routing.d.mts +15 -4
- package/dist/runtime/routing.mjs +94 -12
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/sse-client.d.mts +9 -1
- package/dist/runtime/sse-client.mjs +7 -0
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/runtime/ws.mjs +1 -1
- package/dist/{scan-X2rDDRNa.mjs → scan-L8OSv1f7.mjs} +68 -19
- package/dist/{secret-CPq-B_vp.mjs → secret-CuI6LTpD.mjs} +7 -7
- package/dist/serialize-DN-envGQ.d.mts +18 -0
- package/dist/serialize-Pf-CIQK_.mjs +39 -0
- package/dist/{skills-D393E4lB.mjs → skills-BBO9wMjB.mjs} +1 -1
- package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-BZMnCA8T.mjs} +2 -2
- package/dist/url-CuoEn0o3.mjs +43 -0
- package/dist/validator-8-NZs2Xr.mjs +168 -0
- package/dist/{version-metadata-C8hLzQkv.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
- package/dist/wrangler-R3kMdJfw.mjs +1 -0
- package/dist/{wrangler-DESSbN8L.mjs → wrangler-k40T7XTQ.mjs} +3 -3
- package/dist/{wrapper-C9SUxoj7.mjs → wrapper-BGsi_uHs.mjs} +12 -9
- package/dist/{ws-Dmjg5NH2.d.mts → ws-DB8Feytg.d.mts} +2 -2
- package/docs/guide/ai.md +2 -0
- package/docs/guide/auth.md +62 -0
- package/docs/guide/database.md +33 -0
- package/docs/guide/deployment.md +8 -0
- package/docs/guide/edge/headers.md +3 -1
- package/docs/guide/edge/prerendering.md +9 -4
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/revalidation.md +3 -0
- package/docs/guide/edge/static-assets.md +1 -1
- package/docs/guide/live.md +2 -0
- package/docs/guide/pages-routing/actions-and-forms.md +29 -10
- package/docs/guide/pages-routing/head.md +3 -1
- package/docs/guide/pages-routing/islands.md +1 -1
- package/docs/guide/pages-routing/loaders.md +2 -0
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +139 -10
- package/docs/guide/quickstart.md +1 -0
- package/docs/guide/server-routing.md +14 -0
- package/docs/guide/sse.md +2 -0
- package/docs/guide/ssg.md +23 -2
- package/docs/guide/storage.md +6 -2
- package/docs/guide/type-safety.md +307 -26
- package/docs/guide/typed-fetch.md +7 -3
- package/docs/guide/websockets.md +5 -5
- package/docs/integrations/cloudflare.md +10 -10
- package/docs/integrations/frameworks/nuxt.md +2 -0
- package/docs/integrations/frameworks/overview.md +2 -0
- package/docs/integrations/nodejs-bun-deno.md +65 -0
- package/docs/reference/api/auth.md +19 -0
- package/docs/reference/api/client.md +6 -4
- package/docs/reference/api/handlers.md +3 -1
- package/docs/reference/api/pages.md +16 -8
- package/docs/reference/api/resources.md +3 -1
- package/docs/reference/api/rewrites.md +19 -5
- package/docs/reference/api/types.md +9 -2
- package/docs/reference/cli/database.md +2 -0
- package/docs/reference/cli/deploy.md +17 -11
- package/docs/reference/cli.md +3 -0
- package/docs/reference/config.md +24 -2
- package/package.json +25 -23
- package/schema.json +4 -0
- package/skills/void/SKILL.md +5 -0
- package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
- package/dist/client-CEtr5UOR.mjs +0 -1
- package/dist/deploy-B029oHlE.mjs +0 -2
- package/dist/discover-D4mQthao.mjs +0 -1
- package/dist/gen-cCxrFp9L.mjs +0 -1
- package/dist/help-Ba8Dq5-r.mjs +0 -1
- package/dist/login-BpbYeu-n.mjs +0 -1
- package/dist/migrate-HdA6Kh2p.mjs +0 -1
- package/dist/operator-cmd-wBYyp8iQ.mjs +0 -1
- package/dist/output-E6gecbbV.mjs +0 -1
- package/dist/platform-args-C7XUw9mw.mjs +0 -1
- package/dist/prepare-Cz18kLkF.mjs +0 -1
- package/dist/resolve-project-CgfjtOwz.mjs +0 -1
- package/dist/serialize-DUuYuaY3.mjs +0 -29
- package/dist/serialize-I4EmS-Wf.d.mts +0 -16
- package/dist/validator-CTfmzZYb.mjs +0 -69
- package/dist/wrangler-DUB3MGHV.mjs +0 -1
- package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
- package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
- package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
- package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
package/dist/pages/client.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CfCR4oMj.mjs";
|
|
1
2
|
import { i as searchWithoutActionKey } from "../action-key-XtKKbbsi.mjs";
|
|
2
|
-
import { t as ISLAND_FRONTMATTER_ID } from "../serialize-DUuYuaY3.mjs";
|
|
3
|
-
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CRDF-I0I.mjs";
|
|
4
3
|
import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-Dx2jIbtg.mjs";
|
|
5
|
-
import {
|
|
4
|
+
import { a as serializePageData, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-Pf-CIQK_.mjs";
|
|
5
|
+
import { n as isSameOrigin, t as decodePagePath } from "../url-CuoEn0o3.mjs";
|
|
6
|
+
import { PAGES_PROTOCOL_VERSION, readUsageLimit } from "@void/edge";
|
|
6
7
|
// src/pages/action-result.ts
|
|
7
8
|
var VoidActionError = class extends Error {
|
|
8
9
|
body;
|
|
@@ -37,8 +38,11 @@ function categorizeActionError(status) {
|
|
|
37
38
|
default: return "boundary";
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
function isVoidActionError(error) {
|
|
42
|
+
return typeof error === "object" && error !== null && "name" in error && error.name === "VoidActionError" && "status" in error && typeof error.status === "number";
|
|
43
|
+
}
|
|
40
44
|
function isCallSiteActionError(error) {
|
|
41
|
-
return
|
|
45
|
+
return isVoidActionError(error) && categorizeActionError(error.status) === "callSite";
|
|
42
46
|
}
|
|
43
47
|
function isAbortError(error) {
|
|
44
48
|
return typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
|
|
@@ -252,48 +256,6 @@ function createScrollRestoration() {
|
|
|
252
256
|
}
|
|
253
257
|
};
|
|
254
258
|
}
|
|
255
|
-
// src/pages/url.ts
|
|
256
|
-
function isSameOrigin(url, origin) {
|
|
257
|
-
if (url.protocol === "capacitor:") {
|
|
258
|
-
const current = new URL(origin);
|
|
259
|
-
return current.protocol === "capacitor:" && url.host !== "" && url.host === current.host;
|
|
260
|
-
}
|
|
261
|
-
return url.origin === origin;
|
|
262
|
-
}
|
|
263
|
-
function isHexDigit(char) {
|
|
264
|
-
return char !== void 0 && (char >= "0" && char <= "9" || char >= "a" && char <= "f" || char >= "A" && char <= "F");
|
|
265
|
-
}
|
|
266
|
-
function tryDecodeURI(text) {
|
|
267
|
-
try {
|
|
268
|
-
return decodeURI(text);
|
|
269
|
-
} catch {
|
|
270
|
-
return text;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* The path a page is matched on, decoded the way the server (Hono's getPath)
|
|
275
|
-
* decodes it: `/caf%C3%A9` becomes `/café`, while `%25`, reserved escapes such
|
|
276
|
-
* as `%2F` and malformed escapes stay encoded.
|
|
277
|
-
*/
|
|
278
|
-
function decodePagePath(path) {
|
|
279
|
-
if (!path.includes("%")) return path;
|
|
280
|
-
const escaped = path.split("%25").join("%2525");
|
|
281
|
-
try {
|
|
282
|
-
return decodeURI(escaped);
|
|
283
|
-
} catch {}
|
|
284
|
-
let decoded = "";
|
|
285
|
-
let index = 0;
|
|
286
|
-
while (index < escaped.length) {
|
|
287
|
-
let end = index;
|
|
288
|
-
while (escaped[end] === "%" && isHexDigit(escaped[end + 1]) && isHexDigit(escaped[end + 2])) end += 3;
|
|
289
|
-
if (end === index) decoded += escaped[index++];
|
|
290
|
-
else {
|
|
291
|
-
decoded += tryDecodeURI(escaped.slice(index, end));
|
|
292
|
-
index = end;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return decoded;
|
|
296
|
-
}
|
|
297
259
|
// src/pages/navigation-engine.ts
|
|
298
260
|
/**
|
|
299
261
|
* The server leaves a named action's key out of the page URL. When the page URL
|
|
@@ -335,18 +297,18 @@ function objectToFormData(source, form, parentKey) {
|
|
|
335
297
|
return form;
|
|
336
298
|
}
|
|
337
299
|
function clonePageData(pageData) {
|
|
338
|
-
return
|
|
300
|
+
return deserializePageData(serializePageData(pageData));
|
|
339
301
|
}
|
|
340
302
|
function readInitialPageData() {
|
|
341
303
|
const scriptEl = document.getElementById(PAGE_DATA_SCRIPT_ID);
|
|
342
|
-
if (scriptEl?.textContent) return
|
|
304
|
+
if (scriptEl?.textContent) return deserializePageData(scriptEl.textContent);
|
|
343
305
|
throw new Error("pages: Missing initial page payload.");
|
|
344
306
|
}
|
|
345
307
|
function parsePageDataFromHtml(html) {
|
|
346
308
|
const scriptEl = new DOMParser().parseFromString(html, "text/html").getElementById(PAGE_DATA_SCRIPT_ID);
|
|
347
309
|
if (!scriptEl?.textContent) return null;
|
|
348
310
|
try {
|
|
349
|
-
return
|
|
311
|
+
return deserializePageData(scriptEl.textContent);
|
|
350
312
|
} catch {
|
|
351
313
|
return null;
|
|
352
314
|
}
|
|
@@ -395,7 +357,7 @@ async function createPageNavigationEngine(config) {
|
|
|
395
357
|
function getStaticPageDataUrl(url) {
|
|
396
358
|
const { pathname } = new URL(url || "/", window.location.origin);
|
|
397
359
|
const filePath = pathname === "/" ? "index" : pathname.replace(/^\/+/, "");
|
|
398
|
-
return `${STATIC_PAGE_DATA_PREFIX}/${filePath}.json`;
|
|
360
|
+
return `${STATIC_PAGE_DATA_PREFIX}/${filePath}${pathname !== "/" && pathname.endsWith("/") ? "index" : ""}.json`;
|
|
399
361
|
}
|
|
400
362
|
function isUsablePageData(pageData, matchedId) {
|
|
401
363
|
return typeof pageData === "object" && pageData !== null && "component" in pageData && typeof pageData.component === "string" && "props" in pageData && typeof pageData.props === "object" && pageData.props !== null && pageData.component === matchedId && !routeMeta[pageData.component]?.island && Boolean(components[pageData.component]);
|
|
@@ -509,7 +471,7 @@ async function createPageNavigationEngine(config) {
|
|
|
509
471
|
/** Route id for a non-island page that static page data can serve, or null. */
|
|
510
472
|
function matchStaticPageId(fetchUrl) {
|
|
511
473
|
const matchedId = matchRoute(fetchUrl || window.location.pathname + window.location.search);
|
|
512
|
-
return matchedId && !routeMeta[matchedId]?.island && components[matchedId] ? matchedId : null;
|
|
474
|
+
return matchedId && !routeMeta[matchedId]?.island && routeMeta[matchedId]?.prerender !== false && components[matchedId] ? matchedId : null;
|
|
513
475
|
}
|
|
514
476
|
async function loadStaticPageDataFile(fetchUrl, signal) {
|
|
515
477
|
const matchedId = matchStaticPageId(fetchUrl);
|
|
@@ -520,7 +482,7 @@ async function createPageNavigationEngine(config) {
|
|
|
520
482
|
signal
|
|
521
483
|
});
|
|
522
484
|
if (pageDataResponse.ok) {
|
|
523
|
-
const pageData = await pageDataResponse.json();
|
|
485
|
+
const pageData = decodePageData(await pageDataResponse.json());
|
|
524
486
|
if (isUsablePageData(pageData, matchedId)) return {
|
|
525
487
|
pageData,
|
|
526
488
|
resolvedDeferred: true
|
|
@@ -559,6 +521,7 @@ async function createPageNavigationEngine(config) {
|
|
|
559
521
|
function fetchPrefetchPageData(url) {
|
|
560
522
|
const headers = {
|
|
561
523
|
"X-VoidPages": "true",
|
|
524
|
+
"X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
|
|
562
525
|
Accept: "application/json",
|
|
563
526
|
Purpose: "prefetch"
|
|
564
527
|
};
|
|
@@ -570,7 +533,7 @@ async function createPageNavigationEngine(config) {
|
|
|
570
533
|
}).then(async (r) => {
|
|
571
534
|
if (!r || r.redirected) return null;
|
|
572
535
|
if (!r.headers.get("X-VoidPages")) return (await loadStaticPageData(url, r, void 0, !STATIC_PAGE_DATA_FAST_PATH))?.pageData ?? null;
|
|
573
|
-
return r.json();
|
|
536
|
+
return decodePageData(await r.json());
|
|
574
537
|
});
|
|
575
538
|
});
|
|
576
539
|
}
|
|
@@ -589,7 +552,7 @@ async function createPageNavigationEngine(config) {
|
|
|
589
552
|
window.scrollTo(0, 0);
|
|
590
553
|
}
|
|
591
554
|
const deferredWindow = window;
|
|
592
|
-
deferredWindow.__resolveDeferred = (group, data) => _htmlDeferredRegistry?.resolve(group, data, void 0);
|
|
555
|
+
deferredWindow.__resolveDeferred = (group, data, serialized) => _htmlDeferredRegistry?.resolve(group, serialized ? decodePageData(data) : data, void 0);
|
|
593
556
|
deferredWindow.__rejectDeferred = (group, error) => _htmlDeferredRegistry?.resolve(group, void 0, error);
|
|
594
557
|
function commitHashNavigation(effectiveFetchUrl, hash, options, writeHistory) {
|
|
595
558
|
if (writeHistory) scrollRestoration.writeHistory(effectiveFetchUrl + hash, !!options.replace);
|
|
@@ -611,6 +574,7 @@ async function createPageNavigationEngine(config) {
|
|
|
611
574
|
preloadComponentPromise?.catch(() => {});
|
|
612
575
|
const headers = {
|
|
613
576
|
"X-VoidPages": "true",
|
|
577
|
+
"X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
|
|
614
578
|
Accept: "application/json"
|
|
615
579
|
};
|
|
616
580
|
const fetchOptions = {
|
|
@@ -697,11 +661,11 @@ async function createPageNavigationEngine(config) {
|
|
|
697
661
|
buffer = buffer.slice(newlineIdx + 1);
|
|
698
662
|
if (!line) continue;
|
|
699
663
|
if (firstLine) {
|
|
700
|
-
pageData =
|
|
664
|
+
pageData = deserializePageData(line);
|
|
701
665
|
deferredRegistry.setup(pageData);
|
|
702
666
|
firstLine = false;
|
|
703
667
|
} else {
|
|
704
|
-
const msg =
|
|
668
|
+
const msg = deserializePageData(line);
|
|
705
669
|
if (msg.__deferred) deferredRegistry.resolve(msg.__deferred, msg.data, msg.error);
|
|
706
670
|
}
|
|
707
671
|
}
|
|
@@ -725,7 +689,7 @@ async function createPageNavigationEngine(config) {
|
|
|
725
689
|
}
|
|
726
690
|
})();
|
|
727
691
|
} else {
|
|
728
|
-
pageData = await response.json();
|
|
692
|
+
pageData = decodePageData(await response.json());
|
|
729
693
|
deferredRegistry.setup(pageData);
|
|
730
694
|
}
|
|
731
695
|
if (CACHE_VISITED_PAGE_DATA && method === "GET" && response?.ok && response.headers.get("X-VoidPages") && pageData?.component === matchRoute(fetchUrl) && !pageData.deferredKeys) _prefetchCache.set(fetchUrl, method, Promise.resolve(clonePageData(pageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
@@ -921,7 +885,7 @@ async function createPageNavigationEngine(config) {
|
|
|
921
885
|
initClientHead(initialPageData.head);
|
|
922
886
|
if (deferredWindow.__deferredQueue) {
|
|
923
887
|
for (const entry of deferredWindow.__deferredQueue) if (entry.length === 3) _htmlDeferredRegistry?.resolve(entry[0], void 0, entry[2]);
|
|
924
|
-
else _htmlDeferredRegistry?.resolve(entry[0], entry[1], void 0);
|
|
888
|
+
else _htmlDeferredRegistry?.resolve(entry[0], entry.length === 4 ? decodePageData(entry[1]) : entry[1], void 0);
|
|
925
889
|
delete deferredWindow.__deferredQueue;
|
|
926
890
|
}
|
|
927
891
|
window.addEventListener("popstate", (e) => {
|
|
@@ -1010,9 +974,11 @@ function linkPrefetchStrategies(props, link, defaultStrategy = false) {
|
|
|
1010
974
|
/**
|
|
1011
975
|
* Marks a GET link to the current page. Pathnames compare the way the server
|
|
1012
976
|
* matches pages: case-sensitive, trailing slash significant, decoded like Hono's
|
|
1013
|
-
* getPath.
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
977
|
+
* getPath. A link with a query also needs each of its params, with the same value,
|
|
978
|
+
* in the current URL, which may have more params in any order. GET data counts as
|
|
979
|
+
* query, and the hash is ignored. `prefix` also matches nested pages by whole
|
|
980
|
+
* segment, except for `/`, comparing only the path, but only an exact match is
|
|
981
|
+
* `aria-current`. Spread the result before the user's attributes so theirs win.
|
|
1016
982
|
*/
|
|
1017
983
|
function linkActiveAttributes(router, link, match = "exact") {
|
|
1018
984
|
if (!router || !link.isGet) return {};
|
|
@@ -1021,10 +987,10 @@ function linkActiveAttributes(router, link, match = "exact") {
|
|
|
1021
987
|
if (!target) return {};
|
|
1022
988
|
const currentPath = decodePagePath(current.pathname);
|
|
1023
989
|
const linkPath = decodePagePath(target.pathname);
|
|
1024
|
-
if (linkPath === currentPath) return {
|
|
990
|
+
if (linkPath === currentPath) return hasQueryParams(current.searchParams, target.searchParams) ? {
|
|
1025
991
|
"aria-current": "page",
|
|
1026
992
|
"data-void-active": ""
|
|
1027
|
-
};
|
|
993
|
+
} : {};
|
|
1028
994
|
if (match === "prefix" && linkPath !== "/") {
|
|
1029
995
|
const parent = linkPath.endsWith("/") ? linkPath : `${linkPath}/`;
|
|
1030
996
|
if (currentPath.startsWith(parent)) return { "data-void-active": "" };
|
|
@@ -1033,9 +999,9 @@ function linkActiveAttributes(router, link, match = "exact") {
|
|
|
1033
999
|
}
|
|
1034
1000
|
/**
|
|
1035
1001
|
* Marks a link while a visit to its destination is loading: the visit uses the link's
|
|
1036
|
-
* method and goes to its path, query and hash. Unlike active links, the query
|
|
1037
|
-
* so `?
|
|
1038
|
-
* is marked, not only the one that was clicked.
|
|
1002
|
+
* method and goes to its path, query and hash. Unlike active links, the whole query and
|
|
1003
|
+
* the hash count, so `?tab=open` isn't pending during a visit to `?tab=open&page=2`.
|
|
1004
|
+
* Every link to the destination is marked, not only the one that was clicked.
|
|
1039
1005
|
* Spread the result before the user's attributes so theirs win.
|
|
1040
1006
|
*/
|
|
1041
1007
|
function linkPendingAttributes(router, navigation, link) {
|
|
@@ -1045,6 +1011,11 @@ function linkPendingAttributes(router, navigation, link) {
|
|
|
1045
1011
|
if (target && target.host === destination.host && target.protocol === destination.protocol && decodePagePath(target.pathname) === decodePagePath(destination.pathname) && target.search === destination.search && target.hash === destination.hash) return { "data-void-pending": "" };
|
|
1046
1012
|
return {};
|
|
1047
1013
|
}
|
|
1014
|
+
/** Each of `params` has the same value in `current`. Extra params in `current` are allowed. */
|
|
1015
|
+
function hasQueryParams(current, params) {
|
|
1016
|
+
for (const [key, value] of params) if (!current.getAll(key).includes(value)) return false;
|
|
1017
|
+
return true;
|
|
1018
|
+
}
|
|
1048
1019
|
/** Resolves `href` against `base`, or returns `null` for a malformed or other-origin href. */
|
|
1049
1020
|
function resolveSameOrigin(href, base) {
|
|
1050
1021
|
let target;
|
|
@@ -1548,14 +1519,14 @@ function scheduleHydration(el, loader, props, strategy, hydrateFn) {
|
|
|
1548
1519
|
}
|
|
1549
1520
|
function initIslands(islands, hydrateFn) {
|
|
1550
1521
|
const frontmatterText = document.getElementById(ISLAND_FRONTMATTER_ID)?.textContent;
|
|
1551
|
-
const frontmatter = frontmatterText ?
|
|
1522
|
+
const frontmatter = frontmatterText ? deserializePageData(frontmatterText) : {};
|
|
1552
1523
|
const hydrate = (el, mod, props) => hydrateFn(el, mod, props, frontmatter);
|
|
1553
1524
|
document.querySelectorAll("[data-island]").forEach((el) => {
|
|
1554
1525
|
const id = el.getAttribute("data-island");
|
|
1555
|
-
const props =
|
|
1526
|
+
const props = deserializePageData(el.getAttribute("data-props") || "{}");
|
|
1556
1527
|
const strategy = el.getAttribute("data-hydrate") || "load";
|
|
1557
1528
|
const loader = islands[id];
|
|
1558
1529
|
if (loader) scheduleHydration(el, loader, props, strategy, hydrate);
|
|
1559
1530
|
});
|
|
1560
1531
|
}
|
|
1561
|
-
export { VoidActionError, categorizeActionError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
|
1532
|
+
export { VoidActionError, categorizeActionError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, isVoidActionError, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../config-CPxJmt4M.mjs";
|
|
1
|
+
import "../config-CTlUaXWZ.mjs";
|
|
3
2
|
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition, s as RouteEnvironment } from "../types-agfx0alu.mjs";
|
|
3
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-MeF_5M_3.mjs";
|
|
4
4
|
import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-NdNeubbH.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { a as serializePageData } from "../serialize-DN-envGQ.mjs";
|
|
6
6
|
import { Plugin, UserConfig } from "vite";
|
|
7
7
|
type ProjectPaths = {
|
|
8
8
|
root: string;
|
|
@@ -35,6 +35,7 @@ export declare function resolveEffectiveLayoutChain(page: {
|
|
|
35
35
|
layout?: string | false;
|
|
36
36
|
}, layouts: Array<LayoutDefinition>, namedLayouts: Array<NamedLayoutDefinition>): Array<LayoutDefinition | NamedLayoutDefinition>;
|
|
37
37
|
type PageScanOptions = {
|
|
38
|
+
trailingSlash?: boolean;
|
|
38
39
|
output?: "server" | "static";
|
|
39
40
|
paths?: ProjectPaths;
|
|
40
41
|
pagesDir?: string;
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { r as resolvePagesDir } from "../project-paths-CdGv9Tmi.mjs";
|
|
3
|
-
import { p as readConfig } from "../config-BITKQ3O6.mjs";
|
|
4
|
-
import { a as resolveLayoutChain, i as resolveEffectiveLayoutChain, n as scanPages, r as generateComponentManifest, s as resolveNamedLayout, t as pageFileEnvironment } from "../scan-X2rDDRNa.mjs";
|
|
5
|
-
import { r as parseRedirectsFile } from "../headers-CuTEdP9C.mjs";
|
|
1
|
+
import { a as resolveEffectiveLayoutChain, c as resolveNamedLayout, n as scanPages, o as resolveLayoutChain, r as generateComponentManifest, t as pageFileEnvironment } from "../scan-L8OSv1f7.mjs";
|
|
6
2
|
import { i as resolveHead, n as renderHeadToString, r as renderHtmlAttrs, t as renderBodyAttrs } from "../head-5XPcnG-j.mjs";
|
|
7
|
-
import {
|
|
3
|
+
import { a as join, n as dirname } from "../dist-DMYe8CZJ.mjs";
|
|
8
4
|
import { n as assertLinkPrefetchValue } from "../prefetch-Dx2jIbtg.mjs";
|
|
5
|
+
import { r as parseRedirectsFile } from "../headers-CimYIfQI.mjs";
|
|
6
|
+
import { p as readConfig } from "../config-5oSQhZNj.mjs";
|
|
7
|
+
import { a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
|
|
8
|
+
import { r as resolvePagesDir } from "../project-paths-G0yut6Zz.mjs";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { normalizePath } from "vite";
|
|
11
11
|
// src/pages/static-data.ts
|
|
@@ -83,7 +83,11 @@ function createPagesPlugin(pagesDir, options) {
|
|
|
83
83
|
}
|
|
84
84
|
if (id === "\0" + CLIENT_ENTRY_ID) {
|
|
85
85
|
if (!pageScan) return "";
|
|
86
|
-
|
|
86
|
+
const staticPageData = isDev ? {
|
|
87
|
+
enabled: false,
|
|
88
|
+
fastPath: false
|
|
89
|
+
} : resolveStaticPageDataBuildOptions(root, { publicDir: viteConfig?.publicDir });
|
|
90
|
+
return options.generateClient(pageScan, staticPageData);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { a as resolveEffectiveLayoutChain, d as findStaticCssImports, l as editIslandSource, n as scanPages, u as findIslandImports } from "../scan-L8OSv1f7.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isCSSRequest, normalizePath } from "vite";
|
|
5
5
|
// src/pages/islands-plugin.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-DjqciiDc.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-xZMvWsrg.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as ValidationError } from "../validation-error-uAAjlsiW.mjs";
|
|
2
|
-
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-
|
|
2
|
+
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-yxdHxFLN.mjs";
|
|
3
3
|
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ISLAND_FRONTMATTER_ID, islandFrontmatterScript, serializePageData };
|
|
1
|
+
import { a as serializePageData, i as islandFrontmatterScript, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-DN-envGQ.mjs";
|
|
2
|
+
export { ISLAND_FRONTMATTER_ID, decodePageData, deserializePageData, islandFrontmatterScript, serializePageData };
|
package/dist/pages/serialize.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ISLAND_FRONTMATTER_ID, n as
|
|
1
|
+
export { t as ISLAND_FRONTMATTER_ID, n as decodePageData, r as deserializePageData, i as islandFrontmatterScript, a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as parsePlatformArgs } from "./platform-args-DfT8yQBF.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-DuKAQ3Ks.mjs";
|
|
2
2
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
|
|
3
3
|
import { parsePlatformPlanId } from "@void/platform/plans";
|
|
4
4
|
// src/cli/platform-config-args.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as OperatorClient } from "./operator-client-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
1
|
+
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
|
|
4
|
+
import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
|
|
5
|
+
import { i as humanLines } from "./operator-cmd-CoHlJjcT.mjs";
|
|
6
|
+
import { l as formatUrl, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-BTQVbnTC.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
|
-
import { setTimeout } from "node:timers/promises";
|
|
11
10
|
import { readFile } from "node:fs/promises";
|
|
11
|
+
import { setTimeout } from "node:timers/promises";
|
|
12
12
|
// src/cli/platform-auth-config.ts
|
|
13
13
|
function print(result, json) {
|
|
14
14
|
console.log(json ? JSON.stringify(result, null, 2) : humanLines(result).join("\n"));
|
|
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
142
142
|
}
|
|
143
143
|
async function runPlatformAuthConfig(args) {
|
|
144
144
|
if (args.action === "recover") {
|
|
145
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-DvAQ674F.mjs");
|
|
146
146
|
return runPlatformAuthRecovery(args);
|
|
147
147
|
}
|
|
148
148
|
if (args.action === "protection") {
|
|
149
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-Dv208eyL.mjs");
|
|
150
150
|
return runPlatformProtectionConfig(args);
|
|
151
151
|
}
|
|
152
152
|
const origin = resolveOperatorOrigin(args.connection);
|
package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-Dv208eyL.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
4
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
|
|
5
|
+
import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
|
|
6
|
+
import { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
7
|
+
import { G as checkpointPlatformAccessResources, H as resolvePlatformCloudflareCredential, K as parsePlatformAccessSetupSpec, Y as PlatformCloudflareClient, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as preparePlatformAccessSetup } from "./platform-lifecycle-BSvsyB_x.mjs";
|
|
8
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-CrP1XhVd.mjs";
|
|
9
|
+
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
10
10
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
12
12
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin } from "./operator-auth-CD3pap65.mjs";
|
|
4
|
+
import { l as formatUrl, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
5
|
+
import { H as resolvePlatformCloudflareCredential, Y as PlatformCloudflareClient, g as platformDatabaseClientUrl, h as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl } from "./platform-lifecycle-BSvsyB_x.mjs";
|
|
6
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-CrP1XhVd.mjs";
|
|
1
7
|
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
|
-
import { u as openBrowser } from "./auth-Dy8svcqQ.mjs";
|
|
3
|
-
import { A as confirm, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { l as formatUrl, m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
5
|
-
import { a as resolveOperatorOrigin } from "./operator-auth-CfDcmzpo.mjs";
|
|
6
|
-
import { H as resolvePlatformCloudflareCredential, Y as PlatformCloudflareClient, g as platformDatabaseClientUrl, h as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl } from "./platform-lifecycle-D9RdGub1.mjs";
|
|
7
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-BRefdHGD.mjs";
|
|
8
8
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
|
|
9
9
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
10
|
-
import { setTimeout } from "node:timers/promises";
|
|
11
10
|
import { readFile } from "node:fs/promises";
|
|
11
|
+
import { setTimeout } from "node:timers/promises";
|
|
12
12
|
// src/cli/platform-auth-recovery-core.ts
|
|
13
13
|
function parseAuthenticationRecoveryInput(value, connectionId) {
|
|
14
14
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("platform: Recovery requires a JSON object.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-
|
|
1
|
+
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-dlSxrcQ7.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as select, L as log, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import {
|
|
3
|
+
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
4
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
5
5
|
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-B0eZjZ3B.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
7
7
|
// src/cli/platform-cmd.ts
|
|
8
8
|
function normalizePlatformInputUrl(input) {
|
|
9
9
|
const value = input.trim();
|
|
@@ -96,19 +96,19 @@ async function runPlatformCommand(_root, args) {
|
|
|
96
96
|
}]
|
|
97
97
|
});
|
|
98
98
|
if (isCancel(group)) return;
|
|
99
|
-
const { parsePlatformArgs } = await import("./platform-args-
|
|
99
|
+
const { parsePlatformArgs } = await import("./platform-args-B7-wQ0_B.mjs");
|
|
100
100
|
return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
|
|
101
101
|
}
|
|
102
|
-
const { runPlatformPlansConfig } = await import("./platform-plans-config-
|
|
102
|
+
const { runPlatformPlansConfig } = await import("./platform-plans-config-CgDiwflR.mjs");
|
|
103
103
|
await runPlatformPlansConfig(args);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { runPlatformAuthConfig } = await import("./platform-auth-config-
|
|
106
|
+
const { runPlatformAuthConfig } = await import("./platform-auth-config-MO0VdVs9.mjs");
|
|
107
107
|
await runPlatformAuthConfig(args);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (args.subcommand === "operator") {
|
|
111
|
-
const { runOperatorCommand } = await import("./operator-cmd-
|
|
111
|
+
const { runOperatorCommand } = await import("./operator-cmd-DnaCnCSP.mjs");
|
|
112
112
|
await runOperatorCommand(args);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -176,7 +176,7 @@ async function runPlatformCommand(_root, args) {
|
|
|
176
176
|
console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-
|
|
179
|
+
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-CfcFygHb.mjs");
|
|
180
180
|
await runPlatformLifecycleCommand(args);
|
|
181
181
|
}
|
|
182
182
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as confirm, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { m as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { m as printSuccess, p as note } from "./output-CXJTIAtF.mjs";
|
|
4
|
+
import { C as createPlatformHealthProbeToken, E as recordResource, H as resolvePlatformCloudflareCredential, O as recordPlatformWorkerTraffic, V as assertPlatformOperatorCredentialCanApplyPlan, Y as PlatformCloudflareClient, k as createPlatformInstallPlan, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-BSvsyB_x.mjs";
|
|
5
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-CrP1XhVd.mjs";
|
|
6
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
7
7
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
|
|
8
8
|
// src/cli/platform-domain.ts
|
|
9
9
|
function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { A as confirm, H as outro, K as select, L as log, U as password, X as text$1, tt as isCancel, z as multiselect } from "./dist-BQdgCVQF.mjs";
|
|
1
2
|
import { a as join, c as resolve, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { S as writePendingInstallationSecrets, a as latestPlatformWorkerCutoverGeneration, c as normalizePlatformApiUrl, d as platformRegistryDirectory, f as platformWorkerSecretUpdateIntentState, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, n as assertPlatformInstallationSlugAvailable, o as listInstallationManifests, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
3
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess, n as cliCommandName, p as note, r as createSpinner, u as getErrorMessage } from "./output-CXJTIAtF.mjs";
|
|
4
4
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { l as resolveCloudflareOperationArgv } from "./cloudflare-process-
|
|
9
|
-
import { o as
|
|
10
|
-
import { t as
|
|
11
|
-
import { o as runCloudflareAuthCommand } from "./cloudflare-auth-CEu-1Ps_.mjs";
|
|
5
|
+
import { o as createDefaultRunWrangler, v as resolvePinnedApiBaseUrl } from "./provision-D5q-ptD3.mjs";
|
|
6
|
+
import { a as platformManagementSetupPage, c as platformSetupLink, d as planWritesDns, i as platformInstallCommandArguments, l as platformSetupPages, n as formatPlatformSetupPlan, o as platformPromptAnswer, r as openPlatformSetupPage, s as platformSetupFieldHelp, t as formatPlatformInstallCommand, u as planCreatesZone } from "./platform-setup-BTQVbnTC.mjs";
|
|
7
|
+
import { o as runCloudflareAuthCommand } from "./cloudflare-auth-DGIivpTb.mjs";
|
|
8
|
+
import { l as resolveCloudflareOperationArgv } from "./cloudflare-process-BcPvlMFd.mjs";
|
|
9
|
+
import { S as writePendingInstallationSecrets, a as latestPlatformWorkerCutoverGeneration, c as normalizePlatformApiUrl, d as platformRegistryDirectory, f as platformWorkerSecretUpdateIntentState, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, n as assertPlatformInstallationSlugAvailable, o as listInstallationManifests, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
10
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
12
11
|
import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
13
|
-
import {
|
|
12
|
+
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
13
|
+
import { t as parsePlatformArgs } from "./platform-args-DfT8yQBF.mjs";
|
|
14
14
|
import { copyFileSync, cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
16
|
import { isRecord } from "@void/deploy-core";
|
|
@@ -18,10 +18,10 @@ import { PLATFORM_APP_ACCESS_SETUP_PROOF_PREFIX, PLATFORM_APP_ACCESS_TURN_OFF_PR
|
|
|
18
18
|
import { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
19
19
|
import { tmpdir } from "node:os";
|
|
20
20
|
import { stripVTControlCharacters } from "node:util";
|
|
21
|
+
import { readFile } from "node:fs/promises";
|
|
21
22
|
import { cloudflareCommandDiagnostic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, readCloudflareTriggerConfig, readCloudflareVersionMigrationTag, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
22
23
|
import { createServer, request } from "node:http";
|
|
23
24
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
24
|
-
import { readFile } from "node:fs/promises";
|
|
25
25
|
import { PLATFORM_ADMIN_ASSETS_DIRECTORY, platformDatabaseSchemaDigest, resolvePlatformRuntime } from "@void/platform/installer";
|
|
26
26
|
import { request as request$1 } from "node:https";
|
|
27
27
|
// src/cli/platform-cloudflare.ts
|
|
@@ -5509,7 +5509,7 @@ async function verifyInstalledPlatformAccessProtection(input) {
|
|
|
5509
5509
|
}
|
|
5510
5510
|
const existingWorkers = input.plan.actions.filter((action) => action.kind === "worker" && action.action === "update").map((action) => action.name);
|
|
5511
5511
|
if (existingWorkers.length) {
|
|
5512
|
-
const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-
|
|
5512
|
+
const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-Dv208eyL.mjs");
|
|
5513
5513
|
await verifyProtectionWorkerOrigins({
|
|
5514
5514
|
request: input.client.request.bind(input.client),
|
|
5515
5515
|
listWorkerDomains: input.client.listWorkerDomains.bind(input.client),
|
|
@@ -7820,14 +7820,14 @@ function resolvePlatformInstallDatabaseUrl(checkpoint, manifest = null) {
|
|
|
7820
7820
|
}
|
|
7821
7821
|
async function runPlatformLifecycleCommand(commandArgs) {
|
|
7822
7822
|
if (commandArgs.subcommand === "domain") {
|
|
7823
|
-
const { runPlatformDomainCommand } = await import("./platform-domain-
|
|
7823
|
+
const { runPlatformDomainCommand } = await import("./platform-domain-DSO4eUEw.mjs");
|
|
7824
7824
|
await runPlatformDomainCommand(commandArgs);
|
|
7825
7825
|
return;
|
|
7826
7826
|
}
|
|
7827
7827
|
if (commandArgs.subcommand === "discover") {
|
|
7828
7828
|
const client = new PlatformCloudflareClient((await resolvePlatformCloudflareCredential()).token);
|
|
7829
7829
|
const accountId = await selectAccount(await readAccounts(client), commandArgs.account);
|
|
7830
|
-
const { recoverPlatformInstallations } = await import("./platform-recovery-
|
|
7830
|
+
const { recoverPlatformInstallations } = await import("./platform-recovery-CHWwXVZ6.mjs");
|
|
7831
7831
|
const recovered = await recoverPlatformInstallations(client, accountId, void 0, commandArgs.selector);
|
|
7832
7832
|
if (recovered.length === 0) {
|
|
7833
7833
|
log.info(`No recoverable Void platform installations were found in ${accountId}.`);
|
|
@@ -7838,7 +7838,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
7838
7838
|
return;
|
|
7839
7839
|
}
|
|
7840
7840
|
if (commandArgs.subcommand !== "install") {
|
|
7841
|
-
const { runInstalledPlatformCommand } = await import("./platform-management-
|
|
7841
|
+
const { runInstalledPlatformCommand } = await import("./platform-management-BMdyt667.mjs");
|
|
7842
7842
|
await runInstalledPlatformCommand(commandArgs);
|
|
7843
7843
|
return;
|
|
7844
7844
|
}
|
|
@@ -8014,7 +8014,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8014
8014
|
progress?.stop("Read the saved installation.");
|
|
8015
8015
|
progress = void 0;
|
|
8016
8016
|
if (authoritative) {
|
|
8017
|
-
const { selectAuthoritativePlatformManifest } = await import("./platform-management-
|
|
8017
|
+
const { selectAuthoritativePlatformManifest } = await import("./platform-management-BMdyt667.mjs");
|
|
8018
8018
|
const selected = selectAuthoritativePlatformManifest(existing, authoritative);
|
|
8019
8019
|
authoritativeProvisionIntents = true;
|
|
8020
8020
|
if (!args.plan && JSON.stringify(selected) !== JSON.stringify(existing)) writeInstallationManifest(selected);
|
|
@@ -8462,7 +8462,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8462
8462
|
})).actions.filter((action) => action.kind === "worker"),
|
|
8463
8463
|
revalidateBeforeWorkerDeploy: (manifest, action) => revalidatePlatformInstallAction(client, plan, manifest, action),
|
|
8464
8464
|
verifyExistingOwnership: async (manifest, databaseCheckpointExists) => {
|
|
8465
|
-
const { verifyPlatformInstallationOwnership } = await import("./platform-management-
|
|
8465
|
+
const { verifyPlatformInstallationOwnership } = await import("./platform-management-BMdyt667.mjs");
|
|
8466
8466
|
const retainedReplacementKeys = new Set(plan.actions.filter((action) => {
|
|
8467
8467
|
const previous = manifest.resources.find((resource) => resource.key === action.key);
|
|
8468
8468
|
return action.action === "create" && previous && previous.name !== action.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-
|
|
1
|
+
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-BSvsyB_x.mjs";
|