@farm.js/core 0.1.49 → 0.1.50
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/{agent-mcp-Bb8hnnqd.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
- package/dist/{agent-mcp-ir3v4fHf.d.mts → agent-mcp-CIMH324y.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-CN7C74WX.cjs +1066 -0
- package/dist/analyzer-DDW34OMC.mjs +1066 -0
- package/dist/api/client.d.mts +0 -1
- package/dist/api/client.d.ts +0 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +10 -10
- package/dist/api/route-manager.d.ts +10 -10
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +10 -10
- package/dist/api.d.ts +10 -10
- package/dist/api.mjs +5 -5
- package/dist/{app-y649szYm.d.ts → app-BWibTHVT.d.ts} +7 -7
- package/dist/{app-DLzz02du.d.mts → app-DVJ13FPA.d.mts} +7 -7
- package/dist/{app-manifest-Crn8Qd3U.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
- package/dist/{app-manifest-DNeTKMRL.d.ts → app-manifest-D0kaXdwu.d.ts} +1 -1
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/cache.d.mts +4 -3
- package/dist/cache.d.ts +4 -3
- package/dist/{chunk-VJXLUTBM.mjs → chunk-2DEPNLXK.mjs} +7 -7
- package/dist/chunk-2G63BIRL.mjs +227 -0
- package/dist/chunk-2GLQSIZD.mjs +55 -0
- package/dist/{chunk-ACI52TCN.mjs → chunk-2VCC3GVC.mjs} +1 -1
- package/dist/chunk-3ATXWZPH.cjs +227 -0
- package/dist/{chunk-C5S457CK.cjs → chunk-474FO3UE.cjs} +68 -54
- package/dist/{chunk-QNQEK3OF.cjs → chunk-4T25YCZ5.cjs} +14 -14
- package/dist/{chunk-ATHPRVP2.mjs → chunk-5V4KZOZO.mjs} +1 -1
- package/dist/{chunk-FGJQS4EC.cjs → chunk-6QA2SXVH.cjs} +2 -2
- package/dist/{chunk-XLYXG73A.mjs → chunk-75WWOZ5C.mjs} +22 -0
- package/dist/{chunk-QFQDRJKJ.mjs → chunk-76R5GJER.mjs} +2 -2
- package/dist/{chunk-NG44F7AH.mjs → chunk-7ONZDKVY.mjs} +2 -2
- package/dist/{chunk-4IICUBQX.cjs → chunk-A5BJKSZE.cjs} +2 -2
- package/dist/{chunk-TTYXOAB7.mjs → chunk-ANHZ6SUL.mjs} +1 -1
- package/dist/{chunk-ZBS3GOQZ.cjs → chunk-AQLHD6HZ.cjs} +35 -61
- package/dist/{chunk-4HM5B5RR.cjs → chunk-B5S2JS6M.cjs} +117 -115
- package/dist/{chunk-AXRNEVCS.cjs → chunk-B6PREBN6.cjs} +8 -8
- package/dist/{chunk-JOHXK4BB.mjs → chunk-BW6SCVYX.mjs} +1 -1
- package/dist/{chunk-LZBM35DH.mjs → chunk-C73RIAEF.mjs} +4 -4
- package/dist/chunk-CGCJ2TJU.cjs +55 -0
- package/dist/{chunk-UYQOIPXE.mjs → chunk-CPXDDWGL.mjs} +1 -1
- package/dist/{chunk-JPAVNDZH.cjs → chunk-CY7H5KS4.cjs} +25 -25
- package/dist/{chunk-4S7M63WX.cjs → chunk-DGOLAZLV.cjs} +22 -1
- package/dist/{chunk-73XBJRZW.cjs → chunk-E2BMCNMJ.cjs} +2 -2
- package/dist/{chunk-FR4HJDI6.cjs → chunk-F5LERVY3.cjs} +21 -24
- package/dist/{chunk-A7DK663W.cjs → chunk-FACTMUPI.cjs} +27 -27
- package/dist/chunk-G2KTRMWA.mjs +40 -0
- package/dist/{chunk-C6U66WWF.mjs → chunk-GFT5AHAT.mjs} +13 -0
- package/dist/{chunk-NPPT4RWF.cjs → chunk-GOOK2J2W.cjs} +7 -7
- package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
- package/dist/{chunk-J27BZO67.mjs → chunk-HWCHIBJZ.mjs} +21 -24
- package/dist/{chunk-HTLCLOXQ.cjs → chunk-HYN3LLG7.cjs} +3 -3
- package/dist/{chunk-HELQXYVI.cjs → chunk-I2DQGS56.cjs} +11 -9
- package/dist/{chunk-SSNN55Q6.cjs → chunk-IQXGHGZF.cjs} +5 -5
- package/dist/{chunk-ZSIGEHSE.cjs → chunk-IUBDMDZZ.cjs} +21 -180
- package/dist/{chunk-Z3BXMMFF.mjs → chunk-IWJKJDNW.mjs} +38 -24
- package/dist/{chunk-DGVVVYKD.mjs → chunk-JJOWY3XD.mjs} +2 -2
- package/dist/{chunk-6XFGJBYX.cjs → chunk-JYNNIGQO.cjs} +16 -7
- package/dist/{chunk-XO6WL6NL.mjs → chunk-KGP76FSV.mjs} +1 -1
- package/dist/{chunk-GXSMF7UR.mjs → chunk-KO2NWUKN.mjs} +1 -1
- package/dist/{chunk-AIHD6VME.cjs → chunk-KZH6YLND.cjs} +154 -126
- package/dist/{chunk-5566GNEG.cjs → chunk-LIFUPCXW.cjs} +13 -0
- package/dist/{chunk-I2SWKWO7.mjs → chunk-LJDIFIJ2.mjs} +1 -1
- package/dist/{chunk-KZT2VHRQ.cjs → chunk-LYWAGXXW.cjs} +11 -11
- package/dist/{chunk-RYDDUCNJ.mjs → chunk-M7LKA632.mjs} +1 -1
- package/dist/{chunk-6LH33DLL.cjs → chunk-NJVFPJ2Y.cjs} +2 -2
- package/dist/{chunk-JWP56HCP.mjs → chunk-OD6WM3I7.mjs} +2 -2
- package/dist/{chunk-MJ6IC4K2.mjs → chunk-OTOOJIUB.mjs} +1 -1
- package/dist/{chunk-R2SEZEBC.cjs → chunk-OYNNA4DD.cjs} +4 -4
- package/dist/{chunk-GBPDSUFE.mjs → chunk-OZK2DS44.mjs} +1 -1
- package/dist/chunk-QXJADAQB.cjs +40 -0
- package/dist/{chunk-J5VCA45K.cjs → chunk-RHOR2J6V.cjs} +1 -1
- package/dist/{chunk-YQGZLCT4.cjs → chunk-RWT2BTJT.cjs} +6 -6
- package/dist/{chunk-3HBFI373.cjs → chunk-S5AQ7CAC.cjs} +14 -14
- package/dist/{chunk-HNAUK3SC.mjs → chunk-SHJJM6OG.mjs} +40 -199
- package/dist/{chunk-LL7TDMOM.mjs → chunk-SMUW7UST.mjs} +33 -59
- package/dist/{chunk-VCFBQFOV.mjs → chunk-SN5VSO3Q.mjs} +9 -7
- package/dist/{chunk-DM3TFCC2.cjs → chunk-SUV6YO4Q.cjs} +5 -5
- package/dist/{chunk-JUMPFVMK.mjs → chunk-TUOO6IK3.mjs} +9 -0
- package/dist/chunk-UB7RVEMX.mjs +73 -0
- package/dist/{chunk-CDTIXBKN.mjs → chunk-UN6N623E.mjs} +2 -2
- package/dist/{chunk-BEXYFR2R.cjs → chunk-UY6HS5PF.cjs} +2 -2
- package/dist/{chunk-HAH4FBTA.mjs → chunk-VAHBCI6X.mjs} +1 -1
- package/dist/{chunk-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
- package/dist/{chunk-Z4LTSH7D.mjs → chunk-WVBUXNBX.mjs} +71 -43
- package/dist/{chunk-ALD2WMLA.mjs → chunk-WXHDVXJE.mjs} +2 -2
- package/dist/{chunk-EVCQX243.cjs → chunk-X2EL3BLH.cjs} +2 -2
- package/dist/{chunk-EA5PMJDU.mjs → chunk-X3HOVNHI.mjs} +1 -1
- package/dist/{chunk-XXB37YET.cjs → chunk-XLRLSTJ6.cjs} +7 -7
- package/dist/{chunk-DRFADSKY.mjs → chunk-XXXRRVY6.mjs} +4 -4
- package/dist/{chunk-EXHEPWFJ.cjs → chunk-YAXOEAND.cjs} +10 -10
- package/dist/{chunk-PEHL3IZL.cjs → chunk-YB44NKC2.cjs} +2 -2
- package/dist/chunk-YKHRCY4T.cjs +73 -0
- package/dist/{chunk-IVHPRF4W.mjs → chunk-ZLOQQ2UF.mjs} +32 -30
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-DFDQUI9Q.d.ts → client-plugins-BPfltM5m.d.ts} +15 -8
- package/dist/{client-plugins-BNBeyLMi.d.mts → client-plugins-D4RO59f0.d.mts} +15 -8
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client.cjs +11 -8
- package/dist/client.d.mts +11 -10
- package/dist/client.d.ts +11 -10
- package/dist/client.mjs +12 -9
- package/dist/client.react-server.mjs +1 -1
- package/dist/config-CnhyvvmT.d.mts +188 -0
- package/dist/config-CnhyvvmT.d.ts +188 -0
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{dev-guard-YO6KPIOQ.mjs → dev-guard-4PFQNXQX.mjs} +2 -1
- package/dist/{dev-guard-PLHL6OTJ.cjs → dev-guard-YLO5DE3H.cjs} +4 -3
- package/dist/{devtools-A37WWJZL.cjs → devtools-N5XTOECL.cjs} +8 -8
- package/dist/{devtools-BLKHPY3C.mjs → devtools-STG7HPRV.mjs} +7 -7
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +7 -7
- package/dist/docs.d.ts +7 -7
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/generate-route-types-DQP0cUzk.d.ts +33 -0
- package/dist/generate-route-types-TF5Wwtvz.d.mts +33 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-CeJ9_s9p.d.mts → index-C-N3Pwg-.d.ts} +2 -2
- package/dist/{index-MocnSP3a.d.ts → index-D3l4tREW.d.ts} +2 -2
- package/dist/{index-Cl3akY5U.d.mts → index-DPUAPho_.d.mts} +2 -2
- package/dist/{index-DBdiTkNc.d.ts → index-k8o8eUOd.d.mts} +2 -2
- package/dist/index.cjs +72 -65
- package/dist/index.d.mts +29 -45
- package/dist/index.d.ts +29 -45
- package/dist/index.mjs +77 -70
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +7 -7
- package/dist/internal/app-markdown-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.cjs +35 -32
- package/dist/internal/build-runtime.d.mts +9 -9
- package/dist/internal/build-runtime.d.ts +9 -9
- package/dist/internal/build-runtime.mjs +34 -31
- package/dist/internal/cli-runtime.cjs +16 -15
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +19 -2
- package/dist/internal/client-runtime.d.mts +45 -3
- package/dist/internal/client-runtime.d.ts +45 -3
- package/dist/internal/client-runtime.mjs +19 -2
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +17 -10
- package/dist/internal/config-runtime.d.mts +259 -18
- package/dist/internal/config-runtime.d.ts +259 -18
- package/dist/internal/config-runtime.mjs +15 -8
- package/dist/internal/form-actions.cjs +4 -4
- package/dist/internal/form-actions.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +12 -12
- package/dist/internal/production-runtime.d.mts +19 -19
- package/dist/internal/production-runtime.d.ts +19 -19
- package/dist/internal/production-runtime.mjs +14 -14
- package/dist/{layers-D9fbe-rz.d.ts → layers-CcS42OGR.d.mts} +1 -1
- package/dist/{layers-D9fbe-rz.d.mts → layers-CcS42OGR.d.ts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.ts → lifecycle-C2aLBOwu.d.mts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.mts → lifecycle-C2aLBOwu.d.ts} +1 -1
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.cjs +9 -0
- package/dist/mobile.d.mts +67 -0
- package/dist/mobile.d.ts +67 -0
- package/dist/mobile.mjs +9 -0
- package/dist/navigation-delegate-8xg3Zvp4.d.ts +29 -0
- package/dist/navigation-delegate-ji6elCKy.d.mts +29 -0
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-UT2J5A5D.mjs → nitro-2Q5NVY7L.mjs} +2 -2
- package/dist/{nitro-BIXIKJZS.cjs → nitro-YPSZBYDK.cjs} +3 -3
- package/dist/platform.cjs +2 -1
- package/dist/platform.d.mts +4 -3
- package/dist/platform.d.ts +4 -3
- package/dist/platform.mjs +2 -1
- package/dist/{plugin-4KYXV7BB.mjs → plugin-53SY5YBS.mjs} +1 -1
- package/dist/{plugin-WBANOZQM.cjs → plugin-HZIBL3DW.cjs} +2 -2
- package/dist/plugin.cjs +30 -28
- package/dist/plugin.d.mts +13 -8
- package/dist/plugin.d.ts +13 -8
- package/dist/plugin.mjs +29 -27
- package/dist/{production-runtime-DcD-GRAv.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
- package/dist/{production-runtime-B3qFFtKF.d.ts → production-runtime-TdKaYRj0.d.ts} +3 -3
- package/dist/production-vite-BQFAlG7n.d.mts +13 -0
- package/dist/production-vite-BQFAlG7n.d.ts +13 -0
- package/dist/{programmatic-routes-client-fD9f4XqU.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
- package/dist/{programmatic-routes-client-DzbYGiZQ.d.mts → programmatic-routes-client-Dh1SDLSM.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-B6cfssrr.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
- package/dist/{render-plan-DqJ51ufr.d.mts → render-plan-BvCGXF6K.d.mts} +1 -1
- package/dist/renderer-client.cjs +9 -6
- package/dist/renderer-client.d.mts +9 -8
- package/dist/renderer-client.d.ts +9 -8
- package/dist/renderer-client.mjs +6 -3
- package/dist/{request-jhvUMXRx.d.ts → request-B8PGTZNR.d.ts} +1 -1
- package/dist/{request-UuAxHn8h.d.mts → request-C_xTkJib.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/{resolver-DC57A4vz.d.ts → resolver-CJ-D9nP-.d.ts} +1 -1
- package/dist/{resolver-C2G-3Tm6.d.mts → resolver-TDyZKgKI.d.mts} +1 -1
- package/dist/{route-rendering-Cou00t1X.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
- package/dist/{route-rendering-Sn50cYZf.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
- package/dist/{router-0X9DCTcm.d.mts → router-B97eB0Mq.d.mts} +1 -1
- package/dist/{router-xwLvi48p.d.ts → router-qUVaoEN8.d.ts} +1 -1
- package/dist/routes-8PT9cl60.d.ts +121 -0
- package/dist/routes-kEUsXHx3.d.mts +121 -0
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/{rsc-pipeline-VKHMABDJ.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -11
- package/dist/{rsc-pipeline-F6ZPH5MU.mjs → rsc-pipeline-T3775JUA.mjs} +12 -10
- package/dist/runtime-BIBGJO7V.cjs +1005 -0
- package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
- package/dist/{runtime-tkSXZiqO.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
- package/dist/{runtime-CMrsyChI.d.mts → runtime-CaDswfWi.d.mts} +1 -1
- package/dist/{runtime-CCxTmGuf.d.mts → runtime-CihDZ2Rn.d.mts} +2 -2
- package/dist/runtime-HRSFC4ZC.mjs +1005 -0
- package/dist/{schema-dev-notice-O3I5HLXK.mjs → schema-dev-notice-LZ5NXGLN.mjs} +2 -2
- package/dist/{schema-dev-notice-Z73J3NJ6.cjs → schema-dev-notice-XV7GZ3QJ.cjs} +4 -4
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.d.mts +0 -1
- package/dist/server-fn-client.d.ts +0 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.d.mts +0 -1
- package/dist/server-fn.d.ts +0 -1
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -7
- package/dist/server-plugins.d.ts +7 -7
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.d.mts +0 -1
- package/dist/server-query-client.d.ts +0 -1
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.d.mts +0 -1
- package/dist/server-query.d.ts +0 -1
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +88 -65
- package/dist/server.d.mts +22 -17
- package/dist/server.d.ts +22 -17
- package/dist/server.mjs +63 -40
- package/dist/{spa-router-B48EjsS1.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
- package/dist/{spa-router-B06APnGK.d.ts → spa-router-qapSboKz.d.ts} +4 -4
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +5 -5
- package/dist/{types--Wh02r5_.d.mts → types-C41ePjvP.d.mts} +1 -1
- package/dist/{types--Wh02r5_.d.ts → types-C41ePjvP.d.ts} +1 -1
- package/dist/{utils-C5fyK2tE.d.ts → utils-A-cYF81u.d.ts} +1 -1
- package/dist/{utils-hyAwmcN6.d.mts → utils-DyvlSxFk.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +30 -28
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +29 -27
- package/dist/{workflows-Df1C_7OG.d.mts → workflows-CRMzQZ3k.d.mts} +2 -1
- package/dist/{workflows-Df1C_7OG.d.ts → workflows-CRMzQZ3k.d.ts} +2 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +10 -2
- package/dist/cache-invalidation-BD0z_lfu.d.mts +0 -4
- package/dist/cache-invalidation-BD0z_lfu.d.ts +0 -4
- package/dist/chunk-45EUIICW.mjs +0 -15
- package/dist/chunk-V7KTQR4C.cjs +0 -15
- package/dist/{chunk-BR5FSKZ5.cjs → chunk-EQWWOQTK.cjs} +0 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-N7JQXQAV.cjs} +2 -2
- package/dist/{chunk-VR4SEDEM.mjs → chunk-VOZ5DI7D.mjs} +0 -0
- package/dist/{chunk-72KABRWN.mjs → chunk-WSDKXV4E.mjs} +4 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// src/platform-blocks.ts
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
|
+
import * as path from "path";
|
|
4
|
+
function isPlainObject(value) {
|
|
5
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
6
|
+
}
|
|
7
|
+
function createPlatformBlockChecker(prefix) {
|
|
8
|
+
const fail = (message) => {
|
|
9
|
+
throw new TypeError(`${prefix}: ${message}`);
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
fail,
|
|
13
|
+
checkKeys(value, allowed, where) {
|
|
14
|
+
for (const key of Object.keys(value)) {
|
|
15
|
+
if (!allowed.has(key)) {
|
|
16
|
+
fail(`unknown option ${where}${key}. Supported: ${[...allowed].join(", ")}.`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
optionalString(value, key) {
|
|
21
|
+
if (value === void 0) return void 0;
|
|
22
|
+
if (typeof value !== "string" || !value.trim()) fail(`${key} must be a non-empty string.`);
|
|
23
|
+
return value.trim();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function readAppPackageJson(root) {
|
|
28
|
+
try {
|
|
29
|
+
const parsed = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8"));
|
|
30
|
+
return isPlainObject(parsed) ? parsed : {};
|
|
31
|
+
} catch {
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function resolveAppPackageName(root, pkg) {
|
|
36
|
+
return typeof pkg.productName === "string" && pkg.productName.trim() || typeof pkg.name === "string" && pkg.name.replace(/^@[^/]+\//, "").trim() || path.basename(root);
|
|
37
|
+
}
|
|
38
|
+
function resolvePlatformProfile(profile = "production") {
|
|
39
|
+
if (typeof profile !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(profile)) {
|
|
40
|
+
throw new TypeError(`--profile must be a name such as "beta", got "${String(profile)}".`);
|
|
41
|
+
}
|
|
42
|
+
return profile;
|
|
43
|
+
}
|
|
44
|
+
async function resolvePlatformBlock(input, context, validate, cache) {
|
|
45
|
+
if (typeof input !== "function") return validate(input, context);
|
|
46
|
+
const fn = input;
|
|
47
|
+
const call = () => Promise.resolve().then(() => fn(context)).then((value) => validate(value, context));
|
|
48
|
+
if (!cache) return call();
|
|
49
|
+
const key = [
|
|
50
|
+
context.os,
|
|
51
|
+
context.mode,
|
|
52
|
+
context.command,
|
|
53
|
+
context.profile,
|
|
54
|
+
context.root,
|
|
55
|
+
String(fn)
|
|
56
|
+
].join("\0");
|
|
57
|
+
let resolved = cache.get(key);
|
|
58
|
+
if (!resolved) {
|
|
59
|
+
resolved = call();
|
|
60
|
+
cache.set(key, resolved);
|
|
61
|
+
resolved.catch(() => cache.delete(key));
|
|
62
|
+
}
|
|
63
|
+
return resolved;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
isPlainObject,
|
|
68
|
+
createPlatformBlockChecker,
|
|
69
|
+
readAppPackageJson,
|
|
70
|
+
resolveAppPackageName,
|
|
71
|
+
resolvePlatformProfile,
|
|
72
|
+
resolvePlatformBlock
|
|
73
|
+
};
|
|
@@ -24,7 +24,7 @@ var _chunkY3WG64CPcjs = require('./chunk-Y3WG64CP.cjs');
|
|
|
24
24
|
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkJYNNIGQOcjs = require('./chunk-JYNNIGQO.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkXN2MB4QZcjs = require('./chunk-XN2MB4QZ.cjs');
|
|
@@ -294,7 +294,7 @@ var MiddlewareManager = class {
|
|
|
294
294
|
try {
|
|
295
295
|
let module;
|
|
296
296
|
if (this.viteServer) {
|
|
297
|
-
module = await
|
|
297
|
+
module = await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
|
|
298
298
|
} else {
|
|
299
299
|
module = await import(
|
|
300
300
|
/* @vite-ignore */
|
|
@@ -26,7 +26,7 @@ var _chunkZ5MZDFX4cjs = require('./chunk-Z5MZDFX4.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -788,9 +788,9 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
788
788
|
if (!bodyLoaded) {
|
|
789
789
|
bodyLoaded = true;
|
|
790
790
|
if (req.method && req.method !== "GET" && req.method !== "HEAD") {
|
|
791
|
-
requestBody = await
|
|
791
|
+
requestBody = await _chunkLIFUPCXWcjs.readNodeRequestBody.call(void 0,
|
|
792
792
|
req,
|
|
793
|
-
|
|
793
|
+
_chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, context.config.server).bodySizeLimit
|
|
794
794
|
);
|
|
795
795
|
}
|
|
796
796
|
}
|
|
@@ -798,13 +798,13 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
798
798
|
};
|
|
799
799
|
const createHandlerRequest = async () => {
|
|
800
800
|
try {
|
|
801
|
-
return
|
|
801
|
+
return _chunkLIFUPCXWcjs.withFarmRequestClientAddress.call(void 0,
|
|
802
802
|
createWebRequest(req, fullUrl, await getRequestBody()),
|
|
803
|
-
|
|
803
|
+
_chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, context.config.server).trustProxy,
|
|
804
804
|
_optionalChain([req, 'access', _13 => _13.socket, 'optionalAccess', _14 => _14.remoteAddress])
|
|
805
805
|
);
|
|
806
806
|
} catch (error) {
|
|
807
|
-
const response =
|
|
807
|
+
const response = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
808
808
|
if (!response) throw error;
|
|
809
809
|
await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, response);
|
|
810
810
|
return null;
|
|
@@ -1485,15 +1485,15 @@ function createFormInput(formData) {
|
|
|
1485
1485
|
return input;
|
|
1486
1486
|
}
|
|
1487
1487
|
async function dispatchIntegrationRequest(runtime, request, options = {}) {
|
|
1488
|
-
const serverConfig =
|
|
1488
|
+
const serverConfig = _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, runtime.config.server);
|
|
1489
1489
|
try {
|
|
1490
|
-
request = await
|
|
1490
|
+
request = await _chunkLIFUPCXWcjs.bufferFarmRequestBody.call(void 0, request, serverConfig.bodySizeLimit);
|
|
1491
1491
|
} catch (error) {
|
|
1492
|
-
const response =
|
|
1492
|
+
const response = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
1493
1493
|
if (response) return response;
|
|
1494
1494
|
throw error;
|
|
1495
1495
|
}
|
|
1496
|
-
request =
|
|
1496
|
+
request = _chunkLIFUPCXWcjs.withFarmRequestClientAddress.call(void 0, request, serverConfig.trustProxy, options.clientAddress);
|
|
1497
1497
|
const integration = runtime.integration;
|
|
1498
1498
|
const url = new URL(request.url);
|
|
1499
1499
|
const pathname = url.pathname;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadFarmProductionVite
|
|
3
|
-
} from "./chunk-PSUYE5HR.mjs";
|
|
4
1
|
import {
|
|
5
2
|
FARM_DESKTOP_ENV_MODULE_FILE,
|
|
6
3
|
FARM_DESKTOP_ENV_MODULE_SOURCE,
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
createFarmNodeServerEntry,
|
|
11
8
|
withProductionNodeEnv
|
|
12
9
|
} from "./chunk-VU3MYZPO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
loadFarmProductionVite
|
|
12
|
+
} from "./chunk-PSUYE5HR.mjs";
|
|
13
13
|
import {
|
|
14
14
|
generateNativeMCPPluginSource
|
|
15
15
|
} from "./chunk-KQH2COEJ.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
compileFarmDocsAdapterEdgeManifest,
|
|
19
19
|
createFarmDocsAPIHandler,
|
|
20
20
|
hasFarmDocsRuntimeAdapter
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-76R5GJER.mjs";
|
|
22
22
|
import {
|
|
23
23
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
24
24
|
createFarmDocsHandler,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
loadFarmDocsPage,
|
|
30
30
|
resolveFarmDocsContentDir,
|
|
31
31
|
toFarmDocsMarkdownPage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KO2NWUKN.mjs";
|
|
33
33
|
import {
|
|
34
34
|
generateFarmDocsSearchClientRuntime,
|
|
35
35
|
isFarmDocsSearchEnabled,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-WB6XES4V.mjs";
|
|
38
38
|
import {
|
|
39
39
|
FARM_PRERENDER_ENV
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-M7LKA632.mjs";
|
|
41
41
|
import {
|
|
42
42
|
resolveFarmInstrumentationFile
|
|
43
43
|
} from "./chunk-N35YPV4N.mjs";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
getDeployTargetForPreset,
|
|
53
53
|
hasCustomFarmRouteContext,
|
|
54
54
|
resolveDeployOutputPath
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2DEPNLXK.mjs";
|
|
56
56
|
import {
|
|
57
57
|
DEFAULT_NOT_FOUND_STYLES,
|
|
58
58
|
FARM_LAYOUT_ELEMENT_CLIENT_SOURCE,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
resolveFarmIsolatedClientHydrationMode,
|
|
85
85
|
resolveFarmNotFoundComponentPath,
|
|
86
86
|
usesFarmServerTree
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-IWJKJDNW.mjs";
|
|
88
88
|
import {
|
|
89
89
|
loadTailwindVitePlugin
|
|
90
90
|
} from "./chunk-XLLVWLWO.mjs";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
generateFarmTypeArtifacts,
|
|
96
96
|
readRouteRenderingDirectiveFromFile,
|
|
97
97
|
resolveRouteRenderingConfigFromFile
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-SHJJM6OG.mjs";
|
|
99
99
|
import {
|
|
100
100
|
HOISTED_HEAD_ELEMENT,
|
|
101
101
|
appMiddlewareMayHandlePath,
|
|
@@ -112,6 +112,9 @@ import {
|
|
|
112
112
|
import {
|
|
113
113
|
farmPluginMayAffectRuntimePath
|
|
114
114
|
} from "./chunk-UUMKLGUU.mjs";
|
|
115
|
+
import {
|
|
116
|
+
isFarmPreviewDeploymentEnvironment
|
|
117
|
+
} from "./chunk-CSLUBKGG.mjs";
|
|
115
118
|
import {
|
|
116
119
|
FARM_API_CATALOG_PATH,
|
|
117
120
|
FARM_APP_MANIFEST_LEGACY_PATH,
|
|
@@ -119,18 +122,18 @@ import {
|
|
|
119
122
|
listFarmBuiltInRoutePaths,
|
|
120
123
|
resolveFarmApiCatalogInput,
|
|
121
124
|
resolveFarmAppManifestInput
|
|
122
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-JJOWY3XD.mjs";
|
|
123
126
|
import {
|
|
124
127
|
FARM_DEFAULT_MCP_PATH,
|
|
125
128
|
createFarmDefaultMCPServer,
|
|
126
129
|
farmConfigMountsMCP
|
|
127
130
|
} from "./chunk-KRRZJ77U.mjs";
|
|
128
|
-
import {
|
|
129
|
-
isFarmPreviewDeploymentEnvironment
|
|
130
|
-
} from "./chunk-CSLUBKGG.mjs";
|
|
131
131
|
import {
|
|
132
132
|
farmEnvironmentFunctionsPlugin
|
|
133
133
|
} from "./chunk-C5JXCUKR.mjs";
|
|
134
|
+
import {
|
|
135
|
+
isFarmMarkdownPageFile
|
|
136
|
+
} from "./chunk-GW4YUIHW.mjs";
|
|
134
137
|
import {
|
|
135
138
|
generateFarmDocsAdapterClientRuntime,
|
|
136
139
|
getFarmDocsAdapterConfigModule
|
|
@@ -164,10 +167,14 @@ import {
|
|
|
164
167
|
import {
|
|
165
168
|
getFarmAppDirectories
|
|
166
169
|
} from "./chunk-52Y3C3HG.mjs";
|
|
170
|
+
import {
|
|
171
|
+
resolveFarmMdxComponentsModulePath,
|
|
172
|
+
resolveMdxConfig
|
|
173
|
+
} from "./chunk-UIJOLBUL.mjs";
|
|
167
174
|
import {
|
|
168
175
|
applyFarmWorkflowVercelCrons,
|
|
169
176
|
prepareFarmWorkflowsForNitro
|
|
170
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-5V4KZOZO.mjs";
|
|
171
178
|
import {
|
|
172
179
|
applyFarmCronVercelCrons,
|
|
173
180
|
createFarmCronCloudflareConfig,
|
|
@@ -176,14 +183,7 @@ import {
|
|
|
176
183
|
} from "./chunk-UCQ52TJY.mjs";
|
|
177
184
|
import {
|
|
178
185
|
resolveServerActionsConfig
|
|
179
|
-
} from "./chunk-
|
|
180
|
-
import {
|
|
181
|
-
isFarmMarkdownPageFile
|
|
182
|
-
} from "./chunk-GW4YUIHW.mjs";
|
|
183
|
-
import {
|
|
184
|
-
resolveFarmMdxComponentsModulePath,
|
|
185
|
-
resolveMdxConfig
|
|
186
|
-
} from "./chunk-UIJOLBUL.mjs";
|
|
186
|
+
} from "./chunk-BW6SCVYX.mjs";
|
|
187
187
|
import {
|
|
188
188
|
getFarmMarkdownAlternatePath
|
|
189
189
|
} from "./chunk-N77JBPLC.mjs";
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
import {
|
|
194
194
|
getFarmIntegrationPluginServerRuntime,
|
|
195
195
|
getIntegrationProviders
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-HHFMECFO.mjs";
|
|
197
197
|
import {
|
|
198
198
|
FARM_INTEGRATION_API_BASE_PATH_KEY
|
|
199
199
|
} from "./chunk-F6TLUMH7.mjs";
|
|
@@ -204,7 +204,7 @@ import {
|
|
|
204
204
|
} from "./chunk-4HBKBHVP.mjs";
|
|
205
205
|
import {
|
|
206
206
|
APIRouteManager
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-WXHDVXJE.mjs";
|
|
208
208
|
import {
|
|
209
209
|
readFarmI18nCatalogs
|
|
210
210
|
} from "./chunk-DU4VHHPJ.mjs";
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
} from "./chunk-LM2YOGDK.mjs";
|
|
232
232
|
import {
|
|
233
233
|
FARM_VERSION
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-2VCC3GVC.mjs";
|
|
235
235
|
import {
|
|
236
236
|
getFarmPresetRuntime
|
|
237
237
|
} from "./chunk-UAQD67HM.mjs";
|
|
@@ -954,7 +954,7 @@ export default async function farmNetlifyHandler(request, context) {
|
|
|
954
954
|
// src/build/strip-platform-config.ts
|
|
955
955
|
import { realpathSync } from "fs";
|
|
956
956
|
import path8 from "path";
|
|
957
|
-
var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop"]);
|
|
957
|
+
var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop", "mobile"]);
|
|
958
958
|
var CONFIG_FACTORIES = /* @__PURE__ */ new Set(["defineConfig", "defineFarmConfig"]);
|
|
959
959
|
function isConfigObject(node) {
|
|
960
960
|
return node?.type === "ObjectExpression";
|
|
@@ -989,23 +989,33 @@ function collectConfigObjects(node, found) {
|
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
function stripPlatformConfigSource(code, parse) {
|
|
992
|
-
if (!code.includes("desktop")) return null;
|
|
992
|
+
if (!code.includes("desktop") && !code.includes("mobile")) return null;
|
|
993
993
|
const objects = [];
|
|
994
994
|
collectConfigObjects(parse(code), objects);
|
|
995
995
|
const removals = [];
|
|
996
996
|
for (const object of objects) {
|
|
997
997
|
const properties = object.properties;
|
|
998
|
-
properties.
|
|
998
|
+
const removed = properties.map((property) => {
|
|
999
999
|
const name = propertyName(property);
|
|
1000
|
-
|
|
1001
|
-
if (index < properties.length - 1)
|
|
1002
|
-
removals.push([property.start, properties[index + 1].start]);
|
|
1003
|
-
else if (index > 0) removals.push([properties[index - 1].end, property.end]);
|
|
1004
|
-
else {
|
|
1005
|
-
const trailingComma = /^\s*,/.exec(code.slice(property.end));
|
|
1006
|
-
removals.push([property.start, property.end + (trailingComma?.[0].length ?? 0)]);
|
|
1007
|
-
}
|
|
1000
|
+
return !!name && PLATFORM_CONFIG_KEYS.has(name);
|
|
1008
1001
|
});
|
|
1002
|
+
for (let first = 0; first < properties.length; first++) {
|
|
1003
|
+
if (!removed[first]) continue;
|
|
1004
|
+
let last = first;
|
|
1005
|
+
while (last + 1 < properties.length && removed[last + 1]) last++;
|
|
1006
|
+
if (last < properties.length - 1) {
|
|
1007
|
+
removals.push([properties[first].start, properties[last + 1].start]);
|
|
1008
|
+
} else if (first > 0) {
|
|
1009
|
+
removals.push([properties[first - 1].end, properties[last].end]);
|
|
1010
|
+
} else {
|
|
1011
|
+
const trailingComma = /^\s*,/.exec(code.slice(properties[last].end));
|
|
1012
|
+
removals.push([
|
|
1013
|
+
properties[first].start,
|
|
1014
|
+
properties[last].end + (trailingComma?.[0].length ?? 0)
|
|
1015
|
+
]);
|
|
1016
|
+
}
|
|
1017
|
+
first = last;
|
|
1018
|
+
}
|
|
1009
1019
|
}
|
|
1010
1020
|
if (removals.length === 0) return null;
|
|
1011
1021
|
removals.sort((left, right) => right[0] - left[0]);
|
|
@@ -2044,7 +2054,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2044
2054
|
async function buildClient(productionVite, config, root, srcDir, outputDir, pageRoutes, layoutRoutes = [], routeSlots = [], isolatedClientBoundaryModules = /* @__PURE__ */ new Set(), hydrationPlanCache = /* @__PURE__ */ new Map(), rendererBuildLifetime, programmaticClientRoutes) {
|
|
2045
2055
|
const viteBuild = productionVite.build;
|
|
2046
2056
|
const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
|
|
2047
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
2057
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
|
|
2048
2058
|
const fs4 = await import("fs/promises");
|
|
2049
2059
|
const pluginManager = new PluginManager2({
|
|
2050
2060
|
config,
|
|
@@ -3458,7 +3468,7 @@ function isFarmDocsPath() {
|
|
|
3458
3468
|
// Farm.js Client Runtime (no client components)
|
|
3459
3469
|
${cssImport}
|
|
3460
3470
|
${layoutImports}
|
|
3461
|
-
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3471
|
+
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3462
3472
|
import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
|
|
3463
3473
|
${clientPluginEntry.imports}
|
|
3464
3474
|
${clientCachePersistence.imports}
|
|
@@ -3523,6 +3533,15 @@ ${generateUniversalRouterStateProperties()}
|
|
|
3523
3533
|
if (action === "pop") this.revertBlockedPopState(from);
|
|
3524
3534
|
return;
|
|
3525
3535
|
}
|
|
3536
|
+
// A refresh re-renders the page on screen; only a move to another page is offered.
|
|
3537
|
+
if (
|
|
3538
|
+
action !== "pop" &&
|
|
3539
|
+
!(options.refresh && to === from) &&
|
|
3540
|
+
(await runFarmNavigationDelegates({ url: url.href, from, to, action }))
|
|
3541
|
+
) {
|
|
3542
|
+
this.cancelActiveNavigation();
|
|
3543
|
+
return;
|
|
3544
|
+
}
|
|
3526
3545
|
if (action === "pop") {
|
|
3527
3546
|
this.currentHistoryIndex = readHistoryIndex(options.popState);
|
|
3528
3547
|
this.currentHistoryState = options.popState;
|
|
@@ -3823,7 +3842,7 @@ ${layoutImports}
|
|
|
3823
3842
|
${rendererClientImports}
|
|
3824
3843
|
${isolatedHydrationImport}
|
|
3825
3844
|
${providerClientCode.imports}
|
|
3826
|
-
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3845
|
+
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3827
3846
|
import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
|
|
3828
3847
|
import { createFarmRouter, isFarmRouteActive, matchFarmRoute } from "@farm.js/core/router";
|
|
3829
3848
|
${clientPluginEntry.imports}
|
|
@@ -4592,6 +4611,15 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
|
|
|
4592
4611
|
if (action === "pop") this.revertBlockedPopState(from);
|
|
4593
4612
|
return;
|
|
4594
4613
|
}
|
|
4614
|
+
// A refresh re-renders the page on screen; only a move to another page is offered.
|
|
4615
|
+
if (
|
|
4616
|
+
action !== "pop" &&
|
|
4617
|
+
!(options.refresh && to === from) &&
|
|
4618
|
+
(await runFarmNavigationDelegates({ url: url.href, from, to, action }))
|
|
4619
|
+
) {
|
|
4620
|
+
this.cancelActiveNavigation();
|
|
4621
|
+
return;
|
|
4622
|
+
}
|
|
4595
4623
|
if (action === "pop") {
|
|
4596
4624
|
this.currentHistoryIndex = readHistoryIndex(options.popState);
|
|
4597
4625
|
this.currentHistoryState = options.popState;
|
|
@@ -5046,7 +5074,7 @@ void hydrate();
|
|
|
5046
5074
|
async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime) {
|
|
5047
5075
|
const viteBuild = productionVite.build;
|
|
5048
5076
|
const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
|
|
5049
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
5077
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
|
|
5050
5078
|
const fs4 = await import("fs/promises");
|
|
5051
5079
|
const pluginManager = new PluginManager2({
|
|
5052
5080
|
config,
|
|
@@ -11967,7 +11995,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11967
11995
|
}
|
|
11968
11996
|
async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
11969
11997
|
const { farmI18nClientBridgePlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
|
|
11970
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
11998
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
|
|
11971
11999
|
const pluginManager = new PluginManager2({
|
|
11972
12000
|
config,
|
|
11973
12001
|
isDev: false,
|
|
@@ -11994,7 +12022,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
11994
12022
|
}
|
|
11995
12023
|
async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
11996
12024
|
const { farmI18nClientBridgePlugin, farmPlugin } = await import("./vite.mjs");
|
|
11997
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
12025
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-53SY5YBS.mjs");
|
|
11998
12026
|
const pluginManager = new PluginManager2({
|
|
11999
12027
|
config,
|
|
12000
12028
|
isDev: false,
|
|
@@ -12035,7 +12063,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
|
|
|
12035
12063
|
}
|
|
12036
12064
|
async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
|
|
12037
12065
|
const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
|
|
12038
|
-
import("./nitro-
|
|
12066
|
+
import("./nitro-2Q5NVY7L.mjs"),
|
|
12039
12067
|
import("nitro/builder")
|
|
12040
12068
|
]);
|
|
12041
12069
|
let nitroConfig = await createNitroConfig(
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
matchAPIRouteAtBasePath,
|
|
18
18
|
mergePluginAPIRoutes,
|
|
19
19
|
resolveAPIRouteEndpoint
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LJDIFIJ2.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerAPIRouteShape
|
|
23
23
|
} from "./chunk-GWXZS7K5.mjs";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-VHIXGZYH.mjs";
|
|
34
34
|
import {
|
|
35
35
|
loadFarmDevModule
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TUOO6IK3.mjs";
|
|
37
37
|
import {
|
|
38
38
|
logger
|
|
39
39
|
} from "./chunk-2SVJGOAX.mjs";
|
|
@@ -21,7 +21,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
|
|
|
21
21
|
var _chunkWJFFPXCVcjs = require('./chunk-WJFFPXCV.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
|
|
25
25
|
|
|
26
26
|
// src/docs/handler.ts
|
|
27
27
|
|
|
@@ -1834,7 +1834,7 @@ function createFarmDocsHandler(docs, options) {
|
|
|
1834
1834
|
ETag: etag,
|
|
1835
1835
|
"X-Content-Type-Options": "nosniff"
|
|
1836
1836
|
});
|
|
1837
|
-
if (
|
|
1837
|
+
if (_chunkLIFUPCXWcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
1838
1838
|
return new Response(null, { status: 304, headers });
|
|
1839
1839
|
}
|
|
1840
1840
|
if (request.method === "HEAD") return new Response(null, { status: 200, headers });
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS5AQ7CACcjs = require('./chunk-S5AQ7CAC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI2DQGS56cjs = require('./chunk-I2DQGS56.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
10
10
|
|
|
11
11
|
// src/navigation.ts
|
|
12
12
|
function useRouter2() {
|
|
13
|
-
const router =
|
|
13
|
+
const router = _chunkS5AQ7CACcjs.useRouter.call(void 0, );
|
|
14
14
|
return {
|
|
15
15
|
push: router.push,
|
|
16
16
|
replace: router.replace,
|
|
@@ -18,19 +18,19 @@ function useRouter2() {
|
|
|
18
18
|
forward: router.forward,
|
|
19
19
|
refresh() {
|
|
20
20
|
if (typeof window === "undefined") return Promise.resolve();
|
|
21
|
-
return
|
|
21
|
+
return _chunkI2DQGS56cjs.getRouter.call(void 0, ).refresh();
|
|
22
22
|
},
|
|
23
23
|
prefetch(href) {
|
|
24
24
|
if (typeof window === "undefined") return Promise.resolve();
|
|
25
|
-
return
|
|
25
|
+
return _chunkI2DQGS56cjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function usePathname() {
|
|
30
|
-
return
|
|
30
|
+
return _chunkS5AQ7CACcjs.useRouter.call(void 0, ).pathname;
|
|
31
31
|
}
|
|
32
32
|
function useSearchParams() {
|
|
33
|
-
return
|
|
33
|
+
return _chunkS5AQ7CACcjs.useRouter.call(void 0, ).searchParams;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
} from "./chunk-2DA7CLY7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
withFarmRequestClientAddress
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GFT5AHAT.mjs";
|
|
21
21
|
import {
|
|
22
22
|
createFarmAPIMiddlewarePathnames
|
|
23
23
|
} from "./chunk-LM2YOGDK.mjs";
|
|
24
|
-
import {
|
|
25
|
-
_withFarmResponseHeaders
|
|
26
|
-
} from "./chunk-LM55GS4R.mjs";
|
|
27
24
|
import {
|
|
28
25
|
getFarmRedirectError,
|
|
29
26
|
isFarmNotFoundError,
|
|
30
27
|
isFarmRedirectError
|
|
31
28
|
} from "./chunk-JNYFXL7X.mjs";
|
|
29
|
+
import {
|
|
30
|
+
_withFarmResponseHeaders
|
|
31
|
+
} from "./chunk-LM55GS4R.mjs";
|
|
32
32
|
import {
|
|
33
33
|
stripFarmLocaleFromPathname
|
|
34
34
|
} from "./chunk-7S7AAK2D.mjs";
|