@farm.js/core 0.1.50 → 0.1.51-beta.1
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/README.md +163 -3
- package/dist/{agent-mcp-CIMH324y.d.mts → agent-mcp.d-BPzpKBHQ.d.mts} +1 -1
- package/dist/{agent-mcp-9BMbRgg_.d.ts → agent-mcp.d-ZuuNgrkQ.d.ts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +13 -13
- package/dist/agent-runtime.d.ts +13 -13
- package/dist/agent-runtime.mjs +2 -2
- package/dist/{analyzer-CN7C74WX.cjs → analyzer-AZULAOPL.cjs} +2 -2
- package/dist/{analyzer-DDW34OMC.mjs → analyzer-V74FTD2F.mjs} +1 -1
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +19 -19
- package/dist/api/route-manager.d.ts +19 -19
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.d.mts +15 -15
- package/dist/api/runtime.d.ts +15 -15
- package/dist/{api-client-CvI5oOBE.d.ts → api-client.d-BWcqZciH.d.ts} +3 -3
- package/dist/{api-client-CFdv-Xgh.d.mts → api-client.d-CeA6tNA6.d.mts} +3 -3
- package/dist/api.cjs +7 -7
- package/dist/api.d.mts +21 -21
- package/dist/api.d.ts +21 -21
- package/dist/api.mjs +6 -6
- package/dist/{app-manifest-D0kaXdwu.d.ts → app-manifest.d-BJDcZn3W.d.mts} +1 -1
- package/dist/{app-manifest-CQDJOKL2.d.mts → app-manifest.d-HWhqbP2X.d.ts} +1 -1
- package/dist/app-markdown.d.mts +14 -14
- package/dist/app-markdown.d.ts +14 -14
- package/dist/{app-BWibTHVT.d.ts → app.d-B5EWdob-.d.ts} +12 -10
- package/dist/{app-DVJ13FPA.d.mts → app.d-DOGW1KI8.d.mts} +12 -10
- package/dist/base-path.d-BOUV5ozD.d.mts +10 -0
- package/dist/base-path.d-BOUV5ozD.d.ts +10 -0
- package/dist/{chunk-B5S2JS6M.cjs → chunk-2756SHCI.cjs} +372 -305
- package/dist/{chunk-RWT2BTJT.cjs → chunk-2IAPKPEB.cjs} +6 -6
- package/dist/{chunk-2G63BIRL.mjs → chunk-2KVDHNQS.mjs} +8 -11
- package/dist/{chunk-NJVFPJ2Y.cjs → chunk-3OWVWZ6R.cjs} +28 -2
- package/dist/{chunk-WVBUXNBX.mjs → chunk-5A5GAZ75.mjs} +296 -106
- package/dist/{chunk-GERUXONA.cjs → chunk-5A77OEIG.cjs} +4 -1
- package/dist/{chunk-4HBKBHVP.mjs → chunk-5ENW27SL.mjs} +1 -1
- package/dist/{chunk-FACTMUPI.cjs → chunk-5IONBVJY.cjs} +33 -22
- package/dist/{chunk-X2EL3BLH.cjs → chunk-5N7QAGEA.cjs} +36 -9
- package/dist/{chunk-DGOLAZLV.cjs → chunk-65Y5SIBH.cjs} +1 -1
- package/dist/{chunk-MTB57GOK.mjs → chunk-724WT3NI.mjs} +4 -2
- package/dist/{chunk-C73RIAEF.mjs → chunk-72NBDVWQ.mjs} +18 -7
- package/dist/{chunk-VCKGOXFI.cjs → chunk-76GHW3WI.cjs} +7 -1
- package/dist/{chunk-ZIBIE7AH.mjs → chunk-7UPCJDB5.mjs} +7 -1
- package/dist/{chunk-CPXDDWGL.mjs → chunk-AER5I65K.mjs} +1 -1
- package/dist/{chunk-RHOR2J6V.cjs → chunk-AGR7VJH2.cjs} +1 -1
- package/dist/{chunk-WB6XES4V.mjs → chunk-ALEUMLJN.mjs} +34 -5
- package/dist/{chunk-OD6WM3I7.mjs → chunk-AV26KHTG.mjs} +1 -1
- package/dist/{chunk-L6QDME5Z.cjs → chunk-B3GZAQSC.cjs} +3 -3
- package/dist/{chunk-ZLOQQ2UF.mjs → chunk-BSEKNTMS.mjs} +107 -40
- package/dist/{chunk-WAPQWAE6.cjs → chunk-CECUDGXQ.cjs} +9 -8
- package/dist/chunk-CKPTIEDX.cjs +12 -0
- package/dist/{chunk-IUQLRTTO.mjs → chunk-CO6UYM2D.mjs} +14 -1
- package/dist/{chunk-SHJJM6OG.mjs → chunk-CZ35L6PL.mjs} +9 -2
- package/dist/{chunk-EQMTJBB7.cjs → chunk-DZZHTMWM.cjs} +35 -6
- package/dist/{chunk-3ATXWZPH.cjs → chunk-E36C43IX.cjs} +13 -16
- package/dist/{chunk-J2ZEVDEK.cjs → chunk-EHB77D5U.cjs} +3 -3
- package/dist/{chunk-KO2NWUKN.mjs → chunk-EIMK7D2D.mjs} +33 -6
- package/dist/{chunk-CY7H5KS4.cjs → chunk-EKJYE4Y7.cjs} +2 -2
- package/dist/{chunk-2VCC3GVC.mjs → chunk-EOSFVNXZ.mjs} +1 -1
- package/dist/{chunk-IWJKJDNW.mjs → chunk-EWC76P5D.mjs} +53 -32
- package/dist/{chunk-WQGRD5BJ.cjs → chunk-EX6ZSN5P.cjs} +1 -16
- package/dist/{chunk-6QA2SXVH.cjs → chunk-FK25QSVC.cjs} +2 -1
- package/dist/{chunk-BW6SCVYX.mjs → chunk-FSQMN2MQ.mjs} +1 -0
- package/dist/{chunk-2H3FJYY6.mjs → chunk-FSXSQQTV.mjs} +3 -2
- package/dist/chunk-GNZIAJGB.mjs +358 -0
- package/dist/{chunk-TXK4D46O.mjs → chunk-H3ASZDT7.mjs} +21 -1
- package/dist/{chunk-B6PREBN6.cjs → chunk-HASX6DC7.cjs} +8 -8
- package/dist/{chunk-76R5GJER.mjs → chunk-I3EFXUAR.mjs} +60 -13
- package/dist/{chunk-HYN3LLG7.cjs → chunk-IFBINMI4.cjs} +3 -3
- package/dist/{chunk-CBJKDB6F.mjs → chunk-IRSS4HS4.mjs} +1 -1
- package/dist/{chunk-4T25YCZ5.cjs → chunk-JVBNKWLV.cjs} +81 -34
- package/dist/{chunk-VOZ5DI7D.mjs → chunk-JWI5PUO2.mjs} +6 -2
- package/dist/{chunk-YAXOEAND.cjs → chunk-KHXAJ2KA.cjs} +6 -6
- package/dist/{chunk-2DEPNLXK.mjs → chunk-KMB5BMFX.mjs} +122 -12
- package/dist/{chunk-M7LKA632.mjs → chunk-KU7MBLDZ.mjs} +1 -1
- package/dist/{chunk-WXHDVXJE.mjs → chunk-KY32FWK7.mjs} +2 -2
- package/dist/{chunk-EQWWOQTK.cjs → chunk-LEIXUFJN.cjs} +6 -2
- package/dist/{chunk-2GLQSIZD.mjs → chunk-LMFJCXDD.mjs} +1 -1
- package/dist/{chunk-IXSMFKZ2.cjs → chunk-LNM57D3H.cjs} +4 -4
- package/dist/{chunk-5V4KZOZO.mjs → chunk-LZ4SB57H.mjs} +2 -2
- package/dist/chunk-N4AQNEXR.cjs +17 -0
- package/dist/{chunk-J37KTQIA.cjs → chunk-NK2VWS7P.cjs} +52 -3
- package/dist/{chunk-X3HOVNHI.mjs → chunk-NN3MOPSI.mjs} +7 -7
- package/dist/{chunk-JZMZKABS.cjs → chunk-NWUHS6GV.cjs} +3 -2
- package/dist/{chunk-XLLVWLWO.mjs → chunk-PIHKO25G.mjs} +1 -1
- package/dist/chunk-PIUTGRDI.cjs +358 -0
- package/dist/{chunk-JJOWY3XD.mjs → chunk-QAIAFCRZ.mjs} +8 -6
- package/dist/{chunk-Q3UU2KXC.mjs → chunk-QMDU6QHN.mjs} +4 -1
- package/dist/{chunk-75WWOZ5C.mjs → chunk-QOSDWGKT.mjs} +1 -1
- package/dist/{chunk-GOOK2J2W.cjs → chunk-RMPNYUGT.cjs} +9 -7
- package/dist/{chunk-HWCHIBJZ.mjs → chunk-SCRC5AMM.mjs} +5 -5
- package/dist/{chunk-PXEXOQ5R.mjs → chunk-SHS6KXOZ.mjs} +1 -1
- package/dist/{chunk-ETF5C6HR.cjs → chunk-SJ23LJ3N.cjs} +3 -3
- package/dist/{chunk-JHXJBNLY.cjs → chunk-SUCDVKUB.cjs} +21 -1
- package/dist/{chunk-7ONZDKVY.mjs → chunk-T4EW7AAD.mjs} +2 -2
- package/dist/{chunk-F5LERVY3.cjs → chunk-TT66CP3P.cjs} +13 -13
- package/dist/{chunk-IUBDMDZZ.cjs → chunk-UQHIWZZ6.cjs} +15 -8
- package/dist/{chunk-LYWAGXXW.cjs → chunk-VITZRYW3.cjs} +131 -21
- package/dist/{chunk-XN2MB4QZ.cjs → chunk-VQJYGZNX.cjs} +4 -4
- package/dist/{chunk-KGP76FSV.mjs → chunk-VS7EHLLW.mjs} +1 -1
- package/dist/{chunk-5PKDHKQP.cjs → chunk-WFVSAT7Y.cjs} +6 -4
- package/dist/{chunk-UY6HS5PF.cjs → chunk-X2AMN2WV.cjs} +10 -10
- package/dist/{chunk-474FO3UE.cjs → chunk-X2M4XN4V.cjs} +213 -192
- package/dist/chunk-X3EFRVXY.mjs +12 -0
- package/dist/{chunk-UCQ52TJY.mjs → chunk-X3JNB2TB.mjs} +1 -1
- package/dist/{chunk-IQXGHGZF.cjs → chunk-XB24LZWI.cjs} +5 -5
- package/dist/{chunk-BNMHXVLL.mjs → chunk-XMHERKSE.mjs} +0 -15
- package/dist/{chunk-CGCJ2TJU.cjs → chunk-XPMC4E2G.cjs} +3 -3
- package/dist/{chunk-KZH6YLND.cjs → chunk-XY4DYGSU.cjs} +603 -413
- package/dist/{chunk-C7425KDG.cjs → chunk-XYL4HSVC.cjs} +2 -2
- package/dist/{chunk-HHFMECFO.mjs → chunk-Y2G5SJFB.mjs} +2 -1
- package/dist/{chunk-2SVJGOAX.mjs → chunk-Y3N5BFRJ.mjs} +3 -3
- package/dist/{chunk-Z5MZDFX4.cjs → chunk-YIHRZBD7.cjs} +14 -1
- package/dist/chunk-Z5A6CNV2.mjs +60 -0
- package/dist/chunk-Z64V4WZI.mjs +17 -0
- package/dist/{chunk-E2BMCNMJ.cjs → chunk-ZOWNWHK6.cjs} +2 -2
- package/dist/{chunk-C5JXCUKR.mjs → chunk-ZQ5BDNKW.mjs} +51 -2
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-BPfltM5m.d.ts → client-plugins.d-C0n8Yhh-.d.ts} +60 -14
- package/dist/{client-plugins-D4RO59f0.d.mts → client-plugins.d-C_3CdALC.d.mts} +60 -14
- package/dist/client-plugins.d.mts +13 -13
- package/dist/client-plugins.d.ts +13 -13
- package/dist/client.cjs +5 -4
- package/dist/client.d.mts +24 -24
- package/dist/client.d.ts +24 -24
- package/dist/client.mjs +4 -3
- package/dist/config.d.mts +13 -13
- package/dist/config.d.ts +13 -13
- package/dist/cron.cjs +4 -4
- package/dist/cron.mjs +3 -3
- package/dist/desktop.d.mts +14 -14
- package/dist/desktop.d.ts +14 -14
- package/dist/{dev-guard-YLO5DE3H.cjs → dev-guard-2UW2KERP.cjs} +2 -2
- package/dist/{dev-guard-4PFQNXQX.mjs → dev-guard-ONNMVQUN.mjs} +1 -1
- package/dist/{devtools-STG7HPRV.mjs → devtools-BU5IT2PD.mjs} +8 -8
- package/dist/{devtools-N5XTOECL.cjs → devtools-KJFUE5FO.cjs} +10 -10
- package/dist/docs.cjs +14 -12
- package/dist/docs.d.mts +23 -15
- package/dist/docs.d.ts +23 -15
- package/dist/docs.mjs +13 -11
- package/dist/environment/vite.cjs +2 -2
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +1 -1
- package/dist/{generate-route-types-TF5Wwtvz.d.mts → generate-route-types.d-BL2pq6xC.d.ts} +1 -1
- package/dist/{generate-route-types-DQP0cUzk.d.ts → generate-route-types.d-BoVDU8qX.d.mts} +1 -1
- 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.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +48 -44
- package/dist/{index-C-N3Pwg-.d.ts → index.d-B6M_8kmo.d.ts} +2 -2
- package/dist/{index-D3l4tREW.d.ts → index.d-BNNDpql4.d.ts} +2 -2
- package/dist/{index-DPUAPho_.d.mts → index.d-BqcfqJvt.d.mts} +2 -2
- package/dist/{index-k8o8eUOd.d.mts → index.d-CsGxS-hZ.d.mts} +2 -2
- package/dist/index.d.mts +42 -42
- package/dist/index.d.ts +42 -42
- package/dist/index.mjs +47 -43
- package/dist/instrumentation.d.mts +2 -2
- package/dist/instrumentation.d.ts +2 -2
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +13 -13
- package/dist/integrations.d.ts +13 -13
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +14 -14
- package/dist/internal/app-markdown-runtime.d.ts +14 -14
- package/dist/internal/build-runtime.cjs +36 -35
- package/dist/internal/build-runtime.d.mts +16 -16
- package/dist/internal/build-runtime.d.ts +16 -16
- package/dist/internal/build-runtime.mjs +35 -34
- package/dist/internal/cli-runtime.cjs +18 -18
- package/dist/internal/cli-runtime.mjs +17 -17
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +4 -2
- package/dist/internal/client-runtime.d.mts +21 -21
- package/dist/internal/client-runtime.d.ts +21 -21
- package/dist/internal/client-runtime.mjs +3 -1
- package/dist/internal/compression-runtime.d.mts +13 -13
- package/dist/internal/compression-runtime.d.ts +13 -13
- package/dist/internal/config-runtime.cjs +10 -10
- package/dist/internal/config-runtime.d.mts +18 -18
- package/dist/internal/config-runtime.d.ts +18 -18
- package/dist/internal/config-runtime.mjs +9 -9
- package/dist/internal/form-actions.cjs +4 -3
- package/dist/internal/form-actions.d.mts +1 -1
- package/dist/internal/form-actions.d.ts +1 -1
- package/dist/internal/form-actions.mjs +3 -2
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-runtime.cjs +56 -0
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/islands-runtime.mjs +57 -1
- package/dist/internal/isolated-boundary.d.mts +2 -2
- package/dist/internal/isolated-boundary.d.ts +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 +15 -8
- package/dist/internal/production-runtime.d.mts +46 -30
- package/dist/internal/production-runtime.d.ts +46 -30
- package/dist/internal/production-runtime.mjs +14 -7
- package/dist/internal/server-fn-transform.cjs +13 -0
- package/dist/internal/server-fn-transform.d.mts +24 -0
- package/dist/internal/server-fn-transform.d.ts +24 -0
- package/dist/internal/server-fn-transform.mjs +13 -0
- package/dist/internal/server-tree.d.mts +1 -1
- package/dist/internal/server-tree.d.ts +1 -1
- package/dist/markdown.d.mts +13 -13
- package/dist/markdown.d.ts +13 -13
- package/dist/middleware.cjs +8 -8
- package/dist/middleware.d.mts +15 -15
- package/dist/middleware.d.ts +15 -15
- package/dist/middleware.mjs +7 -7
- package/dist/mobile.d.mts +37 -10
- package/dist/mobile.d.ts +37 -10
- package/dist/{navigation-delegate-8xg3Zvp4.d.ts → navigation-delegate.d-C0BbdUgN.d.mts} +1 -1
- package/dist/{navigation-delegate-ji6elCKy.d.mts → navigation-delegate.d-jArRF0ZP.d.ts} +1 -1
- package/dist/navigation.d.mts +17 -17
- package/dist/navigation.d.ts +17 -17
- package/dist/{nitro-YPSZBYDK.cjs → nitro-CK7M4RMY.cjs} +11 -11
- package/dist/{nitro-2Q5NVY7L.mjs → nitro-R444AF3O.mjs} +7 -7
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +29 -27
- package/dist/plugin.d.mts +17 -17
- package/dist/plugin.d.ts +17 -17
- package/dist/plugin.mjs +28 -26
- package/dist/{production-runtime-TdKaYRj0.d.ts → production-runtime.d-DFaQ1qaV.d.mts} +3 -3
- package/dist/{production-runtime-DXnQQkQf.d.mts → production-runtime.d-UnXmSS_S.d.ts} +3 -3
- package/dist/{programmatic-routes-client-Dh1SDLSM.d.mts → programmatic-routes-client.d-BIowUXQC.d.mts} +10 -2
- package/dist/{programmatic-routes-client-BwiTndEC.d.ts → programmatic-routes-client.d-VZ0qcbH4.d.ts} +10 -2
- package/dist/query/client.d.mts +1 -1
- package/dist/query/client.d.ts +1 -1
- package/dist/query/index.d.mts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/server.d.mts +1 -1
- package/dist/query/server.d.ts +1 -1
- package/dist/{render-plan-BPbwRbuN.d.ts → render-plan.d-BB6KrYjP.d.ts} +2 -2
- package/dist/{render-plan-BvCGXF6K.d.mts → render-plan.d-BNeqyPyJ.d.mts} +2 -2
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +19 -19
- package/dist/renderer-client.d.ts +19 -19
- package/dist/renderer-client.mjs +4 -2
- package/dist/{request-C_xTkJib.d.mts → request.d-BV1munmx.d.mts} +1 -1
- package/dist/{request-B8PGTZNR.d.ts → request.d-Bxhghm76.d.ts} +1 -1
- package/dist/request.d.mts +14 -14
- package/dist/request.d.ts +14 -14
- package/dist/{resolver-CJ-D9nP-.d.ts → resolver.d-BHyZgpa7.d.ts} +1 -1
- package/dist/{resolver-TDyZKgKI.d.mts → resolver.d-JnZKKsc5.d.mts} +1 -1
- package/dist/response.d-BolW0Vx_.d.mts +10 -0
- package/dist/response.d-BolW0Vx_.d.ts +10 -0
- package/dist/{route-rendering-DlddURL1.d.mts → route-rendering.d-BIf7zE9d.d.ts} +1 -1
- package/dist/{route-rendering-RNtcj607.d.ts → route-rendering.d-DShqKlgK.d.mts} +1 -1
- package/dist/{route-DFhZj6jN.d.ts → route.d-BaVH3V0w.d.mts} +1 -1
- package/dist/{route-2_yXC6gv.d.mts → route.d-DBTEqifW.d.ts} +1 -1
- package/dist/{router-B97eB0Mq.d.mts → router.d-BE7i84fb.d.mts} +1 -1
- package/dist/{router-qUVaoEN8.d.ts → router.d-Bw3K3b0a.d.ts} +1 -1
- package/dist/routes.cjs +3 -2
- package/dist/{routes-8PT9cl60.d.ts → routes.d-DVZQL0-H.d.ts} +3 -3
- package/dist/{routes-kEUsXHx3.d.mts → routes.d-_5tBQexL.d.mts} +3 -3
- package/dist/routes.d.mts +14 -14
- package/dist/routes.d.ts +14 -14
- package/dist/routes.mjs +2 -1
- package/dist/{rsc-pipeline-T3775JUA.mjs → rsc-pipeline-FBM6NFYY.mjs} +13 -13
- package/dist/{rsc-pipeline-L4XOZ2TE.cjs → rsc-pipeline-IQI5XQLS.cjs} +14 -14
- package/dist/{runtime-HRSFC4ZC.mjs → runtime-2JYIDUON.mjs} +14 -14
- package/dist/{runtime-BIBGJO7V.cjs → runtime-DXEVFYLE.cjs} +16 -16
- package/dist/{runtime-CihDZ2Rn.d.mts → runtime.d-3iJAKptR.d.mts} +2 -2
- package/dist/{runtime-C4CmlOOh.d.ts → runtime.d-BtL3PCL3.d.ts} +2 -2
- package/dist/{runtime-C8GUnNeP.d.ts → runtime.d-CQgoYR0Q.d.mts} +4 -4
- package/dist/{runtime-CaDswfWi.d.mts → runtime.d-CfhaLPl-.d.ts} +4 -4
- package/dist/{schema-dev-notice-LZ5NXGLN.mjs → schema-dev-notice-F6QYSOAI.mjs} +2 -2
- package/dist/{schema-dev-notice-XV7GZ3QJ.cjs → schema-dev-notice-UU7DMZEU.cjs} +3 -3
- package/dist/{search-client-BTXL5XWD.mjs → search-client-OXH6GBNO.mjs} +5 -3
- package/dist/search-client-ZZLKVO5R.cjs +15 -0
- package/dist/server-action-security.cjs +2 -2
- package/dist/server-action-security.d.mts +1 -1
- package/dist/server-action-security.d.ts +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/server-fn-client.d.mts +5 -5
- package/dist/server-fn-client.d.ts +5 -5
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.d.mts +3 -3
- package/dist/server-fn.d.ts +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.d.mts +14 -14
- package/dist/server-plugins.d.ts +14 -14
- package/dist/server-query-client.cjs +4 -3
- package/dist/server-query-client.d.mts +5 -5
- package/dist/server-query-client.d.ts +5 -5
- package/dist/server-query-client.mjs +3 -2
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.d.mts +2 -2
- package/dist/server-query.d.ts +2 -2
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +64 -62
- package/dist/server.d.mts +28 -29
- package/dist/server.d.ts +28 -29
- package/dist/server.mjs +38 -36
- package/dist/{spa-router-Dlv5ofg0.d.mts → spa-router.d-C5opIgXg.d.ts} +5 -5
- package/dist/{spa-router-qapSboKz.d.ts → spa-router.d-D63jb6nX.d.mts} +5 -5
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/testing.cjs +12 -11
- package/dist/testing.d.mts +14 -14
- package/dist/testing.d.ts +14 -14
- package/dist/testing.mjs +9 -8
- package/dist/theme/client.d.mts +1 -1
- package/dist/theme/client.d.ts +1 -1
- package/dist/theme/index.d.mts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/runtime.d.mts +1 -1
- package/dist/theme/runtime.d.ts +1 -1
- package/dist/theme/server.d.mts +1 -1
- package/dist/theme/server.d.ts +1 -1
- package/dist/{utils-DyvlSxFk.d.mts → utils.d-CO-U4OVZ.d.mts} +1 -1
- package/dist/{utils-A-cYF81u.d.ts → utils.d-CkpTqTsC.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +29 -27
- package/dist/vite.d.mts +20 -19
- package/dist/vite.d.ts +20 -19
- package/dist/vite.mjs +28 -26
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +3 -3
- package/package.json +10 -5
- package/dist/base-path-leyrqXbX.d.mts +0 -19
- package/dist/base-path-leyrqXbX.d.ts +0 -19
- package/dist/chunk-OTOOJIUB.mjs +0 -34
- package/dist/search-client-QCYAL6AY.cjs +0 -13
- /package/dist/{chunk-recovery-lnQFzcQP.d.mts → chunk-recovery.d-lnQFzcQP.d.mts} +0 -0
- /package/dist/{chunk-recovery-lnQFzcQP.d.ts → chunk-recovery.d-lnQFzcQP.d.ts} +0 -0
- /package/dist/{client-cache-Deoqq-nM.d.ts → client-cache.d-Deoqq-nM.d.ts} +0 -0
- /package/dist/{client-cache-di_Nasxa.d.mts → client-cache.d-di_Nasxa.d.mts} +0 -0
- /package/dist/{config-CnhyvvmT.d.mts → config.d-CnhyvvmT.d.mts} +0 -0
- /package/dist/{config-CnhyvvmT.d.ts → config.d-CnhyvvmT.d.ts} +0 -0
- /package/dist/{endpoint-BgHn0lhl.d.ts → endpoint.d-BgHn0lhl.d.ts} +0 -0
- /package/dist/{endpoint-BkMSCRf6.d.mts → endpoint.d-BkMSCRf6.d.mts} +0 -0
- /package/dist/{image-config-CeDgNyX4.d.mts → image-config.d-CeDgNyX4.d.mts} +0 -0
- /package/dist/{image-config-CeDgNyX4.d.ts → image-config.d-CeDgNyX4.d.ts} +0 -0
- /package/dist/{instrumentation-runtime-CX9Zh-16.d.mts → instrumentation-runtime.d-CX9Zh-16.d.mts} +0 -0
- /package/dist/{instrumentation-runtime-CX9Zh-16.d.ts → instrumentation-runtime.d-CX9Zh-16.d.ts} +0 -0
- /package/dist/{island-value-protocol-BRayRghM.d.mts → island-value-protocol.d-BRayRghM.d.mts} +0 -0
- /package/dist/{island-value-protocol-BRayRghM.d.ts → island-value-protocol.d-BRayRghM.d.ts} +0 -0
- /package/dist/{island-CfGru1MO.d.mts → island.d-CfGru1MO.d.mts} +0 -0
- /package/dist/{island-CfGru1MO.d.ts → island.d-CfGru1MO.d.ts} +0 -0
- /package/dist/{layers-CcS42OGR.d.mts → layers.d-CcS42OGR.d.mts} +0 -0
- /package/dist/{layers-CcS42OGR.d.ts → layers.d-CcS42OGR.d.ts} +0 -0
- /package/dist/{lifecycle-C2aLBOwu.d.mts → lifecycle.d-C2aLBOwu.d.mts} +0 -0
- /package/dist/{lifecycle-C2aLBOwu.d.ts → lifecycle.d-C2aLBOwu.d.ts} +0 -0
- /package/dist/{observability-B2363jB6.d.mts → observability.d-B2363jB6.d.mts} +0 -0
- /package/dist/{observability-B2363jB6.d.ts → observability.d-B2363jB6.d.ts} +0 -0
- /package/dist/{params-BALtrRim.d.ts → params.d-BALtrRim.d.ts} +0 -0
- /package/dist/{params-ry-lxqmy.d.mts → params.d-ry-lxqmy.d.mts} +0 -0
- /package/dist/{production-vite-BQFAlG7n.d.mts → production-vite.d-BQFAlG7n.d.mts} +0 -0
- /package/dist/{production-vite-BQFAlG7n.d.ts → production-vite.d-BQFAlG7n.d.ts} +0 -0
- /package/dist/{route-pattern-CVsVbq5n.d.mts → route-pattern.d-CVsVbq5n.d.mts} +0 -0
- /package/dist/{route-pattern-CVsVbq5n.d.ts → route-pattern.d-CVsVbq5n.d.ts} +0 -0
- /package/dist/{server-client-bridge-DKWDl5NB.d.mts → server-client-bridge.d-DKWDl5NB.d.mts} +0 -0
- /package/dist/{server-client-bridge-DKWDl5NB.d.ts → server-client-bridge.d-DKWDl5NB.d.ts} +0 -0
- /package/dist/{server-fn-error-DrcH9cc1.d.mts → server-fn-error.d-DrcH9cc1.d.mts} +0 -0
- /package/dist/{server-fn-error-DrcH9cc1.d.ts → server-fn-error.d-DrcH9cc1.d.ts} +0 -0
- /package/dist/{server-query-runtime-DXRNhX_3.d.ts → server-query-runtime.d-DXRNhX_3.d.ts} +0 -0
- /package/dist/{server-query-runtime-aP52iuL5.d.mts → server-query-runtime.d-aP52iuL5.d.mts} +0 -0
- /package/dist/{types-BnIqOn9w.d.mts → types.d-BnIqOn9w.d.mts} +0 -0
- /package/dist/{types-BnIqOn9w.d.ts → types.d-BnIqOn9w.d.ts} +0 -0
- /package/dist/{types-C41ePjvP.d.mts → types.d-C41ePjvP.d.mts} +0 -0
- /package/dist/{types-C41ePjvP.d.ts → types.d-C41ePjvP.d.ts} +0 -0
- /package/dist/{types-DQnyD3VD.d.mts → types.d-DQnyD3VD.d.mts} +0 -0
- /package/dist/{types-DQnyD3VD.d.ts → types.d-DQnyD3VD.d.ts} +0 -0
- /package/dist/{workflows-CRMzQZ3k.d.mts → workflows.d-CRMzQZ3k.d.mts} +0 -0
- /package/dist/{workflows-CRMzQZ3k.d.ts → workflows.d-CRMzQZ3k.d.ts} +0 -0
|
@@ -16,7 +16,27 @@ function searchParamsToObject(searchParams) {
|
|
|
16
16
|
});
|
|
17
17
|
return output;
|
|
18
18
|
}
|
|
19
|
+
var RESERVED_SEARCH_KEYS = /* @__PURE__ */ new Set([
|
|
20
|
+
"then",
|
|
21
|
+
"catch",
|
|
22
|
+
"finally",
|
|
23
|
+
"__proto__",
|
|
24
|
+
"constructor",
|
|
25
|
+
"prototype"
|
|
26
|
+
]);
|
|
27
|
+
function createFarmSearchParams(search) {
|
|
28
|
+
const promise = Promise.resolve(search);
|
|
29
|
+
for (const key of Object.keys(search)) {
|
|
30
|
+
if (RESERVED_SEARCH_KEYS.has(key)) continue;
|
|
31
|
+
Object.defineProperty(promise, key, {
|
|
32
|
+
value: search[key],
|
|
33
|
+
enumerable: true
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return promise;
|
|
37
|
+
}
|
|
38
|
+
|
|
19
39
|
|
|
20
40
|
|
|
21
41
|
|
|
22
|
-
exports.searchParamsToObject = searchParamsToObject;
|
|
42
|
+
exports.searchParamsToObject = searchParamsToObject; exports.createFarmSearchParams = createFarmSearchParams;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
_runServerFunctionForCaller,
|
|
5
5
|
createServerFn,
|
|
6
6
|
createServerFunctionDescriptor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AER5I65K.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmServerQueryResult
|
|
10
10
|
} from "./chunk-N7XWC6BN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getServerActionExecutionContext
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FSQMN2MQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
createRouteDataCacheTag,
|
|
16
16
|
getFarmDataCache
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSJ23LJ3Ncjs = require('./chunk-SJ23LJ3N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXPMC4E2Gcjs = require('./chunk-XPMC4E2G.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVITZRYW3cjs = require('./chunk-VITZRYW3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk65Y5SIBHcjs = require('./chunk-65Y5SIBH.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkLNM57D3Hcjs = require('./chunk-LNM57D3H.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
@@ -54,7 +54,7 @@ function pickImportTarget(entry) {
|
|
|
54
54
|
return void 0;
|
|
55
55
|
}
|
|
56
56
|
async function importFromApp(root, packageName, subpath = ".") {
|
|
57
|
-
const packageDir =
|
|
57
|
+
const packageDir = _chunkSJ23LJ3Ncjs.findFarmAppPackageDir.call(void 0, root, packageName);
|
|
58
58
|
if (!packageDir) return void 0;
|
|
59
59
|
const manifest = JSON.parse(_fs.readFileSync.call(void 0, _path2.default.join(packageDir, "package.json"), "utf8"));
|
|
60
60
|
const exportsMap = manifest.exports;
|
|
@@ -81,9 +81,9 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
81
81
|
importFromApp(root, "@vitejs/plugin-rsc"),
|
|
82
82
|
importFromApp(root, "@vitejs/plugin-react")
|
|
83
83
|
]);
|
|
84
|
-
if (!pluginRsc || !viteRsc || !
|
|
84
|
+
if (!pluginRsc || !viteRsc || !_chunkSJ23LJ3Ncjs.findFarmAppPackageDir.call(void 0, root, "react-server-dom-webpack")) {
|
|
85
85
|
throw new Error(
|
|
86
|
-
`[Farm.js] experimental.serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${
|
|
86
|
+
`[Farm.js] experimental.serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${_chunkSJ23LJ3Ncjs.FARM_RSC_INSTALL_HINT}`
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
const { plugins: vitePlugins = [], ...viteOptions } = _nullishCoalesce(userConfig.vite, () => ( {}));
|
|
@@ -91,15 +91,15 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
91
91
|
for (const key of FARM_RSC_CONFIG_KEYS) {
|
|
92
92
|
if (userConfig[key] !== void 0) rscConfig[key] = userConfig[key];
|
|
93
93
|
}
|
|
94
|
-
const createReactPlugin = hasPluginNamed(vitePlugins, "vite:react") ? void 0 : await _asyncNullishCoalesce(await _asyncOptionalChain([viteReact, 'optionalAccess', async _2 => _2.default]), async () => ( (options.command === "serve" ? (await
|
|
95
|
-
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await
|
|
94
|
+
const createReactPlugin = hasPluginNamed(vitePlugins, "vite:react") ? void 0 : await _asyncNullishCoalesce(await _asyncOptionalChain([viteReact, 'optionalAccess', async _2 => _2.default]), async () => ( (options.command === "serve" ? (await _chunk65Y5SIBHcjs.loadFarmReactPlugin.call(void 0, )).default : void 0)));
|
|
95
|
+
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await _chunkLNM57D3Hcjs.loadTailwindVitePlugin.call(void 0, );
|
|
96
96
|
const farmConfig = pluginRsc.defineConfig({
|
|
97
97
|
...rscConfig,
|
|
98
98
|
experimental: { ...userConfig.experimental, serverComponents: true },
|
|
99
99
|
port: _nullishCoalesce(options.port, () => ( _optionalChain([userConfig, 'access', _3 => _3.server, 'optionalAccess', _4 => _4.port]))),
|
|
100
100
|
plugins: [
|
|
101
101
|
...options.command === "serve" && _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ) === "desktop" ? [
|
|
102
|
-
|
|
102
|
+
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0,
|
|
103
103
|
typeof userConfig.basePath === "string" ? userConfig.basePath : void 0
|
|
104
104
|
)
|
|
105
105
|
] : [],
|
|
@@ -111,7 +111,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
111
111
|
server: { environmentName: "rsc" },
|
|
112
112
|
config: {
|
|
113
113
|
preset: options.preset,
|
|
114
|
-
outputDir: options.outputDir &&
|
|
114
|
+
outputDir: options.outputDir && _chunkVITZRYW3cjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
|
|
115
115
|
}
|
|
116
116
|
})
|
|
117
117
|
]
|
|
@@ -134,7 +134,7 @@ async function createFarmRscDevServer(userConfig, options) {
|
|
|
134
134
|
const config = await createFarmRscViteConfig(userConfig, { ...configOptions, command: "serve" });
|
|
135
135
|
return createServer({
|
|
136
136
|
...config,
|
|
137
|
-
plugins: [..._nullishCoalesce(config.plugins, () => ( [])),
|
|
137
|
+
plugins: [..._nullishCoalesce(config.plugins, () => ( [])), _chunkXPMC4E2Gcjs.createFarmDevLoopbackPlugin.call(void 0, )],
|
|
138
138
|
...host === void 0 ? {} : { server: { ...config.server, host } }
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkE36C43IXcjs = require('./chunk-E36C43IX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkSYW346ZNcjs = require('./chunk-SYW346ZN.cjs');
|
|
@@ -407,6 +407,7 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
407
407
|
const ssgPages = [];
|
|
408
408
|
const ssrRoutes = [];
|
|
409
409
|
const staticCandidateRoutes = [];
|
|
410
|
+
let staticCandidateDocsPages = 0;
|
|
410
411
|
for (const route of routes) {
|
|
411
412
|
try {
|
|
412
413
|
const mod = await loadModule(route.filePath);
|
|
@@ -453,7 +454,8 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
453
454
|
} else {
|
|
454
455
|
ssrRoutes.push(route.path);
|
|
455
456
|
if (options.suggestStaticRendering !== false && analyzeStaticRouteCandidate(mod, source, { isDynamic: route.isDynamic }).candidate) {
|
|
456
|
-
|
|
457
|
+
if (_optionalChain([options, 'access', _41 => _41.docsAdapterRoutes, 'optionalAccess', _42 => _42.owns, 'call', _43 => _43(route.path)])) staticCandidateDocsPages += 1;
|
|
458
|
+
else staticCandidateRoutes.push(route.path);
|
|
457
459
|
}
|
|
458
460
|
}
|
|
459
461
|
} catch (error) {
|
|
@@ -472,6 +474,11 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
472
474
|
Add \`export const dynamic = "force-static";\` after verifying that imported code does not read cookies, headers, authentication, or other request data.`
|
|
473
475
|
);
|
|
474
476
|
}
|
|
477
|
+
if (staticCandidateDocsPages > 0 && !_optionalChain([options, 'access', _44 => _44.docsAdapterRoutes, 'optionalAccess', _45 => _45.prerender])) {
|
|
478
|
+
console.warn(
|
|
479
|
+
`[Farm.js] ${staticCandidateDocsPages} docs page${staticCandidateDocsPages === 1 ? " renders" : "s render"} on each request. Set \`docs.prerender: true\` in farm.config.ts to prerender docs pages on Node and serverless targets.`
|
|
480
|
+
);
|
|
481
|
+
}
|
|
475
482
|
return { ssg: ssgPages, ssr: ssrRoutes };
|
|
476
483
|
}
|
|
477
484
|
function isSSGModule(mod) {
|
|
@@ -749,7 +756,7 @@ function fieldTsType(field) {
|
|
|
749
756
|
case "json":
|
|
750
757
|
return "unknown";
|
|
751
758
|
case "enum":
|
|
752
|
-
return _optionalChain([field, 'access',
|
|
759
|
+
return _optionalChain([field, 'access', _46 => _46.values, 'optionalAccess', _47 => _47.length]) ? field.values.map((value) => JSON.stringify(value)).join(" | ") : "string";
|
|
753
760
|
// id, uuid, string, text, datetime all travel as strings over JSON.
|
|
754
761
|
default:
|
|
755
762
|
return "string";
|
|
@@ -773,7 +780,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
773
780
|
const shouldGenerateApi = options.api !== false;
|
|
774
781
|
const shouldGenerateEnv = options.env !== false;
|
|
775
782
|
const shouldGenerateImages = options.images !== false;
|
|
776
|
-
const shouldGenerateI18n = options.i18n !== false && _optionalChain([options, 'access',
|
|
783
|
+
const shouldGenerateI18n = options.i18n !== false && _optionalChain([options, 'access', _48 => _48.i18nConfig, 'optionalAccess', _49 => _49.enabled]);
|
|
777
784
|
const sourceRoots = _chunk5Y2P454Ocjs.getFarmSourceRoots.call(void 0, { root, srcDir, layers: options.layers });
|
|
778
785
|
const appDirs = _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, { root, srcDir, layers: options.layers });
|
|
779
786
|
const result = {
|
|
@@ -792,7 +799,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
792
799
|
componentExtensions: options.componentExtensions,
|
|
793
800
|
sourceRoots
|
|
794
801
|
};
|
|
795
|
-
unifiedSections.push(await
|
|
802
|
+
unifiedSections.push(await _chunkE36C43IXcjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
|
|
796
803
|
result.routeTypesPath = unifiedTypesPath;
|
|
797
804
|
} else if (shouldGenerateRoutes) {
|
|
798
805
|
const routeOptions = {
|
|
@@ -806,11 +813,11 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
806
813
|
};
|
|
807
814
|
if (options.check) {
|
|
808
815
|
const routeTypesPath = resolveGeneratedPath(root, srcDir, options.routeTypesOutFile);
|
|
809
|
-
const content = await
|
|
816
|
+
const content = await _chunkE36C43IXcjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
|
|
810
817
|
checkGeneratedFile(routeTypesPath, content, result.stalePaths);
|
|
811
818
|
result.routeTypesPath = routeTypesPath;
|
|
812
819
|
} else {
|
|
813
|
-
result.routeTypesPath = await
|
|
820
|
+
result.routeTypesPath = await _chunkE36C43IXcjs.generateRouteTypes.call(void 0, routeOptions);
|
|
814
821
|
}
|
|
815
822
|
}
|
|
816
823
|
if (shouldGenerateApi) {
|
|
@@ -893,7 +900,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
893
900
|
});
|
|
894
901
|
}
|
|
895
902
|
}
|
|
896
|
-
if (shouldRefreshUnifiedTypes && _optionalChain([options, 'access',
|
|
903
|
+
if (shouldRefreshUnifiedTypes && _optionalChain([options, 'access', _50 => _50.i18nConfig, 'optionalAccess', _51 => _51.enabled]) && !options.i18nTypesOutFile) {
|
|
897
904
|
const { signatures } = await _chunkBBPDJGCUcjs.readFarmI18nCatalogs.call(void 0, options.i18nConfig);
|
|
898
905
|
unifiedSections.push(renderFarmI18nTypes(options.i18nConfig.locales, signatures));
|
|
899
906
|
result.i18nTypesPath = unifiedTypesPath;
|
|
@@ -56,13 +56,13 @@ var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
|
56
56
|
var _chunkDQJ2CIH7cjs = require('./chunk-DQJ2CIH7.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var _chunkXB24LZWIcjs = require('./chunk-XB24LZWI.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkXYL4HSVCcjs = require('./chunk-XYL4HSVC.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkFK25QSVCcjs = require('./chunk-FK25QSVC.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
@@ -71,7 +71,7 @@ var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
|
71
71
|
var _chunkWJFFPXCVcjs = require('./chunk-WJFFPXCV.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkCECUDGXQcjs = require('./chunk-CECUDGXQ.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -80,7 +80,7 @@ var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
|
80
80
|
var _chunkLNVGXUL3cjs = require('./chunk-LNVGXUL3.cjs');
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkVQJYGZNXcjs = require('./chunk-VQJYGZNX.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
|
|
@@ -370,7 +370,7 @@ function resolveDeployConfig(config, overrides = {}) {
|
|
|
370
370
|
target = detectedTarget;
|
|
371
371
|
if (!warnedPlatformMismatches.has(`select:${detectedTarget}`)) {
|
|
372
372
|
warnedPlatformMismatches.add(`select:${detectedTarget}`);
|
|
373
|
-
|
|
373
|
+
_chunkVQJYGZNXcjs.logger.info(
|
|
374
374
|
`Detected ${detectedTarget} build environment; using the ${detectedTarget} preset. Set deploy.target in farm.config.ts to override.`
|
|
375
375
|
);
|
|
376
376
|
}
|
|
@@ -384,7 +384,7 @@ function resolveDeployConfig(config, overrides = {}) {
|
|
|
384
384
|
const mismatchKey = `mismatch:${resolvedTarget}:${detectedTarget}`;
|
|
385
385
|
if (!warnedPlatformMismatches.has(mismatchKey)) {
|
|
386
386
|
warnedPlatformMismatches.add(mismatchKey);
|
|
387
|
-
|
|
387
|
+
_chunkVQJYGZNXcjs.logger.warn(
|
|
388
388
|
`The configured deploy target "${_nullishCoalesce(resolvedTarget, () => ( preset))}" cannot be served by ${detectedTarget}, but this build is running in a ${detectedTarget} build environment. Set deploy.target: "${detectedTarget}" in farm.config.ts to deploy there.`
|
|
389
389
|
);
|
|
390
390
|
}
|
|
@@ -565,29 +565,35 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
565
565
|
config: { entry: "docs", docsPath: "/docs" }
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
const
|
|
568
|
+
const fileDocsConfig = omitDocsRoots(_optionalChain([loadedConfig, 'optionalAccess', _24 => _24.config]));
|
|
569
|
+
const inlineRawDocsConfig = omitDocsRoots(docsOptions.config);
|
|
570
|
+
const inlineDocsConfig = sanitizeDocsConfig(inlineRawDocsConfig);
|
|
569
571
|
const directDocsConfig = sanitizeDocsConfig({
|
|
570
572
|
...docsOptions,
|
|
571
573
|
adapter: void 0,
|
|
572
574
|
enabled: void 0,
|
|
575
|
+
prerender: void 0,
|
|
573
576
|
config: void 0,
|
|
574
|
-
configPath: void 0
|
|
577
|
+
configPath: void 0,
|
|
578
|
+
roots: void 0
|
|
575
579
|
});
|
|
576
|
-
const loadedDocsConfig = sanitizeDocsConfig(
|
|
580
|
+
const loadedDocsConfig = sanitizeDocsConfig(fileDocsConfig);
|
|
577
581
|
const mergedDocsConfig = {
|
|
578
582
|
...loadedDocsConfig,
|
|
579
583
|
...inlineDocsConfig,
|
|
580
584
|
...directDocsConfig
|
|
581
585
|
};
|
|
582
586
|
const runtimeDocsConfig = {
|
|
583
|
-
...
|
|
584
|
-
...
|
|
587
|
+
...fileDocsConfig,
|
|
588
|
+
...inlineRawDocsConfig,
|
|
585
589
|
...omitUndefined({
|
|
586
590
|
...docsOptions,
|
|
587
591
|
adapter: void 0,
|
|
588
592
|
enabled: void 0,
|
|
593
|
+
prerender: void 0,
|
|
589
594
|
config: void 0,
|
|
590
|
-
configPath: void 0
|
|
595
|
+
configPath: void 0,
|
|
596
|
+
roots: void 0
|
|
591
597
|
})
|
|
592
598
|
};
|
|
593
599
|
const explicitRoute = typeof docsOptions.entry === "string" ? docsOptions.entry : void 0;
|
|
@@ -601,10 +607,33 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
601
607
|
docsOptions.contentDir || mergedDocsConfig.contentDir
|
|
602
608
|
);
|
|
603
609
|
const contentDir = configuredContentDir || await inferDocsContentDir(root, options.srcDir || "src", docsEntry);
|
|
610
|
+
const configOverrides = { ...inlineDocsConfig, ...directDocsConfig };
|
|
611
|
+
const configFileName = loadedConfig ? _path2.default.relative(root, loadedConfig.configPath) || loadedConfig.configPath : "the docs config";
|
|
612
|
+
const roots = await resolveDocsRoots(
|
|
613
|
+
[
|
|
614
|
+
{ field: `roots in ${configFileName}`, roots: docsRootsOf(_optionalChain([loadedConfig, 'optionalAccess', _25 => _25.config])), file: true },
|
|
615
|
+
{ field: "docs.config.roots", roots: docsRootsOf(docsOptions.config) },
|
|
616
|
+
{ field: "docs.roots", roots: docsOptions.roots }
|
|
617
|
+
],
|
|
618
|
+
{
|
|
619
|
+
root,
|
|
620
|
+
srcDir: options.srcDir || "src",
|
|
621
|
+
mainEntry: entryRoute,
|
|
622
|
+
mergedDocsConfig,
|
|
623
|
+
runtimeDocsConfig,
|
|
624
|
+
configOverrides
|
|
625
|
+
}
|
|
626
|
+
);
|
|
627
|
+
if (roots.length > 0 && !(docsOptions.adapter && docsOptions.adapter.server && docsOptions.adapter.react)) {
|
|
628
|
+
throw new Error(
|
|
629
|
+
`Docs roots require a docs adapter such as @farming-labs/farmjs; Farm's built-in docs renderer serves a single docs root. Install the adapter, or remove the roots from ${configFileName} and docs.roots.`
|
|
630
|
+
);
|
|
631
|
+
}
|
|
604
632
|
return {
|
|
605
633
|
enabled: true,
|
|
606
634
|
entry: entryRoute,
|
|
607
635
|
...docsOptions.adapter ? { adapter: docsOptions.adapter } : {},
|
|
636
|
+
...docsOptions.prerender === true ? { prerender: true } : {},
|
|
608
637
|
contentDir,
|
|
609
638
|
configPath: _optionalChain([loadedConfig, 'optionalAccess', _26 => _26.configPath]),
|
|
610
639
|
config: {
|
|
@@ -619,9 +648,90 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
619
648
|
docsPath: entryRoute,
|
|
620
649
|
...contentDir ? { contentDir } : {}
|
|
621
650
|
},
|
|
622
|
-
configOverrides
|
|
651
|
+
configOverrides,
|
|
652
|
+
...roots.length > 0 ? { roots } : {}
|
|
623
653
|
};
|
|
624
654
|
}
|
|
655
|
+
function docsRootsOf(config) {
|
|
656
|
+
return isRecord(config) ? config.roots : void 0;
|
|
657
|
+
}
|
|
658
|
+
function omitDocsRoots(config) {
|
|
659
|
+
if (!isRecord(config)) return {};
|
|
660
|
+
const { roots: _roots, ...rest } = config;
|
|
661
|
+
return rest;
|
|
662
|
+
}
|
|
663
|
+
function omitKeys(value, keys) {
|
|
664
|
+
const output = { ...value };
|
|
665
|
+
for (const key of keys) delete output[key];
|
|
666
|
+
return output;
|
|
667
|
+
}
|
|
668
|
+
async function resolveDocsRoots(sources, options) {
|
|
669
|
+
const declared = /* @__PURE__ */ new Map();
|
|
670
|
+
for (const source of sources) {
|
|
671
|
+
if (source.roots === void 0) continue;
|
|
672
|
+
if (!Array.isArray(source.roots)) throw new Error(`${source.field} must be an array.`);
|
|
673
|
+
const seen = /* @__PURE__ */ new Set();
|
|
674
|
+
for (const [index, rootInput] of source.roots.entries()) {
|
|
675
|
+
const field = `${source.field}[${index}].entry`;
|
|
676
|
+
if (!isRecord(rootInput) || typeof rootInput.entry !== "string" || !rootInput.entry.trim()) {
|
|
677
|
+
throw new Error(`${field} must be a route such as "/guides/docs".`);
|
|
678
|
+
}
|
|
679
|
+
const entryRoute = normalizeDocsRoute(rootInput.entry);
|
|
680
|
+
if (entryRoute === "/") {
|
|
681
|
+
throw new Error(
|
|
682
|
+
`${field} cannot be "/"; a docs root at "/" leaves no route for the others.`
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
if (entryRoute === options.mainEntry || seen.has(entryRoute)) {
|
|
686
|
+
throw new Error(
|
|
687
|
+
`${field} ${JSON.stringify(entryRoute)} is already served by another docs root.`
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
seen.add(entryRoute);
|
|
691
|
+
const { entry: _entry, ...fields } = rootInput;
|
|
692
|
+
const layers = _nullishCoalesce(declared.get(entryRoute), () => ( { file: {}, overrides: {} }));
|
|
693
|
+
if (source.file) layers.file = fields;
|
|
694
|
+
else layers.overrides = { ...layers.overrides, ...fields };
|
|
695
|
+
declared.set(entryRoute, layers);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
const roots = [];
|
|
699
|
+
for (const [entryRoute, { file, overrides }] of declared) {
|
|
700
|
+
const docsEntry = docsRouteToEntry(entryRoute);
|
|
701
|
+
const contentDir = normalizeDocsContentDir(
|
|
702
|
+
typeof overrides.contentDir === "string" && overrides.contentDir || typeof file.contentDir === "string" && file.contentDir || void 0
|
|
703
|
+
) || await inferDocsContentDir(options.root, options.srcDir, docsEntry);
|
|
704
|
+
const routeConfig = {
|
|
705
|
+
entry: docsEntry,
|
|
706
|
+
docsPath: entryRoute,
|
|
707
|
+
contentDir
|
|
708
|
+
};
|
|
709
|
+
const rootOverrides = sanitizeDocsConfig(overrides);
|
|
710
|
+
roots.push({
|
|
711
|
+
entry: entryRoute,
|
|
712
|
+
contentDir,
|
|
713
|
+
config: omitUndefined({
|
|
714
|
+
...options.mergedDocsConfig,
|
|
715
|
+
...sanitizeDocsConfig(file),
|
|
716
|
+
...rootOverrides,
|
|
717
|
+
...routeConfig
|
|
718
|
+
}),
|
|
719
|
+
runtimeConfig: omitUndefined({
|
|
720
|
+
...options.runtimeDocsConfig,
|
|
721
|
+
...file,
|
|
722
|
+
...overrides,
|
|
723
|
+
...routeConfig
|
|
724
|
+
}),
|
|
725
|
+
// The adapter reads the config file's own root from the config module, so the main
|
|
726
|
+
// root's overrides leave out whatever that root sets itself.
|
|
727
|
+
configOverrides: {
|
|
728
|
+
...omitKeys(options.configOverrides, Object.keys(file)),
|
|
729
|
+
...rootOverrides
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
return roots;
|
|
734
|
+
}
|
|
625
735
|
function validateRedirectConfigs(redirects, field) {
|
|
626
736
|
for (const [index, redirect] of redirects.entries()) {
|
|
627
737
|
_chunk6XQSPIN6cjs.validateConfigRouteSource.call(void 0, redirect.source, `${field}[${index}].source`);
|
|
@@ -654,12 +764,12 @@ async function resolveConfig(userConfig, mode) {
|
|
|
654
764
|
});
|
|
655
765
|
userConfig = layerResolution.config;
|
|
656
766
|
if (userConfig.typescript !== void 0) {
|
|
657
|
-
|
|
767
|
+
_chunkVQJYGZNXcjs.logger.warn(
|
|
658
768
|
'The top-level "typescript" option is not supported and has no effect. Configure TypeScript in `tsconfig.json` and run `tsc --noEmit` separately when builds must enforce project type errors.'
|
|
659
769
|
);
|
|
660
770
|
}
|
|
661
771
|
if (userConfig.output !== void 0) {
|
|
662
|
-
|
|
772
|
+
_chunkVQJYGZNXcjs.logger.warn(
|
|
663
773
|
'The top-level "output" option is not supported and has no effect. Configure `deploy.target`, `deploy.preset`, or `deploy.outputDir` for deployment output, and use route rendering configuration for static pages.'
|
|
664
774
|
);
|
|
665
775
|
}
|
|
@@ -682,7 +792,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
682
792
|
const security = _chunk6JHZPB52cjs.resolveFarmSecurityConfig.call(void 0, userConfig.security);
|
|
683
793
|
const securityHeader = _chunk6JHZPB52cjs.getFarmSecurityHeader.call(void 0, security);
|
|
684
794
|
if (_chunk6JHZPB52cjs.farmCspBlocksFrameworkInlineScripts.call(void 0, security)) {
|
|
685
|
-
|
|
795
|
+
_chunkVQJYGZNXcjs.logger.warn(
|
|
686
796
|
"security.csp blocks the inline scripts Farm injects for theming and hydration. Set security.csp.nonce to true for managed dynamic nonces and prerendered hashes, or make the governing script directive allow 'unsafe-inline' without a nonce, hash, or 'strict-dynamic' source."
|
|
687
797
|
);
|
|
688
798
|
}
|
|
@@ -747,8 +857,8 @@ async function resolveConfig(userConfig, mode) {
|
|
|
747
857
|
md,
|
|
748
858
|
mdx,
|
|
749
859
|
migrations: resolveMigrationsConfig(userConfig.migrations),
|
|
750
|
-
cron:
|
|
751
|
-
workflows:
|
|
860
|
+
cron: _chunkXYL4HSVCcjs.resolveCronConfig.call(void 0, userConfig.cron),
|
|
861
|
+
workflows: _chunkXB24LZWIcjs.resolveWorkflowsConfig.call(void 0, userConfig.workflows),
|
|
752
862
|
api,
|
|
753
863
|
observability: _nullishCoalesce(userConfig.observability, () => ( false)),
|
|
754
864
|
telemetry: userConfig.telemetry !== false,
|
|
@@ -772,7 +882,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
772
882
|
agent: resolveFarmAgentConfig(userConfig.agent, { docs: docs.enabled }),
|
|
773
883
|
desktop: _nullishCoalesce(_optionalChain([desktopSetup, 'optionalAccess', _40 => _40.desktop]), () => ( null)),
|
|
774
884
|
plugins: [
|
|
775
|
-
...
|
|
885
|
+
..._chunkCECUDGXQcjs.resolveIntegrationPlugins.call(void 0, integrations),
|
|
776
886
|
...nativeMCPPlugin ? [nativeMCPPlugin] : [],
|
|
777
887
|
...userConfig.plugins || []
|
|
778
888
|
],
|
|
@@ -796,7 +906,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
796
906
|
notFound: userConfig.notFound || {},
|
|
797
907
|
context: userConfig.context || (() => void 0),
|
|
798
908
|
server: _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, userConfig.server),
|
|
799
|
-
serverActions:
|
|
909
|
+
serverActions: _chunkFK25QSVCcjs.resolveServerActionsConfig.call(void 0, userConfig.serverActions),
|
|
800
910
|
security,
|
|
801
911
|
deploymentId,
|
|
802
912
|
distDir: userConfig.distDir || ".farm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk6CTFVBATcjs = require('./chunk-6CTFVBAT.cjs');
|
|
@@ -172,11 +172,11 @@ async function fileExists(filePath) {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
async function globFiles(pattern, cwd) {
|
|
175
|
-
const glob = await import("
|
|
176
|
-
return glob
|
|
175
|
+
const { glob } = await import("tinyglobby");
|
|
176
|
+
return glob(pattern, { cwd, expandDirectories: false });
|
|
177
177
|
}
|
|
178
178
|
function parseSearchParams(searchParams) {
|
|
179
|
-
return
|
|
179
|
+
return _chunkSUCDVKUBcjs.searchParamsToObject.call(void 0, searchParams);
|
|
180
180
|
}
|
|
181
181
|
var logger = {
|
|
182
182
|
info: (message) => console.log(`[info] ${message}`),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkN4AQNEXRcjs = require('./chunk-N4AQNEXR.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkEX6ZSN5Pcjs = require('./chunk-EX6ZSN5P.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
@@ -11,7 +13,7 @@ var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
|
11
13
|
var _react = require('react');
|
|
12
14
|
function useServerQuery(query, input, options = {}) {
|
|
13
15
|
const cache = _chunkI2BYNELAcjs.getFarmClientDataCache.call(void 0, );
|
|
14
|
-
const key =
|
|
16
|
+
const key = _chunkEX6ZSN5Pcjs.createServerQueryCallKey.call(void 0, query, input);
|
|
15
17
|
const inputRef = _react.useRef.call(void 0, input);
|
|
16
18
|
const optionsRef = _react.useRef.call(void 0, options);
|
|
17
19
|
const mountedKeyRef = _react.useRef.call(void 0, void 0);
|
|
@@ -33,7 +35,7 @@ function useServerQuery(query, input, options = {}) {
|
|
|
33
35
|
const run = _react.useCallback.call(void 0,
|
|
34
36
|
(force = false) => {
|
|
35
37
|
pendingInvalidationRef.current = false;
|
|
36
|
-
return
|
|
38
|
+
return _chunkEX6ZSN5Pcjs.fetchServerQuery.call(void 0, query, inputRef.current, {
|
|
37
39
|
...optionsRef.current,
|
|
38
40
|
force
|
|
39
41
|
});
|
|
@@ -53,7 +55,7 @@ function useServerQuery(query, input, options = {}) {
|
|
|
53
55
|
}, [cache, entry, key, options.enabled, run]);
|
|
54
56
|
_react.useEffect.call(void 0, () => {
|
|
55
57
|
if (options.enabled === false) return;
|
|
56
|
-
return
|
|
58
|
+
return _chunkN4AQNEXRcjs.attachRevalidationListeners.call(void 0,
|
|
57
59
|
() => {
|
|
58
60
|
if (cache.isStale(key)) void run().catch(() => void 0);
|
|
59
61
|
},
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var _chunkL6QDME5Zcjs = require('./chunk-L6QDME5Z.cjs');
|
|
6
5
|
|
|
6
|
+
var _chunkUPYIFH2Hcjs = require('./chunk-UPYIFH2H.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkB3GZAQSCcjs = require('./chunk-B3GZAQSC.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -27,13 +27,13 @@ var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
|
27
27
|
var _chunkJYNNIGQOcjs = require('./chunk-JYNNIGQO.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkVQJYGZNXcjs = require('./chunk-VQJYGZNX.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkYIHRZBD7cjs = require('./chunk-YIHRZBD7.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
|
|
@@ -240,11 +240,11 @@ var MiddlewareManager = class {
|
|
|
240
240
|
middlewareByDirectory.set(entry.location.directory, entry);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) =>
|
|
243
|
+
this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) => _chunkB3GZAQSCcjs.compareMiddlewareRouteLocations.call(void 0, left.location, right.location)).map((entry) => entry.middleware);
|
|
244
244
|
if (process.env.FARM_VERBOSE && this.middleware.length > 0) {
|
|
245
|
-
|
|
245
|
+
_chunkVQJYGZNXcjs.logger.success(`Discovered ${this.middleware.length} middleware files`);
|
|
246
246
|
for (const mw of this.middleware) {
|
|
247
|
-
|
|
247
|
+
_chunkVQJYGZNXcjs.logger.info(` ${mw.path} (${mw.handlers.length} handlers)`);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -267,8 +267,8 @@ var MiddlewareManager = class {
|
|
|
267
267
|
if (entry.isDirectory() && !entry.name.startsWith(".")) {
|
|
268
268
|
await this.discoverInDirectory(
|
|
269
269
|
path.join(dir, entry.name),
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
_chunkB3GZAQSCcjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
|
|
271
|
+
_chunkB3GZAQSCcjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
|
|
272
272
|
discovered
|
|
273
273
|
);
|
|
274
274
|
}
|
|
@@ -443,7 +443,7 @@ var MiddlewareManager = class {
|
|
|
443
443
|
...middlewareEvent,
|
|
444
444
|
status: response.status
|
|
445
445
|
});
|
|
446
|
-
await
|
|
446
|
+
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0, res, response);
|
|
447
447
|
return true;
|
|
448
448
|
}
|
|
449
449
|
if (ctx._handled || res.headersSent || res.writableEnded) {
|