@farm.js/core 0.1.38 → 0.1.40
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-BwKlpnc7.d.mts → agent-mcp-DRlXq3lM.d.ts} +1 -1
- package/dist/{agent-mcp-De1imoMS.d.ts → agent-mcp-XNF4JqHw.d.mts} +1 -1
- package/dist/{agent-mcp-handler-OLRMZONF.mjs → agent-mcp-handler-HVV5LNXF.mjs} +6 -6
- package/dist/{agent-mcp-handler-MRGP3WJ3.cjs → agent-mcp-handler-YKG7KVCY.cjs} +7 -7
- package/dist/agent-runtime.cjs +10 -6
- package/dist/agent-runtime.d.mts +5 -7
- package/dist/agent-runtime.d.ts +5 -7
- package/dist/agent-runtime.mjs +9 -5
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +15 -13
- package/dist/api/route-manager.d.mts +7 -9
- package/dist/api/route-manager.d.ts +7 -9
- package/dist/api/route-manager.mjs +14 -12
- package/dist/api/runtime.cjs +12 -10
- package/dist/api/runtime.d.mts +6 -8
- package/dist/api/runtime.d.ts +6 -8
- package/dist/api/runtime.mjs +11 -9
- package/dist/{api-client-CyFtZFJ4.d.ts → api-client-BJv9mTbO.d.ts} +2 -2
- package/dist/{api-client-BjMmY8OD.d.mts → api-client-Dk9QOLwr.d.mts} +2 -2
- package/dist/api.cjs +17 -15
- package/dist/api.d.mts +9 -11
- package/dist/api.d.ts +9 -11
- package/dist/api.mjs +16 -14
- package/dist/{app-kT_QXTdx.d.ts → app-CDJHPqZn.d.ts} +11 -4
- package/dist/{app-CFZt-srr.d.mts → app-CWjCklhF.d.mts} +11 -4
- package/dist/app-markdown.cjs +7 -6
- package/dist/app-markdown.d.mts +6 -8
- package/dist/app-markdown.d.ts +6 -8
- package/dist/app-markdown.mjs +6 -5
- package/dist/cache.cjs +6 -3
- package/dist/cache.d.mts +23 -2
- package/dist/cache.d.ts +23 -2
- package/dist/cache.mjs +5 -2
- package/dist/{chunk-3UEVPCGW.mjs → chunk-2DMWQWNJ.mjs} +6 -1
- package/dist/{chunk-ZXH4TS3F.cjs → chunk-2JG2LJDI.cjs} +3 -64
- package/dist/{chunk-QTXBII4Z.cjs → chunk-3TB5QGUW.cjs} +5 -5
- package/dist/chunk-45QJHGZM.cjs +1063 -0
- package/dist/{chunk-JCKYH4LG.mjs → chunk-45UZKX2J.mjs} +12 -44
- package/dist/{chunk-FUCSUGDM.cjs → chunk-4A3YUB4D.cjs} +3 -3
- package/dist/{chunk-FUZEBRP3.mjs → chunk-4GP3XZ4Z.mjs} +5 -3
- package/dist/chunk-4TLUFAIP.cjs +92 -0
- package/dist/chunk-4U5XZDLG.cjs +80 -0
- package/dist/{chunk-VXEEATVD.cjs → chunk-4XO5GSD6.cjs} +2 -2
- package/dist/{chunk-P664ZVTV.mjs → chunk-4ZZNPK25.mjs} +2 -2
- package/dist/{chunk-TGFQVLLF.cjs → chunk-54QWHSNR.cjs} +697 -422
- package/dist/{chunk-W36M2BQ4.mjs → chunk-5E65AL7P.mjs} +3 -3
- package/dist/{chunk-3LOLJTFV.cjs → chunk-5JEC43MQ.cjs} +11 -11
- package/dist/{chunk-INL3THCU.mjs → chunk-5LL6TKII.mjs} +1 -1
- package/dist/{chunk-KIIMAWOJ.cjs → chunk-5NAVKJCZ.cjs} +35 -105
- package/dist/{chunk-PGZDEPTM.cjs → chunk-5XS5NCVM.cjs} +10 -10
- package/dist/{chunk-HXRYZWTA.mjs → chunk-62DY5GKS.mjs} +3 -3
- package/dist/{chunk-LSKZMJMP.cjs → chunk-64SBBZDU.cjs} +38 -1
- package/dist/chunk-6BWKJ6QS.cjs +43 -0
- package/dist/{chunk-JSROZYYO.cjs → chunk-6D24SDKO.cjs} +1 -20
- package/dist/{chunk-EIPC3FDA.cjs → chunk-6ILGLCXF.cjs} +9 -5
- package/dist/chunk-6QOLZITB.cjs +22 -0
- package/dist/{chunk-CXEN47J3.mjs → chunk-73WX6PRY.mjs} +25 -0
- package/dist/{chunk-RW63BOV7.cjs → chunk-7FHZ3E6D.cjs} +2 -2
- package/dist/chunk-7GNWGLWB.mjs +14 -0
- package/dist/{chunk-34UCJRQO.cjs → chunk-7RNAKBWF.cjs} +2 -2
- package/dist/{chunk-MSSFIQGM.mjs → chunk-7VAJSSPG.mjs} +41 -10
- package/dist/{chunk-KHKLMNI5.mjs → chunk-ACLPN56I.mjs} +43 -25
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-AGR7F3LA.cjs} +3 -3
- package/dist/{chunk-4GWRFP22.cjs → chunk-ALPWLT27.cjs} +35 -3
- package/dist/{chunk-IBUQWVYA.mjs → chunk-AX7S67YV.mjs} +43 -40
- package/dist/{chunk-CUM5NYL5.mjs → chunk-AXB5P7BK.mjs} +1 -1
- package/dist/{chunk-2ZYGC6SS.cjs → chunk-B6IMBBOS.cjs} +3 -3
- package/dist/{chunk-472NCAZ7.cjs → chunk-B77AUCBV.cjs} +3 -3
- package/dist/{chunk-FWE7LEQC.cjs → chunk-BD3D7EZV.cjs} +4 -4
- package/dist/{chunk-H5CLOUZS.cjs → chunk-BMOBTMDR.cjs} +5 -5
- package/dist/{chunk-CQMVIOYP.mjs → chunk-BPGO2IEP.mjs} +7 -7
- package/dist/{chunk-E2ROOWQC.cjs → chunk-BPOTSHDO.cjs} +24 -87
- package/dist/chunk-BRYPZIMB.mjs +6 -0
- package/dist/{chunk-WFRT7JPX.mjs → chunk-BYQVROIP.mjs} +2 -2
- package/dist/{chunk-HALDNTIV.mjs → chunk-BYR3RQPB.mjs} +10 -73
- package/dist/{chunk-IWZKTWHZ.cjs → chunk-CA62IQY3.cjs} +7 -2
- package/dist/chunk-CALY6QG6.mjs +963 -0
- package/dist/{chunk-WC5UV2HQ.cjs → chunk-CBXBGM72.cjs} +2 -2
- package/dist/{chunk-WW46B6HA.cjs → chunk-CGR525MJ.cjs} +84 -45
- package/dist/{chunk-6V4TDWEC.cjs → chunk-CGVPXIRN.cjs} +18 -1
- package/dist/{chunk-TYMMBFN2.mjs → chunk-CKFK3Z2V.mjs} +1 -1
- package/dist/chunk-CZS6OACQ.mjs +63 -0
- package/dist/{chunk-SGBJ247Q.cjs → chunk-D4ROBNTK.cjs} +2 -2
- package/dist/{chunk-WEW2JVA4.cjs → chunk-D5IHNDHI.cjs} +6 -6
- package/dist/{chunk-ULASELLA.cjs → chunk-DATEWH3W.cjs} +13 -1
- package/dist/{chunk-KKSTAEMY.cjs → chunk-DKU6NXRK.cjs} +1 -1
- package/dist/{chunk-NBBEQLOK.cjs → chunk-E55H6UKH.cjs} +9 -9
- package/dist/{chunk-YR2VBEMO.cjs → chunk-EGCT3AHF.cjs} +1455 -8187
- package/dist/{chunk-SDOTRX3V.cjs → chunk-EORXKFLR.cjs} +7 -7
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-2DD4JMQC.cjs → chunk-EW4MEVLE.cjs} +30 -30
- package/dist/{chunk-TUBTR2OP.mjs → chunk-FCOLU5P6.mjs} +1173 -7905
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-Q3NXS4MU.cjs → chunk-FLZ4H25A.cjs} +44 -32
- package/dist/chunk-FVPXT2JR.cjs +63 -0
- package/dist/{chunk-D2ULAULS.cjs → chunk-FXFKIJDA.cjs} +9 -7
- package/dist/chunk-GC3EM6H4.mjs +80 -0
- package/dist/chunk-GKQL726H.cjs +6096 -0
- package/dist/{chunk-5PWXMJOH.cjs → chunk-GNVEJUT5.cjs} +36 -36
- package/dist/{chunk-E3UK5IIB.cjs → chunk-GS3WR5HX.cjs} +5 -3
- package/dist/{chunk-QFW2IH5E.mjs → chunk-GZTUT75U.mjs} +5 -2
- package/dist/chunk-H3EGVQE5.mjs +22 -0
- package/dist/{chunk-KCQBAKIY.cjs → chunk-H44XGLFU.cjs} +36 -68
- package/dist/{chunk-LI2F57NI.mjs → chunk-H56MQYEG.mjs} +1 -1
- package/dist/chunk-HANGSYMB.mjs +67 -0
- package/dist/{chunk-5BWWFHR2.mjs → chunk-HBEBV7OZ.mjs} +3 -3
- package/dist/{chunk-RSOJ7DRT.mjs → chunk-HCSVR4YZ.mjs} +1 -58
- package/dist/{chunk-HZFM2LWQ.mjs → chunk-HKFBMHCD.mjs} +34 -2
- package/dist/{chunk-MLY2RP5R.mjs → chunk-I63UCMXW.mjs} +6 -2
- package/dist/{chunk-TO4GJ56K.cjs → chunk-I64GEPOB.cjs} +58 -18
- package/dist/{chunk-VNGH5MLF.mjs → chunk-I6UVKUYK.mjs} +1 -1
- package/dist/{chunk-EPYU2EBL.mjs → chunk-IF4NU2NG.mjs} +1 -1
- package/dist/{chunk-IVLZZZEI.mjs → chunk-IM7DY3ED.mjs} +1 -1
- package/dist/{chunk-A3EAIURZ.mjs → chunk-IMQO6ZUU.mjs} +2 -2
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-XKVVMZP5.cjs → chunk-IRYK4Z5M.cjs} +4 -4
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-7FPTZLKH.mjs → chunk-JIYYX7WU.mjs} +10 -8
- package/dist/{chunk-6MVFL3R5.cjs → chunk-JR4QCLJY.cjs} +1 -58
- package/dist/{chunk-Q2KB32T4.mjs → chunk-JXB6DVCO.mjs} +5 -5
- package/dist/{chunk-CGBDNNSM.cjs → chunk-KEXK442I.cjs} +44 -12
- package/dist/{chunk-5D2JIPLH.cjs → chunk-KK22JPQM.cjs} +10 -10
- package/dist/{chunk-EA5K5BKU.mjs → chunk-KNHBTJP6.mjs} +18 -1
- package/dist/{chunk-MVL2RAJW.mjs → chunk-KYN5ODF6.mjs} +1 -1
- package/dist/{chunk-TYJALEHQ.cjs → chunk-LDPKAYVS.cjs} +16 -16
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-EK4QAEFZ.cjs → chunk-LZESP4IR.cjs} +25 -0
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-EKF7KDFD.mjs → chunk-MNUSIXGS.mjs} +2 -2
- package/dist/{chunk-MYIZXDZA.mjs → chunk-MOSYH4CY.mjs} +1 -1
- package/dist/{chunk-4ZFL5GFN.cjs → chunk-OILHPMFX.cjs} +86 -26
- package/dist/{chunk-AJQTP4OO.mjs → chunk-OJ7JP7RJ.mjs} +1 -1
- package/dist/{chunk-7PEP3BUT.mjs → chunk-OLQ73ZO5.mjs} +2 -2
- package/dist/{chunk-5OKBARDN.cjs → chunk-OZN4XL6L.cjs} +10 -10
- package/dist/{chunk-T5OJPTVN.cjs → chunk-P4TYB4SF.cjs} +2 -2
- package/dist/chunk-P7XDC7UJ.mjs +92 -0
- package/dist/{chunk-4E5QXOCL.cjs → chunk-PGW7HZE2.cjs} +6 -6
- package/dist/{chunk-SHLXACIO.cjs → chunk-PJ42JESY.cjs} +1 -9
- package/dist/{chunk-U6QLDL3G.mjs → chunk-PNCM5MFD.mjs} +1 -1
- package/dist/{chunk-OAHTRMIC.mjs → chunk-PYQ3ZG4Z.mjs} +11 -11
- package/dist/{chunk-KMTGADN3.mjs → chunk-QCVIRVHE.mjs} +1 -9
- package/dist/{chunk-RWFLWR5J.cjs → chunk-QJM7A4CR.cjs} +17 -15
- package/dist/{chunk-VU6AAZVY.cjs → chunk-RHGK2JEN.cjs} +65 -62
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-EMO6K4YY.cjs → chunk-SHFXCE5A.cjs} +7 -7
- package/dist/{chunk-EKN7NSZO.cjs → chunk-SZLNU3GJ.cjs} +8 -5
- package/dist/{chunk-WLL43JMO.mjs → chunk-T36UJS3X.mjs} +7 -5
- package/dist/{chunk-CNNOLE4O.mjs → chunk-T4II4MMW.mjs} +1 -1
- package/dist/{chunk-B6G5CKMC.mjs → chunk-T6DLMX5V.mjs} +11 -11
- package/dist/{chunk-4IE345DM.cjs → chunk-TAKG7ZCD.cjs} +14 -14
- package/dist/{chunk-SKVTP5PR.mjs → chunk-TFX4RTH2.mjs} +1 -62
- package/dist/chunk-TI7UANHI.cjs +77 -0
- package/dist/{chunk-ND2CWPOD.mjs → chunk-TS4JHGUJ.mjs} +1 -1
- package/dist/{chunk-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-DRLKAXDM.mjs → chunk-UM3ZV5EP.mjs} +2 -2
- package/dist/{chunk-YWN746US.cjs → chunk-UMQAK3KP.cjs} +85 -54
- package/dist/chunk-UNJZGVPU.cjs +6 -0
- package/dist/{chunk-XKG2BLFN.cjs → chunk-UXMIFB44.cjs} +18 -35
- package/dist/{chunk-DMEPTZTI.mjs → chunk-VBN3UAPQ.mjs} +47 -7
- package/dist/chunk-VDRM36QB.cjs +963 -0
- package/dist/{chunk-RG4A6LB2.cjs → chunk-VNPXKF3G.cjs} +7 -7
- package/dist/chunk-VQDBNVOO.cjs +14 -0
- package/dist/chunk-VQGKD7RV.mjs +25 -0
- package/dist/{chunk-6HB6V3R7.mjs → chunk-WCWV25PG.mjs} +10 -27
- package/dist/{chunk-ZMSZZXOR.mjs → chunk-WDMIW6Q6.mjs} +0 -19
- package/dist/{chunk-4WVJLURN.mjs → chunk-WMHG64DA.mjs} +1 -1
- package/dist/{chunk-L4DD7ODZ.cjs → chunk-WSOBCAYO.cjs} +37 -35
- package/dist/{chunk-ARC7I3O2.mjs → chunk-WW374SGU.mjs} +1 -1
- package/dist/{chunk-J63ZH5OQ.cjs → chunk-X3GMHKO3.cjs} +2 -2
- package/dist/{chunk-VT4WFRHA.mjs → chunk-XJAEZCT6.mjs} +1 -1
- package/dist/{chunk-OCIEZME4.mjs → chunk-XKIUHXHW.mjs} +618 -343
- package/dist/{chunk-6XWDE2P2.cjs → chunk-XVIEGKTT.cjs} +30 -5
- package/dist/{chunk-N32CC42M.cjs → chunk-Y2GNNXGV.cjs} +72 -54
- package/dist/{chunk-ZJD2PN6Z.mjs → chunk-Y4QVEU67.mjs} +30 -18
- package/dist/chunk-Y5RG6B7S.mjs +77 -0
- package/dist/{chunk-QRKIMN7T.mjs → chunk-Y6LRPO2K.mjs} +13 -1
- package/dist/{chunk-BZHXGVMA.mjs → chunk-YJBWB6GF.mjs} +5 -3
- package/dist/{chunk-WXJLNP33.cjs → chunk-YR2P74F7.cjs} +9 -7
- package/dist/chunk-YZAKIXRL.cjs +67 -0
- package/dist/chunk-ZKVJYQPO.mjs +6095 -0
- package/dist/{chunk-POSPE3IO.mjs → chunk-ZOABCQGT.mjs} +27 -2
- package/dist/chunk-ZQRCSUSB.cjs +25 -0
- package/dist/{chunk-ZMMBIVQM.mjs → chunk-ZZGQD7A4.mjs} +16 -86
- package/dist/{client-plugins-DUrIYX9B.d.mts → client-plugins-B_5QbNrp.d.mts} +2551 -2653
- package/dist/{client-plugins-BvlNhGEB.d.ts → client-plugins-DgSfIWIF.d.ts} +2551 -2653
- package/dist/client-plugins.d.mts +5 -7
- package/dist/client-plugins.d.ts +5 -7
- package/dist/client.cjs +7 -7
- package/dist/client.d.mts +11 -12
- package/dist/client.d.ts +11 -12
- package/dist/client.mjs +6 -6
- package/dist/config.d.mts +5 -7
- package/dist/config.d.ts +5 -7
- package/dist/{devtools-VQWJANJV.cjs → devtools-ANJ7JAPQ.cjs} +21 -18
- package/dist/{devtools-JYJNOLPQ.mjs → devtools-VEQQDVHE.mjs} +20 -17
- package/dist/docs.cjs +23 -20
- package/dist/docs.d.mts +6 -8
- package/dist/docs.d.ts +6 -8
- package/dist/docs.mjs +22 -19
- package/dist/{endpoint-CA-TNX60.d.ts → endpoint-BOE0IAaG.d.ts} +6 -3
- package/dist/{endpoint-CCHFqyTE.d.mts → endpoint-DGZRZHux.d.mts} +6 -3
- package/dist/environment/vite.cjs +6 -2
- package/dist/environment/vite.d.mts +11 -2
- package/dist/environment/vite.d.ts +11 -2
- package/dist/environment/vite.mjs +5 -1
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.cjs +7 -3
- package/dist/image/server.d.mts +9 -1
- package/dist/image/server.d.ts +9 -1
- package/dist/image/server.mjs +6 -2
- package/dist/image/sharp.cjs +12 -10
- package/dist/image/sharp.mjs +4 -2
- package/dist/index.cjs +89 -69
- package/dist/index.d.mts +27 -24
- package/dist/index.d.ts +27 -24
- package/dist/index.mjs +102 -82
- package/dist/{integration-api-BPJo5oXb.d.ts → integration-api-BuPHMeKz.d.ts} +2 -2
- package/dist/{integration-api-0y4FXJpC.d.mts → integration-api-DWyMmvrR.d.mts} +2 -2
- package/dist/integration-orm-P2II2EBK.cjs +14 -0
- package/dist/{integration-orm-KV5B3BGZ.mjs → integration-orm-RBKCIQYZ.mjs} +4 -3
- package/dist/integrations.cjs +7 -5
- package/dist/integrations.d.mts +7 -9
- package/dist/integrations.d.ts +7 -9
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -5
- package/dist/internal/app-markdown-runtime.d.mts +6 -8
- package/dist/internal/app-markdown-runtime.d.ts +6 -8
- package/dist/internal/app-markdown-runtime.mjs +5 -4
- package/dist/internal/build-runtime.cjs +57 -56
- package/dist/internal/build-runtime.d.mts +7 -9
- package/dist/internal/build-runtime.d.ts +7 -9
- package/dist/internal/build-runtime.mjs +56 -55
- package/dist/internal/cli-runtime.cjs +36 -30
- package/dist/internal/cli-runtime.mjs +36 -30
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +5 -7
- package/dist/internal/compression-runtime.d.ts +5 -7
- package/dist/internal/config-runtime.cjs +21 -18
- package/dist/internal/config-runtime.d.mts +6 -8
- package/dist/internal/config-runtime.d.ts +6 -8
- package/dist/internal/config-runtime.mjs +20 -17
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/metadata-image-runtime.cjs +4 -3
- package/dist/internal/metadata-image-runtime.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-node-env.cjs +2 -2
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +47 -28
- package/dist/internal/production-runtime.d.mts +25 -14
- package/dist/internal/production-runtime.d.ts +25 -14
- package/dist/internal/production-runtime.mjs +50 -31
- package/dist/layers-CM5i6T7z.d.mts +55 -0
- package/dist/layers-CM5i6T7z.d.ts +55 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +5 -7
- package/dist/markdown.d.ts +5 -7
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +16 -10
- package/dist/middleware.d.mts +7 -9
- package/dist/middleware.d.ts +7 -9
- package/dist/middleware.mjs +19 -13
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +8 -9
- package/dist/navigation.d.ts +8 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-MPZJGPXK.mjs → nitro-NFG2LBRC.mjs} +3 -2
- package/dist/{nitro-7F65EZZS.cjs → nitro-S2QABUFA.cjs} +4 -3
- package/dist/observability.cjs +2 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin-DBBZ4JI2.cjs +32 -0
- package/dist/plugin-SYMK7PQ2.mjs +32 -0
- package/dist/plugin.cjs +56 -43
- package/dist/plugin.d.mts +23 -7
- package/dist/plugin.d.ts +23 -7
- package/dist/plugin.mjs +57 -44
- package/dist/{production-runtime-D2aMyzjr.d.ts → production-runtime-DfknD3g_.d.ts} +17 -3
- package/dist/{production-runtime-BQ4_WLwQ.d.mts → production-runtime-j_WCfuwB.d.mts} +17 -3
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +55 -0
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +55 -0
- package/dist/query/client.cjs +8 -8
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-25p4hrj4.d.ts → render-plan-CFIhcYYS.d.ts} +1 -1
- package/dist/{render-plan-DtkXMN8D.d.mts → render-plan-ChUtsymc.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +7 -8
- package/dist/renderer-client.d.ts +7 -8
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request-DgCkIdcn.d.mts → request-F4HRwzSd.d.mts} +1 -1
- package/dist/{request-jF4jwx8f.d.ts → request-RJvelT8L.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +6 -8
- package/dist/request.d.ts +6 -8
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-Bji6S6a_.d.ts → route-rendering-3a4fbNyC.d.mts} +1 -1
- package/dist/{route-rendering-CSBF78Ya.d.mts → route-rendering-D4coJ-kw.d.ts} +1 -1
- package/dist/{router-B09Ui3Qm.d.mts → router-DqIssGRO.d.mts} +1 -1
- package/dist/{router-CPB9cXtG.d.ts → router-WLEW3Te1.d.ts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +5 -7
- package/dist/routes.d.ts +5 -7
- package/dist/routes.mjs +5 -4
- package/dist/{runtime-EDMwLdjv.d.ts → runtime-BrNdLOq9.d.ts} +3 -3
- package/dist/{runtime-CM6E6yuI.d.mts → runtime-CmE_j-js.d.mts} +3 -3
- package/dist/{schema-dev-notice-Y7MQEFGN.cjs → schema-dev-notice-5JPE67AI.cjs} +6 -4
- package/dist/{schema-dev-notice-O67CPXJ6.mjs → schema-dev-notice-WLPZ6WKU.mjs} +4 -2
- package/dist/server-action-security.cjs +4 -3
- package/dist/server-action-security.mjs +3 -2
- package/dist/server-client-bridge-DKWDl5NB.d.mts +7 -0
- package/dist/server-client-bridge-DKWDl5NB.d.ts +7 -0
- package/dist/server-fn-client.d.mts +3 -3
- package/dist/server-fn-client.d.ts +3 -3
- package/dist/server-fn.cjs +8 -7
- package/dist/server-fn.d.mts +1 -1
- package/dist/server-fn.d.ts +1 -1
- package/dist/server-fn.mjs +7 -6
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +6 -8
- package/dist/server-plugins.d.ts +6 -8
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query.cjs +9 -8
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +8 -7
- package/dist/server.cjs +97 -73
- package/dist/server.d.mts +16 -12
- package/dist/server.d.ts +16 -12
- package/dist/server.mjs +82 -58
- package/dist/{spa-router-Cgimzfbi.d.mts → spa-router-C41zjnFl.d.mts} +2 -2
- package/dist/{spa-router-B_N8XgVu.d.ts → spa-router-D_0VXqPC.d.ts} +2 -2
- package/dist/storage.cjs +6 -2
- package/dist/storage.d.mts +9 -1
- package/dist/storage.d.ts +9 -1
- package/dist/storage.mjs +5 -1
- package/dist/testing.cjs +20 -18
- package/dist/testing.d.mts +6 -8
- package/dist/testing.d.ts +6 -8
- package/dist/testing.mjs +16 -14
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-DZciYXYl.d.mts → utils-BKWSe3S7.d.mts} +1 -1
- package/dist/{utils-BNxAKAuT.d.ts → utils-YYcWsOJp.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +58 -45
- package/dist/vite.d.mts +92 -10
- package/dist/vite.d.ts +92 -10
- package/dist/vite.mjs +59 -46
- package/dist/{workflows-jZ4BcdoZ.d.ts → workflows-IWP1ddBm.d.mts} +5 -2
- package/dist/{workflows-jZ4BcdoZ.d.mts → workflows-IWP1ddBm.d.ts} +5 -2
- package/dist/workflows.cjs +4 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +3 -2
- package/package.json +2 -1
- package/dist/chunk-3SDFA7UF.cjs +0 -701
- package/dist/chunk-E5GNDG5F.mjs +0 -701
- package/dist/integration-orm-55F7CII5.cjs +0 -13
|
@@ -9,10 +9,10 @@ var _chunk4PPEPOZZcjs = require('./chunk-4PPEPOZZ.cjs');
|
|
|
9
9
|
var _chunkMQ3H6LT5cjs = require('./chunk-MQ3H6LT5.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkQJM7A4CRcjs = require('./chunk-QJM7A4CR.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4A3YUB4Dcjs = require('./chunk-4A3YUB4D.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk2CQ74SP6cjs = require('./chunk-2CQ74SP6.cjs');
|
|
@@ -23,31 +23,31 @@ var _chunk2CQ74SP6cjs = require('./chunk-2CQ74SP6.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkUXMIFB44cjs = require('./chunk-UXMIFB44.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkCGVPXIRNcjs = require('./chunk-CGVPXIRN.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
|
|
32
33
|
|
|
33
34
|
|
|
34
|
-
var
|
|
35
|
+
var _chunkPJ42JESYcjs = require('./chunk-PJ42JESY.cjs');
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
|
|
38
38
|
|
|
39
|
+
var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
39
40
|
|
|
40
|
-
var _chunkSHLXACIOcjs = require('./chunk-SHLXACIO.cjs');
|
|
41
41
|
|
|
42
|
+
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
42
43
|
|
|
43
44
|
|
|
44
|
-
var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
@@ -61,7 +61,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
61
61
|
function farmApiPlugin(options = {}) {
|
|
62
62
|
const srcDir = _nullishCoalesce(options.srcDir, () => ( "src"));
|
|
63
63
|
const debug = _nullishCoalesce(options.debug, () => ( false));
|
|
64
|
-
const bodySizeLimit =
|
|
64
|
+
const bodySizeLimit = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, {
|
|
65
65
|
bodySizeLimit: options.bodySizeLimit
|
|
66
66
|
}).bodySizeLimit;
|
|
67
67
|
const basePath = options.basePath;
|
|
@@ -114,7 +114,7 @@ function farmApiPlugin(options = {}) {
|
|
|
114
114
|
const existing = apiRoutesCache.get(routePath);
|
|
115
115
|
const existingFile = _optionalChain([endpointSources, 'access', _ => _.get, 'call', _2 => _2(routePath), 'optionalAccess', _3 => _3.get, 'call', _4 => _4(normalizedMethod)]);
|
|
116
116
|
if (existingFile) {
|
|
117
|
-
throw new (0,
|
|
117
|
+
throw new (0, _chunkQJM7A4CRcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
|
|
118
118
|
}
|
|
119
119
|
if (existing) {
|
|
120
120
|
if (!existing.methods.includes(normalizedMethod)) {
|
|
@@ -190,7 +190,7 @@ function farmApiPlugin(options = {}) {
|
|
|
190
190
|
const createRouter = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
191
191
|
const plugins = options.plugins ? await (_nullishCoalesce(routePlugins, () => ( (routePlugins = Promise.resolve(options.plugins({ root: projectRoot })))))) : [];
|
|
192
192
|
pluginMergedRoutes = plugins.length ? new Map(
|
|
193
|
-
|
|
193
|
+
_chunkUXMIFB44cjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
|
|
194
194
|
bodySizeLimit,
|
|
195
195
|
// A plugin calling an app endpoint (an MCP tool, say) goes back through this server,
|
|
196
196
|
// so the middleware that guards the endpoint's path runs for it.
|
|
@@ -210,7 +210,7 @@ function farmApiPlugin(options = {}) {
|
|
|
210
210
|
const url = new URL(request.url);
|
|
211
211
|
const method = request.method.toUpperCase();
|
|
212
212
|
const pathname = url.pathname;
|
|
213
|
-
const match =
|
|
213
|
+
const match = _chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
|
|
214
214
|
if (!match) {
|
|
215
215
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
216
216
|
status: 404,
|
|
@@ -218,18 +218,18 @@ function farmApiPlugin(options = {}) {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
const { route, params } = match;
|
|
221
|
-
const endpoint =
|
|
221
|
+
const endpoint = _chunkUXMIFB44cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
222
222
|
if (!endpoint) {
|
|
223
223
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
224
224
|
status: 405,
|
|
225
225
|
headers: {
|
|
226
|
-
Allow:
|
|
226
|
+
Allow: _chunkUXMIFB44cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
227
227
|
"Content-Type": "application/json"
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
try {
|
|
232
|
-
return await
|
|
232
|
+
return await _chunkUXMIFB44cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
|
|
233
233
|
} catch (error) {
|
|
234
234
|
return new Response(JSON.stringify({ error: error.message || "Internal Server Error" }), {
|
|
235
235
|
status: 500,
|
|
@@ -275,10 +275,10 @@ function farmApiPlugin(options = {}) {
|
|
|
275
275
|
try {
|
|
276
276
|
const relativePath = path.relative(apiDir, path.dirname(filePath));
|
|
277
277
|
const routePath = "/api/" + (relativePath === "." ? "" : relativePath.replace(/\\/g, "/"));
|
|
278
|
-
const routeModule = await
|
|
278
|
+
const routeModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, filePath);
|
|
279
279
|
const endpoints = {};
|
|
280
280
|
const availableMethods = [];
|
|
281
|
-
for (const method of
|
|
281
|
+
for (const method of _chunkUXMIFB44cjs.API_ROUTE_METHODS) {
|
|
282
282
|
if (routeModule[method]) {
|
|
283
283
|
availableMethods.push(method);
|
|
284
284
|
endpoints[method] = routeModule[method];
|
|
@@ -291,7 +291,7 @@ function farmApiPlugin(options = {}) {
|
|
|
291
291
|
log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
|
|
292
292
|
}
|
|
293
293
|
} catch (e) {
|
|
294
|
-
if (e instanceof
|
|
294
|
+
if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
|
|
295
295
|
log(`API route load failed at ${filePath}: ${e.message}`);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
@@ -307,7 +307,7 @@ function farmApiPlugin(options = {}) {
|
|
|
307
307
|
for (const routesFile of routesFiles) {
|
|
308
308
|
if (fs.existsSync(routesFile)) {
|
|
309
309
|
try {
|
|
310
|
-
const routesModule = await
|
|
310
|
+
const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, routesFile);
|
|
311
311
|
for (const [exportName, exportValue] of Object.entries(routesModule)) {
|
|
312
312
|
const endpoint = exportValue;
|
|
313
313
|
if (endpoint && endpoint.__path) {
|
|
@@ -318,7 +318,7 @@ function farmApiPlugin(options = {}) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
} catch (e) {
|
|
321
|
-
if (e instanceof
|
|
321
|
+
if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
|
|
322
322
|
log(`Root routes.ts load failed: ${e.message}`);
|
|
323
323
|
}
|
|
324
324
|
break;
|
|
@@ -328,12 +328,12 @@ function farmApiPlugin(options = {}) {
|
|
|
328
328
|
const discoverProgrammaticRoutes = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
329
329
|
const path = await import("path");
|
|
330
330
|
const srcRoot = path.join(server.config.root, srcDir);
|
|
331
|
-
const routeFiles =
|
|
331
|
+
const routeFiles = _chunk4A3YUB4Dcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
|
|
332
332
|
if (routeFiles.length === 0) return;
|
|
333
333
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
334
334
|
for (const routeFile of routeFiles) {
|
|
335
335
|
try {
|
|
336
|
-
const routesModule = await
|
|
336
|
+
const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0,
|
|
337
337
|
server,
|
|
338
338
|
_chunk5QIKR7RRcjs.toViteModuleId.call(void 0, routeFile, server.config.root)
|
|
339
339
|
);
|
|
@@ -349,7 +349,7 @@ function farmApiPlugin(options = {}) {
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
} catch (e) {
|
|
352
|
-
if (e instanceof
|
|
352
|
+
if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
|
|
353
353
|
log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -401,7 +401,7 @@ function farmApiPlugin(options = {}) {
|
|
|
401
401
|
const pathname = url.split("?")[0];
|
|
402
402
|
const method = req.method || "GET";
|
|
403
403
|
if (discoveryPromise) await waitForDiscovery();
|
|
404
|
-
if (!
|
|
404
|
+
if (!_chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
|
|
405
405
|
return next();
|
|
406
406
|
}
|
|
407
407
|
if (!apiRouterHandler) {
|
|
@@ -422,10 +422,10 @@ function farmApiPlugin(options = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
const currentUrl = req.url || url;
|
|
424
424
|
const currentPathname = currentUrl.split("?")[0];
|
|
425
|
-
if (currentPathname !== pathname && !
|
|
425
|
+
if (currentPathname !== pathname && !_chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
|
|
426
426
|
return next();
|
|
427
427
|
}
|
|
428
|
-
const fullUrl =
|
|
428
|
+
const fullUrl = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req);
|
|
429
429
|
const headers = new Headers();
|
|
430
430
|
for (const [key, value] of Object.entries(req.headers)) {
|
|
431
431
|
if (value) {
|
|
@@ -434,7 +434,7 @@ function farmApiPlugin(options = {}) {
|
|
|
434
434
|
}
|
|
435
435
|
let body;
|
|
436
436
|
if (method !== "GET" && method !== "HEAD") {
|
|
437
|
-
body = await
|
|
437
|
+
body = await _chunk5NAVKJCZcjs.readNodeRequestBody.call(void 0, req, bodySizeLimit);
|
|
438
438
|
}
|
|
439
439
|
const request = new Request(fullUrl, {
|
|
440
440
|
method,
|
|
@@ -449,7 +449,7 @@ function farmApiPlugin(options = {}) {
|
|
|
449
449
|
logResponse(method, currentPathname, response.status, duration);
|
|
450
450
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, response);
|
|
451
451
|
} catch (error) {
|
|
452
|
-
const bodyErrorResponse =
|
|
452
|
+
const bodyErrorResponse = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
453
453
|
if (bodyErrorResponse) {
|
|
454
454
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
|
|
455
455
|
return;
|
|
@@ -490,7 +490,7 @@ function farmApiPlugin(options = {}) {
|
|
|
490
490
|
async handleHotUpdate({ file, server, modules }) {
|
|
491
491
|
const normalizedFile = _chunk5QIKR7RRcjs.toPosixPath.call(void 0, file);
|
|
492
492
|
const fileName = normalizedFile.split("/").pop() || "";
|
|
493
|
-
if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" ||
|
|
493
|
+
if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" || _chunkCGVPXIRNcjs.isProgrammaticRoutesFileName.call(void 0, fileName)) {
|
|
494
494
|
log(`Root routes file updated: ${fileName}`);
|
|
495
495
|
for (const mod of modules) {
|
|
496
496
|
server.moduleGraph.invalidateModule(mod);
|
|
@@ -498,7 +498,7 @@ function farmApiPlugin(options = {}) {
|
|
|
498
498
|
if (await _optionalChain([recoverFailedDiscovery, 'optionalCall', _9 => _9()])) return [];
|
|
499
499
|
const previousState = snapshotRouteState();
|
|
500
500
|
try {
|
|
501
|
-
const routesModule = await
|
|
501
|
+
const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, file);
|
|
502
502
|
removeEndpointsFromFile(file);
|
|
503
503
|
for (const [exportName, exportValue] of Object.entries(routesModule)) {
|
|
504
504
|
const endpoint = exportValue;
|
|
@@ -526,7 +526,7 @@ function farmApiPlugin(options = {}) {
|
|
|
526
526
|
log(`API router recreated`);
|
|
527
527
|
} catch (e) {
|
|
528
528
|
restoreRouteState(previousState);
|
|
529
|
-
if (e instanceof
|
|
529
|
+
if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
|
|
530
530
|
log(`Root routes.ts HMR failed: ${e.message}`);
|
|
531
531
|
}
|
|
532
532
|
return [];
|
|
@@ -551,10 +551,10 @@ function farmApiPlugin(options = {}) {
|
|
|
551
551
|
log(`API route file removed: ${routePath}`);
|
|
552
552
|
return [];
|
|
553
553
|
}
|
|
554
|
-
const routeModule = await
|
|
554
|
+
const routeModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, file);
|
|
555
555
|
removeEndpointsFromFile(file);
|
|
556
556
|
const availableMethods = [];
|
|
557
|
-
for (const method of
|
|
557
|
+
for (const method of _chunkUXMIFB44cjs.API_ROUTE_METHODS) {
|
|
558
558
|
if (!routeModule[method]) continue;
|
|
559
559
|
availableMethods.push(method);
|
|
560
560
|
addEndpoint(routePath, file, method, routeModule[method]);
|
|
@@ -564,7 +564,7 @@ function farmApiPlugin(options = {}) {
|
|
|
564
564
|
log(`API router recreated`);
|
|
565
565
|
} catch (e) {
|
|
566
566
|
restoreRouteState(previousState);
|
|
567
|
-
if (e instanceof
|
|
567
|
+
if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
|
|
568
568
|
log(`API route HMR failed: ${e.message}`);
|
|
569
569
|
}
|
|
570
570
|
return [];
|
|
@@ -307,12 +307,11 @@ function hashFarmCacheKey(value) {
|
|
|
307
307
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hashFarmCacheKey, "hashFarmCacheKey");
|
|
308
308
|
function toEventAttributes(event) {
|
|
309
309
|
const attributes = {};
|
|
310
|
-
const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
|
|
311
310
|
for (const [key, value] of Object.entries(event)) {
|
|
312
311
|
if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
|
|
313
312
|
continue;
|
|
314
313
|
}
|
|
315
|
-
if (
|
|
314
|
+
if (key === "key" && typeof value === "string") {
|
|
316
315
|
attributes["farm.key_hash"] = hashFarmCacheKey(value);
|
|
317
316
|
continue;
|
|
318
317
|
}
|
|
@@ -432,6 +431,7 @@ function emitFarmEvent(input) {
|
|
|
432
431
|
level: inferFarmEventLevel(input.type),
|
|
433
432
|
...input
|
|
434
433
|
};
|
|
434
|
+
if (event.type === "route.redirect") event.to = event.to.replace(/[?#][\s\S]*$/, "");
|
|
435
435
|
const traceContext = recordFarmEventTrace(event);
|
|
436
436
|
if (traceContext) {
|
|
437
437
|
event.traceId = traceContext.traceId;
|
|
@@ -553,7 +553,9 @@ function formatFarmEventDetails(event) {
|
|
|
553
553
|
"count"
|
|
554
554
|
]) {
|
|
555
555
|
const value = record[key];
|
|
556
|
-
if (value
|
|
556
|
+
if (key === "key" && typeof value === "string") {
|
|
557
|
+
details.push(`key_hash=${hashFarmCacheKey(value)}`);
|
|
558
|
+
} else if (value !== void 0) {
|
|
557
559
|
details.push(`${key}=${formatDetailValue(value)}`);
|
|
558
560
|
}
|
|
559
561
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FARM_ANONYMOUS_CLIENT_ADDRESS
|
|
3
|
+
} from "./chunk-BRYPZIMB.mjs";
|
|
1
4
|
import {
|
|
2
5
|
FARM_MARKDOWN_PAGE_CHECK_HEADER,
|
|
3
6
|
_getFarmMarkdownPageCheckToken,
|
|
4
7
|
createFarmMarkdownViewResponse,
|
|
5
8
|
requestAcceptsMarkdown
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I6UVKUYK.mjs";
|
|
7
10
|
import {
|
|
8
11
|
__name
|
|
9
12
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -194,7 +197,7 @@ function hasOnlyAnonymousHeaders(headers) {
|
|
|
194
197
|
return true;
|
|
195
198
|
}
|
|
196
199
|
__name(hasOnlyAnonymousHeaders, "hasOnlyAnonymousHeaders");
|
|
197
|
-
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS =
|
|
200
|
+
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = FARM_ANONYMOUS_CLIENT_ADDRESS;
|
|
198
201
|
async function createFarmMarkdownSourceResponse(options) {
|
|
199
202
|
if (options.request.method !== "GET" && options.request.method !== "HEAD") {
|
|
200
203
|
return null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-LPEX4YW6.mjs";
|
|
4
|
+
|
|
5
|
+
// src/plugin-integration-context.ts
|
|
6
|
+
var FARM_PLUGIN_INTEGRATION_CONTEXT = /* @__PURE__ */ Symbol.for("@farm.js/core/plugin-integration-context");
|
|
7
|
+
function setFarmPluginIntegrationContext(plugin, integration) {
|
|
8
|
+
Object.defineProperty(plugin, FARM_PLUGIN_INTEGRATION_CONTEXT, {
|
|
9
|
+
value: integration
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
__name(setFarmPluginIntegrationContext, "setFarmPluginIntegrationContext");
|
|
13
|
+
function getFarmPluginIntegrationContext(plugin) {
|
|
14
|
+
const value = plugin[FARM_PLUGIN_INTEGRATION_CONTEXT];
|
|
15
|
+
return value && typeof value === "object" ? value : void 0;
|
|
16
|
+
}
|
|
17
|
+
__name(getFarmPluginIntegrationContext, "getFarmPluginIntegrationContext");
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
setFarmPluginIntegrationContext,
|
|
21
|
+
getFarmPluginIntegrationContext
|
|
22
|
+
};
|
|
@@ -1,33 +1,36 @@
|
|
|
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 _chunkM7MKQXAFcjs = require('./chunk-M7MKQXAF.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunk6BWKJ6QScjs = require('./chunk-6BWKJ6QS.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var _chunkZXH4TS3Fcjs = require('./chunk-ZXH4TS3F.cjs');
|
|
11
10
|
|
|
11
|
+
var _chunk2JG2LJDIcjs = require('./chunk-2JG2LJDI.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
var _chunkVQDBNVOOcjs = require('./chunk-VQDBNVOO.cjs');
|
|
25
|
+
|
|
23
26
|
|
|
24
|
-
var
|
|
27
|
+
var _chunkPJ42JESYcjs = require('./chunk-PJ42JESY.cjs');
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
28
31
|
|
|
29
32
|
|
|
30
|
-
var
|
|
33
|
+
var _chunkGS3WR5HXcjs = require('./chunk-GS3WR5HX.cjs');
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
@@ -41,7 +44,7 @@ var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
|
41
44
|
var _chunkOX6O6WVAcjs = require('./chunk-OX6O6WVA.cjs');
|
|
42
45
|
|
|
43
46
|
|
|
44
|
-
var
|
|
47
|
+
var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
|
|
45
48
|
|
|
46
49
|
|
|
47
50
|
var _chunkBIDYX3SLcjs = require('./chunk-BIDYX3SL.cjs');
|
|
@@ -57,7 +60,7 @@ var _CookieJarImpl = class _CookieJarImpl {
|
|
|
57
60
|
constructor(req, res) {
|
|
58
61
|
this.req = req;
|
|
59
62
|
this.res = res;
|
|
60
|
-
this.cookies =
|
|
63
|
+
this.cookies = _chunk2JG2LJDIcjs.parseMiddlewareCookieHeader.call(void 0, req.headers.cookie);
|
|
61
64
|
const existing = res.getHeader("Set-Cookie");
|
|
62
65
|
this.setCookies = Array.isArray(existing) ? existing.map(String) : existing === void 0 ? [] : [String(existing)];
|
|
63
66
|
}
|
|
@@ -66,13 +69,13 @@ var _CookieJarImpl = class _CookieJarImpl {
|
|
|
66
69
|
}
|
|
67
70
|
set(name, value, options = {}) {
|
|
68
71
|
this.cookies[name] = value;
|
|
69
|
-
const cookieString =
|
|
72
|
+
const cookieString = _chunk2JG2LJDIcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
|
|
70
73
|
this.setCookies.push(cookieString);
|
|
71
74
|
this.res.setHeader("Set-Cookie", this.setCookies);
|
|
72
75
|
}
|
|
73
76
|
delete(name, options = {}) {
|
|
74
77
|
delete this.cookies[name];
|
|
75
|
-
this.setCookies.push(
|
|
78
|
+
this.setCookies.push(_chunk2JG2LJDIcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
|
|
76
79
|
this.res.setHeader("Set-Cookie", this.setCookies);
|
|
77
80
|
}
|
|
78
81
|
getAll() {
|
|
@@ -82,7 +85,7 @@ var _CookieJarImpl = class _CookieJarImpl {
|
|
|
82
85
|
_chunkS3JO3N4Hcjs.__name.call(void 0, _CookieJarImpl, "CookieJarImpl");
|
|
83
86
|
var CookieJarImpl = _CookieJarImpl;
|
|
84
87
|
function createContext(req, res, viteServer, parent, server, toRoutePathname) {
|
|
85
|
-
const url =
|
|
88
|
+
const url = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([server, 'optionalAccess', _ => _.trustProxy]) });
|
|
86
89
|
const headers = /* @__PURE__ */ new Map();
|
|
87
90
|
const data = _optionalChain([parent, 'optionalAccess', _2 => _2.data]) ? new Map(parent.data) : /* @__PURE__ */ new Map();
|
|
88
91
|
const locals = _optionalChain([parent, 'optionalAccess', _3 => _3.locals]) ? new Map(parent.locals) : /* @__PURE__ */ new Map();
|
|
@@ -106,7 +109,7 @@ function createContext(req, res, viteServer, parent, server, toRoutePathname) {
|
|
|
106
109
|
response: res,
|
|
107
110
|
url,
|
|
108
111
|
pathname: url.pathname,
|
|
109
|
-
routePathname:
|
|
112
|
+
routePathname: _chunkALPWLT27cjs.toMiddlewareRoutePathname.call(void 0, url.pathname, toRoutePathname),
|
|
110
113
|
searchParams: url.searchParams,
|
|
111
114
|
method: req.method || "GET",
|
|
112
115
|
params: {},
|
|
@@ -142,7 +145,7 @@ function createContext(req, res, viteServer, parent, server, toRoutePathname) {
|
|
|
142
145
|
const newUrl = new URL(rewriteUrl, ctx.url);
|
|
143
146
|
ctx.url = newUrl;
|
|
144
147
|
ctx.pathname = newUrl.pathname;
|
|
145
|
-
ctx.routePathname =
|
|
148
|
+
ctx.routePathname = _chunkALPWLT27cjs.toMiddlewareRoutePathname.call(void 0, newUrl.pathname, toRoutePathname);
|
|
146
149
|
ctx.searchParams = newUrl.searchParams;
|
|
147
150
|
ctx.route = newUrl.pathname;
|
|
148
151
|
req.url = rewriteUrl;
|
|
@@ -194,38 +197,6 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, createContext, "createContext");
|
|
|
194
197
|
// src/middleware/manager.ts
|
|
195
198
|
var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
|
|
196
199
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
197
|
-
|
|
198
|
-
// src/middleware/path.ts
|
|
199
|
-
function appendMiddlewareRoutePath(routePath, directoryName) {
|
|
200
|
-
const marker = _chunkM7MKQXAFcjs.parseInterceptionMarker.call(void 0, directoryName);
|
|
201
|
-
if (marker) {
|
|
202
|
-
const owner = routePath.split("/").filter(Boolean);
|
|
203
|
-
const parts = [
|
|
204
|
-
...marker.root ? [] : owner.slice(0, Math.max(0, owner.length - marker.up)),
|
|
205
|
-
...marker.remainder ? [marker.remainder] : []
|
|
206
|
-
];
|
|
207
|
-
return `/${parts.join("/")}`;
|
|
208
|
-
}
|
|
209
|
-
if (directoryName.startsWith("(") && directoryName.endsWith(")") || _chunkM7MKQXAFcjs.isRouteSlotSegment.call(void 0, directoryName)) {
|
|
210
|
-
return routePath;
|
|
211
|
-
}
|
|
212
|
-
return routePath === "/" ? `/${directoryName}` : `${routePath}/${directoryName}`;
|
|
213
|
-
}
|
|
214
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareRoutePath, "appendMiddlewareRoutePath");
|
|
215
|
-
function appendMiddlewareDirectory(directory, directoryName) {
|
|
216
|
-
return directory === "" ? directoryName : `${directory}/${directoryName}`;
|
|
217
|
-
}
|
|
218
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareDirectory, "appendMiddlewareDirectory");
|
|
219
|
-
function countSegments(value) {
|
|
220
|
-
return value.split("/").filter(Boolean).length;
|
|
221
|
-
}
|
|
222
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, countSegments, "countSegments");
|
|
223
|
-
function compareMiddlewareRouteLocations(left, right) {
|
|
224
|
-
return countSegments(left.path) - countSegments(right.path) || left.path.localeCompare(right.path) || countSegments(left.directory) - countSegments(right.directory) || left.directory.localeCompare(right.directory);
|
|
225
|
-
}
|
|
226
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, compareMiddlewareRouteLocations, "compareMiddlewareRouteLocations");
|
|
227
|
-
|
|
228
|
-
// src/middleware/manager.ts
|
|
229
200
|
function isMiddlewareResponse(value) {
|
|
230
201
|
return value instanceof Response;
|
|
231
202
|
}
|
|
@@ -249,7 +220,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
249
220
|
for (const [index, entry] of entries.entries()) {
|
|
250
221
|
const handlers = this.getConfigHandlers(entry);
|
|
251
222
|
const middlewareConfig = this.toMiddlewareConfig(entry);
|
|
252
|
-
|
|
223
|
+
_chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, middlewareConfig);
|
|
253
224
|
if (handlers.length === 0) {
|
|
254
225
|
this.globalConfig = middlewareConfig;
|
|
255
226
|
continue;
|
|
@@ -272,11 +243,11 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
272
243
|
const discovered = [];
|
|
273
244
|
await this.discoverInDirectory(appDir, "/", "", discovered);
|
|
274
245
|
for (const entry of discovered) {
|
|
275
|
-
|
|
246
|
+
_chunkALPWLT27cjs.compileMiddlewareRoute.call(void 0, entry.middleware);
|
|
276
247
|
middlewareByDirectory.set(entry.location.directory, entry);
|
|
277
248
|
}
|
|
278
249
|
}
|
|
279
|
-
this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) => compareMiddlewareRouteLocations(left.location, right.location)).map((entry) => entry.middleware);
|
|
250
|
+
this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) => _chunk6BWKJ6QScjs.compareMiddlewareRouteLocations.call(void 0, left.location, right.location)).map((entry) => entry.middleware);
|
|
280
251
|
if (process.env.FARM_VERBOSE && this.middleware.length > 0) {
|
|
281
252
|
_chunk5QIKR7RRcjs.logger.success(`Discovered ${this.middleware.length} middleware files`);
|
|
282
253
|
for (const mw of this.middleware) {
|
|
@@ -303,8 +274,8 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
303
274
|
if (entry.isDirectory() && !entry.name.startsWith(".")) {
|
|
304
275
|
await this.discoverInDirectory(
|
|
305
276
|
path.join(dir, entry.name),
|
|
306
|
-
appendMiddlewareRoutePath(routePath, entry.name),
|
|
307
|
-
appendMiddlewareDirectory(directory, entry.name),
|
|
277
|
+
_chunk6BWKJ6QScjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
|
|
278
|
+
_chunk6BWKJ6QScjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
|
|
308
279
|
discovered
|
|
309
280
|
);
|
|
310
281
|
}
|
|
@@ -330,19 +301,19 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
330
301
|
try {
|
|
331
302
|
let module;
|
|
332
303
|
if (this.viteServer) {
|
|
333
|
-
module = await
|
|
304
|
+
module = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
|
|
334
305
|
} else {
|
|
335
306
|
module = await import(
|
|
336
307
|
/* @vite-ignore */
|
|
337
|
-
|
|
308
|
+
_chunkVQDBNVOOcjs.toFileModuleUrl.call(void 0, filePath)
|
|
338
309
|
);
|
|
339
310
|
}
|
|
340
|
-
const normalized =
|
|
311
|
+
const normalized = _chunk2JG2LJDIcjs.normalizeMiddlewareModule.call(void 0, module, routePath);
|
|
341
312
|
if (!normalized) {
|
|
342
313
|
throw new Error("must export a default handler or a named middleware handler");
|
|
343
314
|
}
|
|
344
315
|
if (normalized.config) {
|
|
345
|
-
|
|
316
|
+
_chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, normalized.config);
|
|
346
317
|
}
|
|
347
318
|
return {
|
|
348
319
|
path: routePath,
|
|
@@ -359,7 +330,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
359
330
|
* Execute middleware for a request
|
|
360
331
|
*/
|
|
361
332
|
async execute(req, res) {
|
|
362
|
-
const url =
|
|
333
|
+
const url = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _6 => _6.server, 'optionalAccess', _7 => _7.trustProxy]) });
|
|
363
334
|
const pathname = url.pathname;
|
|
364
335
|
const toRoutePathname = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (value) => _optionalChain([this, 'access', _8 => _8.i18n, 'optionalAccess', _9 => _9.enabled]) ? _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname.call(void 0, value, this.i18n) : _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, value, _nullishCoalesce(_optionalChain([this, 'access', _10 => _10.i18n, 'optionalAccess', _11 => _11.basePath]), () => ( "/"))), "toRoutePathname");
|
|
365
336
|
const routePathname = toRoutePathname(pathname);
|
|
@@ -381,7 +352,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
381
352
|
...this.configMiddleware.map((mw) => ({ mw, routeMatch: { matched: true } })),
|
|
382
353
|
...this.middleware.map((mw) => ({
|
|
383
354
|
mw,
|
|
384
|
-
routeMatch:
|
|
355
|
+
routeMatch: _chunkALPWLT27cjs.matchesMiddlewareRouteAt.call(void 0, toMiddlewarePathnames(routePathname), mw)
|
|
385
356
|
})).filter((entry) => entry.routeMatch.matched)
|
|
386
357
|
];
|
|
387
358
|
if (applicable.length === 0) {
|
|
@@ -407,17 +378,17 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
407
378
|
for (; ; ) {
|
|
408
379
|
for (const entry of pass) yield { ...entry, pathname: passPathname };
|
|
409
380
|
const rewrittenPathname = toRoutePathname(
|
|
410
|
-
|
|
381
|
+
_chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy }).pathname
|
|
411
382
|
);
|
|
412
383
|
if (rewrittenPathname === passPathname) return;
|
|
413
384
|
passPathname = rewrittenPathname;
|
|
414
385
|
const passPathnames = toMiddlewarePathnames(passPathname);
|
|
415
|
-
if (globalConfig && !
|
|
386
|
+
if (globalConfig && !_chunkALPWLT27cjs.matchesMiddlewareConfigAt.call(void 0, passPathnames, globalConfig, ctx).matched) {
|
|
416
387
|
return;
|
|
417
388
|
}
|
|
418
389
|
pass = allMiddleware.filter((mw) => !ran.has(mw)).map((mw) => ({
|
|
419
390
|
mw,
|
|
420
|
-
routeMatch: mw.source === "config" ? { matched: true } :
|
|
391
|
+
routeMatch: mw.source === "config" ? { matched: true } : _chunkALPWLT27cjs.matchesMiddlewareRouteAt.call(void 0, passPathnames, mw)
|
|
421
392
|
})).filter((entry) => entry.routeMatch.matched);
|
|
422
393
|
}
|
|
423
394
|
}
|
|
@@ -449,7 +420,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
449
420
|
pathname,
|
|
450
421
|
name: mw.filePath
|
|
451
422
|
};
|
|
452
|
-
|
|
423
|
+
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, { type: "middleware.start", ...middlewareEvent });
|
|
453
424
|
try {
|
|
454
425
|
let handlerIndex = 0;
|
|
455
426
|
let returnedResponse;
|
|
@@ -475,7 +446,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
475
446
|
}
|
|
476
447
|
}
|
|
477
448
|
}
|
|
478
|
-
|
|
449
|
+
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
|
|
479
450
|
type: "middleware.shortCircuit",
|
|
480
451
|
...middlewareEvent,
|
|
481
452
|
status: response.status
|
|
@@ -484,20 +455,20 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
484
455
|
return true;
|
|
485
456
|
}
|
|
486
457
|
if (ctx._handled || res.headersSent || res.writableEnded) {
|
|
487
|
-
|
|
458
|
+
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
|
|
488
459
|
type: "middleware.shortCircuit",
|
|
489
460
|
...middlewareEvent,
|
|
490
461
|
status: res.statusCode
|
|
491
462
|
});
|
|
492
463
|
return true;
|
|
493
464
|
}
|
|
494
|
-
|
|
465
|
+
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
|
|
495
466
|
type: "middleware.complete",
|
|
496
467
|
...middlewareEvent,
|
|
497
468
|
durationMs: Date.now() - middlewareStartTime
|
|
498
469
|
});
|
|
499
470
|
} catch (error) {
|
|
500
|
-
|
|
471
|
+
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0,
|
|
501
472
|
_chunkOX6O6WVAcjs.isFarmRedirectError.call(void 0, error) || _chunkOX6O6WVAcjs.isFarmNotFoundError.call(void 0, error) ? {
|
|
502
473
|
type: "middleware.shortCircuit",
|
|
503
474
|
...middlewareEvent,
|
|
@@ -528,7 +499,7 @@ var _MiddlewareManager = class _MiddlewareManager {
|
|
|
528
499
|
* Check if pathname matches middleware config
|
|
529
500
|
*/
|
|
530
501
|
matchesConfig(pathname, config, ctx) {
|
|
531
|
-
return
|
|
502
|
+
return _chunkALPWLT27cjs.matchesMiddlewareConfigAt.call(void 0, this.toMiddlewarePathnames(pathname), config, ctx);
|
|
532
503
|
}
|
|
533
504
|
/**
|
|
534
505
|
* Reload middleware (for HMR)
|
|
@@ -563,7 +534,4 @@ var MiddlewareManager = _MiddlewareManager;
|
|
|
563
534
|
|
|
564
535
|
|
|
565
536
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
exports.createContext = createContext; exports.appendMiddlewareRoutePath = appendMiddlewareRoutePath; exports.appendMiddlewareDirectory = appendMiddlewareDirectory; exports.compareMiddlewareRouteLocations = compareMiddlewareRouteLocations; exports.MiddlewareManager = MiddlewareManager;
|
|
537
|
+
exports.createContext = createContext; exports.MiddlewareManager = MiddlewareManager;
|