@farm.js/core 0.1.65 → 0.1.67
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-handler-QLFDDTYN.mjs → agent-mcp-handler-AZ7QW4UP.mjs} +5 -5
- package/dist/{agent-mcp-handler-OXT73ZBY.cjs → agent-mcp-handler-FER4MQDF.cjs} +6 -6
- package/dist/{agent-mcp.d-QD2WZ9BS.d.ts → agent-mcp.d-BFu9xHAi.d.ts} +1 -1
- package/dist/{agent-mcp.d-CO_ABmNK.d.mts → agent-mcp.d-DWyWkTSy.d.mts} +1 -1
- package/dist/agent-runtime.cjs +6 -5
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +5 -4
- package/dist/analyzer-KVZGVY5Q.cjs +16 -0
- package/dist/{analyzer-PE33SK5W.mjs → analyzer-TTIIXXMQ.mjs} +3 -3
- package/dist/api/client.cjs +12 -2
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/client.mjs +12 -2
- package/dist/api/client.native.cjs +12 -2
- package/dist/api/client.native.d.mts +5 -5
- package/dist/api/client.native.d.ts +5 -5
- package/dist/api/client.native.mjs +12 -2
- package/dist/api/node.cjs +223 -0
- package/dist/api/node.d.mts +59 -0
- package/dist/api/node.d.ts +59 -0
- package/dist/api/node.mjs +223 -0
- package/dist/api/route-manager.cjs +11 -11
- package/dist/api/route-manager.d.mts +10 -9
- package/dist/api/route-manager.d.ts +10 -9
- package/dist/api/route-manager.mjs +10 -10
- package/dist/api/runtime.cjs +11 -7
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +10 -6
- package/dist/{api-client.d-BNLXNCXJ.d.mts → api-client.d-Bp35zMqR.d.mts} +1 -1
- package/dist/{api-client.d-ddQBNGtu.d.ts → api-client.d-CFI_xL0V.d.ts} +1 -1
- package/dist/api.cjs +17 -13
- package/dist/api.d.mts +11 -10
- package/dist/api.d.ts +11 -10
- package/dist/api.mjs +16 -12
- package/dist/{app-manifest.d-BpKxiU_E.d.mts → app-manifest.d-CRmjN5j9.d.mts} +1 -1
- package/dist/{app-manifest.d-DDmNkYQQ.d.ts → app-manifest.d-CwfhGrVR.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-x68Cwr0_.d.ts → app.d-BX9LVTiP.d.ts} +50 -9
- package/dist/{app.d-kuoVWhWM.d.mts → app.d-uBBUxwyV.d.mts} +50 -9
- package/dist/{chunk-V56632LA.cjs → chunk-22IWL4YD.cjs} +19 -5
- package/dist/{chunk-CZF4XIRZ.cjs → chunk-23PVOIPT.cjs} +3 -3
- package/dist/{chunk-5C7XMKQ4.cjs → chunk-2AFW7673.cjs} +6 -1
- package/dist/{chunk-SYW346ZN.cjs → chunk-2LHZD3OP.cjs} +1 -21
- package/dist/{chunk-ZZI56IUY.mjs → chunk-2ZOYOYEE.mjs} +13 -13
- package/dist/{chunk-RVGSVQWT.mjs → chunk-3T5TLFCQ.mjs} +10 -5
- package/dist/{chunk-XBSKPLHF.cjs → chunk-3T7ALZJF.cjs} +2 -2
- package/dist/{chunk-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
- package/dist/{chunk-7QVRWGBL.cjs → chunk-4DRINDGN.cjs} +319 -138
- package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
- package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
- package/dist/{chunk-JGAE5XPL.cjs → chunk-4JX3M4C6.cjs} +2 -1
- package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
- package/dist/{chunk-IMK32ERL.cjs → chunk-556H7JCE.cjs} +65 -48
- package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
- package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
- package/dist/{chunk-TZVUF5JJ.mjs → chunk-5TA63JD3.mjs} +4 -4
- package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
- package/dist/chunk-6I4BFRE7.cjs +51 -0
- package/dist/{chunk-OSFIUSYK.cjs → chunk-6R53ZWX2.cjs} +7 -7
- package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
- package/dist/{chunk-WNXVWXG3.cjs → chunk-6V5YWI4W.cjs} +2 -2
- package/dist/{chunk-BM2LH2JM.mjs → chunk-6YBYX4K4.mjs} +13 -12
- package/dist/{chunk-X3XUZWRB.mjs → chunk-724MGMIL.mjs} +17 -3
- package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
- package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
- package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
- package/dist/{chunk-TGULJSHD.mjs → chunk-AJNBTOVQ.mjs} +20 -9
- package/dist/{chunk-FBEBSAVI.cjs → chunk-AKIQ54FK.cjs} +82 -63
- package/dist/{chunk-2NGZFOKG.mjs → chunk-AOIUYHPH.mjs} +2 -2
- package/dist/{chunk-ZEXE4TGY.mjs → chunk-AQDLVHNF.mjs} +230 -110
- package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
- package/dist/chunk-AQIRXBBY.cjs +26 -0
- package/dist/chunk-AZ6IW6SF.mjs +28 -0
- package/dist/{chunk-QMDU6QHN.mjs → chunk-B6RBJJ5G.mjs} +1 -1
- package/dist/{chunk-I32V5CZL.cjs → chunk-BDYM2TN3.cjs} +28 -17
- package/dist/{chunk-JLDNXURZ.cjs → chunk-BZWTBELF.cjs} +32 -32
- package/dist/{chunk-ITV4QQL2.cjs → chunk-C6CUUBY5.cjs} +14 -3
- package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
- package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
- package/dist/{chunk-ZX2JHEWW.mjs → chunk-CO3YMZFD.mjs} +20 -9
- package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
- package/dist/{chunk-CNNBFGL5.cjs → chunk-DB2HSHQA.cjs} +14 -14
- package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
- package/dist/{chunk-32RPJAAS.cjs → chunk-DCXSIEFE.cjs} +40 -41
- package/dist/{chunk-D4MRNBVF.cjs → chunk-DGOFR7D5.cjs} +2 -2
- package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
- package/dist/chunk-DXZ57EPE.mjs +375 -0
- package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
- package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
- package/dist/{chunk-HKNYNSOK.mjs → chunk-E6CD45JK.mjs} +30 -31
- package/dist/{chunk-752XUZIM.cjs → chunk-EGIY4A7V.cjs} +6 -6
- package/dist/chunk-EIVGPQN5.mjs +51 -0
- package/dist/{chunk-KPAJWD3N.mjs → chunk-EYPSKXO4.mjs} +1 -1
- package/dist/{chunk-E552H232.cjs → chunk-F43OG25P.cjs} +1 -1
- package/dist/{chunk-UAQD67HM.mjs → chunk-F7JKVHU2.mjs} +1 -1
- package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
- package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
- package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
- package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
- package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
- package/dist/{chunk-ZAUOOGER.mjs → chunk-GTV2ABO7.mjs} +218 -37
- package/dist/{chunk-72JSHQQQ.mjs → chunk-H37MDCPR.mjs} +1 -1
- package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
- package/dist/{chunk-25T5VXOE.mjs → chunk-HFHJJXSV.mjs} +106 -19
- package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
- package/dist/{chunk-A3G5IY2W.cjs → chunk-HM7AGSKU.cjs} +1 -1
- package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
- package/dist/{chunk-GRBJ7VKH.mjs → chunk-HP2DQGQH.mjs} +1 -1
- package/dist/{chunk-E2TSYUHV.mjs → chunk-HRPTMX5C.mjs} +4 -4
- package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
- package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
- package/dist/{chunk-VQJHT2ND.mjs → chunk-IRA2CZAY.mjs} +2 -2
- package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
- package/dist/chunk-J6TZRYCO.cjs +22 -0
- package/dist/{chunk-WYAXRIYP.cjs → chunk-J7JHVCWA.cjs} +8 -8
- package/dist/chunk-JSOCDYER.cjs +375 -0
- package/dist/{chunk-YUW7F6SK.mjs → chunk-JVM3DKZE.mjs} +3 -3
- package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
- package/dist/{chunk-BQWBHWEW.mjs → chunk-JWSI5WO4.mjs} +1 -1
- package/dist/{chunk-OLGQZRW6.mjs → chunk-JZBU7V4D.mjs} +37 -17
- package/dist/{chunk-ONG4RDW3.mjs → chunk-JZGL2PIH.mjs} +13 -3
- package/dist/chunk-K63OWRY2.mjs +22 -0
- package/dist/{chunk-TUPKMMXT.mjs → chunk-K6HIIWUB.mjs} +1 -1
- package/dist/{chunk-MESQF2JC.mjs → chunk-K6SXMVXO.mjs} +2 -2
- package/dist/{chunk-L2JG337G.cjs → chunk-K6VFYFOY.cjs} +33 -31
- package/dist/{chunk-3CCAICF7.cjs → chunk-KCY52OUQ.cjs} +4 -4
- package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
- package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
- package/dist/{chunk-RFKTJTWZ.mjs → chunk-KWFNUODD.mjs} +2 -1
- package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
- package/dist/{chunk-C7DCMGC4.cjs → chunk-LPIZMU7D.cjs} +12 -12
- package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
- package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
- package/dist/{chunk-3KJPIO5D.cjs → chunk-N5DQMOAG.cjs} +589 -678
- package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
- package/dist/{chunk-CBOEJ5Z4.cjs → chunk-OB3IFUK6.cjs} +133 -46
- package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
- package/dist/{chunk-SYXPWJ7N.cjs → chunk-OFBLGH6V.cjs} +17 -18
- package/dist/{chunk-VQ4NWOWO.mjs → chunk-OGVTUGMU.mjs} +5 -13
- package/dist/{chunk-3UZVPO72.mjs → chunk-OIOPQ25L.mjs} +6 -7
- package/dist/{chunk-2XGBJSDV.cjs → chunk-OO7DYIJD.cjs} +73 -24
- package/dist/{chunk-IP2KHSGF.mjs → chunk-P2NBQ5JI.mjs} +57 -4
- package/dist/{chunk-ZQQK4U66.cjs → chunk-PDFFYZAT.cjs} +72 -19
- package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
- package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
- package/dist/{chunk-YD4J37RN.cjs → chunk-PL6RTBDE.cjs} +30 -19
- package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
- package/dist/{chunk-WMTBBQHY.cjs → chunk-PPX7UOFY.cjs} +271 -151
- package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
- package/dist/{chunk-7XGWBPQQ.cjs → chunk-Q37INCXG.cjs} +13 -8
- package/dist/{chunk-T4M52BA5.cjs → chunk-Q5UX55YA.cjs} +1457 -612
- package/dist/{chunk-53ZCZ46B.cjs → chunk-QGQP6QKO.cjs} +4 -3
- package/dist/{chunk-TZOGZKI7.cjs → chunk-QITSS4TD.cjs} +1381 -626
- package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
- package/dist/{chunk-HCGWDRZO.mjs → chunk-QJVW76JG.mjs} +17 -6
- package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
- package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +1 -1
- package/dist/chunk-RWR7SMD7.cjs +50 -0
- package/dist/{chunk-7PTISZSQ.cjs → chunk-S7MWSFFP.cjs} +4 -0
- package/dist/chunk-SD6JGJOM.mjs +50 -0
- package/dist/{chunk-7H4SVNC4.cjs → chunk-SPP3EZTJ.cjs} +46 -26
- package/dist/{chunk-E4RDMG3K.mjs → chunk-TEG6HJVF.mjs} +4 -4
- package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
- package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
- package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
- package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
- package/dist/{chunk-W2ZXMMHA.mjs → chunk-UHE5JUKB.mjs} +1 -1
- package/dist/{chunk-6X5NKNBE.mjs → chunk-UHNSY2PQ.mjs} +1304 -459
- package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
- package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
- package/dist/{chunk-Q75QPLBA.mjs → chunk-V5MQMQ2P.mjs} +1 -1
- package/dist/{chunk-TRIDJQ6A.cjs → chunk-V5RTHYJB.cjs} +30 -10
- package/dist/{chunk-QHRCR44V.mjs → chunk-VK54PDQ6.mjs} +25 -5
- package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
- package/dist/{chunk-2L54YV25.mjs → chunk-WDD5CTZW.mjs} +49 -32
- package/dist/{chunk-7GYCZRTH.mjs → chunk-WGHY3OL5.mjs} +355 -444
- package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
- package/dist/{chunk-3EEET2Q5.cjs → chunk-WUTFJOV7.cjs} +32 -12
- package/dist/chunk-WVQNXXNE.cjs +28 -0
- package/dist/{chunk-Y5TOT5F6.cjs → chunk-X3MHKLCO.cjs} +5 -5
- package/dist/{chunk-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
- package/dist/{chunk-VHHLKIDZ.mjs → chunk-XNZWMXCF.mjs} +1090 -335
- package/dist/{chunk-FIR62CR3.mjs → chunk-XUES6OET.mjs} +1 -1
- package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
- package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
- package/dist/{chunk-BT4SEFLC.cjs → chunk-YAEN3L2F.cjs} +3 -2
- package/dist/chunk-YFTGIHNC.mjs +26 -0
- package/dist/{chunk-KL7SHLQB.mjs → chunk-YGJ5P3TJ.mjs} +31 -1
- package/dist/{chunk-UYRI6U3P.mjs → chunk-YQYTQJZN.mjs} +3 -2
- package/dist/{chunk-X4K7TYN6.cjs → chunk-YVTS3S3F.cjs} +24 -23
- package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
- package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
- package/dist/client/lifecycle.cjs +2 -2
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-D74pqdea.d.mts → client-component.d-CDRvRmbU.d.mts} +2 -2
- package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DWRKyAp5.d.ts} +2 -2
- package/dist/client-plugins.cjs +2 -2
- package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-BNILjfX3.d.mts} +94 -140
- package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CrKZiNSN.d.ts} +94 -140
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +11 -9
- package/dist/client.d.mts +13 -13
- package/dist/client.d.ts +13 -13
- package/dist/client.mjs +10 -8
- package/dist/{config.d-qt-mE8O5.d.mts → config.d-BKIhJtmr.d.mts} +7 -2
- package/dist/{config.d-qt-mE8O5.d.ts → config.d-BKIhJtmr.d.ts} +7 -2
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +2 -2
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +2 -2
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{devtools-SGYOG36E.cjs → devtools-RZVT4JVN.cjs} +36 -32
- package/dist/{devtools-PUVZB3F2.mjs → devtools-UFQYT3VA.mjs} +31 -27
- package/dist/docs.cjs +26 -25
- package/dist/docs.d.mts +20 -8
- package/dist/docs.d.ts +20 -8
- package/dist/docs.mjs +25 -24
- package/dist/env-types.cjs +3 -3
- package/dist/env-types.mjs +2 -2
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.mjs +4 -4
- package/dist/headers.cjs +3 -3
- package/dist/headers.mjs +2 -2
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config.d-CeDgNyX4.d.mts → image-config.d-ByhQ0TT7.d.mts} +3 -1
- package/dist/{image-config.d-CeDgNyX4.d.ts → image-config.d-ByhQ0TT7.d.ts} +3 -1
- package/dist/image.cjs +6 -6
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +143 -128
- package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bdm6866n.d.mts} +1 -1
- package/dist/{index.d-A_x10zGS.d.ts → index.d-Dey5T14f.d.ts} +1 -1
- package/dist/index.d.mts +31 -82
- package/dist/index.d.ts +31 -82
- package/dist/index.mjs +214 -199
- package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
- package/dist/integrations/orm.d.mts +33 -0
- package/dist/integrations/orm.d.ts +33 -0
- package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
- package/dist/integrations.cjs +6 -5
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +5 -4
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +17 -8
- package/dist/internal/app-markdown-runtime.d.ts +17 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +70 -68
- package/dist/internal/build-runtime.d.mts +8 -8
- package/dist/internal/build-runtime.d.ts +8 -8
- package/dist/internal/build-runtime.mjs +69 -67
- package/dist/internal/cli-runtime.cjs +45 -44
- package/dist/internal/cli-runtime.mjs +44 -43
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +60 -6
- package/dist/internal/client-runtime.d.mts +40 -11
- package/dist/internal/client-runtime.d.ts +40 -11
- package/dist/internal/client-runtime.mjs +58 -4
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +25 -24
- package/dist/internal/config-runtime.d.mts +9 -9
- package/dist/internal/config-runtime.d.ts +9 -9
- package/dist/internal/config-runtime.mjs +24 -23
- package/dist/internal/docs-precompiled-runtime.cjs +16 -5
- package/dist/internal/docs-precompiled-runtime.d.mts +7 -0
- package/dist/internal/docs-precompiled-runtime.d.ts +7 -0
- package/dist/internal/docs-precompiled-runtime.mjs +15 -4
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/islands-runtime.cjs +33 -4
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/islands-runtime.mjs +31 -2
- package/dist/internal/native-server-fns.cjs +6 -6
- package/dist/internal/native-server-fns.mjs +5 -5
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +54 -40
- package/dist/internal/production-runtime.d.mts +23 -15
- package/dist/internal/production-runtime.d.ts +23 -15
- package/dist/internal/production-runtime.mjs +69 -55
- package/dist/internal/react-cache.cjs +3 -3
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.ts → lifecycle.d-keQs5Swc.d.mts} +7 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.mts → lifecycle.d-keQs5Swc.d.ts} +7 -1
- package/dist/{manager-H5ZM3HAM.mjs → manager-JIA66YJ2.mjs} +4 -3
- package/dist/manager-JOHU6BQI.cjs +15 -0
- package/dist/markdown.cjs +7 -3
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/markdown.mjs +6 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/mount.d-BP0nLYQO.d.mts +38 -0
- package/dist/mount.d-CkiPky_F.d.ts +38 -0
- package/dist/{native-server-fn-handler-GLRHAYWV.mjs → native-server-fn-handler-EP5AFJYE.mjs} +5 -5
- package/dist/{native-server-fn-handler-J5MYRXN6.cjs → native-server-fn-handler-QRTXGZA4.cjs} +6 -6
- package/dist/{native-tree-HE2FLS72.cjs → native-tree-W2SSJB3Y.cjs} +5 -5
- package/dist/{native-tree-YF2DSPKM.mjs → native-tree-Y5YQANW7.mjs} +4 -4
- package/dist/{navigation-delegate.d-DQVYKoaZ.d.mts → navigation-delegate.d-CdBP-hkZ.d.mts} +1 -1
- package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-DchcGzAQ.d.ts} +1 -1
- package/dist/navigation.cjs +8 -7
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +7 -6
- package/dist/{nitro-DD4QCA66.mjs → nitro-55YOZWRA.mjs} +11 -11
- package/dist/{nitro-VRDX2H4M.cjs → nitro-EEX2J3KB.cjs} +13 -13
- package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
- package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
- package/dist/plugin.cjs +61 -59
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +60 -58
- package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
- package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
- package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-Dou_Htas.d.ts} +1 -1
- package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-VwsBzIee.d.mts} +1 -1
- package/dist/query/client.cjs +9 -7
- package/dist/query/client.mjs +5 -3
- package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-D8UakAIk.d.ts} +1 -1
- package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-LKymStDJ.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +35 -0
- package/dist/renderer/none/server.d.mts +21 -0
- package/dist/renderer/none/server.d.ts +21 -0
- package/dist/renderer/none/server.mjs +35 -0
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +9 -9
- package/dist/renderer-client.d.ts +9 -9
- package/dist/renderer-client.mjs +5 -3
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +20 -2
- package/dist/renderer.d.ts +20 -2
- package/dist/renderer.mjs +5 -1
- package/dist/request.cjs +2 -2
- package/dist/{request.d-B1RnTLri.d.ts → request.d-B928QjWy.d.ts} +1 -1
- package/dist/{request.d-DarDOCk9.d.mts → request.d-KG-4d2eG.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-DoEe_w9t.d.ts} +1 -1
- package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-NIHQeb4m.d.mts} +1 -1
- package/dist/{route.d-BaVH3V0w.d.mts → route.d-DrXkpvcg.d.mts} +1 -1
- package/dist/{route.d-DBTEqifW.d.ts → route.d-hs-_cyHn.d.ts} +1 -1
- package/dist/{router.d-Cuv1jntg.d.mts → router.d-B8PkJSGp.d.mts} +1 -1
- package/dist/{router.d-CMANF6da.d.ts → router.d-DYnRHQwz.d.ts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-DgZ_jgGG.d.mts} +1 -1
- package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-uUBZyWoK.d.ts} +1 -1
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-T3PWURLJ.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
- package/dist/{rsc-pipeline-V4ANLRAA.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
- package/dist/{runtime-LRIQ3XH7.mjs → runtime-U7O3HZOZ.mjs} +62 -36
- package/dist/{runtime-5AROV2C3.cjs → runtime-X52Q7JFR.cjs} +72 -46
- package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-BxQIzwfy.d.mts} +11 -3
- package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-DP7mEkEF.d.ts} +11 -3
- package/dist/{schema-dev-notice-JMXEQWIQ.mjs → schema-dev-notice-C2JINRZI.mjs} +3 -2
- package/dist/{schema-dev-notice-PLBFDTOF.cjs → schema-dev-notice-X7GG7QVB.cjs} +5 -4
- package/dist/schema.cjs +6 -2
- package/dist/schema.d-Dny9pnrm.d.mts +298 -0
- package/dist/schema.d-Dny9pnrm.d.ts +298 -0
- package/dist/schema.d.mts +1 -115
- package/dist/schema.d.ts +1 -115
- package/dist/schema.mjs +5 -1
- package/dist/server-fn-client.d.mts +2 -2
- package/dist/server-fn-client.d.ts +2 -2
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +7 -7
- package/dist/server-plugins.d.mts +16 -10
- package/dist/server-plugins.d.ts +16 -10
- package/dist/server-plugins.mjs +8 -8
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +160 -120
- package/dist/server.d.mts +20 -14
- package/dist/server.d.ts +20 -14
- package/dist/server.mjs +138 -98
- package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-BgHPVMhz.d.mts} +15 -5
- package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-DsFDHTsv.d.ts} +15 -5
- package/dist/testing.cjs +17 -17
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +13 -13
- package/dist/theme/server.cjs +3 -3
- package/dist/theme/server.mjs +2 -2
- package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-BKyKDBR1.d.mts} +1 -1
- package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-zxAVcf_V.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +63 -61
- package/dist/vite.d.mts +32 -12
- package/dist/vite.d.ts +32 -12
- package/dist/vite.mjs +62 -60
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.mjs +3 -3
- package/package.json +31 -1
- package/dist/analyzer-GHWK46LX.cjs +0 -16
- package/dist/chunk-5YPBFMBN.cjs +0 -19
- package/dist/chunk-OM7WILES.mjs +0 -100
- package/dist/chunk-Q5B4LNON.mjs +0 -19
- package/dist/chunk-QPJ4MZTO.mjs +0 -60
- package/dist/chunk-R53QDV6T.cjs +0 -100
- package/dist/chunk-UYTAP4FQ.cjs +0 -60
- package/dist/manager-2LUKNX2N.cjs +0 -14
- /package/dist/{chunk-QGOZLGVP.mjs → chunk-I6FIAWNT.mjs} +0 -0
- /package/dist/{chunk-XPIPMWY3.cjs → chunk-K5NI5YQR.cjs} +0 -0
- /package/dist/{chunk-NWUHS6GV.cjs → chunk-QEJWNXRI.cjs} +0 -0
- /package/dist/{chunk-FSXSQQTV.mjs → chunk-TXE4SAMV.mjs} +0 -0
- /package/dist/{chunk-ZXK2EYQW.cjs → chunk-UUQNJDGH.cjs} +0 -0
- /package/dist/{chunk-46P5KNTE.mjs → chunk-VZBAW44S.mjs} +0 -0
|
@@ -12,17 +12,17 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHM7AGSKUcjs = require('./chunk-HM7AGSKU.cjs');
|
|
19
19
|
|
|
20
20
|
// src/mobile/analyzer.ts
|
|
21
21
|
var _crypto = require('crypto');
|
|
22
22
|
var _fs = require('fs');
|
|
23
23
|
var _promises = require('fs/promises');
|
|
24
24
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
25
|
-
var ANALYZER_VERSION = `
|
|
25
|
+
var ANALYZER_VERSION = `7:${_chunkHM7AGSKUcjs.FARM_VERSION}`;
|
|
26
26
|
var INTRINSIC_KINDS = {};
|
|
27
27
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
28
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -41,6 +41,8 @@ Object.assign(INTRINSIC_KINDS, {
|
|
|
41
41
|
ul: "List",
|
|
42
42
|
ol: "List"
|
|
43
43
|
});
|
|
44
|
+
var TABLE_TAGS = new Set("table caption thead tbody tfoot tr th td colgroup col".split(" "));
|
|
45
|
+
var TABLE_STYLE_PROPERTIES = /* @__PURE__ */ new Set(["tableLayout", "borderCollapse"]);
|
|
44
46
|
var INPUT_TYPES = /* @__PURE__ */ new Set(["text", "email", "password", "number", "search", "tel", "url"]);
|
|
45
47
|
var MAPPED_EVENTS = {
|
|
46
48
|
View: /* @__PURE__ */ new Set(["onClick"]),
|
|
@@ -148,13 +150,13 @@ var INLINE_BOX_TAGS = new Set("span strong em b i small label code".split(" "));
|
|
|
148
150
|
function hasBoxStyle(node) {
|
|
149
151
|
const tokens = _nullishCoalesce(node.style, () => ( []));
|
|
150
152
|
const classes = tokens.filter((token) => !token.startsWith("style."));
|
|
151
|
-
const resolved =
|
|
153
|
+
const resolved = _chunkCCAUIBIScjs.resolveFarmNativeClasses.call(void 0, classes.join(" "));
|
|
152
154
|
const keys = [
|
|
153
155
|
...Object.keys(resolved.style),
|
|
154
156
|
...Object.keys(_nullishCoalesce(resolved.dark, () => ( {}))),
|
|
155
157
|
...tokens.filter((token) => token.startsWith("style.")).map((token) => token.slice(6))
|
|
156
158
|
];
|
|
157
|
-
return keys.some((key) => !
|
|
159
|
+
return keys.some((key) => !_chunkCCAUIBIScjs.FARM_NATIVE_TEXT_KEYS.has(key));
|
|
158
160
|
}
|
|
159
161
|
var MAPPED_COMPONENTS = {
|
|
160
162
|
"@farm.js/core": { Link: "Pressable" },
|
|
@@ -188,7 +190,7 @@ var COLOR = "(?:inherit|current|transparent|black|white|(?:slate|gray|zinc|neutr
|
|
|
188
190
|
var SPACE = "(?:\\d+(?:\\.5)?|px|auto)";
|
|
189
191
|
var SIZE = "(?:\\d+(?:\\.5)?|px|auto|full|\\d+/\\d+|min|max|fit)";
|
|
190
192
|
var PORTABLE_CLASSES = [
|
|
191
|
-
/^(?:flex|flex-row|flex-col|flex-row-reverse|flex-col-reverse|flex-wrap|flex-nowrap|flex-wrap-reverse|flex-1|flex-auto|flex-initial|flex-none|grow|grow-0|shrink|shrink-0|hidden|relative|absolute|overflow-hidden|overflow-visible|italic|not-italic|underline|line-through|no-underline|uppercase|lowercase|capitalize|normal-case|text-left|text-center|text-right|text-justify)$/,
|
|
193
|
+
/^(?:flex|flex-row|flex-col|flex-row-reverse|flex-col-reverse|flex-wrap|flex-nowrap|flex-wrap-reverse|flex-1|flex-auto|flex-initial|flex-none|grow|grow-0|shrink|shrink-0|hidden|relative|absolute|overflow-hidden|overflow-visible|italic|not-italic|underline|line-through|no-underline|uppercase|lowercase|capitalize|normal-case|text-left|text-center|text-right|text-justify|table-auto|table-fixed|border-collapse)$/,
|
|
192
194
|
/^(?:items|justify|self|content)-(?:start|end|center|between|around|evenly|stretch|baseline|auto)$/,
|
|
193
195
|
new RegExp(
|
|
194
196
|
`^-?(?:gap|gap-x|gap-y|p|px|py|pt|pr|pb|pl|ps|pe|m|mx|my|mt|mr|mb|ml|ms|me)-${SPACE}$`
|
|
@@ -219,7 +221,7 @@ var BLOCKING_CLASSES = [
|
|
|
219
221
|
],
|
|
220
222
|
[/^(?:space-[xy]-.+|divide-.+)$/, "needs child selectors"],
|
|
221
223
|
[
|
|
222
|
-
/^(?:block|inline|inline-block|inline-flex|table.*|contents|flow-root|list-item)$/,
|
|
224
|
+
/^(?:block|inline|inline-block|inline-flex|table(?!-(?:auto|fixed)$).*|contents|flow-root|list-item)$/,
|
|
223
225
|
"sets a display mode other than flex"
|
|
224
226
|
],
|
|
225
227
|
[
|
|
@@ -467,7 +469,9 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
|
|
|
467
469
|
if (isIntrinsic) {
|
|
468
470
|
kind = INTRINSIC_KINDS[tag];
|
|
469
471
|
if (!facts.tags.includes(tag)) facts.tags.push(tag);
|
|
470
|
-
if (!kind
|
|
472
|
+
if (!kind && TABLE_TAGS.has(tag)) {
|
|
473
|
+
block(opening, "unmapped-element", `<${tag}> has no React Native port`, "react-native");
|
|
474
|
+
} else if (!kind) block(opening, "unmapped-element", `<${tag}> has no native mapping`);
|
|
471
475
|
} else if (opening.name.type === "JSXNamespacedName") {
|
|
472
476
|
block(opening, "unmapped-element", `<${tag}> has no native mapping`);
|
|
473
477
|
} else {
|
|
@@ -571,7 +575,7 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
|
|
|
571
575
|
} else if (problem) block(attribute, "class-name", problem);
|
|
572
576
|
else {
|
|
573
577
|
style.push(token);
|
|
574
|
-
const native =
|
|
578
|
+
const native = _chunkCCAUIBIScjs.farmNativeClassProblem.call(void 0, token);
|
|
575
579
|
if (native) block(attribute, "class-name", native, "native");
|
|
576
580
|
}
|
|
577
581
|
}
|
|
@@ -589,11 +593,15 @@ function analyzeSource(file, source, parseSync, lang = scriptLang(file)) {
|
|
|
589
593
|
continue;
|
|
590
594
|
}
|
|
591
595
|
const key = _nullishCoalesce(property.key.name, () => ( property.key.value));
|
|
596
|
+
if (TABLE_STYLE_PROPERTIES.has(key)) {
|
|
597
|
+
block(property, "style", `style.${key} has no React Native port`, "react-native");
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
592
600
|
if (!STYLE_PROPERTIES.has(key)) {
|
|
593
601
|
block(property, "style", `style.${key} has no native mapping`);
|
|
594
602
|
continue;
|
|
595
603
|
}
|
|
596
|
-
if (!
|
|
604
|
+
if (!_chunkCCAUIBIScjs.FARM_NATIVE_STYLE_PROPERTIES.has(key)) {
|
|
597
605
|
block(property, "style", `style.${key} has no native-tier style`, "native");
|
|
598
606
|
}
|
|
599
607
|
const literal2 = staticString(property.value);
|
|
@@ -1044,12 +1052,15 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1044
1052
|
const kind = INTRINSIC_KINDS[tag];
|
|
1045
1053
|
if (!facts.tags.includes(tag)) facts.tags.push(tag);
|
|
1046
1054
|
facts.elements.total += 1;
|
|
1047
|
-
if (
|
|
1055
|
+
if (kind) {
|
|
1056
|
+
facts.elements.mapped += 1;
|
|
1057
|
+
facts.elements.byKind[kind] = (_nullishCoalesce(facts.elements.byKind[kind], () => ( 0))) + 1;
|
|
1058
|
+
} else if (TABLE_TAGS.has(tag)) {
|
|
1059
|
+
block(at, "unmapped-element", `<${tag}> has no React Native port`, "react-native");
|
|
1060
|
+
} else {
|
|
1048
1061
|
block(at, "unmapped-element", `<${tag}> has no native mapping`);
|
|
1049
1062
|
continue;
|
|
1050
1063
|
}
|
|
1051
|
-
facts.elements.mapped += 1;
|
|
1052
|
-
facts.elements.byKind[kind] = (_nullishCoalesce(facts.elements.byKind[kind], () => ( 0))) + 1;
|
|
1053
1064
|
const value = (attr) => attributes.find((attribute) => attribute.name.toLowerCase() === attr);
|
|
1054
1065
|
const boundAttribute = (attr) => attributes.find(
|
|
1055
1066
|
(attribute) => attribute.dynamic && (attribute.name === `:${attr}` || attribute.name === `v-bind:${attr}` || attribute.name === attr) || attr === "class" && attribute.name.startsWith("class:")
|
|
@@ -1064,7 +1075,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1064
1075
|
facts.appClasses.push({ name: token, ...locate(starts, classes.offset) });
|
|
1065
1076
|
} else if (problem) block(classes.offset, "class-name", problem);
|
|
1066
1077
|
else {
|
|
1067
|
-
const native =
|
|
1078
|
+
const native = _chunkCCAUIBIScjs.farmNativeClassProblem.call(void 0, token);
|
|
1068
1079
|
if (native) block(classes.offset, "class-name", native, "native");
|
|
1069
1080
|
}
|
|
1070
1081
|
}
|
|
@@ -1073,7 +1084,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1073
1084
|
if (boundAttribute("style")) {
|
|
1074
1085
|
block(at, "runtime-style", `<${tag}> style is computed at runtime`);
|
|
1075
1086
|
} else if (_optionalChain([style, 'optionalAccess', _59 => _59.value])) {
|
|
1076
|
-
for (const declaration of
|
|
1087
|
+
for (const declaration of _chunkCCAUIBIScjs.resolveFarmNativeInlineStyle.call(void 0, style.value).unsupported) {
|
|
1077
1088
|
block(
|
|
1078
1089
|
style.offset,
|
|
1079
1090
|
"style",
|
|
@@ -1390,7 +1401,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1390
1401
|
const readStylesheet = (file) => {
|
|
1391
1402
|
let sheet = parsedSheets.get(file);
|
|
1392
1403
|
if (!sheet) {
|
|
1393
|
-
sheet =
|
|
1404
|
+
sheet = _chunkCCAUIBIScjs.parseFarmNativeStylesheet.call(void 0, _fs.readFileSync.call(void 0, file, "utf8"));
|
|
1394
1405
|
parsedSheets.set(file, sheet);
|
|
1395
1406
|
}
|
|
1396
1407
|
return sheet;
|
|
@@ -1482,7 +1493,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1482
1493
|
appClasses.push({ file: label, ...appClass });
|
|
1483
1494
|
for (const tag of moduleFacts.tags) tags.add(tag);
|
|
1484
1495
|
for (const css of _nullishCoalesce(moduleFacts.styles, () => ( []))) {
|
|
1485
|
-
componentSheets.push(
|
|
1496
|
+
componentSheets.push(_chunkCCAUIBIScjs.parseFarmNativeStylesheet.call(void 0, css));
|
|
1486
1497
|
}
|
|
1487
1498
|
}
|
|
1488
1499
|
for (const win of moduleFacts.wins) wins.add(win);
|
|
@@ -1528,7 +1539,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1528
1539
|
for (const layout of layouts) walk(layout, true, true);
|
|
1529
1540
|
const sheets = [...[...stylesheets].map(readStylesheet), ...componentSheets];
|
|
1530
1541
|
for (const appClass of appClasses) {
|
|
1531
|
-
const { styled, problems } =
|
|
1542
|
+
const { styled, problems } = _chunkCCAUIBIScjs.inspectFarmNativeStylesheets.call(void 0, sheets, { class: appClass.name });
|
|
1532
1543
|
const at = { file: appClass.file, line: appClass.line, column: appClass.column };
|
|
1533
1544
|
if (!styled) {
|
|
1534
1545
|
blockers.push({
|
|
@@ -1543,7 +1554,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1543
1554
|
}
|
|
1544
1555
|
}
|
|
1545
1556
|
for (const tag of tags) {
|
|
1546
|
-
for (const message of
|
|
1557
|
+
for (const message of _chunkCCAUIBIScjs.inspectFarmNativeStylesheets.call(void 0, sheets, { tag }).problems) {
|
|
1547
1558
|
blockers.push({
|
|
1548
1559
|
file: relative2(root, _nullishCoalesce(page, () => ( ""))),
|
|
1549
1560
|
line: 1,
|
|
@@ -5,20 +5,24 @@ import {
|
|
|
5
5
|
compileConfigRoutePattern,
|
|
6
6
|
interpolateConfigRouteDestination,
|
|
7
7
|
localizeConfigRouteDestination,
|
|
8
|
+
resolveConfigRedirectDestination,
|
|
8
9
|
resolveConfigRoutePathname
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JZGL2PIH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
resolveFarmRequestURL
|
|
13
|
+
} from "./chunk-5OFNUETM.mjs";
|
|
10
14
|
import {
|
|
11
15
|
isFarmRedirectStatus
|
|
12
16
|
} from "./chunk-JNYFXL7X.mjs";
|
|
13
|
-
import {
|
|
14
|
-
resolveFarmRequestURL
|
|
15
|
-
} from "./chunk-6HRAK7I5.mjs";
|
|
16
17
|
|
|
17
18
|
// src/plugins/redirects.ts
|
|
19
|
+
var FARM_CONFIG_REDIRECTS_PLUGIN_NAME = "farm:redirects";
|
|
20
|
+
var configRedirectMatchers = /* @__PURE__ */ new WeakMap();
|
|
18
21
|
function createRedirectsPlugin(redirects, {
|
|
19
22
|
beforeRequest: overrideBeforeRequest,
|
|
20
23
|
afterResponse: overrideAfterResponse,
|
|
21
|
-
i18n
|
|
24
|
+
i18n,
|
|
25
|
+
basePath
|
|
22
26
|
} = {}) {
|
|
23
27
|
for (const redirect of redirects) {
|
|
24
28
|
if (redirect.statusCode !== void 0 && !isFarmRedirectStatus(redirect.statusCode)) {
|
|
@@ -31,33 +35,38 @@ function createRedirectsPlugin(redirects, {
|
|
|
31
35
|
redirect,
|
|
32
36
|
pattern: compileConfigRoutePattern(redirect.source)
|
|
33
37
|
}));
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
const matchRedirect = (url) => {
|
|
39
|
+
const routePath = resolveConfigRoutePathname(url.pathname, i18n, basePath);
|
|
40
|
+
for (const { redirect, pattern } of compiledRedirects) {
|
|
41
|
+
const match = routePath.pathname.match(pattern.regex);
|
|
42
|
+
if (!match) continue;
|
|
43
|
+
const localizedDestination = resolveConfigRedirectDestination(
|
|
44
|
+
interpolateConfigRouteDestination(redirect.destination, match, pattern.tokens),
|
|
45
|
+
routePath.locale,
|
|
46
|
+
i18n,
|
|
47
|
+
basePath
|
|
48
|
+
);
|
|
49
|
+
return {
|
|
50
|
+
destination: appendFarmRedirectQuery(localizedDestination, url.search),
|
|
51
|
+
statusCode: redirect.statusCode ?? (redirect.permanent ? 308 : 307)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
};
|
|
56
|
+
const plugin = {
|
|
57
|
+
name: FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
|
|
36
58
|
enforce: "pre",
|
|
37
59
|
async beforeRequest(req, res, context) {
|
|
38
60
|
if (overrideBeforeRequest) {
|
|
39
61
|
await overrideBeforeRequest(req, res, context);
|
|
40
62
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
interpolateConfigRouteDestination(redirect.destination, match, pattern.tokens),
|
|
49
|
-
routePath.locale,
|
|
50
|
-
i18n
|
|
51
|
-
);
|
|
52
|
-
const destination = appendFarmRedirectQuery(localizedDestination, url.search);
|
|
53
|
-
const statusCode = redirect.statusCode ?? (redirect.permanent ? 308 : 307);
|
|
54
|
-
res.writeHead(statusCode, {
|
|
55
|
-
Location: destination
|
|
56
|
-
});
|
|
57
|
-
res.end();
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
63
|
+
const redirect = matchRedirect(resolveFarmRequestURL(req));
|
|
64
|
+
if (!redirect) return;
|
|
65
|
+
res.setHeader("Content-Type", "text/plain;charset=UTF-8");
|
|
66
|
+
res.writeHead(redirect.statusCode, {
|
|
67
|
+
Location: redirect.destination
|
|
68
|
+
});
|
|
69
|
+
res.end(`Redirecting to ${redirect.destination}`);
|
|
61
70
|
},
|
|
62
71
|
async afterResponse(req, res, context) {
|
|
63
72
|
if (overrideAfterResponse) {
|
|
@@ -65,9 +74,15 @@ function createRedirectsPlugin(redirects, {
|
|
|
65
74
|
}
|
|
66
75
|
}
|
|
67
76
|
};
|
|
77
|
+
configRedirectMatchers.set(plugin, matchRedirect);
|
|
78
|
+
return plugin;
|
|
79
|
+
}
|
|
80
|
+
function getConfigRedirectMatcher(plugin) {
|
|
81
|
+
return configRedirectMatchers.get(plugin);
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
// src/plugins/headers.ts
|
|
85
|
+
var FARM_CONFIG_HEADERS_PLUGIN_NAME = "farm:headers";
|
|
71
86
|
var FARM_CONFIG_HEADERS_FINALIZER = /* @__PURE__ */ Symbol.for("farm.configHeadersFinalizer");
|
|
72
87
|
function appendConfiguredLinkHeader(res, value) {
|
|
73
88
|
const current = res.getHeader("Link");
|
|
@@ -132,21 +147,22 @@ function applyWriteHeadHeaders(res, headers) {
|
|
|
132
147
|
function createHeadersPlugin(headers, {
|
|
133
148
|
beforeRequest: overrideBeforeRequest,
|
|
134
149
|
afterResponse: overrideAfterResponse,
|
|
135
|
-
i18n
|
|
150
|
+
i18n,
|
|
151
|
+
basePath
|
|
136
152
|
} = {}) {
|
|
137
153
|
const compiledHeaders = headers.map((config) => ({
|
|
138
154
|
config,
|
|
139
155
|
pattern: compileConfigRoutePattern(config.source)
|
|
140
156
|
}));
|
|
141
157
|
return {
|
|
142
|
-
name:
|
|
158
|
+
name: FARM_CONFIG_HEADERS_PLUGIN_NAME,
|
|
143
159
|
enforce: "pre",
|
|
144
160
|
async beforeRequest(req, res, context) {
|
|
145
161
|
if (overrideBeforeRequest) {
|
|
146
162
|
await overrideBeforeRequest(req, res, context);
|
|
147
163
|
}
|
|
148
164
|
const url = resolveFarmRequestURL(req);
|
|
149
|
-
const pathname = resolveConfigRoutePathname(url.pathname, i18n).pathname;
|
|
165
|
+
const pathname = resolveConfigRoutePathname(url.pathname, i18n, basePath).pathname;
|
|
150
166
|
const matchedHeaders = compiledHeaders.filter(({ pattern }) => pattern.regex.test(pathname)).map(({ config }) => config.headers);
|
|
151
167
|
applyResponseHeaders(res, matchedHeaders);
|
|
152
168
|
const responseWithFinalizer = res;
|
|
@@ -170,22 +186,44 @@ function createHeadersPlugin(headers, {
|
|
|
170
186
|
};
|
|
171
187
|
}
|
|
172
188
|
|
|
173
|
-
// src/plugins/
|
|
174
|
-
|
|
189
|
+
// src/plugins/rewrites.ts
|
|
190
|
+
var FARM_CONFIG_REWRITES_PLUGIN_NAME = "farm:rewrites";
|
|
191
|
+
function createRewritesPlugin(rewrites, {
|
|
175
192
|
beforeRequest: overrideBeforeRequest,
|
|
176
|
-
afterResponse: overrideAfterResponse
|
|
193
|
+
afterResponse: overrideAfterResponse,
|
|
194
|
+
i18n,
|
|
195
|
+
basePath
|
|
177
196
|
} = {}) {
|
|
197
|
+
const compiledRewrites = rewrites.map((rewrite) => ({
|
|
198
|
+
rewrite,
|
|
199
|
+
pattern: compileConfigRoutePattern(rewrite.source)
|
|
200
|
+
}));
|
|
178
201
|
return {
|
|
179
|
-
name:
|
|
180
|
-
|
|
181
|
-
for (const [key, value] of Object.entries(env)) {
|
|
182
|
-
process.env[key] = value;
|
|
183
|
-
}
|
|
184
|
-
},
|
|
202
|
+
name: FARM_CONFIG_REWRITES_PLUGIN_NAME,
|
|
203
|
+
enforce: "pre",
|
|
185
204
|
async beforeRequest(req, res, context) {
|
|
186
205
|
if (overrideBeforeRequest) {
|
|
187
206
|
await overrideBeforeRequest(req, res, context);
|
|
188
207
|
}
|
|
208
|
+
const url = resolveFarmRequestURL(req);
|
|
209
|
+
const routePath = resolveConfigRoutePathname(url.pathname, i18n, basePath);
|
|
210
|
+
const pathname = routePath.pathname;
|
|
211
|
+
for (const { rewrite, pattern } of compiledRewrites) {
|
|
212
|
+
const match = pathname.match(pattern.regex);
|
|
213
|
+
if (match) {
|
|
214
|
+
const newPath = localizeConfigRouteDestination(
|
|
215
|
+
interpolateConfigRouteDestination(rewrite.destination, match, pattern.tokens),
|
|
216
|
+
routePath.locale,
|
|
217
|
+
i18n
|
|
218
|
+
);
|
|
219
|
+
const destinationUrl = new URL(newPath, url);
|
|
220
|
+
if (!destinationUrl.search && url.search) {
|
|
221
|
+
destinationUrl.search = url.search;
|
|
222
|
+
}
|
|
223
|
+
req.url = destinationUrl.origin === url.origin ? destinationUrl.pathname + destinationUrl.search : destinationUrl.href;
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
189
227
|
},
|
|
190
228
|
async afterResponse(req, res, context) {
|
|
191
229
|
if (overrideAfterResponse) {
|
|
@@ -195,31 +233,12 @@ function createEnvPlugin(env, {
|
|
|
195
233
|
};
|
|
196
234
|
}
|
|
197
235
|
|
|
198
|
-
// src/plugins/logger.ts
|
|
199
|
-
function createLoggerPlugin({
|
|
200
|
-
beforeRequest,
|
|
201
|
-
afterResponse
|
|
202
|
-
} = {}) {
|
|
203
|
-
const plugin = {
|
|
204
|
-
name: "farm:logger",
|
|
205
|
-
enforce: "post"
|
|
206
|
-
};
|
|
207
|
-
if (beforeRequest) {
|
|
208
|
-
plugin.beforeRequest = async (req, res, context) => {
|
|
209
|
-
await beforeRequest(req, res, context);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
if (afterResponse) {
|
|
213
|
-
plugin.afterResponse = async (req, res, context) => {
|
|
214
|
-
await afterResponse(req, res, context);
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
return plugin;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
236
|
export {
|
|
237
|
+
FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
|
|
221
238
|
createRedirectsPlugin,
|
|
239
|
+
getConfigRedirectMatcher,
|
|
240
|
+
FARM_CONFIG_HEADERS_PLUGIN_NAME,
|
|
222
241
|
createHeadersPlugin,
|
|
223
|
-
|
|
224
|
-
|
|
242
|
+
FARM_CONFIG_REWRITES_PLUGIN_NAME,
|
|
243
|
+
createRewritesPlugin
|
|
225
244
|
};
|