@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
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
getServerActionSignal,
|
|
5
5
|
isServerFnFailure,
|
|
6
6
|
runWithServerActionRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WMHG64DA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
applyFarmCacheInvalidationTargets
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7VAJSSPG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getFarmRedirectError
|
|
13
13
|
} from "./chunk-CBBLJMR5.mjs";
|
|
14
14
|
import {
|
|
15
15
|
_resolveCurrentRequestForApp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Y6LRPO2K.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOZN4XL6Lcjs = require('./chunk-OZN4XL6L.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkSK35NQKKcjs = require('./chunk-SK35NQKK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkP4TYB4SFcjs = require('./chunk-P4TYB4SF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkUMQAK3KPcjs = require('./chunk-UMQAK3KP.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -35,7 +35,7 @@ function createServerQuery(options) {
|
|
|
35
35
|
throw new TypeError("createServerQuery requires a key function");
|
|
36
36
|
}
|
|
37
37
|
const staleTime = normalizeServerQueryStaleTime(options.staleTime);
|
|
38
|
-
const execute =
|
|
38
|
+
const execute = _chunkOZN4XL6Lcjs.createServerFn.call(void 0, {
|
|
39
39
|
input: options.input,
|
|
40
40
|
middleware: options.middleware,
|
|
41
41
|
handler: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (context) => {
|
|
@@ -45,7 +45,7 @@ function createServerQuery(options) {
|
|
|
45
45
|
const cacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey.call(void 0, ["route-data", routeKey]);
|
|
46
46
|
const producer = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
47
47
|
const value = await options.handler(context);
|
|
48
|
-
return
|
|
48
|
+
return _chunkOZN4XL6Lcjs._parseServerFnSchema.call(void 0, options.output, value, "output", "createServerQuery");
|
|
49
49
|
}, "producer");
|
|
50
50
|
let data;
|
|
51
51
|
let updatedAt;
|
|
@@ -53,9 +53,9 @@ function createServerQuery(options) {
|
|
|
53
53
|
data = await dedupeServerQueryRequest(cacheKey, context.request, producer);
|
|
54
54
|
updatedAt = Date.now();
|
|
55
55
|
} else {
|
|
56
|
-
const cache =
|
|
56
|
+
const cache = _chunkUMQAK3KPcjs.getFarmDataCache.call(void 0, );
|
|
57
57
|
data = await cache.getOrSet(cacheKey, producer, {
|
|
58
|
-
tags: [
|
|
58
|
+
tags: [_chunkUMQAK3KPcjs.createRouteDataCacheTag.call(void 0, routeKey)],
|
|
59
59
|
revalidate: staleTime === false ? false : staleTime / 1e3
|
|
60
60
|
});
|
|
61
61
|
updatedAt = await _asyncNullishCoalesce(await _asyncOptionalChain([(await cache.getEntryAsync(cacheKey, { allowStale: true })), 'optionalAccess', async _ => _.createdAt]), async () => ( Date.now()));
|
|
@@ -70,7 +70,7 @@ function createServerQuery(options) {
|
|
|
70
70
|
});
|
|
71
71
|
const query = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (input) => {
|
|
72
72
|
const result = await execute(input);
|
|
73
|
-
return
|
|
73
|
+
return _chunkP4TYB4SFcjs.getServerActionExecutionContext.call(void 0, ) ? result : result.data;
|
|
74
74
|
}, "query");
|
|
75
75
|
Object.defineProperties(query, {
|
|
76
76
|
[FARM_SERVER_QUERY_SYMBOL]: {
|
|
@@ -90,10 +90,10 @@ function createServerQuery(options) {
|
|
|
90
90
|
enumerable: false
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
_chunkOZN4XL6Lcjs._attachServerFunctionDescriptor.call(void 0,
|
|
94
94
|
query,
|
|
95
|
-
|
|
96
|
-
const result = await
|
|
95
|
+
_chunkOZN4XL6Lcjs.createServerFunctionDescriptor.call(void 0, "query", options, async (value) => {
|
|
96
|
+
const result = await _chunkOZN4XL6Lcjs._runServerFunctionForCaller.call(void 0,
|
|
97
97
|
execute,
|
|
98
98
|
value
|
|
99
99
|
);
|
|
@@ -1,89 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkNO3WWW3Ncjs = require('./chunk-NO3WWW3N.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
7
10
|
|
|
8
|
-
// src/request-context.ts
|
|
9
|
-
var REQUEST_CONTEXT_STORE_KEY = /* @__PURE__ */ Symbol.for("farm.requestContextStore");
|
|
10
|
-
function getRequestContextStore() {
|
|
11
|
-
const globalState = globalThis;
|
|
12
|
-
if (!globalState[REQUEST_CONTEXT_STORE_KEY]) {
|
|
13
|
-
globalState[REQUEST_CONTEXT_STORE_KEY] = /* @__PURE__ */ new WeakMap();
|
|
14
|
-
}
|
|
15
|
-
return globalState[REQUEST_CONTEXT_STORE_KEY];
|
|
16
|
-
}
|
|
17
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getRequestContextStore, "getRequestContextStore");
|
|
18
|
-
function getBucket(target) {
|
|
19
|
-
const requestContextStore = getRequestContextStore();
|
|
20
|
-
let bucket = requestContextStore.get(target);
|
|
21
|
-
if (!bucket) {
|
|
22
|
-
bucket = {
|
|
23
|
-
privateData: /* @__PURE__ */ new Map(),
|
|
24
|
-
exposedData: /* @__PURE__ */ new Map()
|
|
25
|
-
};
|
|
26
|
-
requestContextStore.set(target, bucket);
|
|
27
|
-
}
|
|
28
|
-
return bucket;
|
|
29
|
-
}
|
|
30
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getBucket, "getBucket");
|
|
31
|
-
function setRequestContext(target, key, value, options = {}) {
|
|
32
|
-
const bucket = getBucket(target);
|
|
33
|
-
bucket.privateData.set(key, value);
|
|
34
|
-
if (options.exposeToPage) {
|
|
35
|
-
bucket.exposedData.set(key, value);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, setRequestContext, "setRequestContext");
|
|
39
|
-
function getRequestContext(target, key) {
|
|
40
|
-
const requestContextStore = getRequestContextStore();
|
|
41
|
-
const bucket = requestContextStore.get(target);
|
|
42
|
-
return _optionalChain([bucket, 'optionalAccess', _ => _.privateData, 'access', _2 => _2.get, 'call', _3 => _3(key)]);
|
|
43
|
-
}
|
|
44
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getRequestContext, "getRequestContext");
|
|
45
|
-
function hasRequestContext(target, key) {
|
|
46
|
-
const requestContextStore = getRequestContextStore();
|
|
47
|
-
const bucket = requestContextStore.get(target);
|
|
48
|
-
return _nullishCoalesce(_optionalChain([bucket, 'optionalAccess', _4 => _4.privateData, 'access', _5 => _5.has, 'call', _6 => _6(key)]), () => ( false));
|
|
49
|
-
}
|
|
50
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, hasRequestContext, "hasRequestContext");
|
|
51
|
-
function deleteRequestContext(target, key) {
|
|
52
|
-
const requestContextStore = getRequestContextStore();
|
|
53
|
-
const bucket = requestContextStore.get(target);
|
|
54
|
-
if (!bucket) return false;
|
|
55
|
-
const removedPrivate = bucket.privateData.delete(key);
|
|
56
|
-
bucket.exposedData.delete(key);
|
|
57
|
-
return removedPrivate;
|
|
58
|
-
}
|
|
59
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, deleteRequestContext, "deleteRequestContext");
|
|
60
|
-
function clearRequestContext(target) {
|
|
61
|
-
const requestContextStore = getRequestContextStore();
|
|
62
|
-
const bucket = requestContextStore.get(target);
|
|
63
|
-
if (!bucket) return;
|
|
64
|
-
bucket.privateData.clear();
|
|
65
|
-
bucket.exposedData.clear();
|
|
66
|
-
}
|
|
67
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, clearRequestContext, "clearRequestContext");
|
|
68
|
-
function getRequestContextSnapshot(target, options = {}) {
|
|
69
|
-
const requestContextStore = getRequestContextStore();
|
|
70
|
-
const bucket = requestContextStore.get(target);
|
|
71
|
-
if (!bucket) return /* @__PURE__ */ new Map();
|
|
72
|
-
if (options.exposedOnly) {
|
|
73
|
-
return new Map(bucket.exposedData);
|
|
74
|
-
}
|
|
75
|
-
return new Map(bucket.privateData);
|
|
76
|
-
}
|
|
77
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getRequestContextSnapshot, "getRequestContextSnapshot");
|
|
78
|
-
function copyRequestContext(source, target) {
|
|
79
|
-
const bucket = getRequestContextStore().get(source);
|
|
80
|
-
if (!bucket || source === target) return;
|
|
81
|
-
for (const [key, value] of bucket.privateData) {
|
|
82
|
-
setRequestContext(target, key, value, { exposeToPage: bucket.exposedData.has(key) });
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, copyRequestContext, "copyRequestContext");
|
|
86
|
-
|
|
87
11
|
// src/server-http.ts
|
|
88
12
|
function createFarmNodeRequestAbortSignal(req, res) {
|
|
89
13
|
const controller = new AbortController();
|
|
@@ -192,11 +116,11 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, _FarmRequestBodyError, "FarmRequestBodyErr
|
|
|
192
116
|
var FarmRequestBodyError = _FarmRequestBodyError;
|
|
193
117
|
function resolveFarmServerConfig(config) {
|
|
194
118
|
const headersTimeout = parseFarmServerDuration(
|
|
195
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
119
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.headersTimeout]), () => ( DEFAULT_FARM_SERVER_HEADERS_TIMEOUT)),
|
|
196
120
|
"server.headersTimeout"
|
|
197
121
|
);
|
|
198
122
|
const requestTimeout = parseFarmServerDuration(
|
|
199
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
123
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _2 => _2.requestTimeout]), () => ( DEFAULT_FARM_SERVER_REQUEST_TIMEOUT)),
|
|
200
124
|
"server.requestTimeout"
|
|
201
125
|
);
|
|
202
126
|
if (headersTimeout > requestTimeout) {
|
|
@@ -204,21 +128,21 @@ function resolveFarmServerConfig(config) {
|
|
|
204
128
|
}
|
|
205
129
|
return Object.freeze({
|
|
206
130
|
bodySizeLimit: parseBodySizeLimit(
|
|
207
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
131
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _3 => _3.bodySizeLimit]), () => ( DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT)),
|
|
208
132
|
"server.bodySizeLimit"
|
|
209
133
|
),
|
|
210
|
-
trustProxy: _optionalChain([config, 'optionalAccess',
|
|
134
|
+
trustProxy: _optionalChain([config, 'optionalAccess', _4 => _4.trustProxy]) === true,
|
|
211
135
|
headersTimeout,
|
|
212
136
|
requestTimeout,
|
|
213
137
|
keepAliveTimeout: parseFarmServerDuration(
|
|
214
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
138
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _5 => _5.keepAliveTimeout]), () => ( DEFAULT_FARM_SERVER_KEEP_ALIVE_TIMEOUT)),
|
|
215
139
|
"server.keepAliveTimeout"
|
|
216
140
|
),
|
|
217
141
|
gracefulShutdownTimeout: parseFarmServerDuration(
|
|
218
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
142
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _6 => _6.gracefulShutdownTimeout]), () => ( DEFAULT_FARM_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT)),
|
|
219
143
|
"server.gracefulShutdownTimeout"
|
|
220
144
|
),
|
|
221
|
-
health: resolveFarmServerHealthConfig(_optionalChain([config, 'optionalAccess',
|
|
145
|
+
health: resolveFarmServerHealthConfig(_optionalChain([config, 'optionalAccess', _7 => _7.health]))
|
|
222
146
|
});
|
|
223
147
|
}
|
|
224
148
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveFarmServerConfig, "resolveFarmServerConfig");
|
|
@@ -258,11 +182,11 @@ function resolveFarmServerHealthConfig(config) {
|
|
|
258
182
|
});
|
|
259
183
|
}
|
|
260
184
|
const livenessPath = normalizeHealthPath(
|
|
261
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
185
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.livenessPath]), () => ( "/_farm/health/live")),
|
|
262
186
|
"server.health.livenessPath"
|
|
263
187
|
);
|
|
264
188
|
const readinessPath = normalizeHealthPath(
|
|
265
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
189
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.readinessPath]), () => ( "/_farm/health/ready")),
|
|
266
190
|
"server.health.readinessPath"
|
|
267
191
|
);
|
|
268
192
|
if (livenessPath === readinessPath) {
|
|
@@ -310,9 +234,21 @@ function parseBodySizeLimit(value, optionName = "bodySizeLimit") {
|
|
|
310
234
|
return bytes;
|
|
311
235
|
}
|
|
312
236
|
_chunkS3JO3N4Hcjs.__name.call(void 0, parseBodySizeLimit, "parseBodySizeLimit");
|
|
237
|
+
function withFarmRequestClientAddress(request, trustProxy, clientAddress) {
|
|
238
|
+
const requestWithShape = request;
|
|
239
|
+
if (!requestWithShape.socket) {
|
|
240
|
+
const forwardedFor = trustProxy ? _optionalChain([request, 'access', _10 => _10.headers, 'access', _11 => _11.get, 'call', _12 => _12("x-forwarded-for"), 'optionalAccess', _13 => _13.split, 'call', _14 => _14(","), 'access', _15 => _15.at, 'call', _16 => _16(-1), 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) : void 0;
|
|
241
|
+
try {
|
|
242
|
+
requestWithShape.socket = { remoteAddress: forwardedFor || clientAddress || void 0 };
|
|
243
|
+
} catch (e) {
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return requestWithShape;
|
|
247
|
+
}
|
|
248
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, withFarmRequestClientAddress, "withFarmRequestClientAddress");
|
|
313
249
|
function cloneFarmRequestWithContext(request) {
|
|
314
250
|
const cloned = request.clone();
|
|
315
|
-
copyRequestContext(request, cloned);
|
|
251
|
+
_chunk4TLUFAIPcjs.copyRequestContext.call(void 0, request, cloned);
|
|
316
252
|
return cloned;
|
|
317
253
|
}
|
|
318
254
|
_chunkS3JO3N4Hcjs.__name.call(void 0, cloneFarmRequestWithContext, "cloneFarmRequestWithContext");
|
|
@@ -327,7 +263,7 @@ async function bufferFarmRequestBody(request, limit) {
|
|
|
327
263
|
// oxlint-disable-next-line unicorn/no-invalid-fetch-options -- GET and HEAD return above.
|
|
328
264
|
body: body.buffer
|
|
329
265
|
});
|
|
330
|
-
copyRequestContext(request, buffered);
|
|
266
|
+
_chunk4TLUFAIPcjs.copyRequestContext.call(void 0, request, buffered);
|
|
331
267
|
return buffered;
|
|
332
268
|
}
|
|
333
269
|
_chunkS3JO3N4Hcjs.__name.call(void 0, bufferFarmRequestBody, "bufferFarmRequestBody");
|
|
@@ -335,7 +271,7 @@ async function readFarmRequestBody(request, limit) {
|
|
|
335
271
|
try {
|
|
336
272
|
validateContentLength(request.headers.get("content-length"), limit);
|
|
337
273
|
} catch (error) {
|
|
338
|
-
void _optionalChain([request, 'access',
|
|
274
|
+
void _optionalChain([request, 'access', _19 => _19.body, 'optionalAccess', _20 => _20.cancel, 'call', _21 => _21(error), 'access', _22 => _22.catch, 'call', _23 => _23(() => {
|
|
339
275
|
})]);
|
|
340
276
|
throw error;
|
|
341
277
|
}
|
|
@@ -387,7 +323,7 @@ async function readNodeRequestBody(request, limit) {
|
|
|
387
323
|
try {
|
|
388
324
|
validateContentLength(contentLength, limit);
|
|
389
325
|
} catch (error) {
|
|
390
|
-
_optionalChain([request, 'access',
|
|
326
|
+
_optionalChain([request, 'access', _24 => _24.resume, 'optionalCall', _25 => _25()]);
|
|
391
327
|
throw error;
|
|
392
328
|
}
|
|
393
329
|
return await new Promise((resolve, reject) => {
|
|
@@ -395,15 +331,15 @@ async function readNodeRequestBody(request, limit) {
|
|
|
395
331
|
let total = 0;
|
|
396
332
|
let settled = false;
|
|
397
333
|
const cleanup = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
398
|
-
_optionalChain([request, 'access',
|
|
399
|
-
_optionalChain([request, 'access',
|
|
400
|
-
_optionalChain([request, 'access',
|
|
334
|
+
_optionalChain([request, 'access', _26 => _26.removeListener, 'optionalCall', _27 => _27("data", onData)]);
|
|
335
|
+
_optionalChain([request, 'access', _28 => _28.removeListener, 'optionalCall', _29 => _29("end", onEnd)]);
|
|
336
|
+
_optionalChain([request, 'access', _30 => _30.removeListener, 'optionalCall', _31 => _31("error", onError)]);
|
|
401
337
|
}, "cleanup");
|
|
402
338
|
const rejectOnce = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (error) => {
|
|
403
339
|
if (settled) return;
|
|
404
340
|
settled = true;
|
|
405
341
|
cleanup();
|
|
406
|
-
_optionalChain([request, 'access',
|
|
342
|
+
_optionalChain([request, 'access', _32 => _32.resume, 'optionalCall', _33 => _33()]);
|
|
407
343
|
reject(error);
|
|
408
344
|
}, "rejectOnce");
|
|
409
345
|
const onData = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (chunk) => {
|
|
@@ -444,7 +380,7 @@ function createFarmNodeRequestBodyStream(request) {
|
|
|
444
380
|
);
|
|
445
381
|
},
|
|
446
382
|
async cancel(reason) {
|
|
447
|
-
await _optionalChain([iterator, 'optionalAccess',
|
|
383
|
+
await _optionalChain([iterator, 'optionalAccess', _34 => _34.return, 'optionalCall', _35 => _35(reason)]);
|
|
448
384
|
}
|
|
449
385
|
},
|
|
450
386
|
// No eager pull: the request stays untouched until the handler reads it.
|
|
@@ -465,7 +401,7 @@ function createFarmRequestBodyErrorResponse(error) {
|
|
|
465
401
|
}
|
|
466
402
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmRequestBodyErrorResponse, "createFarmRequestBodyErrorResponse");
|
|
467
403
|
function validateContentLength(value, limit) {
|
|
468
|
-
const contentLength = _optionalChain([value, 'optionalAccess',
|
|
404
|
+
const contentLength = _optionalChain([value, 'optionalAccess', _36 => _36.trim, 'call', _37 => _37()]);
|
|
469
405
|
if (!contentLength) return;
|
|
470
406
|
if (!/^\d+$/.test(contentLength)) {
|
|
471
407
|
throw new FarmRequestBodyError("INVALID_CONTENT_LENGTH", 400, "Invalid content-length header");
|
|
@@ -496,10 +432,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, throwIfAborted, "throwIfAborted");
|
|
|
496
432
|
|
|
497
433
|
|
|
498
434
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
exports.setRequestContext = setRequestContext; exports.getRequestContext = getRequestContext; exports.hasRequestContext = hasRequestContext; exports.deleteRequestContext = deleteRequestContext; exports.clearRequestContext = clearRequestContext; exports.getRequestContextSnapshot = getRequestContextSnapshot; exports.copyRequestContext = copyRequestContext; exports.createFarmNodeRequestAbortSignal = createFarmNodeRequestAbortSignal; exports.DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT = DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT; exports.createFarmWeakETag = createFarmWeakETag; exports.matchesFarmIfNoneMatch = matchesFarmIfNoneMatch; exports.resolveFarmServerConfig = resolveFarmServerConfig; exports.parseBodySizeLimit = parseBodySizeLimit; exports.cloneFarmRequestWithContext = cloneFarmRequestWithContext; exports.bufferFarmRequestBody = bufferFarmRequestBody; exports.readFarmRequestBody = readFarmRequestBody; exports.readNodeRequestBody = readNodeRequestBody; exports.createFarmNodeRequestBodyStream = createFarmNodeRequestBodyStream; exports.createFarmRequestBodyErrorResponse = createFarmRequestBodyErrorResponse;
|
|
435
|
+
exports.createFarmNodeRequestAbortSignal = createFarmNodeRequestAbortSignal; exports.DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT = DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT; exports.createFarmWeakETag = createFarmWeakETag; exports.matchesFarmIfNoneMatch = matchesFarmIfNoneMatch; exports.resolveFarmServerConfig = resolveFarmServerConfig; exports.parseBodySizeLimit = parseBodySizeLimit; exports.withFarmRequestClientAddress = withFarmRequestClientAddress; exports.cloneFarmRequestWithContext = cloneFarmRequestWithContext; exports.bufferFarmRequestBody = bufferFarmRequestBody; exports.readFarmRequestBody = readFarmRequestBody; exports.readNodeRequestBody = readNodeRequestBody; exports.createFarmNodeRequestBodyStream = createFarmNodeRequestBodyStream; exports.createFarmRequestBodyErrorResponse = createFarmRequestBodyErrorResponse;
|
|
@@ -15,13 +15,13 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
15
15
|
var _chunkHREOKQWTcjs = require('./chunk-HREOKQWT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkB6IMBBOScjs = require('./chunk-B6IMBBOS.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkD4ROBNTKcjs = require('./chunk-D4ROBNTK.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -1225,11 +1225,11 @@ function shouldReturnMarkdown(request) {
|
|
|
1225
1225
|
if (url.pathname.endsWith(".md")) return true;
|
|
1226
1226
|
const accept = request.headers.get("accept");
|
|
1227
1227
|
const markdown = Math.max(
|
|
1228
|
-
|
|
1229
|
-
|
|
1228
|
+
_chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/markdown"),
|
|
1229
|
+
_chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/plain")
|
|
1230
1230
|
);
|
|
1231
1231
|
if (markdown <= 0) return false;
|
|
1232
|
-
return markdown >=
|
|
1232
|
+
return markdown >= _chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/html", { wildcards: true });
|
|
1233
1233
|
}
|
|
1234
1234
|
_chunkS3JO3N4Hcjs.__name.call(void 0, shouldReturnMarkdown, "shouldReturnMarkdown");
|
|
1235
1235
|
function escapeAttribute(value) {
|
|
@@ -1830,11 +1830,11 @@ function renderDocsSearchTrigger(showIcon = true, className = "") {
|
|
|
1830
1830
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchTrigger, "renderDocsSearchTrigger");
|
|
1831
1831
|
function renderDocsSearchMount(clientEntry) {
|
|
1832
1832
|
return `<div id="farm-docs-search-root" data-farm-docs-search-root data-api="/api/docs"></div>
|
|
1833
|
-
${
|
|
1833
|
+
${_chunkB6IMBBOScjs.stampFarmCspNonce.call(void 0, `<script type="module" src="${escapeAttribute(clientEntry)}"></script>`)}`;
|
|
1834
1834
|
}
|
|
1835
1835
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchMount, "renderDocsSearchMount");
|
|
1836
1836
|
function renderDocsSearchBootstrapScript() {
|
|
1837
|
-
return
|
|
1837
|
+
return _chunkB6IMBBOScjs.stampFarmCspNonce.call(void 0, `<script>${_chunkMWWVKDW3cjs.generateFarmDocsSearchBootstrapRuntime.call(void 0, )}</script>`);
|
|
1838
1838
|
}
|
|
1839
1839
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchBootstrapScript, "renderDocsSearchBootstrapScript");
|
|
1840
1840
|
function renderPixelToc(items) {
|
|
@@ -1864,7 +1864,7 @@ function renderDocsHashRuntimeScript() {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsHashRuntimeScript, "renderDocsHashRuntimeScript");
|
|
1866
1866
|
function renderDocsRuntimeScripts(docs) {
|
|
1867
|
-
return
|
|
1867
|
+
return _chunkB6IMBBOScjs.stampFarmCspNonce.call(void 0, `${renderDocsRuntimeScript(docs)}
|
|
1868
1868
|
${renderDocsHashRuntimeScript()}
|
|
1869
1869
|
${renderDocsPageActionsRuntimeScript()}`);
|
|
1870
1870
|
}
|
|
@@ -1993,7 +1993,7 @@ function createFarmDocsHandler(docs, options) {
|
|
|
1993
1993
|
ETag: etag,
|
|
1994
1994
|
"X-Content-Type-Options": "nosniff"
|
|
1995
1995
|
});
|
|
1996
|
-
if (
|
|
1996
|
+
if (_chunk5NAVKJCZcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
1997
1997
|
return new Response(null, { status: 304, headers });
|
|
1998
1998
|
}
|
|
1999
1999
|
if (request.method === "HEAD") return new Response(null, { status: 200, headers });
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
_runServerFunctionForCaller,
|
|
5
5
|
createServerFn,
|
|
6
6
|
createServerFunctionDescriptor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5E65AL7P.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmServerQueryResult
|
|
10
10
|
} from "./chunk-KGB5UXJJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getServerActionExecutionContext
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WMHG64DA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
createRouteDataCacheTag,
|
|
16
16
|
getFarmDataCache
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7VAJSSPG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createFarmCacheKey,
|
|
20
20
|
createRouteDataCacheKey
|
|
@@ -58,8 +58,45 @@ function describeIntegrationOriginRejection(reason) {
|
|
|
58
58
|
}
|
|
59
59
|
_chunkS3JO3N4Hcjs.__name.call(void 0, describeIntegrationOriginRejection, "describeIntegrationOriginRejection");
|
|
60
60
|
|
|
61
|
+
// src/api/route-schema.ts
|
|
62
|
+
async function parseRouteSchema(schema, value) {
|
|
63
|
+
if (schema.parseAsync) return schema.parseAsync(value);
|
|
64
|
+
if (schema["~standard"]) {
|
|
65
|
+
const result = await schema["~standard"].validate(value);
|
|
66
|
+
if (result.issues)
|
|
67
|
+
throw Object.assign(new Error("Validation failed"), { issues: result.issues });
|
|
68
|
+
return result.value;
|
|
69
|
+
}
|
|
70
|
+
if (schema.parse) return schema.parse(value);
|
|
71
|
+
throw new TypeError("Route validators must implement Standard Schema or parse().");
|
|
72
|
+
}
|
|
73
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, parseRouteSchema, "parseRouteSchema");
|
|
74
|
+
var PUBLIC_MESSAGE_CODES = /* @__PURE__ */ new Set(["custom", "invalid_type"]);
|
|
75
|
+
function toPublicValidationIssues(error) {
|
|
76
|
+
const issues = _optionalChain([error, 'optionalAccess', _8 => _8.issues]);
|
|
77
|
+
const list = Array.isArray(issues) ? issues : Array.isArray(_optionalChain([error, 'optionalAccess', _9 => _9.errors])) ? error.errors : [];
|
|
78
|
+
return list.map((issue) => {
|
|
79
|
+
const { path, code, message } = _nullishCoalesce(issue, () => ( {}));
|
|
80
|
+
return {
|
|
81
|
+
path: Array.isArray(path) ? path.map(toPublicPathSegment) : [],
|
|
82
|
+
...typeof code === "string" ? { code } : {},
|
|
83
|
+
message: PUBLIC_MESSAGE_CODES.has(code) && typeof message === "string" && message ? message : "Invalid value"
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, toPublicValidationIssues, "toPublicValidationIssues");
|
|
88
|
+
function toPublicPathSegment(segment) {
|
|
89
|
+
const key = segment && typeof segment === "object" && "key" in segment ? segment.key : segment;
|
|
90
|
+
if (typeof key === "number") return key;
|
|
91
|
+
if (typeof key === "symbol") return key.description || key.toString();
|
|
92
|
+
return String(key);
|
|
93
|
+
}
|
|
94
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, toPublicPathSegment, "toPublicPathSegment");
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
61
98
|
|
|
62
99
|
|
|
63
100
|
|
|
64
101
|
|
|
65
|
-
exports.resolveIntegrationAllowedOrigins = resolveIntegrationAllowedOrigins; exports.validateIntegrationRequestOrigin = validateIntegrationRequestOrigin; exports.describeIntegrationOriginRejection = describeIntegrationOriginRejection;
|
|
102
|
+
exports.resolveIntegrationAllowedOrigins = resolveIntegrationAllowedOrigins; exports.validateIntegrationRequestOrigin = validateIntegrationRequestOrigin; exports.describeIntegrationOriginRejection = describeIntegrationOriginRejection; exports.parseRouteSchema = parseRouteSchema; exports.toPublicValidationIssues = toPublicValidationIssues;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkM7MKQXAFcjs = require('./chunk-M7MKQXAF.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
8
|
+
|
|
9
|
+
// src/middleware/path.ts
|
|
10
|
+
function appendMiddlewareRoutePath(routePath, directoryName) {
|
|
11
|
+
const marker = _chunkM7MKQXAFcjs.parseInterceptionMarker.call(void 0, directoryName);
|
|
12
|
+
if (marker) {
|
|
13
|
+
const owner = routePath.split("/").filter(Boolean);
|
|
14
|
+
const parts = [
|
|
15
|
+
...marker.root ? [] : owner.slice(0, Math.max(0, owner.length - marker.up)),
|
|
16
|
+
...marker.remainder ? [marker.remainder] : []
|
|
17
|
+
];
|
|
18
|
+
return `/${parts.join("/")}`;
|
|
19
|
+
}
|
|
20
|
+
if (directoryName.startsWith("(") && directoryName.endsWith(")") || _chunkM7MKQXAFcjs.isRouteSlotSegment.call(void 0, directoryName)) {
|
|
21
|
+
return routePath;
|
|
22
|
+
}
|
|
23
|
+
return routePath === "/" ? `/${directoryName}` : `${routePath}/${directoryName}`;
|
|
24
|
+
}
|
|
25
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareRoutePath, "appendMiddlewareRoutePath");
|
|
26
|
+
function appendMiddlewareDirectory(directory, directoryName) {
|
|
27
|
+
return directory === "" ? directoryName : `${directory}/${directoryName}`;
|
|
28
|
+
}
|
|
29
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareDirectory, "appendMiddlewareDirectory");
|
|
30
|
+
function countSegments(value) {
|
|
31
|
+
return value.split("/").filter(Boolean).length;
|
|
32
|
+
}
|
|
33
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, countSegments, "countSegments");
|
|
34
|
+
function compareMiddlewareRouteLocations(left, right) {
|
|
35
|
+
return countSegments(left.path) - countSegments(right.path) || left.path.localeCompare(right.path) || countSegments(left.directory) - countSegments(right.directory) || left.directory.localeCompare(right.directory);
|
|
36
|
+
}
|
|
37
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compareMiddlewareRouteLocations, "compareMiddlewareRouteLocations");
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.appendMiddlewareRoutePath = appendMiddlewareRoutePath; exports.appendMiddlewareDirectory = appendMiddlewareDirectory; exports.compareMiddlewareRouteLocations = compareMiddlewareRouteLocations;
|
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
4
|
|
|
5
|
-
// src/schema-capabilities.ts
|
|
6
|
-
function assertNoSchemaListField(field, fieldPath, target) {
|
|
7
|
-
if (!field.list) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
throw new Error(
|
|
11
|
-
`Schema field "${fieldPath}" declares list: true, but ${target} does not support list fields. Use type: "json" for an array value or model the values in a related table.`
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, assertNoSchemaListField, "assertNoSchemaListField");
|
|
15
|
-
|
|
16
|
-
// src/schema-reference.ts
|
|
17
|
-
function isDatabaseEnforcedReference(reference) {
|
|
18
|
-
return reference.enforced === void 0 || reference.enforced === "db";
|
|
19
|
-
}
|
|
20
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, isDatabaseEnforcedReference, "isDatabaseEnforcedReference");
|
|
21
|
-
|
|
22
5
|
// src/schema-primary-key.ts
|
|
23
6
|
var SUPPORTED_PRIMARY_KEY_TYPES = /* @__PURE__ */ new Set(["id", "uuid", "string", "integer"]);
|
|
24
7
|
function assertSupportedPrimaryKeyField(location, field) {
|
|
@@ -159,6 +142,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, cloneSchemaModel, "cloneSchemaModel");
|
|
|
159
142
|
|
|
160
143
|
|
|
161
144
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
exports.assertNoSchemaListField = assertNoSchemaListField; exports.isDatabaseEnforcedReference = isDatabaseEnforcedReference; exports.assertSupportedPrimaryKeyField = assertSupportedPrimaryKeyField; exports.resolveSchemaModels = resolveSchemaModels;
|
|
145
|
+
exports.assertSupportedPrimaryKeyField = assertSupportedPrimaryKeyField; exports.resolveSchemaModels = resolveSchemaModels;
|
|
@@ -3,21 +3,24 @@
|
|
|
3
3
|
var _chunkAI7QMY7Ocjs = require('./chunk-AI7QMY7O.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunk6XWDE2P2cjs = require('./chunk-6XWDE2P2.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
var _chunkDATEWH3Wcjs = require('./chunk-DATEWH3W.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
13
14
|
|
|
14
15
|
// src/headers.ts
|
|
15
16
|
function headers() {
|
|
16
|
-
|
|
17
|
+
_chunkXVIEGKTTcjs._assertRequestReadAllowed.call(void 0, "headers()");
|
|
18
|
+
return new Headers(_chunkXVIEGKTTcjs.getCurrentRequest.call(void 0, ).headers);
|
|
17
19
|
}
|
|
18
20
|
_chunkS3JO3N4Hcjs.__name.call(void 0, headers, "headers");
|
|
19
21
|
function cookies() {
|
|
20
|
-
|
|
22
|
+
_chunkXVIEGKTTcjs._assertRequestReadAllowed.call(void 0, "cookies()");
|
|
23
|
+
const cookieHeader = _chunkXVIEGKTTcjs.getCurrentRequest.call(void 0, ).headers.get("cookie") || "";
|
|
21
24
|
const parsed = _chunkAI7QMY7Ocjs.parseRequestCookieHeader.call(void 0, cookieHeader);
|
|
22
25
|
return {
|
|
23
26
|
get(name) {
|
|
@@ -39,7 +42,8 @@ function cookies() {
|
|
|
39
42
|
}
|
|
40
43
|
_chunkS3JO3N4Hcjs.__name.call(void 0, cookies, "cookies");
|
|
41
44
|
function getCspNonce() {
|
|
42
|
-
|
|
45
|
+
_chunkXVIEGKTTcjs._assertRequestReadAllowed.call(void 0, "getCspNonce()");
|
|
46
|
+
return _chunkDATEWH3Wcjs._resolveCurrentCspNonce.call(void 0, );
|
|
43
47
|
}
|
|
44
48
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getCspNonce, "getCspNonce");
|
|
45
49
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
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
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, 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
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmPluginIntegrationContext, "getFarmPluginIntegrationContext");
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.setFarmPluginIntegrationContext = setFarmPluginIntegrationContext; exports.getFarmPluginIntegrationContext = getFarmPluginIntegrationContext;
|
|
@@ -34,7 +34,7 @@ var _chunkS3A45T7Fcjs = require('./chunk-S3A45T7F.cjs');
|
|
|
34
34
|
var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkDATEWH3Wcjs = require('./chunk-DATEWH3W.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -1119,7 +1119,7 @@ function createApiClients(options = {}) {
|
|
|
1119
1119
|
"api is server-only. Use apiClient from createApiClients() in the browser."
|
|
1120
1120
|
);
|
|
1121
1121
|
}
|
|
1122
|
-
const currentRequest =
|
|
1122
|
+
const currentRequest = _chunkDATEWH3Wcjs._resolveCurrentRequest.call(void 0, );
|
|
1123
1123
|
const runtime = _chunk72ADZ6GQcjs.resolveAPIRequestRuntime.call(void 0, );
|
|
1124
1124
|
if (!currentRequest || !runtime) {
|
|
1125
1125
|
throw new Error(
|