@farm.js/core 0.1.39 → 0.1.41
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-HcTYQmNX.d.ts → agent-mcp-BOqIxJLI.d.mts} +8 -2
- package/dist/{agent-mcp-BhneNPb4.d.mts → agent-mcp-D0eZKfci.d.ts} +8 -2
- 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 +6 -8
- package/dist/agent-runtime.d.ts +6 -8
- 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 +8 -10
- package/dist/api/route-manager.d.ts +8 -10
- package/dist/api/route-manager.mjs +14 -12
- package/dist/api/runtime.cjs +12 -10
- package/dist/api/runtime.d.mts +7 -9
- package/dist/api/runtime.d.ts +7 -9
- 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 +10 -12
- package/dist/api.d.ts +10 -12
- package/dist/api.mjs +16 -14
- package/dist/{app-DVzmmbNO.d.mts → app-CzTSMJaf.d.mts} +12 -5
- package/dist/{app-CMkoghtp.d.ts → app-DM8e1z3G.d.ts} +12 -5
- package/dist/app-markdown.cjs +7 -6
- package/dist/app-markdown.d.mts +7 -9
- package/dist/app-markdown.d.ts +7 -9
- 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-EGCTIS5F.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-2ZYGC6SS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-ARC7I3O2.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-472NCAZ7.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-YFYUYWL7.cjs → chunk-32TZ3QTP.cjs} +723 -454
- package/dist/{chunk-CQMVIOYP.mjs → chunk-35WS7P2V.mjs} +29 -131
- package/dist/{chunk-QTXBII4Z.cjs → chunk-3TB5QGUW.cjs} +5 -5
- package/dist/chunk-45QJHGZM.cjs +1063 -0
- package/dist/{chunk-677THUVP.mjs → chunk-4C7KTKX7.mjs} +1 -1
- package/dist/{chunk-FUZEBRP3.mjs → chunk-4GP3XZ4Z.mjs} +5 -3
- package/dist/{chunk-KTSUBU2E.mjs → chunk-4KQDHTWX.mjs} +2 -2
- package/dist/chunk-4TLUFAIP.cjs +92 -0
- package/dist/chunk-4U5XZDLG.cjs +80 -0
- package/dist/{chunk-P664ZVTV.mjs → chunk-4ZZNPK25.mjs} +2 -2
- package/dist/{chunk-KIIMAWOJ.cjs → chunk-5NAVKJCZ.cjs} +35 -105
- 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-6IZWX6ES.cjs +74 -0
- package/dist/{chunk-QRKIMN7T.mjs → chunk-6LVRDOAW.mjs} +32 -6
- package/dist/{chunk-YWN746US.cjs → chunk-6MVFHNYZ.cjs} +85 -54
- package/dist/{chunk-VWBHM3F6.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/chunk-6QOLZITB.cjs +22 -0
- package/dist/{chunk-OAHTRMIC.mjs → chunk-724JLMS4.mjs} +11 -11
- package/dist/chunk-7GNWGLWB.mjs +14 -0
- package/dist/{chunk-34UCJRQO.cjs → chunk-7RNAKBWF.cjs} +2 -2
- package/dist/{chunk-U6QLDL3G.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-UPJLHLJU.cjs → chunk-ALPWLT27.cjs} +4 -4
- package/dist/{chunk-ATSDUUFK.mjs → chunk-AX7S67YV.mjs} +33 -40
- package/dist/{chunk-MSSFIQGM.mjs → chunk-B2GSRB3P.mjs} +41 -10
- package/dist/chunk-BGGWKZ2V.mjs +6096 -0
- package/dist/{chunk-H5CLOUZS.cjs → chunk-BMOBTMDR.cjs} +5 -5
- package/dist/{chunk-Q2KB32T4.mjs → chunk-BPNRQ5BA.mjs} +6 -6
- 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-5PWXMJOH.cjs → chunk-C5KVWHIH.cjs} +36 -36
- 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-COABSY3U.mjs +196 -0
- 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-QG775BRV.cjs → chunk-D64OPY6A.cjs} +72 -54
- package/dist/{chunk-QUCXCDE2.cjs → chunk-EH3464KF.cjs} +1 -1
- package/dist/{chunk-75HN5IZ3.mjs → chunk-ENOBPDKZ.mjs} +21 -19
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-HRETEZ2Z.cjs → chunk-EX4MKHXN.cjs} +37 -35
- package/dist/{chunk-TO4GJ56K.cjs → chunk-FEYQCYT7.cjs} +58 -18
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-CUM5NYL5.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-HYTZYOW2.mjs → chunk-FJGIVDA5.mjs} +1197 -7906
- package/dist/chunk-FVPXT2JR.cjs +63 -0
- package/dist/{chunk-MYIZXDZA.mjs → chunk-FWCGUVVL.mjs} +1 -1
- package/dist/{chunk-D2ULAULS.cjs → chunk-FXFKIJDA.cjs} +9 -7
- package/dist/{chunk-RW63BOV7.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/chunk-GC3EM6H4.mjs +80 -0
- 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-HANGSYMB.mjs +67 -0
- package/dist/{chunk-RSOJ7DRT.mjs → chunk-HCSVR4YZ.mjs} +1 -58
- package/dist/{chunk-QYMZOOC5.mjs → chunk-HJ64F4GS.mjs} +12 -44
- package/dist/{chunk-P3PLW4FR.mjs → chunk-HKFBMHCD.mjs} +4 -4
- package/dist/{chunk-BXDJXFQG.cjs → chunk-I5MG3TKE.cjs} +4 -4
- package/dist/{chunk-VNGH5MLF.mjs → chunk-I6UVKUYK.mjs} +1 -1
- package/dist/{chunk-EPYU2EBL.mjs → chunk-IF4NU2NG.mjs} +1 -1
- package/dist/{chunk-WXJLNP33.cjs → chunk-IFWSR7YZ.cjs} +9 -7
- package/dist/{chunk-IVLZZZEI.mjs → chunk-IM7DY3ED.mjs} +1 -1
- package/dist/{chunk-W36M2BQ4.mjs → chunk-IN6RCKLL.mjs} +6 -5
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-SDOTRX3V.cjs → chunk-JEIG3EWE.cjs} +8 -8
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-BFJTHYTN.mjs → chunk-JIYYX7WU.mjs} +10 -8
- package/dist/{chunk-CIOT4HGT.cjs → chunk-JOTUZIM4.cjs} +14 -14
- package/dist/{chunk-SKVTP5PR.mjs → chunk-JOW4HDJO.mjs} +1 -62
- package/dist/{chunk-6MVFL3R5.cjs → chunk-JR4QCLJY.cjs} +1 -58
- package/dist/{chunk-CGBDNNSM.cjs → chunk-KEXK442I.cjs} +44 -12
- package/dist/{chunk-FUCSUGDM.cjs → chunk-KF6VDJH7.cjs} +3 -3
- package/dist/{chunk-EA5K5BKU.mjs → chunk-KNHBTJP6.mjs} +18 -1
- package/dist/{chunk-MVL2RAJW.mjs → chunk-KYN5ODF6.mjs} +1 -1
- package/dist/{chunk-LMPAPBUA.cjs → chunk-L6A26QT5.cjs} +36 -68
- package/dist/{chunk-RVXFINNS.cjs → chunk-L6HYACBE.cjs} +31 -31
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-5OKBARDN.cjs → chunk-LIZTLA5F.cjs} +12 -11
- package/dist/{chunk-HXRYZWTA.mjs → chunk-LLUA2LSC.mjs} +3 -3
- package/dist/{chunk-B5J2YVG7.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-3UEVPCGW.mjs → chunk-MEASUNVY.mjs} +6 -1
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-CNNOLE4O.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-HRSAQ23K.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-3LOLJTFV.cjs → chunk-MN4TQJ3W.cjs} +11 -11
- package/dist/{chunk-PGZDEPTM.cjs → chunk-MY5PZYAD.cjs} +10 -10
- package/dist/{chunk-ZXH4TS3F.cjs → chunk-NBPNUQYO.cjs} +3 -64
- package/dist/{chunk-VXEEATVD.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-INL3THCU.mjs → chunk-O7USYJ4U.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-OQ4YXWH4.cjs +6097 -0
- package/dist/{chunk-DMEPTZTI.mjs → chunk-P2UJF4SS.mjs} +47 -7
- package/dist/{chunk-T5OJPTVN.cjs → chunk-P4TYB4SF.cjs} +2 -2
- package/dist/chunk-P7XDC7UJ.mjs +92 -0
- package/dist/{chunk-SHLXACIO.cjs → chunk-PJ42JESY.cjs} +1 -9
- package/dist/{chunk-5ULKUBIA.cjs → chunk-PN676AZF.cjs} +6 -6
- package/dist/{chunk-YKZRDB5Z.mjs → chunk-PYHPXPSW.mjs} +2 -2
- package/dist/{chunk-KMTGADN3.mjs → chunk-QCVIRVHE.mjs} +1 -9
- package/dist/{chunk-5D2JIPLH.cjs → chunk-QEILRWVV.cjs} +36 -138
- package/dist/{chunk-XKG2BLFN.cjs → chunk-QIBP5EFA.cjs} +18 -35
- package/dist/{chunk-ZUPXLIGB.mjs → chunk-R65GCA6A.mjs} +647 -378
- package/dist/{chunk-BWIQR4DH.cjs → chunk-RHGK2JEN.cjs} +56 -63
- package/dist/{chunk-AS2VPMEE.cjs → chunk-ROQ4C4LJ.cjs} +1465 -8174
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-RWFLWR5J.cjs → chunk-S7MTDRYA.cjs} +17 -15
- package/dist/{chunk-PVZE2JGJ.mjs → chunk-SGB4IW7K.mjs} +43 -25
- package/dist/{chunk-GKBWWRBG.mjs → chunk-SVPGWJZF.mjs} +12 -12
- package/dist/{chunk-EKN7NSZO.cjs → chunk-SZLNU3GJ.cjs} +8 -5
- package/dist/chunk-TI7UANHI.cjs +77 -0
- package/dist/{chunk-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-MLY2RP5R.mjs → chunk-ULQOP5UI.mjs} +6 -2
- package/dist/chunk-UNJZGVPU.cjs +6 -0
- package/dist/{chunk-5BWWFHR2.mjs → chunk-UQUEANTY.mjs} +3 -3
- package/dist/chunk-VDRM36QB.cjs +963 -0
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-SOP2EAA6.mjs → chunk-VLPII2JJ.mjs} +1 -1
- 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-VTBXE6QG.mjs} +10 -27
- package/dist/{chunk-ZMSZZXOR.mjs → chunk-WDMIW6Q6.mjs} +0 -19
- package/dist/{chunk-NBBEQLOK.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-BZHXGVMA.mjs → chunk-WMBRZI5V.mjs} +5 -3
- package/dist/{chunk-4WVJLURN.mjs → chunk-WMHG64DA.mjs} +1 -1
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-A657YSP4.cjs → chunk-WSOBCAYO.cjs} +37 -35
- package/dist/{chunk-IWZKTWHZ.cjs → chunk-WU7ZS3EM.cjs} +7 -2
- package/dist/{chunk-J63ZH5OQ.cjs → chunk-X3GMHKO3.cjs} +2 -2
- package/dist/{chunk-POSPE3IO.mjs → chunk-X3NGFVRF.mjs} +61 -21
- package/dist/{chunk-VT4WFRHA.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/chunk-Y5RG6B7S.mjs +77 -0
- package/dist/{chunk-EIPC3FDA.cjs → chunk-YWCYV7QC.cjs} +9 -5
- package/dist/{chunk-WLL43JMO.mjs → chunk-YYQVGKO5.mjs} +7 -5
- package/dist/chunk-YZAKIXRL.cjs +67 -0
- package/dist/chunk-ZQRCSUSB.cjs +25 -0
- package/dist/{chunk-6XWDE2P2.cjs → chunk-ZTP3BJG6.cjs} +64 -24
- package/dist/{chunk-ZMMBIVQM.mjs → chunk-ZZGQD7A4.mjs} +16 -86
- package/dist/{client-plugins-CsCuCLBz.d.mts → client-plugins-CkYwvDJ0.d.mts} +2545 -2665
- package/dist/{client-plugins-D0ke-Hc8.d.ts → client-plugins-DfeKd0sD.d.ts} +2545 -2665
- package/dist/client-plugins.d.mts +6 -8
- package/dist/client-plugins.d.ts +6 -8
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +12 -13
- package/dist/client.d.ts +12 -13
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +6 -8
- package/dist/config.d.ts +6 -8
- package/dist/{devtools-LW4QQ5J3.cjs → devtools-2YHAJYH6.cjs} +21 -18
- package/dist/{devtools-5AFIPVUJ.mjs → devtools-N3QLRIQU.mjs} +20 -17
- package/dist/docs.cjs +23 -20
- package/dist/docs.d.mts +7 -9
- package/dist/docs.d.ts +7 -9
- 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 +10 -2
- package/dist/image/server.d.ts +10 -2
- package/dist/image/server.mjs +6 -2
- package/dist/image/sharp.cjs +12 -10
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/image/sharp.mjs +4 -2
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +90 -68
- package/dist/index.d.mts +28 -145
- package/dist/index.d.ts +28 -145
- package/dist/index.mjs +103 -81
- 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 +8 -10
- package/dist/integrations.d.ts +8 -10
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -5
- package/dist/internal/app-markdown-runtime.d.mts +7 -9
- package/dist/internal/app-markdown-runtime.d.ts +7 -9
- package/dist/internal/app-markdown-runtime.mjs +5 -4
- package/dist/internal/build-runtime.cjs +57 -56
- package/dist/internal/build-runtime.d.mts +8 -10
- package/dist/internal/build-runtime.d.ts +8 -10
- package/dist/internal/build-runtime.mjs +56 -55
- package/dist/internal/cli-runtime.cjs +37 -31
- package/dist/internal/cli-runtime.mjs +37 -31
- 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 +6 -8
- package/dist/internal/compression-runtime.d.ts +6 -8
- package/dist/internal/config-runtime.cjs +21 -18
- package/dist/internal/config-runtime.d.mts +7 -9
- package/dist/internal/config-runtime.d.ts +7 -9
- 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 +53 -28
- package/dist/internal/production-runtime.d.mts +46 -15
- package/dist/internal/production-runtime.d.ts +46 -15
- package/dist/internal/production-runtime.mjs +57 -32
- 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 +6 -8
- package/dist/markdown.d.ts +6 -8
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +16 -10
- package/dist/middleware.d.mts +8 -10
- package/dist/middleware.d.ts +8 -10
- package/dist/middleware.mjs +19 -13
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +9 -10
- package/dist/navigation.d.ts +9 -10
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-MPZJGPXK.mjs → nitro-KDACKNHU.mjs} +3 -2
- package/dist/{nitro-7F65EZZS.cjs → nitro-NPGU6VBT.cjs} +4 -3
- package/dist/observability.cjs +2 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin-DBBZ4JI2.cjs +32 -0
- package/dist/plugin-SYMK7PQ2.mjs +32 -0
- package/dist/plugin.cjs +56 -43
- package/dist/plugin.d.mts +25 -8
- package/dist/plugin.d.ts +25 -8
- package/dist/plugin.mjs +57 -44
- package/dist/{production-runtime-DfRP0cV0.d.mts → production-runtime-BTkXQdYy.d.mts} +17 -3
- package/dist/{production-runtime-BaI3WHnV.d.ts → production-runtime-DFC7pgbp.d.ts} +17 -3
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-Dg8RBYFa.d.mts → render-plan-5rFeWmk7.d.mts} +1 -1
- package/dist/{render-plan-CfIdJKAf.d.ts → render-plan-BoAK9xFC.d.ts} +1 -1
- package/dist/renderer-client.d.mts +8 -9
- package/dist/renderer-client.d.ts +8 -9
- package/dist/{request-DfE02G_A.d.mts → request-BxBWigtl.d.mts} +1 -1
- package/dist/{request-CEbHIIl4.d.ts → request-fciwmd3n.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +7 -9
- package/dist/request.d.ts +7 -9
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-C4oHbv6C.d.ts → route-rendering-BCM1QzEf.d.mts} +1 -1
- package/dist/{route-rendering-BHyOfXjD.d.mts → route-rendering-BLZT0IP0.d.ts} +1 -1
- package/dist/{router-uRN_29Em.d.ts → router-CkheNX3-.d.ts} +1 -1
- package/dist/{router-DwhA61SB.d.mts → router-DyZJWc1_.d.mts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +6 -8
- package/dist/routes.d.ts +6 -8
- package/dist/routes.mjs +5 -4
- package/dist/{runtime-COk03hmx.d.ts → runtime-DfU4sKa5.d.ts} +3 -3
- package/dist/{runtime-BEdHhN4C.d.mts → runtime-wexvUN5J.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 +7 -9
- package/dist/server-plugins.d.ts +7 -9
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query.cjs +9 -8
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +8 -7
- package/dist/server.cjs +97 -73
- package/dist/server.d.mts +18 -13
- package/dist/server.d.ts +18 -13
- package/dist/server.mjs +82 -58
- package/dist/{spa-router-DrVOBVGg.d.ts → spa-router-CcejECnG.d.ts} +2 -2
- package/dist/{spa-router-w4aFOuyn.d.mts → spa-router-DgsMXqfX.d.mts} +2 -2
- package/dist/ssg-1FGaFISl.d.ts +184 -0
- package/dist/ssg-Bg4bMMhM.d.mts +184 -0
- 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 +7 -9
- package/dist/testing.d.ts +7 -9
- 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-8wtTYiH4.d.mts} +1 -1
- package/dist/{utils-BtYehqeU.d.mts → utils-Dxbh6Hgj.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +75 -46
- package/dist/vite.d.mts +130 -11
- package/dist/vite.d.ts +130 -11
- package/dist/vite.mjs +76 -47
- 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 +3 -1
- package/dist/chunk-3SDFA7UF.cjs +0 -701
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-E5GNDG5F.mjs +0 -701
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/chunk-ULASELLA.cjs +0 -48
- package/dist/integration-orm-55F7CII5.cjs +0 -13
|
@@ -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;
|