@farm.js/core 0.1.39 → 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-BhneNPb4.d.mts → agent-mcp-DRlXq3lM.d.ts} +1 -1
- package/dist/{agent-mcp-HcTYQmNX.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-CMkoghtp.d.ts → app-CDJHPqZn.d.ts} +11 -4
- package/dist/{app-DVzmmbNO.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-QYMZOOC5.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-YFYUYWL7.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-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-PVZE2JGJ.mjs → chunk-ACLPN56I.mjs} +43 -25
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-AGR7F3LA.cjs} +3 -3
- package/dist/{chunk-UPJLHLJU.cjs → chunk-ALPWLT27.cjs} +4 -4
- package/dist/{chunk-ATSDUUFK.mjs → chunk-AX7S67YV.mjs} +33 -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-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-677THUVP.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-QUCXCDE2.cjs → chunk-DKU6NXRK.cjs} +1 -1
- package/dist/{chunk-NBBEQLOK.cjs → chunk-E55H6UKH.cjs} +9 -9
- package/dist/{chunk-AS2VPMEE.cjs → chunk-EGCT3AHF.cjs} +1440 -8172
- package/dist/{chunk-SDOTRX3V.cjs → chunk-EORXKFLR.cjs} +7 -7
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-RVXFINNS.cjs → chunk-EW4MEVLE.cjs} +30 -30
- package/dist/{chunk-HYTZYOW2.mjs → chunk-FCOLU5P6.mjs} +1172 -7904
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-HRETEZ2Z.cjs → chunk-FLZ4H25A.cjs} +37 -35
- 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-LMPAPBUA.cjs → chunk-H44XGLFU.cjs} +36 -68
- package/dist/{chunk-SOP2EAA6.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-P3PLW4FR.mjs → chunk-HKFBMHCD.mjs} +4 -4
- 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-YKZRDB5Z.mjs → chunk-IMQO6ZUU.mjs} +2 -2
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-BXDJXFQG.cjs → chunk-IRYK4Z5M.cjs} +4 -4
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-BFJTHYTN.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-B5J2YVG7.cjs → chunk-LDPKAYVS.cjs} +2 -2
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-KTSUBU2E.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-VWBHM3F6.mjs → chunk-OLQ73ZO5.mjs} +1 -1
- 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-5ULKUBIA.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-BWIQR4DH.cjs → chunk-RHGK2JEN.cjs} +56 -63
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-HRSAQ23K.cjs → chunk-SHFXCE5A.cjs} +4 -4
- 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-GKBWWRBG.mjs → chunk-T6DLMX5V.mjs} +11 -11
- package/dist/{chunk-CIOT4HGT.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-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-EGCTIS5F.mjs → chunk-UM3ZV5EP.mjs} +1 -1
- 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-A657YSP4.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-ZUPXLIGB.mjs → chunk-XKIUHXHW.mjs} +618 -343
- package/dist/{chunk-6XWDE2P2.cjs → chunk-XVIEGKTT.cjs} +30 -5
- package/dist/{chunk-QG775BRV.cjs → chunk-Y2GNNXGV.cjs} +72 -54
- package/dist/{chunk-75HN5IZ3.mjs → chunk-Y4QVEU67.mjs} +21 -19
- 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-CsCuCLBz.d.mts → client-plugins-B_5QbNrp.d.mts} +2544 -2664
- package/dist/{client-plugins-D0ke-Hc8.d.ts → client-plugins-DgSfIWIF.d.ts} +2544 -2664
- package/dist/client-plugins.d.mts +5 -7
- package/dist/client-plugins.d.ts +5 -7
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +11 -12
- package/dist/client.d.ts +11 -12
- package/dist/client.mjs +4 -4
- package/dist/config.d.mts +5 -7
- package/dist/config.d.ts +5 -7
- package/dist/{devtools-LW4QQ5J3.cjs → devtools-ANJ7JAPQ.cjs} +21 -18
- package/dist/{devtools-5AFIPVUJ.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 +87 -67
- package/dist/index.d.mts +27 -24
- package/dist/index.d.ts +27 -24
- package/dist/index.mjs +100 -80
- 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 +56 -55
- package/dist/internal/build-runtime.d.mts +7 -9
- package/dist/internal/build-runtime.d.ts +7 -9
- package/dist/internal/build-runtime.mjs +55 -54
- 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 +44 -27
- package/dist/internal/production-runtime.d.mts +25 -14
- package/dist/internal/production-runtime.d.ts +25 -14
- package/dist/internal/production-runtime.mjs +47 -30
- 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 +4 -4
- package/dist/navigation.d.mts +8 -9
- package/dist/navigation.d.ts +8 -9
- package/dist/navigation.mjs +3 -3
- 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 +55 -42
- package/dist/plugin.d.mts +23 -7
- package/dist/plugin.d.ts +23 -7
- package/dist/plugin.mjs +56 -43
- package/dist/{production-runtime-BaI3WHnV.d.ts → production-runtime-DfknD3g_.d.ts} +17 -3
- package/dist/{production-runtime-DfRP0cV0.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 +2 -2
- package/dist/query/client.mjs +1 -1
- package/dist/{render-plan-CfIdJKAf.d.ts → render-plan-CFIhcYYS.d.ts} +1 -1
- package/dist/{render-plan-Dg8RBYFa.d.mts → render-plan-ChUtsymc.d.mts} +1 -1
- package/dist/renderer-client.d.mts +7 -8
- package/dist/renderer-client.d.ts +7 -8
- package/dist/{request-DfE02G_A.d.mts → request-F4HRwzSd.d.mts} +1 -1
- package/dist/{request-CEbHIIl4.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-C4oHbv6C.d.ts → route-rendering-3a4fbNyC.d.mts} +1 -1
- package/dist/{route-rendering-BHyOfXjD.d.mts → route-rendering-D4coJ-kw.d.ts} +1 -1
- package/dist/{router-DwhA61SB.d.mts → router-DqIssGRO.d.mts} +1 -1
- package/dist/{router-uRN_29Em.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-COk03hmx.d.ts → runtime-BrNdLOq9.d.ts} +3 -3
- package/dist/{runtime-BEdHhN4C.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 +96 -72
- package/dist/server.d.mts +16 -12
- package/dist/server.d.ts +16 -12
- package/dist/server.mjs +81 -57
- package/dist/{spa-router-w4aFOuyn.d.mts → spa-router-C41zjnFl.d.mts} +2 -2
- package/dist/{spa-router-DrVOBVGg.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-Dhuqwmd2.d.ts → utils-BKWSe3S7.d.mts} +1 -1
- package/dist/{utils-BtYehqeU.d.mts → utils-YYcWsOJp.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +57 -44
- package/dist/vite.d.mts +92 -10
- package/dist/vite.d.ts +92 -10
- package/dist/vite.mjs +58 -45
- 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
|
@@ -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 _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
|
|
3
|
+
var _chunk4A3YUB4Dcjs = require('./chunk-4A3YUB4D.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk2CQ74SP6cjs = require('./chunk-2CQ74SP6.cjs');
|
|
@@ -17,21 +17,23 @@ var _chunkLYLEZIG3cjs = require('./chunk-LYLEZIG3.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkUXMIFB44cjs = require('./chunk-UXMIFB44.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkWMAPPDMMcjs = require('./chunk-WMAPPDMM.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkCGVPXIRNcjs = require('./chunk-CGVPXIRN.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkSOR334EBcjs = require('./chunk-SOR334EB.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
var _chunkVQDBNVOOcjs = require('./chunk-VQDBNVOO.cjs');
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
|
|
36
|
+
var _chunkPJ42JESYcjs = require('./chunk-PJ42JESY.cjs');
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
@@ -102,7 +104,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
102
104
|
await this.loadProgrammaticApiRoutes(appDir);
|
|
103
105
|
}
|
|
104
106
|
this.routes = new Map(
|
|
105
|
-
|
|
107
|
+
_chunkUXMIFB44cjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
|
|
106
108
|
bodySizeLimit: this.bodySizeLimit,
|
|
107
109
|
dispatch: this.dispatch
|
|
108
110
|
}).map((route) => [route.path, route])
|
|
@@ -150,7 +152,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
150
152
|
const routeModule = await this.loadModule(filePath);
|
|
151
153
|
const endpoints = {};
|
|
152
154
|
const availableMethods = [];
|
|
153
|
-
for (const method of
|
|
155
|
+
for (const method of _chunkUXMIFB44cjs.API_ROUTE_METHODS) {
|
|
154
156
|
if (routeModule[method]) {
|
|
155
157
|
endpoints[method] = routeModule[method];
|
|
156
158
|
availableMethods.push(method);
|
|
@@ -220,7 +222,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
220
222
|
async loadProgrammaticApiRoutes(appDir) {
|
|
221
223
|
const candidateRoots = [path.dirname(appDir), appDir];
|
|
222
224
|
const routeFiles = Array.from(
|
|
223
|
-
new Set(candidateRoots.flatMap((srcRoot) =>
|
|
225
|
+
new Set(candidateRoots.flatMap((srcRoot) => _chunk4A3YUB4Dcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot)))
|
|
224
226
|
);
|
|
225
227
|
if (routeFiles.length === 0) return;
|
|
226
228
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
@@ -266,11 +268,11 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
266
268
|
}
|
|
267
269
|
async loadModule(filePath) {
|
|
268
270
|
if (this.viteServer) {
|
|
269
|
-
return await
|
|
271
|
+
return await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
|
|
270
272
|
}
|
|
271
273
|
return await import(
|
|
272
274
|
/* @vite-ignore */
|
|
273
|
-
|
|
275
|
+
_chunkVQDBNVOOcjs.toFileModuleUrl.call(void 0, filePath)
|
|
274
276
|
);
|
|
275
277
|
}
|
|
276
278
|
addEndpoint(routePath, filePath, method, endpoint, appDir, runtimeConfig = {}) {
|
|
@@ -306,7 +308,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
306
308
|
this.endpointSources.set(routePath, /* @__PURE__ */ new Map([[normalizedMethod, { appDir, filePath }]]));
|
|
307
309
|
}
|
|
308
310
|
addProgrammaticApiRoute(filePath, route, appDir) {
|
|
309
|
-
const modulePath =
|
|
311
|
+
const modulePath = _chunkCGVPXIRNcjs.createProgrammaticRouteModuleId.call(void 0, filePath, "api", route.path);
|
|
310
312
|
const runtimeConfig = _chunkSOR334EBcjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `API route "${route.path}"`);
|
|
311
313
|
for (const [method, endpoint] of Object.entries(route.methods)) {
|
|
312
314
|
if (endpoint) {
|
|
@@ -332,7 +334,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
332
334
|
const url = new URL(request.url);
|
|
333
335
|
const pathname = url.pathname;
|
|
334
336
|
const method = request.method.toUpperCase();
|
|
335
|
-
const match =
|
|
337
|
+
const match = _chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
336
338
|
if (!match) {
|
|
337
339
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
338
340
|
status: 404,
|
|
@@ -340,19 +342,19 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
340
342
|
});
|
|
341
343
|
}
|
|
342
344
|
const { route, params } = match;
|
|
343
|
-
const endpoint =
|
|
345
|
+
const endpoint = _chunkUXMIFB44cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
344
346
|
if (!endpoint) {
|
|
345
347
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
346
348
|
status: 405,
|
|
347
349
|
headers: {
|
|
348
|
-
Allow:
|
|
350
|
+
Allow: _chunkUXMIFB44cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
349
351
|
"Content-Type": "application/json"
|
|
350
352
|
}
|
|
351
353
|
});
|
|
352
354
|
}
|
|
353
355
|
const invoke = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
354
356
|
try {
|
|
355
|
-
return await
|
|
357
|
+
return await _chunkUXMIFB44cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
|
|
356
358
|
} catch (error) {
|
|
357
359
|
if (options.throwOnError) throw error;
|
|
358
360
|
console.error(`[API Error] ${pathname}:`, error);
|
|
@@ -374,7 +376,7 @@ var _APIRouteManager = class _APIRouteManager {
|
|
|
374
376
|
return Boolean(this.matchRoute(pathname));
|
|
375
377
|
}
|
|
376
378
|
matchRoute(pathname) {
|
|
377
|
-
return
|
|
379
|
+
return _chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
378
380
|
}
|
|
379
381
|
/**
|
|
380
382
|
* Get all routes for client type generation
|
|
@@ -1,31 +1,40 @@
|
|
|
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
|
+
var _chunk6QOLZITBcjs = require('./chunk-6QOLZITB.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkG643DQCHcjs = require('./chunk-G643DQCH.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
8
|
-
var
|
|
11
|
+
var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
|
|
9
12
|
|
|
10
13
|
|
|
14
|
+
var _chunk64SBBZDUcjs = require('./chunk-64SBBZDU.cjs');
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
|
|
18
|
+
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
14
19
|
|
|
15
20
|
|
|
16
21
|
|
|
22
|
+
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
17
23
|
|
|
18
24
|
|
|
19
25
|
|
|
20
|
-
var _chunkKIIMAWOJcjs = require('./chunk-KIIMAWOJ.cjs');
|
|
21
26
|
|
|
22
27
|
|
|
23
28
|
|
|
24
|
-
var
|
|
29
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
28
|
-
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
|
|
29
38
|
|
|
30
39
|
|
|
31
40
|
|
|
@@ -53,20 +62,6 @@ var _chunkNO3WWW3Ncjs = require('./chunk-NO3WWW3N.cjs');
|
|
|
53
62
|
|
|
54
63
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
55
64
|
|
|
56
|
-
// src/plugin-integration-context.ts
|
|
57
|
-
var FARM_PLUGIN_INTEGRATION_CONTEXT = /* @__PURE__ */ Symbol.for("@farm.js/core/plugin-integration-context");
|
|
58
|
-
function setFarmPluginIntegrationContext(plugin, integration) {
|
|
59
|
-
Object.defineProperty(plugin, FARM_PLUGIN_INTEGRATION_CONTEXT, {
|
|
60
|
-
value: integration
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, setFarmPluginIntegrationContext, "setFarmPluginIntegrationContext");
|
|
64
|
-
function getFarmPluginIntegrationContext(plugin) {
|
|
65
|
-
const value = plugin[FARM_PLUGIN_INTEGRATION_CONTEXT];
|
|
66
|
-
return value && typeof value === "object" ? value : void 0;
|
|
67
|
-
}
|
|
68
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmPluginIntegrationContext, "getFarmPluginIntegrationContext");
|
|
69
|
-
|
|
70
65
|
// src/integrations.ts
|
|
71
66
|
var FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = "farm.integration.internalDispatch";
|
|
72
67
|
var FARM_INTEGRATION_SET_COOKIES_KEY = "farm:integration:set-cookies";
|
|
@@ -290,7 +285,7 @@ function resolveIntegrationPlugins(integrations) {
|
|
|
290
285
|
if (!entry.matcher) continue;
|
|
291
286
|
const matchers = Array.isArray(entry.matcher) ? entry.matcher : [entry.matcher];
|
|
292
287
|
try {
|
|
293
|
-
matchers.forEach(
|
|
288
|
+
matchers.forEach(_chunkALPWLT27cjs.assertSupportedMiddlewareMatcher);
|
|
294
289
|
} catch (error) {
|
|
295
290
|
throw new Error(`Integration "${key}": ${error.message}`);
|
|
296
291
|
}
|
|
@@ -359,7 +354,7 @@ function withIntegrationPluginOwner(plugin, owner, integration) {
|
|
|
359
354
|
value: owner.serverRuntime
|
|
360
355
|
});
|
|
361
356
|
if (integration) {
|
|
362
|
-
setFarmPluginIntegrationContext(ownedPlugin, integration);
|
|
357
|
+
_chunk6QOLZITBcjs.setFarmPluginIntegrationContext.call(void 0, ownedPlugin, integration);
|
|
363
358
|
}
|
|
364
359
|
return ownedPlugin;
|
|
365
360
|
}
|
|
@@ -853,9 +848,9 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
853
848
|
if (!bodyLoaded) {
|
|
854
849
|
bodyLoaded = true;
|
|
855
850
|
if (req.method && req.method !== "GET" && req.method !== "HEAD") {
|
|
856
|
-
requestBody = await
|
|
851
|
+
requestBody = await _chunk5NAVKJCZcjs.readNodeRequestBody.call(void 0,
|
|
857
852
|
req,
|
|
858
|
-
|
|
853
|
+
_chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, context.config.server).bodySizeLimit
|
|
859
854
|
);
|
|
860
855
|
}
|
|
861
856
|
}
|
|
@@ -863,9 +858,13 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
863
858
|
}, "getRequestBody");
|
|
864
859
|
const createHandlerRequest = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
865
860
|
try {
|
|
866
|
-
return
|
|
861
|
+
return _chunk5NAVKJCZcjs.withFarmRequestClientAddress.call(void 0,
|
|
862
|
+
createWebRequest(req, fullUrl, await getRequestBody()),
|
|
863
|
+
_chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, context.config.server).trustProxy,
|
|
864
|
+
_optionalChain([req, 'access', _13 => _13.socket, 'optionalAccess', _14 => _14.remoteAddress])
|
|
865
|
+
);
|
|
867
866
|
} catch (error) {
|
|
868
|
-
const response =
|
|
867
|
+
const response = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
869
868
|
if (!response) throw error;
|
|
870
869
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, response);
|
|
871
870
|
return null;
|
|
@@ -1234,7 +1233,7 @@ async function validateIntegrationRouteInput(route, request, url) {
|
|
|
1234
1233
|
};
|
|
1235
1234
|
}
|
|
1236
1235
|
const schemas = route.input;
|
|
1237
|
-
if (!_optionalChain([schemas, 'optionalAccess',
|
|
1236
|
+
if (!_optionalChain([schemas, 'optionalAccess', _15 => _15.body]) && !_optionalChain([schemas, 'optionalAccess', _16 => _16.query])) {
|
|
1238
1237
|
return {
|
|
1239
1238
|
success: true,
|
|
1240
1239
|
input: {}
|
|
@@ -1297,7 +1296,7 @@ async function parseIntegrationInputSchema(source, schema, value) {
|
|
|
1297
1296
|
issues: normalizeIntegrationValidationIssues(source, result.error)
|
|
1298
1297
|
};
|
|
1299
1298
|
}
|
|
1300
|
-
if (_optionalChain([schema, 'access',
|
|
1299
|
+
if (_optionalChain([schema, 'access', _17 => _17["~standard"], 'optionalAccess', _18 => _18.validate])) {
|
|
1301
1300
|
const result = await schema["~standard"].validate(value);
|
|
1302
1301
|
if ("value" in result) {
|
|
1303
1302
|
return {
|
|
@@ -1353,18 +1352,13 @@ function createIntegrationValidationResponse(issues) {
|
|
|
1353
1352
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createIntegrationValidationResponse, "createIntegrationValidationResponse");
|
|
1354
1353
|
function normalizeIntegrationValidationIssues(source, error) {
|
|
1355
1354
|
if (Array.isArray(error.issues) && error.issues.length > 0) {
|
|
1356
|
-
return error.
|
|
1357
|
-
source,
|
|
1358
|
-
path: normalizeIntegrationValidationPath(issue.path),
|
|
1359
|
-
code: issue.code,
|
|
1360
|
-
message: issue.message || "Invalid input"
|
|
1361
|
-
}));
|
|
1355
|
+
return _chunk64SBBZDUcjs.toPublicValidationIssues.call(void 0, error).map((issue) => ({ source, ...issue }));
|
|
1362
1356
|
}
|
|
1363
1357
|
return [
|
|
1364
1358
|
{
|
|
1365
1359
|
source,
|
|
1366
1360
|
path: [],
|
|
1367
|
-
message:
|
|
1361
|
+
message: "Invalid input"
|
|
1368
1362
|
}
|
|
1369
1363
|
];
|
|
1370
1364
|
}
|
|
@@ -1423,7 +1417,7 @@ async function readIntegrationValidationBody(request, format) {
|
|
|
1423
1417
|
}
|
|
1424
1418
|
_chunkS3JO3N4Hcjs.__name.call(void 0, readIntegrationValidationBody, "readIntegrationValidationBody");
|
|
1425
1419
|
function getIntegrationRouteBodyFormat(route) {
|
|
1426
|
-
return route.bodyFormat || _optionalChain([route, 'access',
|
|
1420
|
+
return route.bodyFormat || _optionalChain([route, 'access', _19 => _19.__operation, 'optionalAccess', _20 => _20.bodyFormat]) || "json";
|
|
1427
1421
|
}
|
|
1428
1422
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getIntegrationRouteBodyFormat, "getIntegrationRouteBodyFormat");
|
|
1429
1423
|
function createIntegrationRouteArgs(input) {
|
|
@@ -1441,7 +1435,7 @@ function createIntegrationRouteArgs(input) {
|
|
|
1441
1435
|
`Integration "${input.integration.type}" does not define a schema for ctx.args.db.`
|
|
1442
1436
|
);
|
|
1443
1437
|
}
|
|
1444
|
-
_nullishCoalesce(ormPromise, () => ( (ormPromise = import("./integration-orm-
|
|
1438
|
+
_nullishCoalesce(ormPromise, () => ( (ormPromise = import("./integration-orm-P2II2EBK.cjs").then(
|
|
1445
1439
|
({ createIntegrationOrm }) => createIntegrationOrm({
|
|
1446
1440
|
schema: input.integration.schema,
|
|
1447
1441
|
config: input.config
|
|
@@ -1501,7 +1495,7 @@ function createLazyIntegrationOrmModel(resolveOrm, modelName) {
|
|
|
1501
1495
|
return async (...args) => {
|
|
1502
1496
|
const orm = await resolveOrm();
|
|
1503
1497
|
const model = orm[modelName];
|
|
1504
|
-
const member = _optionalChain([model, 'optionalAccess',
|
|
1498
|
+
const member = _optionalChain([model, 'optionalAccess', _21 => _21[prop]]);
|
|
1505
1499
|
if (typeof member !== "function") {
|
|
1506
1500
|
throw new Error(
|
|
1507
1501
|
`Integration ORM model "${String(modelName)}" does not expose "${String(prop)}".`
|
|
@@ -1571,32 +1565,31 @@ function createFormInput(formData) {
|
|
|
1571
1565
|
}
|
|
1572
1566
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFormInput, "createFormInput");
|
|
1573
1567
|
async function dispatchIntegrationRequest(runtime, request, options = {}) {
|
|
1568
|
+
const serverConfig = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, runtime.config.server);
|
|
1574
1569
|
try {
|
|
1575
|
-
request = await
|
|
1576
|
-
request,
|
|
1577
|
-
_chunkKIIMAWOJcjs.resolveFarmServerConfig.call(void 0, runtime.config.server).bodySizeLimit
|
|
1578
|
-
);
|
|
1570
|
+
request = await _chunk5NAVKJCZcjs.bufferFarmRequestBody.call(void 0, request, serverConfig.bodySizeLimit);
|
|
1579
1571
|
} catch (error) {
|
|
1580
|
-
const response =
|
|
1572
|
+
const response = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
1581
1573
|
if (response) return response;
|
|
1582
1574
|
throw error;
|
|
1583
1575
|
}
|
|
1576
|
+
request = _chunk5NAVKJCZcjs.withFarmRequestClientAddress.call(void 0, request, serverConfig.trustProxy, options.clientAddress);
|
|
1584
1577
|
const integration = runtime.integration;
|
|
1585
1578
|
const url = new URL(request.url);
|
|
1586
1579
|
const pathname = url.pathname;
|
|
1587
|
-
const requestId = request.headers.get("x-request-id") || _optionalChain([options, 'access',
|
|
1580
|
+
const requestId = request.headers.get("x-request-id") || _optionalChain([options, 'access', _22 => _22.currentRequest, 'optionalAccess', _23 => _23.headers, 'access', _24 => _24.get, 'call', _25 => _25("x-request-id")]) || String(Date.now());
|
|
1588
1581
|
const routes = normalizeIntegrationRoutes(integration.routes || []);
|
|
1589
1582
|
const pathSegments = _chunkUS2QVW3Ecjs.canonicalizeRequestPathSegments.call(void 0, pathname);
|
|
1590
1583
|
const method = normalizeIntegrationRequestMethod(request.method);
|
|
1591
1584
|
const middleware = [...integration.middleware || []];
|
|
1592
1585
|
const forwardedSetCookies = [];
|
|
1593
1586
|
for (const entry of middleware) {
|
|
1594
|
-
if (_optionalChain([options, 'access',
|
|
1587
|
+
if (_optionalChain([options, 'access', _26 => _26.ranMiddleware, 'optionalAccess', _27 => _27.has, 'call', _28 => _28(entry)])) continue;
|
|
1595
1588
|
const params = resolveIntegrationMiddlewareParams(entry, pathname, runtime.config);
|
|
1596
1589
|
if (!params) {
|
|
1597
1590
|
continue;
|
|
1598
1591
|
}
|
|
1599
|
-
_optionalChain([options, 'access',
|
|
1592
|
+
_optionalChain([options, 'access', _29 => _29.ranMiddleware, 'optionalAccess', _30 => _30.add, 'call', _31 => _31(entry)]);
|
|
1600
1593
|
const handlerContext = createServerIntegrationHandlerContext({
|
|
1601
1594
|
runtime,
|
|
1602
1595
|
route: {
|
|
@@ -1835,7 +1828,7 @@ async function dispatchIntegrationRequest(runtime, request, options = {}) {
|
|
|
1835
1828
|
}
|
|
1836
1829
|
}
|
|
1837
1830
|
if (forwardedSetCookies.length > 0) {
|
|
1838
|
-
_optionalChain([options, 'access',
|
|
1831
|
+
_optionalChain([options, 'access', _32 => _32.onForwardedCookies, 'optionalCall', _33 => _33(forwardedSetCookies)]);
|
|
1839
1832
|
}
|
|
1840
1833
|
return null;
|
|
1841
1834
|
}
|
|
@@ -1862,6 +1855,7 @@ async function dispatchIntegrationRequests(integrations, runtime, request, optio
|
|
|
1862
1855
|
{
|
|
1863
1856
|
currentRequest: options.currentRequest,
|
|
1864
1857
|
ranMiddleware: options.ranMiddleware,
|
|
1858
|
+
clientAddress: options.clientAddress,
|
|
1865
1859
|
onForwardedCookies: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (cookies) => setCookies.push(...cookies), "onForwardedCookies")
|
|
1866
1860
|
}
|
|
1867
1861
|
);
|
|
@@ -1948,38 +1942,38 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, createServerIntegrationHandlerContext, "cr
|
|
|
1948
1942
|
function createServerIntegrationRequestContextStore(request, currentRequest) {
|
|
1949
1943
|
return {
|
|
1950
1944
|
get(key) {
|
|
1951
|
-
const requestValue =
|
|
1945
|
+
const requestValue = _chunk4TLUFAIPcjs.getRequestContext.call(void 0, request, key);
|
|
1952
1946
|
if (requestValue !== void 0) {
|
|
1953
1947
|
return requestValue;
|
|
1954
1948
|
}
|
|
1955
1949
|
if (currentRequest) {
|
|
1956
|
-
return
|
|
1950
|
+
return _chunk4TLUFAIPcjs.getRequestContext.call(void 0, currentRequest, key);
|
|
1957
1951
|
}
|
|
1958
1952
|
return void 0;
|
|
1959
1953
|
},
|
|
1960
1954
|
set(key, value, options) {
|
|
1961
|
-
|
|
1955
|
+
_chunk4TLUFAIPcjs.setRequestContext.call(void 0, request, key, value, options);
|
|
1962
1956
|
if (currentRequest) {
|
|
1963
|
-
|
|
1957
|
+
_chunk4TLUFAIPcjs.setRequestContext.call(void 0, currentRequest, key, value, options);
|
|
1964
1958
|
}
|
|
1965
1959
|
},
|
|
1966
1960
|
has(key) {
|
|
1967
|
-
return
|
|
1961
|
+
return _chunk4TLUFAIPcjs.hasRequestContext.call(void 0, request, key) || !!currentRequest && _chunk4TLUFAIPcjs.hasRequestContext.call(void 0, currentRequest, key);
|
|
1968
1962
|
},
|
|
1969
1963
|
delete(key) {
|
|
1970
|
-
const deletedRequest =
|
|
1971
|
-
const deletedCurrent = currentRequest ?
|
|
1964
|
+
const deletedRequest = _chunk4TLUFAIPcjs.deleteRequestContext.call(void 0, request, key);
|
|
1965
|
+
const deletedCurrent = currentRequest ? _chunk4TLUFAIPcjs.deleteRequestContext.call(void 0, currentRequest, key) : false;
|
|
1972
1966
|
return deletedRequest || deletedCurrent;
|
|
1973
1967
|
},
|
|
1974
1968
|
clear() {
|
|
1975
|
-
|
|
1969
|
+
_chunk4TLUFAIPcjs.clearRequestContext.call(void 0, request);
|
|
1976
1970
|
if (currentRequest) {
|
|
1977
|
-
|
|
1971
|
+
_chunk4TLUFAIPcjs.clearRequestContext.call(void 0, currentRequest);
|
|
1978
1972
|
}
|
|
1979
1973
|
},
|
|
1980
1974
|
snapshot(options) {
|
|
1981
|
-
const merged = currentRequest ?
|
|
1982
|
-
const requestSnapshot =
|
|
1975
|
+
const merged = currentRequest ? _chunk4TLUFAIPcjs.getRequestContextSnapshot.call(void 0, currentRequest, options) : /* @__PURE__ */ new Map();
|
|
1976
|
+
const requestSnapshot = _chunk4TLUFAIPcjs.getRequestContextSnapshot.call(void 0, request, options);
|
|
1983
1977
|
for (const [key, value] of requestSnapshot) {
|
|
1984
1978
|
merged.set(key, value);
|
|
1985
1979
|
}
|
|
@@ -2031,13 +2025,13 @@ function resolveIntegrationMiddlewareParams(entry, pathname, config) {
|
|
|
2031
2025
|
}
|
|
2032
2026
|
let compiled = compiledIntegrationGuards.get(entry);
|
|
2033
2027
|
if (!compiled) {
|
|
2034
|
-
compiled =
|
|
2028
|
+
compiled = _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, {
|
|
2035
2029
|
matcher: typeof entry.matcher === "string" ? entry.matcher : [...entry.matcher]
|
|
2036
2030
|
});
|
|
2037
2031
|
compiledIntegrationGuards.set(entry, compiled);
|
|
2038
2032
|
}
|
|
2039
2033
|
for (const candidate of candidates) {
|
|
2040
|
-
const result =
|
|
2034
|
+
const result = _chunkALPWLT27cjs.matchesCompiledMiddlewareConfig.call(void 0, candidate, compiled, noMiddlewareContext);
|
|
2041
2035
|
if (result.matched) return _nullishCoalesce(result.params, () => ( {}));
|
|
2042
2036
|
}
|
|
2043
2037
|
return null;
|
|
@@ -2066,7 +2060,7 @@ function getIntegrationAPIPathnames(config) {
|
|
|
2066
2060
|
if (!toPathnames) {
|
|
2067
2061
|
const recorded = config[FARM_INTEGRATION_API_BASE_PATH_KEY];
|
|
2068
2062
|
const api2 = config.api;
|
|
2069
|
-
const serverBasePath = typeof recorded === "string" ? recorded : typeof _optionalChain([api2, 'optionalAccess',
|
|
2063
|
+
const serverBasePath = typeof recorded === "string" ? recorded : typeof _optionalChain([api2, 'optionalAccess', _34 => _34.baseURL]) === "string" && typeof api2.basePath === "string" ? _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, api2) : void 0;
|
|
2070
2064
|
toPathnames = _chunkKNBBQHO2cjs.createFarmAPIMiddlewarePathnames.call(void 0, serverBasePath);
|
|
2071
2065
|
integrationAPIPathnames.set(config, toPathnames);
|
|
2072
2066
|
}
|
|
@@ -2074,9 +2068,9 @@ function getIntegrationAPIPathnames(config) {
|
|
|
2074
2068
|
}
|
|
2075
2069
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getIntegrationAPIPathnames, "getIntegrationAPIPathnames");
|
|
2076
2070
|
function resolveIntegrationRoutePathname(pathname, config) {
|
|
2077
|
-
const basePath = typeof _optionalChain([config, 'optionalAccess',
|
|
2071
|
+
const basePath = typeof _optionalChain([config, 'optionalAccess', _35 => _35.basePath]) === "string" ? config.basePath : void 0;
|
|
2078
2072
|
let routePathname = basePath ? _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, pathname, basePath) : pathname;
|
|
2079
|
-
const i18n = _optionalChain([config, 'optionalAccess',
|
|
2073
|
+
const i18n = _optionalChain([config, 'optionalAccess', _36 => _36.i18n]);
|
|
2080
2074
|
if (i18n && Array.isArray(i18n.locales) && i18n.locales.length > 0) {
|
|
2081
2075
|
routePathname = _chunkBIDYX3SLcjs.resolveFarmLocalePath.call(void 0, routePathname, {
|
|
2082
2076
|
locales: i18n.locales,
|
|
@@ -2209,5 +2203,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, normalizeMatcher, "normalizeMatcher");
|
|
|
2209
2203
|
|
|
2210
2204
|
|
|
2211
2205
|
|
|
2212
|
-
|
|
2213
|
-
exports.getFarmPluginIntegrationContext = getFarmPluginIntegrationContext; exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.isFarmIntegration = isFarmIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests; exports.integrationMiddlewareMayHandlePath = integrationMiddlewareMayHandlePath; exports.FARM_INTEGRATION_API_BASE_PATH_KEY = FARM_INTEGRATION_API_BASE_PATH_KEY;
|
|
2206
|
+
exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.isFarmIntegration = isFarmIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests; exports.integrationMiddlewareMayHandlePath = integrationMiddlewareMayHandlePath; exports.FARM_INTEGRATION_API_BASE_PATH_KEY = FARM_INTEGRATION_API_BASE_PATH_KEY;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNoSchemaListField,
|
|
3
|
+
isDatabaseEnforcedReference
|
|
4
|
+
} from "./chunk-VQGKD7RV.mjs";
|
|
5
|
+
import {
|
|
3
6
|
assertSupportedPrimaryKeyField,
|
|
4
|
-
isDatabaseEnforcedReference,
|
|
5
7
|
resolveSchemaModels
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WDMIW6Q6.mjs";
|
|
7
9
|
import {
|
|
8
10
|
resolveStorageRuntimeClient
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JGHCKIRI.mjs";
|
|
10
12
|
import {
|
|
11
13
|
__name
|
|
12
14
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLDPKAYVScjs = require('./chunk-LDPKAYVS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBD3D7EZVcjs = require('./chunk-BD3D7EZV.cjs');
|
|
@@ -13,7 +13,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
13
13
|
|
|
14
14
|
// src/navigation.ts
|
|
15
15
|
function useRouter2() {
|
|
16
|
-
const router =
|
|
16
|
+
const router = _chunkLDPKAYVScjs.useRouter.call(void 0, );
|
|
17
17
|
return {
|
|
18
18
|
push: router.push,
|
|
19
19
|
replace: router.replace,
|
|
@@ -31,11 +31,11 @@ function useRouter2() {
|
|
|
31
31
|
}
|
|
32
32
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useRouter2, "useRouter");
|
|
33
33
|
function usePathname() {
|
|
34
|
-
return
|
|
34
|
+
return _chunkLDPKAYVScjs.useRouter.call(void 0, ).pathname;
|
|
35
35
|
}
|
|
36
36
|
_chunkS3JO3N4Hcjs.__name.call(void 0, usePathname, "usePathname");
|
|
37
37
|
function useSearchParams() {
|
|
38
|
-
return
|
|
38
|
+
return _chunkLDPKAYVScjs.useRouter.call(void 0, ).searchParams;
|
|
39
39
|
}
|
|
40
40
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useSearchParams, "useSearchParams");
|
|
41
41
|
|
|
@@ -1,9 +1,12 @@
|
|
|
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
|
+
var _chunkUNJZGVPUcjs = require('./chunk-UNJZGVPU.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkD4ROBNTKcjs = require('./chunk-D4ROBNTK.cjs');
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -170,7 +173,7 @@ async function anonymousVisitorOpensPage(options, url, targetPathname) {
|
|
|
170
173
|
if (!PAGE_CHECK_DROPPED_HEADERS.has(name.toLowerCase())) headers.append(name, value);
|
|
171
174
|
}
|
|
172
175
|
headers.set("accept", "text/html");
|
|
173
|
-
headers.set(
|
|
176
|
+
headers.set(_chunkD4ROBNTKcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER, _chunkD4ROBNTKcjs._getFarmMarkdownPageCheckToken.call(void 0, ));
|
|
174
177
|
const response = await options.renderPage(
|
|
175
178
|
new Request(pageUrl, {
|
|
176
179
|
method: "GET",
|
|
@@ -194,7 +197,7 @@ function hasOnlyAnonymousHeaders(headers) {
|
|
|
194
197
|
return true;
|
|
195
198
|
}
|
|
196
199
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasOnlyAnonymousHeaders, "hasOnlyAnonymousHeaders");
|
|
197
|
-
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS =
|
|
200
|
+
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = _chunkUNJZGVPUcjs.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;
|
|
@@ -204,7 +207,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
204
207
|
}
|
|
205
208
|
const url = new URL(options.request.url);
|
|
206
209
|
const hasMarkdownExtension = url.pathname.toLowerCase().endsWith(".md");
|
|
207
|
-
if (!hasMarkdownExtension && !
|
|
210
|
+
if (!hasMarkdownExtension && !_chunkD4ROBNTKcjs.requestAcceptsMarkdown.call(void 0, options.request.headers.get("accept"))) {
|
|
208
211
|
return null;
|
|
209
212
|
}
|
|
210
213
|
const targetPathname = normalizeFarmMarkdownRoutePath(url.pathname);
|
|
@@ -266,7 +269,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
266
269
|
if (!hasMarkdownExtension) {
|
|
267
270
|
headers.set("Vary", "Accept");
|
|
268
271
|
}
|
|
269
|
-
return
|
|
272
|
+
return _chunkD4ROBNTKcjs.createFarmMarkdownViewResponse.call(void 0, {
|
|
270
273
|
request: options.request,
|
|
271
274
|
requestUrl: url,
|
|
272
275
|
markdown: source.source,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findProgrammaticRouteFilesInDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MOSYH4CY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isFarmAPIRouteFileName
|
|
6
6
|
} from "./chunk-CU625VAY.mjs";
|
|
@@ -17,21 +17,23 @@ import {
|
|
|
17
17
|
matchAPIRouteAtBasePath,
|
|
18
18
|
mergePluginAPIRoutes,
|
|
19
19
|
resolveAPIRouteEndpoint
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WCWV25PG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerAPIRouteShape
|
|
23
23
|
} from "./chunk-W3B4PKAW.mjs";
|
|
24
24
|
import {
|
|
25
25
|
createProgrammaticRouteModuleId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KNHBTJP6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
getFarmRouteRuntimeConfig,
|
|
29
29
|
normalizeFarmRouteRuntimeConfig
|
|
30
30
|
} from "./chunk-2J7W2WND.mjs";
|
|
31
31
|
import {
|
|
32
|
-
loadFarmDevModule,
|
|
33
32
|
toFileModuleUrl
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7GNWGLWB.mjs";
|
|
34
|
+
import {
|
|
35
|
+
loadFarmDevModule
|
|
36
|
+
} from "./chunk-QCVIRVHE.mjs";
|
|
35
37
|
import {
|
|
36
38
|
logger
|
|
37
39
|
} from "./chunk-KI3MESHB.mjs";
|