@farm.js/core 0.1.16 → 0.1.18
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/after.cjs +12 -225
- package/dist/agent-runtime.cjs +83 -2800
- package/dist/agent-runtime.d.mts +3 -3
- package/dist/agent-runtime.d.ts +3 -3
- package/dist/api/client.cjs +17 -4026
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.mjs +3 -3
- package/dist/api/route-manager.cjs +34 -4317
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +5 -5
- package/dist/api/runtime.cjs +29 -2660
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +6 -3
- package/dist/{api-client-B-n3pm_Q.d.mts → api-client-Cx54IR5g.d.mts} +2 -2
- package/dist/{api-client-C0_NZEBl.d.ts → api-client-DykpaKcY.d.ts} +2 -2
- package/dist/api.cjs +88 -8361
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +8 -8
- package/dist/{app-AyjEsCBq.d.ts → app-BHY_10Lm.d.ts} +3 -3
- package/dist/{app-CYPHeOo_.d.mts → app-BMk0do23.d.mts} +3 -3
- package/dist/app-markdown.cjs +39 -280
- package/dist/app-markdown.d.mts +4 -4
- package/dist/app-markdown.d.ts +4 -4
- package/dist/app-markdown.mjs +3 -3
- package/dist/cache.cjs +38 -1526
- package/dist/cache.d.mts +11 -1
- package/dist/cache.d.ts +11 -1
- package/dist/cache.mjs +1 -1
- package/dist/chunk-22GUSVNJ.cjs +351 -0
- package/dist/chunk-2CQ74SP6.cjs +13 -0
- package/dist/chunk-2SJ4RQ6P.cjs +57 -0
- package/dist/chunk-3376ZTRC.cjs +1 -0
- package/dist/{chunk-IL5RWYK7.mjs → chunk-3XG26Z3J.mjs} +1 -1
- package/dist/{chunk-7HDZYYS4.mjs → chunk-4OOBRCJX.mjs} +27 -5
- package/dist/chunk-4PNUXIVU.cjs +472 -0
- package/dist/chunk-4PPEPOZZ.cjs +21 -0
- package/dist/chunk-4ZFL5GFN.cjs +520 -0
- package/dist/{chunk-B76DT5Y6.mjs → chunk-57J3Y7Y3.mjs} +1 -1
- package/dist/chunk-5OVTOKGH.cjs +65 -0
- package/dist/chunk-5QIKR7RR.cjs +224 -0
- package/dist/{chunk-MOQNHLTS.mjs → chunk-5QOEPUYE.mjs} +5 -2
- package/dist/{chunk-HKLRP3BN.mjs → chunk-5SPPCN5J.mjs} +1 -1
- package/dist/chunk-5ZSWG4UX.cjs +127 -0
- package/dist/chunk-62YJ2IEB.cjs +238 -0
- package/dist/chunk-6EODJYCX.cjs +183 -0
- package/dist/chunk-6EXBPJ24.cjs +434 -0
- package/dist/chunk-6QQDAAAZ.cjs +38 -0
- package/dist/chunk-6V4TDWEC.cjs +455 -0
- package/dist/{chunk-LUC2FAGW.mjs → chunk-6VQIKZZO.mjs} +1 -1
- package/dist/chunk-72ADZ6GQ.cjs +19 -0
- package/dist/chunk-75BRBIFP.cjs +172 -0
- package/dist/{chunk-7ZWL7XOU.mjs → chunk-76DG3LF3.mjs} +1 -1
- package/dist/chunk-7W3CPVXS.cjs +24 -0
- package/dist/chunk-A6WIQH5Z.cjs +31 -0
- package/dist/{chunk-EWDK36MM.mjs → chunk-A72YEUZ3.mjs} +1 -1
- package/dist/chunk-AFOD3LYZ.cjs +377 -0
- package/dist/chunk-AMDMVWMI.cjs +39 -0
- package/dist/chunk-AORPIPNB.cjs +552 -0
- package/dist/chunk-ARJWXNQL.cjs +256 -0
- package/dist/{chunk-ZHOIQC6U.mjs → chunk-ATERBVHQ.mjs} +2 -2
- package/dist/chunk-AWRISO2H.cjs +2199 -0
- package/dist/chunk-AYJR42WX.cjs +711 -0
- package/dist/chunk-B4CH33IG.cjs +644 -0
- package/dist/chunk-BIDYX3SL.cjs +91 -0
- package/dist/chunk-BSTRERPP.cjs +40 -0
- package/dist/chunk-BYODCJD6.cjs +663 -0
- package/dist/chunk-C3VRMB6H.cjs +85 -0
- package/dist/chunk-C5GUTBZK.cjs +173 -0
- package/dist/chunk-CIAGU2X4.cjs +337 -0
- package/dist/chunk-CMGMGHUZ.cjs +27 -0
- package/dist/chunk-CXP5U3RW.cjs +54 -0
- package/dist/chunk-D2ULAULS.cjs +166 -0
- package/dist/chunk-D7JTOLFK.cjs +285 -0
- package/dist/chunk-DVM4FKZL.cjs +169 -0
- package/dist/chunk-DYEJQTDN.cjs +49 -0
- package/dist/chunk-E2BMSZ2W.cjs +151 -0
- package/dist/chunk-E3UK5IIB.cjs +593 -0
- package/dist/chunk-EM6SBQKM.cjs +470 -0
- package/dist/{chunk-27JNCYEK.mjs → chunk-EN7WTEAY.mjs} +2 -2
- package/dist/{chunk-IGO2HEV7.mjs → chunk-F6SJAKFJ.mjs} +62 -28
- package/dist/{chunk-GSDIZACQ.mjs → chunk-FG5H2VCJ.mjs} +2 -2
- package/dist/chunk-FJSWYIR7.cjs +482 -0
- package/dist/chunk-FK6GO24V.cjs +54 -0
- package/dist/chunk-FXUUWYAX.cjs +654 -0
- package/dist/chunk-G3HRIVEY.cjs +395 -0
- package/dist/chunk-G643DQCH.cjs +13 -0
- package/dist/chunk-G7HXGLEC.cjs +175 -0
- package/dist/chunk-GDSHDTJ4.cjs +152 -0
- package/dist/chunk-GNEO2XOF.cjs +2040 -0
- package/dist/{chunk-NHHKW2T6.mjs → chunk-GYKJCFTS.mjs} +170 -52
- package/dist/chunk-H6G5INWM.cjs +1094 -0
- package/dist/chunk-HBTUGXHS.cjs +180 -0
- package/dist/chunk-HREOKQWT.cjs +45 -0
- package/dist/chunk-I4J452B7.cjs +435 -0
- package/dist/chunk-I57LW5VZ.cjs +94 -0
- package/dist/chunk-I7PUUDGY.cjs +389 -0
- package/dist/chunk-IAMRBF3Z.cjs +86 -0
- package/dist/chunk-IKNRN4VS.cjs +14214 -0
- package/dist/chunk-IQXFRNY2.cjs +169 -0
- package/dist/chunk-IXTFU4PL.cjs +2355 -0
- package/dist/chunk-J2OP5GG3.cjs +725 -0
- package/dist/chunk-J3LOGE4T.cjs +42 -0
- package/dist/chunk-J7FSKED3.cjs +93 -0
- package/dist/chunk-JDNHKPTD.cjs +22 -0
- package/dist/chunk-JSROZYYO.cjs +164 -0
- package/dist/chunk-K6FNHVDR.cjs +696 -0
- package/dist/chunk-KGZIORNL.cjs +43 -0
- package/dist/{chunk-LZK5CXDW.mjs → chunk-KLSSO6YD.mjs} +2 -2
- package/dist/{chunk-TYVVIQ5M.mjs → chunk-KPNVGRBL.mjs} +32 -25
- package/dist/chunk-KR6CKSXT.cjs +15 -0
- package/dist/chunk-KROWKCUH.cjs +185 -0
- package/dist/chunk-KVFPGF2M.cjs +46 -0
- package/dist/{chunk-KUO3GBPK.mjs → chunk-L6V3P73N.mjs} +1 -1
- package/dist/chunk-LCCBO7PJ.cjs +46 -0
- package/dist/chunk-LIUGYUX3.cjs +22 -0
- package/dist/chunk-LTNGXMQ6.cjs +55 -0
- package/dist/chunk-M2L4MYDQ.cjs +14 -0
- package/dist/chunk-MCJLA63J.cjs +1 -0
- package/dist/chunk-MKB2EGIR.cjs +148 -0
- package/dist/chunk-MQ3H6LT5.cjs +202 -0
- package/dist/chunk-MT763TDW.cjs +43 -0
- package/dist/chunk-MWSK6C4J.cjs +18 -0
- package/dist/chunk-MWWVKDW3.cjs +169 -0
- package/dist/{chunk-KTGFMHET.mjs → chunk-N6UROPT7.mjs} +1 -1
- package/dist/chunk-NO3WWW3N.cjs +192 -0
- package/dist/{chunk-NDD2YVGU.mjs → chunk-NRVGEI5I.mjs} +10 -3
- package/dist/chunk-NV3A5DXM.cjs +862 -0
- package/dist/chunk-NWOD6NIT.cjs +9 -0
- package/dist/chunk-NZKJGRB3.cjs +230 -0
- package/dist/chunk-OAVTUMJP.cjs +1496 -0
- package/dist/chunk-OHY2ZWUG.cjs +25 -0
- package/dist/chunk-OI6CMLWX.cjs +47 -0
- package/dist/chunk-OIEOCXKG.cjs +453 -0
- package/dist/chunk-OWOUTKIJ.cjs +558 -0
- package/dist/chunk-OX6O6WVA.cjs +74 -0
- package/dist/chunk-OXSIH4D6.cjs +476 -0
- package/dist/chunk-OYEUREB6.cjs +35 -0
- package/dist/chunk-PCOTGFSM.cjs +139 -0
- package/dist/chunk-PZYCPSCC.cjs +35 -0
- package/dist/chunk-QBK2AA4U.cjs +445 -0
- package/dist/chunk-QBPXNZGV.cjs +487 -0
- package/dist/{chunk-IXTEENRS.mjs → chunk-QGVJVSNX.mjs} +5 -5
- package/dist/chunk-QNPEUFHQ.cjs +27 -0
- package/dist/chunk-QZRVZSPN.cjs +236 -0
- package/dist/chunk-R5A5KNVX.cjs +20 -0
- package/dist/chunk-R5JIFR6B.cjs +42 -0
- package/dist/chunk-R6AIILII.cjs +193 -0
- package/dist/chunk-RG3ZOTG5.cjs +34 -0
- package/dist/chunk-ROUTX2E5.cjs +390 -0
- package/dist/chunk-RTHIVJ2G.cjs +54 -0
- package/dist/chunk-S3A45T7F.cjs +166 -0
- package/dist/chunk-S3JO3N4H.cjs +17 -0
- package/dist/chunk-SK35NQKK.cjs +27 -0
- package/dist/chunk-SU7MH53P.cjs +180 -0
- package/dist/chunk-SVRTJOUF.cjs +113 -0
- package/dist/chunk-SWN467MP.cjs +18 -0
- package/dist/{chunk-6SCB2MXB.mjs → chunk-SXHV42UQ.mjs} +16 -1
- package/dist/{chunk-OWTIOHON.mjs → chunk-SYGGPS4A.mjs} +2 -2
- package/dist/chunk-SYQ3MOWW.cjs +73 -0
- package/dist/chunk-T5CERMEH.cjs +417 -0
- package/dist/chunk-TFAXUHWX.cjs +206 -0
- package/dist/chunk-TIWHTW3Q.cjs +24 -0
- package/dist/chunk-TKJZFIML.cjs +20 -0
- package/dist/chunk-TKNSDBBN.cjs +193 -0
- package/dist/{chunk-NC333MFA.mjs → chunk-TSWW5BVH.mjs} +7 -4
- package/dist/chunk-TWGMSEHX.cjs +525 -0
- package/dist/chunk-TYQUSXUG.cjs +1357 -0
- package/dist/chunk-U4KT7QP3.cjs +23 -0
- package/dist/{chunk-LK6FGAQR.mjs → chunk-UDBJCUPA.mjs} +7 -4
- package/dist/chunk-UJ2C4ICS.cjs +277 -0
- package/dist/chunk-UN5GHC5V.cjs +10244 -0
- package/dist/chunk-UQZ4AYTH.cjs +168 -0
- package/dist/chunk-US2QVW3E.cjs +36 -0
- package/dist/{chunk-NUD6XBMO.mjs → chunk-UTBVHYS3.mjs} +2 -2
- package/dist/{chunk-76MNRHTS.mjs → chunk-UUYF3CHN.mjs} +2 -2
- package/dist/chunk-VB6UCX3V.cjs +421 -0
- package/dist/chunk-VEKFLAQM.cjs +300 -0
- package/dist/chunk-VQDBNVOO.cjs +14 -0
- package/dist/chunk-W4E7WMXE.cjs +71 -0
- package/dist/{chunk-VVTREAG5.mjs → chunk-WD4YXVLV.mjs} +11 -3
- package/dist/{chunk-UQZPTIML.mjs → chunk-WD5PNSOB.mjs} +2 -2
- package/dist/chunk-WJ3HK3LJ.cjs +1102 -0
- package/dist/chunk-WMAPPDMM.cjs +28 -0
- package/dist/chunk-WMOGFOUJ.cjs +223 -0
- package/dist/chunk-WPYFSQKK.cjs +37 -0
- package/dist/chunk-WZMNW2IW.cjs +1415 -0
- package/dist/chunk-XGC343EY.cjs +443 -0
- package/dist/{chunk-DPZUDPVJ.mjs → chunk-XP777LRD.mjs} +1 -1
- package/dist/chunk-XSKZORAS.cjs +727 -0
- package/dist/chunk-XWAWFQFS.cjs +82 -0
- package/dist/{chunk-KATQ6I56.mjs → chunk-XWAYMDLB.mjs} +1 -1
- package/dist/chunk-Y4YMF2NQ.cjs +460 -0
- package/dist/chunk-Y4YWHNKU.cjs +250 -0
- package/dist/chunk-Y53ZSFN6.cjs +504 -0
- package/dist/chunk-YA6LLTIJ.cjs +411 -0
- package/dist/chunk-YFPGHF5F.cjs +202 -0
- package/dist/chunk-YJRZR7VU.cjs +28 -0
- package/dist/chunk-YTAABQEV.cjs +1 -0
- package/dist/chunk-YX3DBN4M.cjs +18 -0
- package/dist/chunk-YZTASLPQ.cjs +64 -0
- package/dist/chunk-Z5HIWVDP.cjs +2173 -0
- package/dist/{chunk-Q3MDL7TM.mjs → chunk-ZCNJKLA2.mjs} +30 -11
- package/dist/chunk-ZEG3OPIB.cjs +93 -0
- package/dist/chunk-ZMN3H73H.cjs +155 -0
- package/dist/client/lifecycle.cjs +6 -35
- package/dist/{client-plugins-CqVtZi5X.d.ts → client-plugins-C089bQhN.d.ts} +2 -2
- package/dist/{client-plugins-CIPRtSsW.d.mts → client-plugins-JXXmZliS.d.mts} +2 -2
- package/dist/client-plugins.cjs +7 -448
- package/dist/client-plugins.d.mts +3 -3
- package/dist/client-plugins.d.ts +3 -3
- package/dist/client.cjs +171 -9774
- package/dist/client.d.mts +8 -8
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +6 -6
- package/dist/config.cjs +8 -36
- package/dist/config.d.mts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/cron.cjs +24 -491
- package/dist/cron.mjs +2 -2
- package/dist/deferred.cjs +26 -475
- package/dist/deployment.cjs +39 -210
- package/dist/devtools-OUIPHVV6.cjs +388 -0
- package/dist/{devtools-IU7LKZOH.mjs → devtools-UFVTMQX5.mjs} +7 -7
- package/dist/devtools-client-4WAPJY5L.cjs +254 -0
- package/dist/devtools-ui-5GBDIGMK.cjs +1296 -0
- package/dist/docs.cjs +46 -5649
- package/dist/docs.mjs +9 -9
- package/dist/{endpoint-kSAxE52R.d.ts → endpoint-1zA994xL.d.ts} +1 -1
- package/dist/{endpoint-Bu3XgeMK.d.mts → endpoint-DAc96i93.d.mts} +1 -1
- package/dist/env-types.cjs +5 -226
- package/dist/env.cjs +23 -306
- package/dist/env.d.mts +5 -3
- package/dist/env.d.ts +5 -3
- package/dist/env.mjs +2 -1
- package/dist/environment/vite.cjs +8 -372
- package/dist/environment.cjs +12 -94
- package/dist/font.cjs +13 -63
- package/dist/headers.cjs +7 -123
- package/dist/i18n/client.cjs +55 -294
- package/dist/i18n/index.cjs +22 -209
- package/dist/i18n/server.cjs +22 -745
- package/dist/image/server.cjs +13 -729
- package/dist/image/sharp.cjs +33 -171
- package/dist/image.cjs +41 -85
- package/dist/index.cjs +1151 -67862
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +34 -34
- package/dist/instrumentation.cjs +12 -138
- package/dist/integration-orm-55F7CII5.cjs +13 -0
- package/dist/integrations.cjs +55 -4090
- package/dist/integrations.d.mts +3 -3
- package/dist/integrations.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.cjs +27 -224
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +120 -52038
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +23 -23
- package/dist/internal/cli-runtime.cjs +67 -13765
- package/dist/internal/cli-runtime.mjs +13 -13
- package/dist/internal/client-error-overlay.cjs +80 -733
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +81 -913
- package/dist/internal/compression-runtime.cjs +8 -214
- package/dist/internal/compression-runtime.d.mts +3 -3
- package/dist/internal/compression-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.cjs +42 -6535
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/docs-precompiled-runtime.cjs +26 -46
- package/dist/internal/infra-analytics-runtime.cjs +10 -536
- package/dist/internal/isolated-boundary.cjs +14 -414
- package/dist/internal/metadata-image-runtime.cjs +7 -285
- package/dist/internal/product-telemetry-runtime.cjs +42 -97
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-node-env.cjs +6 -63
- package/dist/internal/production-runtime.cjs +418 -7073
- package/dist/internal/production-runtime.d.mts +9 -9
- package/dist/internal/production-runtime.d.ts +9 -9
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/internal/request-cookies.cjs +6 -54
- package/dist/json-ld.cjs +24 -50
- package/dist/layers-E4WPJNY5.cjs +17 -0
- package/dist/manager-G4B2IPYE.cjs +14 -0
- package/dist/markdown.cjs +21 -532
- package/dist/markdown.mjs +1 -1
- package/dist/{metadata-8g__AMPM.d.ts → metadata-BcNJP4fq.d.ts} +1 -1
- package/dist/{metadata-OMX6wFNf.d.mts → metadata-C1Z9vLbb.d.mts} +1 -1
- package/dist/middleware.cjs +36 -2988
- package/dist/middleware.d.mts +5 -5
- package/dist/middleware.d.ts +5 -5
- package/dist/middleware.mjs +4 -4
- package/dist/navigation.cjs +22 -2588
- package/dist/nitro-4I2MYLY2.cjs +652 -0
- package/dist/{nitro-3N4ZXRYM.mjs → nitro-CVZ36JM5.mjs} +4 -4
- package/dist/observability.cjs +22 -614
- package/dist/og.cjs +5 -28
- package/dist/plugin.cjs +106 -37291
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime-W3M0eNDV.d.mts → production-runtime-jcrTlRTb.d.mts} +1 -1
- package/dist/{production-runtime-BJh7o6Cr.d.ts → production-runtime-oKmC0WU-.d.ts} +1 -1
- package/dist/query/client.cjs +113 -449
- package/dist/query/index.cjs +26 -288
- package/dist/query/parsers.cjs +23 -247
- package/dist/query/server.cjs +36 -298
- package/dist/{render-plan-io7pvDNc.d.mts → render-plan-BLIfc4jt.d.mts} +1 -1
- package/dist/{render-plan-Be4ZGTJP.d.ts → render-plan-DOB9cV-h.d.ts} +1 -1
- package/dist/renderer/react/client.cjs +9 -43
- package/dist/renderer/react/server.cjs +40 -103
- package/dist/renderer/react/vite.cjs +7 -29
- package/dist/renderer-client.cjs +126 -4261
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +3 -3
- package/dist/renderer.cjs +31 -249
- package/dist/{request-DZkHYQ89.d.mts → request-Cr53NRHr.d.mts} +1 -1
- package/dist/{request-G8JhKr4F.d.ts → request-Dt2gNuQD.d.ts} +1 -1
- package/dist/request.cjs +5 -68
- package/dist/request.d.mts +4 -4
- package/dist/request.d.ts +4 -4
- package/dist/{route-C_eLaFTZ.d.mts → route-B0XrsrFk.d.mts} +1 -1
- package/dist/{route-BxNJT447.d.ts → route-DOEpbyWZ.d.ts} +1 -1
- package/dist/{route-rendering-BcLLPJgN.d.ts → route-rendering-CWYd8Mv1.d.ts} +1 -1
- package/dist/{route-rendering-CbAKr1TY.d.mts → route-rendering-CeFBEAoZ.d.mts} +1 -1
- package/dist/router.cjs +11 -474
- package/dist/routes.cjs +42 -2424
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +2 -2
- package/dist/schema-dev-notice-MXSZMVDG.cjs +56 -0
- package/dist/schema.cjs +6 -33
- package/dist/search-client-G3RICOFU.cjs +13 -0
- package/dist/server-action-security.cjs +25 -541
- package/dist/server-fn-client.cjs +6 -337
- package/dist/server-fn-client.d.mts +3 -3
- package/dist/server-fn-client.d.ts +3 -3
- package/dist/server-fn.cjs +32 -1799
- package/dist/server-fn.d.mts +1 -1
- package/dist/server-fn.d.ts +1 -1
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +15 -884
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-query-client.cjs +15 -1849
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query-client.mjs +4 -4
- package/dist/server-query.cjs +16 -1796
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +296 -44522
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +22 -22
- package/dist/{spa-router-BcS_4nqm.d.mts → spa-router-CQWiYGxS.d.mts} +2 -2
- package/dist/{spa-router-BzFBUJkn.d.ts → spa-router-Wjiw-8hB.d.ts} +2 -2
- package/dist/storage.cjs +57 -576
- package/dist/testing.cjs +92 -3148
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.mjs +11 -7
- package/dist/theme/client.cjs +13 -108
- package/dist/theme/index.cjs +6 -68
- package/dist/theme/runtime.cjs +13 -78
- package/dist/theme/server.cjs +10 -179
- package/dist/{utils-C4yrAhNc.d.ts → utils-B0XJmG_b.d.ts} +1 -1
- package/dist/{utils-5kQP1mFR.d.mts → utils-uUxF0K0P.d.mts} +1 -1
- package/dist/version.cjs +4 -32
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +119 -37622
- package/dist/vite.d.mts +3 -3
- package/dist/vite.d.ts +3 -3
- package/dist/vite.mjs +19 -19
- package/dist/workflows.cjs +19 -1040
- package/dist/workflows.mjs +2 -2
- package/package.json +2 -2
- package/dist/{chunk-VO5SCWF5.mjs → chunk-BNGS6KJ6.mjs} +0 -0
- package/dist/{chunk-MUUZJLCI.mjs → chunk-EGJDUF4Q.mjs} +3 -3
- package/dist/{chunk-4L7SZOHZ.mjs → chunk-YHOCRI4H.mjs} +3 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/client/document-head.ts
|
|
6
|
+
var FARM_NAVIGATION_HEAD_SELECTOR = [
|
|
7
|
+
"meta[name]",
|
|
8
|
+
"meta[property]",
|
|
9
|
+
"meta[http-equiv]",
|
|
10
|
+
"meta[charset]",
|
|
11
|
+
"meta[itemprop]",
|
|
12
|
+
'link[rel~="author"]',
|
|
13
|
+
'link[rel~="canonical"]',
|
|
14
|
+
'link[rel~="alternate"]',
|
|
15
|
+
'link[rel~="icon"]',
|
|
16
|
+
'link[rel~="apple-touch-icon"]',
|
|
17
|
+
'link[rel~="manifest"]',
|
|
18
|
+
'link[rel~="search"]',
|
|
19
|
+
'link[rel~="next"]',
|
|
20
|
+
'link[rel~="prev"]',
|
|
21
|
+
'link[rel~="publisher"]',
|
|
22
|
+
'link[rel~="license"]',
|
|
23
|
+
'link[rel~="help"]',
|
|
24
|
+
'link[rel~="me"]',
|
|
25
|
+
'link[rel~="pingback"]',
|
|
26
|
+
'link[rel~="privacy-policy"]',
|
|
27
|
+
'link[rel~="terms-of-service"]',
|
|
28
|
+
// Page and layout `metadata.jsonLd` (FARM_METADATA_ATTRIBUTE). The site-level
|
|
29
|
+
// agent JSON-LD and app-authored scripts carry no marker and stay in place.
|
|
30
|
+
'script[type="application/ld+json"][data-farm-metadata]'
|
|
31
|
+
].join(",");
|
|
32
|
+
function reconcileFarmDocumentHead(nextDocument) {
|
|
33
|
+
const nextTitle = nextDocument.querySelector("title");
|
|
34
|
+
document.title = _optionalChain([nextTitle, 'optionalAccess', _ => _.textContent]) || "";
|
|
35
|
+
document.head.querySelectorAll(FARM_NAVIGATION_HEAD_SELECTOR).forEach((node) => node.remove());
|
|
36
|
+
nextDocument.head.querySelectorAll(FARM_NAVIGATION_HEAD_SELECTOR).forEach((node) => document.head.appendChild(document.importNode(node, true)));
|
|
37
|
+
}
|
|
38
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, reconcileFarmDocumentHead, "reconcileFarmDocumentHead");
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.FARM_NAVIGATION_HEAD_SELECTOR = FARM_NAVIGATION_HEAD_SELECTOR; exports.reconcileFarmDocumentHead = reconcileFarmDocumentHead;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isAPIRouteRef,
|
|
8
8
|
resolveServerFnInvalidateTargets,
|
|
9
9
|
settleServerFnOptimisticUpdates
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L6V3P73N.mjs";
|
|
11
11
|
import {
|
|
12
12
|
notifyClientObserver
|
|
13
13
|
} from "./chunk-72AK62H5.mjs";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-5HGR3W6O.mjs";
|
|
24
24
|
import {
|
|
25
25
|
getFarmClientDataCache
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5SPPCN5J.mjs";
|
|
27
27
|
import {
|
|
28
28
|
getFarmTrailingSlashPreference
|
|
29
29
|
} from "./chunk-54UPOYFS.mjs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
compileFarmDocsAdapterEdgeManifest,
|
|
9
9
|
createFarmDocsAPIHandler
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTBVHYS3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
13
13
|
createFarmDocsHandler,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
loadFarmDocsPage,
|
|
18
18
|
resolveFarmDocsContentDir,
|
|
19
19
|
toFarmDocsMarkdownPage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5QOEPUYE.mjs";
|
|
21
21
|
import {
|
|
22
22
|
generateFarmDocsSearchClientRuntime,
|
|
23
23
|
isFarmDocsSearchEnabled,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
getDeployTargetForPreset,
|
|
32
32
|
hasCustomFarmRouteContext,
|
|
33
33
|
resolveDeployOutputPath
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QGVJVSNX.mjs";
|
|
35
35
|
import {
|
|
36
36
|
resolveFarmInstrumentationFile
|
|
37
37
|
} from "./chunk-F5D4XEAS.mjs";
|
|
@@ -59,17 +59,18 @@ import {
|
|
|
59
59
|
getClientModuleMetadata,
|
|
60
60
|
getFarmClientHydrationPlanOptions,
|
|
61
61
|
mergeFarmFontCss,
|
|
62
|
+
mergeFarmProductionViteConfig,
|
|
62
63
|
mergeFarmViteConfig,
|
|
63
64
|
resolveFarmClientCacheAdapterEntry,
|
|
64
65
|
resolveFarmIsolatedClientHydrationMode,
|
|
65
66
|
resolveFarmNotFoundComponentPath
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GYKJCFTS.mjs";
|
|
67
68
|
import {
|
|
68
69
|
findRequestBoundSourceBlockers,
|
|
69
70
|
generateFarmTypeArtifacts,
|
|
70
71
|
parseRouteRenderingDirective,
|
|
71
72
|
resolveRouteRenderingConfigFromFile
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EN7WTEAY.mjs";
|
|
73
74
|
import {
|
|
74
75
|
isFarmPreviewDeploymentEnvironment
|
|
75
76
|
} from "./chunk-BOYNDCZL.mjs";
|
|
@@ -96,19 +97,19 @@ import {
|
|
|
96
97
|
} from "./chunk-OLYK7EAK.mjs";
|
|
97
98
|
import {
|
|
98
99
|
applyFarmCspHashesToHtml
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-ZCNJKLA2.mjs";
|
|
100
101
|
import {
|
|
101
102
|
applyFarmCronVercelCrons,
|
|
102
103
|
createFarmCronCloudflareConfig,
|
|
103
104
|
mergeScheduledTasks,
|
|
104
105
|
prepareFarmCronForNitro
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-YHOCRI4H.mjs";
|
|
106
107
|
import {
|
|
107
108
|
createBundledEnv
|
|
108
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-4OOBRCJX.mjs";
|
|
109
110
|
import {
|
|
110
111
|
isFarmMarkdownPageFile
|
|
111
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-6VQIKZZO.mjs";
|
|
112
113
|
import {
|
|
113
114
|
resolveFarmMdxComponentsModulePath,
|
|
114
115
|
resolveMdxConfig
|
|
@@ -116,17 +117,17 @@ import {
|
|
|
116
117
|
import {
|
|
117
118
|
applyFarmWorkflowVercelCrons,
|
|
118
119
|
prepareFarmWorkflowsForNitro
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-EGJDUF4Q.mjs";
|
|
120
121
|
import {
|
|
121
122
|
getFarmIntegrationPluginServerRuntime,
|
|
122
123
|
getIntegrationProviders
|
|
123
124
|
} from "./chunk-JLCQGPXE.mjs";
|
|
124
125
|
import {
|
|
125
126
|
appendMiddlewareRoutePath
|
|
126
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-57J3Y7Y3.mjs";
|
|
127
128
|
import {
|
|
128
129
|
APIRouteManager
|
|
129
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-ATERBVHQ.mjs";
|
|
130
131
|
import {
|
|
131
132
|
readFarmI18nCatalogs
|
|
132
133
|
} from "./chunk-FV45CKBC.mjs";
|
|
@@ -2139,7 +2140,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2139
2140
|
}
|
|
2140
2141
|
}
|
|
2141
2142
|
try {
|
|
2142
|
-
|
|
2143
|
+
const clientViteConfig = {
|
|
2143
2144
|
root,
|
|
2144
2145
|
// Vite otherwise falls back to <root>/public, silently dropping every
|
|
2145
2146
|
// asset in a custom config.publicDir from the production client output.
|
|
@@ -2275,7 +2276,8 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2275
2276
|
"@farm.js/core/headers"
|
|
2276
2277
|
]
|
|
2277
2278
|
}
|
|
2278
|
-
}
|
|
2279
|
+
};
|
|
2280
|
+
await viteBuild(mergeFarmProductionViteConfig(clientViteConfig, config.vite));
|
|
2279
2281
|
await mergeBuiltFontCss(outputDir);
|
|
2280
2282
|
await validateClientBuildOutput(root, srcDir, outputDir);
|
|
2281
2283
|
} finally {
|
|
@@ -4621,7 +4623,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4621
4623
|
"react-dom/server"
|
|
4622
4624
|
];
|
|
4623
4625
|
try {
|
|
4624
|
-
|
|
4626
|
+
const serverViteConfig = {
|
|
4625
4627
|
root,
|
|
4626
4628
|
build: {
|
|
4627
4629
|
target: "esnext",
|
|
@@ -4782,7 +4784,8 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4782
4784
|
// Route modules and the renderer adapter must share one runtime instance.
|
|
4783
4785
|
dedupe: [...config.renderer.dedupe || []]
|
|
4784
4786
|
}
|
|
4785
|
-
}
|
|
4787
|
+
};
|
|
4788
|
+
await viteBuild(mergeFarmProductionViteConfig(serverViteConfig, config.vite));
|
|
4786
4789
|
} finally {
|
|
4787
4790
|
if (postcssConfigDir) {
|
|
4788
4791
|
try {
|
|
@@ -6990,7 +6993,7 @@ function hasLocalRequestRoute(request, routePathname) {
|
|
|
6990
6993
|
const pathname = new URL(request.url).pathname;
|
|
6991
6994
|
if (
|
|
6992
6995
|
farmOpenAPIReference &&
|
|
6993
|
-
normalizeRuntimePath(pathname) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
6996
|
+
normalizeRuntimePath(stripFarmBasePath(pathname)) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
6994
6997
|
) {
|
|
6995
6998
|
return true;
|
|
6996
6999
|
}
|
|
@@ -7026,7 +7029,7 @@ function getFarmPluginRequestOptions(request) {
|
|
|
7026
7029
|
const route = { pathname };
|
|
7027
7030
|
if (
|
|
7028
7031
|
farmOpenAPIReference &&
|
|
7029
|
-
normalizeRuntimePath(pathname) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
7032
|
+
normalizeRuntimePath(stripFarmBasePath(pathname)) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
7030
7033
|
) {
|
|
7031
7034
|
return {
|
|
7032
7035
|
kind: "docs",
|
|
@@ -7355,9 +7358,10 @@ async function handleFarmRequest(request, adapterContext) {
|
|
|
7355
7358
|
)` : "handleFarmRequestInContext(request, null, false, Date.now(), adapterContext, requestUrl)"};
|
|
7356
7359
|
${config.md?.enabled ? `const pathname = getFarmRoutePathname(requestUrl.pathname);
|
|
7357
7360
|
if (matchPageRoute(pathname)) {
|
|
7361
|
+
// The Link header advertises the public .md URL, like the head alternate.
|
|
7358
7362
|
return applyMarkdownNegotiationHeaders(response, {
|
|
7359
7363
|
config: farmMarkdownConfig,
|
|
7360
|
-
pathname,
|
|
7364
|
+
pathname: requestUrl.pathname,
|
|
7361
7365
|
});
|
|
7362
7366
|
}` : ""}
|
|
7363
7367
|
return response;
|
|
@@ -7545,7 +7549,7 @@ async function handleFarmRequestInContext(
|
|
|
7545
7549
|
if (
|
|
7546
7550
|
farmOpenAPIReference &&
|
|
7547
7551
|
farmOpenAPIReference.specRoute &&
|
|
7548
|
-
normalizeRuntimePath(pathname) === normalizeRuntimePath(farmOpenAPIReference.specRoute)
|
|
7552
|
+
normalizeRuntimePath(stripFarmBasePath(pathname)) === normalizeRuntimePath(farmOpenAPIReference.specRoute)
|
|
7549
7553
|
) {
|
|
7550
7554
|
const method = request.method.toUpperCase();
|
|
7551
7555
|
const specResponse = method === "GET" || method === "HEAD"
|
|
@@ -7569,7 +7573,7 @@ async function handleFarmRequestInContext(
|
|
|
7569
7573
|
|
|
7570
7574
|
if (
|
|
7571
7575
|
farmOpenAPIReference &&
|
|
7572
|
-
normalizeRuntimePath(pathname) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
7576
|
+
normalizeRuntimePath(stripFarmBasePath(pathname)) === normalizeRuntimePath(farmOpenAPIReference.route)
|
|
7573
7577
|
) {
|
|
7574
7578
|
const method = request.method.toUpperCase();
|
|
7575
7579
|
const response = method === "GET" || method === "HEAD"
|
|
@@ -8107,12 +8111,15 @@ async function handleFarmRequestInContext(
|
|
|
8107
8111
|
const sharedCacheControl = getRouteSharedCacheControl(route, pprCanCache);
|
|
8108
8112
|
const responseHeaders = {
|
|
8109
8113
|
"Content-Type": "text/html; charset=utf-8",
|
|
8110
|
-
"Cache-Control":
|
|
8111
|
-
? "private, no-store"
|
|
8112
|
-
: sharedCacheControl,
|
|
8114
|
+
"Cache-Control": sharedCacheControl,
|
|
8113
8115
|
...(farmFontPreloadHeader ? { "Link": farmFontPreloadHeader } : {}),
|
|
8114
8116
|
...(pprConfig.enabled ? getPPRHeaders(pprCanCache ? "miss" : "bypass", pprConfig) : {}),
|
|
8115
8117
|
};
|
|
8118
|
+
// An error status or a request-scoped render is never shareable, even when
|
|
8119
|
+
// the PPR shell headers would otherwise grant a shared max-age.
|
|
8120
|
+
if (renderedPage.stream || hasRequestScopedRender || !sharedCacheControl) {
|
|
8121
|
+
responseHeaders["Cache-Control"] = "private, no-store";
|
|
8122
|
+
}
|
|
8116
8123
|
const farmI18nSnapshot = getFarmI18nSnapshot();
|
|
8117
8124
|
let html = renderedPage.html;
|
|
8118
8125
|
|
|
@@ -10141,7 +10148,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
|
|
|
10141
10148
|
__name(resolveLegacyPageEntry, "resolveLegacyPageEntry");
|
|
10142
10149
|
async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
|
|
10143
10150
|
const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
|
|
10144
|
-
import("./nitro-
|
|
10151
|
+
import("./nitro-CVZ36JM5.mjs"),
|
|
10145
10152
|
import("nitro/builder")
|
|
10146
10153
|
]);
|
|
10147
10154
|
let nitroConfig = await createNitroConfig(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/config-entry.ts
|
|
6
|
+
function defineConfig(config) {
|
|
7
|
+
return config;
|
|
8
|
+
}
|
|
9
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, defineConfig, "defineConfig");
|
|
10
|
+
var defineFarmConfig = defineConfig;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.defineConfig = defineConfig; exports.defineFarmConfig = defineFarmConfig;
|
|
@@ -0,0 +1,185 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/client/chunk-recovery.ts
|
|
6
|
+
var DEFAULT_MAX_AGE_MS = 3e4;
|
|
7
|
+
var STORAGE_KEY_PREFIX = "farm:chunk-recovery:";
|
|
8
|
+
var CHUNK_ERROR_PATTERNS = [
|
|
9
|
+
/ChunkLoadError/i,
|
|
10
|
+
/Loading chunk [\w-]+ failed/i,
|
|
11
|
+
/Loading CSS chunk [\w-]+ failed/i,
|
|
12
|
+
/CSS_CHUNK_LOAD_FAILED/i,
|
|
13
|
+
/failed to fetch dynamically imported module/i,
|
|
14
|
+
/error loading dynamically imported module/i,
|
|
15
|
+
/importing a module script failed/i,
|
|
16
|
+
/unable to preload CSS/i,
|
|
17
|
+
/module script failed/i
|
|
18
|
+
];
|
|
19
|
+
function isChunkLoadError(errorLike) {
|
|
20
|
+
const values = collectErrorText(errorLike);
|
|
21
|
+
if (values.some((value) => CHUNK_ERROR_PATTERNS.some((pattern) => pattern.test(value)))) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
const targetUrl = getEventTargetAssetUrl(errorLike);
|
|
25
|
+
return Boolean(
|
|
26
|
+
targetUrl && /\.(?:m?js|css)(?:[?#].*)?$/i.test(targetUrl) && isSameOriginAssetUrl(targetUrl)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, isChunkLoadError, "isChunkLoadError");
|
|
30
|
+
function isSameOriginAssetUrl(url) {
|
|
31
|
+
if (typeof window === "undefined" || !window.location) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
return new URL(url, window.location.href).origin === window.location.origin;
|
|
36
|
+
} catch (e) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, isSameOriginAssetUrl, "isSameOriginAssetUrl");
|
|
41
|
+
function installChunkErrorRecovery(options = {}) {
|
|
42
|
+
if (typeof window === "undefined") {
|
|
43
|
+
return () => {
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const recover = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (errorLike) => {
|
|
47
|
+
if (!isChunkLoadError(errorLike)) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (!markRecovered(options)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
_optionalChain([options, 'access', _ => _.onRecover, 'optionalCall', _2 => _2(errorLike)]);
|
|
54
|
+
getReload(options)();
|
|
55
|
+
}, "recover");
|
|
56
|
+
const onError = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (event) => {
|
|
57
|
+
recover(getErrorEventPayload(event));
|
|
58
|
+
}, "onError");
|
|
59
|
+
const onUnhandledRejection = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (event) => {
|
|
60
|
+
recover(event.reason);
|
|
61
|
+
}, "onUnhandledRejection");
|
|
62
|
+
window.addEventListener("error", onError, true);
|
|
63
|
+
window.addEventListener("unhandledrejection", onUnhandledRejection);
|
|
64
|
+
return () => {
|
|
65
|
+
window.removeEventListener("error", onError, true);
|
|
66
|
+
window.removeEventListener("unhandledrejection", onUnhandledRejection);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, installChunkErrorRecovery, "installChunkErrorRecovery");
|
|
70
|
+
function markRecovered(options) {
|
|
71
|
+
const now = getNow(options);
|
|
72
|
+
const maxAgeMs = _nullishCoalesce(options.maxAgeMs, () => ( DEFAULT_MAX_AGE_MS));
|
|
73
|
+
const storage = getStorage(options);
|
|
74
|
+
const key = getStorageKey(options);
|
|
75
|
+
if (!storage) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
const previous = Number(storage.getItem(key));
|
|
80
|
+
if (Number.isFinite(previous) && previous > 0 && now - previous < maxAgeMs) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
storage.setItem(key, String(now));
|
|
84
|
+
return true;
|
|
85
|
+
} catch (e2) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, markRecovered, "markRecovered");
|
|
90
|
+
function getErrorEventPayload(event) {
|
|
91
|
+
if ("error" in event && event.error) {
|
|
92
|
+
return event.error;
|
|
93
|
+
}
|
|
94
|
+
if ("message" in event && event.message) {
|
|
95
|
+
return event.message;
|
|
96
|
+
}
|
|
97
|
+
return event;
|
|
98
|
+
}
|
|
99
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getErrorEventPayload, "getErrorEventPayload");
|
|
100
|
+
function collectErrorText(value, seen = /* @__PURE__ */ new Set()) {
|
|
101
|
+
if (value == null || seen.has(value)) {
|
|
102
|
+
return [];
|
|
103
|
+
}
|
|
104
|
+
seen.add(value);
|
|
105
|
+
if (typeof value === "string") {
|
|
106
|
+
return [value];
|
|
107
|
+
}
|
|
108
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
109
|
+
return [String(value)];
|
|
110
|
+
}
|
|
111
|
+
if (typeof value !== "object") {
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
114
|
+
const record = value;
|
|
115
|
+
const output = [];
|
|
116
|
+
for (const key of ["name", "message", "code", "type", "request", "src", "href"]) {
|
|
117
|
+
const candidate = record[key];
|
|
118
|
+
if (typeof candidate === "string") {
|
|
119
|
+
output.push(candidate);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if ("reason" in record) {
|
|
123
|
+
output.push(...collectErrorText(record.reason, seen));
|
|
124
|
+
}
|
|
125
|
+
if ("error" in record) {
|
|
126
|
+
output.push(...collectErrorText(record.error, seen));
|
|
127
|
+
}
|
|
128
|
+
return output;
|
|
129
|
+
}
|
|
130
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, collectErrorText, "collectErrorText");
|
|
131
|
+
function getEventTargetAssetUrl(value) {
|
|
132
|
+
if (!value || typeof value !== "object") {
|
|
133
|
+
return void 0;
|
|
134
|
+
}
|
|
135
|
+
const target = value.target;
|
|
136
|
+
if (!target || typeof target !== "object") {
|
|
137
|
+
return void 0;
|
|
138
|
+
}
|
|
139
|
+
const tagName = typeof target.tagName === "string" ? target.tagName.toLowerCase() : "";
|
|
140
|
+
if (tagName !== "script" && tagName !== "link") {
|
|
141
|
+
return void 0;
|
|
142
|
+
}
|
|
143
|
+
return typeof target.src === "string" && target.src ? target.src : typeof target.href === "string" && target.href ? target.href : void 0;
|
|
144
|
+
}
|
|
145
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getEventTargetAssetUrl, "getEventTargetAssetUrl");
|
|
146
|
+
function getStorage(options) {
|
|
147
|
+
if ("storage" in options) {
|
|
148
|
+
return options.storage;
|
|
149
|
+
}
|
|
150
|
+
try {
|
|
151
|
+
return window.sessionStorage;
|
|
152
|
+
} catch (e3) {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getStorage, "getStorage");
|
|
157
|
+
function getStorageKey(options) {
|
|
158
|
+
if (options.storageKey) {
|
|
159
|
+
return options.storageKey;
|
|
160
|
+
}
|
|
161
|
+
const location = getLocation(options);
|
|
162
|
+
return `${STORAGE_KEY_PREFIX}${location.pathname}${location.search}`;
|
|
163
|
+
}
|
|
164
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getStorageKey, "getStorageKey");
|
|
165
|
+
function getLocation(options) {
|
|
166
|
+
return _nullishCoalesce(options.location, () => ( window.location));
|
|
167
|
+
}
|
|
168
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getLocation, "getLocation");
|
|
169
|
+
function getReload(options) {
|
|
170
|
+
if (options.reload) {
|
|
171
|
+
return options.reload;
|
|
172
|
+
}
|
|
173
|
+
const location = getLocation(options);
|
|
174
|
+
return () => location.reload();
|
|
175
|
+
}
|
|
176
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getReload, "getReload");
|
|
177
|
+
function getNow(options) {
|
|
178
|
+
return options.now ? options.now() : Date.now();
|
|
179
|
+
}
|
|
180
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getNow, "getNow");
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
exports.isChunkLoadError = isChunkLoadError; exports.installChunkErrorRecovery = installChunkErrorRecovery;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk62YJ2IEBcjs = require('./chunk-62YJ2IEB.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkWJ3HK3LJcjs = require('./chunk-WJ3HK3LJ.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkI57LW5VZcjs = require('./chunk-I57LW5VZ.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
13
|
+
|
|
14
|
+
// src/navigation.ts
|
|
15
|
+
function useRouter2() {
|
|
16
|
+
const router = _chunk62YJ2IEBcjs.useRouter.call(void 0, );
|
|
17
|
+
return {
|
|
18
|
+
push: router.push,
|
|
19
|
+
replace: router.replace,
|
|
20
|
+
back: router.back,
|
|
21
|
+
forward: router.forward,
|
|
22
|
+
refresh() {
|
|
23
|
+
if (typeof window === "undefined") return Promise.resolve();
|
|
24
|
+
return _chunkWJ3HK3LJcjs.getRouter.call(void 0, ).refresh();
|
|
25
|
+
},
|
|
26
|
+
prefetch(href) {
|
|
27
|
+
if (typeof window === "undefined") return Promise.resolve();
|
|
28
|
+
return _chunkWJ3HK3LJcjs.getRouter.call(void 0, ).prefetch(_chunkI57LW5VZcjs.applyFarmBasePath.call(void 0, href));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, useRouter2, "useRouter");
|
|
33
|
+
function usePathname() {
|
|
34
|
+
return _chunk62YJ2IEBcjs.useRouter.call(void 0, ).pathname;
|
|
35
|
+
}
|
|
36
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, usePathname, "usePathname");
|
|
37
|
+
function useSearchParams() {
|
|
38
|
+
return _chunk62YJ2IEBcjs.useRouter.call(void 0, ).searchParams;
|
|
39
|
+
}
|
|
40
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, useSearchParams, "useSearchParams");
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.useRouter = useRouter2; exports.usePathname = usePathname; exports.useSearchParams = useSearchParams;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkWMOGFOUJcjs = require('./chunk-WMOGFOUJ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
7
|
+
|
|
8
|
+
// src/query/params.ts
|
|
9
|
+
function parseParam(input, key, parser) {
|
|
10
|
+
const values = input instanceof URLSearchParams ? input.getAll(key) : [_nullishCoalesce(input[key], () => ( ""))];
|
|
11
|
+
return {
|
|
12
|
+
raw: values.length > 1 ? values.join(",") : _nullishCoalesce(values[0], () => ( "")),
|
|
13
|
+
parsed: _chunkWMOGFOUJcjs.parseQueryParameter.call(void 0, parser, values)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, parseParam, "parseParam");
|
|
17
|
+
async function loadRouteParams(input, parsers, options = {}) {
|
|
18
|
+
const resolved = await Promise.resolve(input);
|
|
19
|
+
const result = {};
|
|
20
|
+
for (const [key, parser] of Object.entries(parsers)) {
|
|
21
|
+
const { raw, parsed } = parseParam(resolved, key, parser);
|
|
22
|
+
if (parsed === null && options.strict) {
|
|
23
|
+
throw new Error(`Failed to parse route param "${key}" with value "${raw}"`);
|
|
24
|
+
}
|
|
25
|
+
result[key] = parsed;
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, loadRouteParams, "loadRouteParams");
|
|
30
|
+
function parseRouteParams(input, parsers, options = {}) {
|
|
31
|
+
const result = {};
|
|
32
|
+
for (const [key, parser] of Object.entries(parsers)) {
|
|
33
|
+
const { raw, parsed } = parseParam(input, key, parser);
|
|
34
|
+
if (parsed === null && options.strict) {
|
|
35
|
+
throw new Error(`Failed to parse route param "${key}" with value "${raw}"`);
|
|
36
|
+
}
|
|
37
|
+
result[key] = parsed;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, parseRouteParams, "parseRouteParams");
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.loadRouteParams = loadRouteParams; exports.parseRouteParams = parseRouteParams;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/i18n/bridge.ts
|
|
6
|
+
var FARM_I18N_SNAPSHOT_RESOLVER = /* @__PURE__ */ Symbol.for("farm.i18n.snapshotResolver");
|
|
7
|
+
function _setFarmI18nSnapshotResolver(resolver) {
|
|
8
|
+
globalThis[FARM_I18N_SNAPSHOT_RESOLVER] = resolver;
|
|
9
|
+
}
|
|
10
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, _setFarmI18nSnapshotResolver, "_setFarmI18nSnapshotResolver");
|
|
11
|
+
function getActiveFarmI18nSnapshot() {
|
|
12
|
+
if (typeof window !== "undefined" && window.__FARM_I18N__) {
|
|
13
|
+
return window.__FARM_I18N__;
|
|
14
|
+
}
|
|
15
|
+
return _optionalChain([globalThis, 'access', _ => _[FARM_I18N_SNAPSHOT_RESOLVER], 'optionalCall', _2 => _2()]);
|
|
16
|
+
}
|
|
17
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getActiveFarmI18nSnapshot, "getActiveFarmI18nSnapshot");
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports._setFarmI18nSnapshotResolver = _setFarmI18nSnapshotResolver; exports.getActiveFarmI18nSnapshot = getActiveFarmI18nSnapshot;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/client-observers.ts
|
|
6
|
+
function notifyClientObserver(observer, args, label = "Client lifecycle") {
|
|
7
|
+
if (!observer) return;
|
|
8
|
+
const report = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (error) => {
|
|
9
|
+
const reportError = globalThis.reportError;
|
|
10
|
+
if (typeof reportError === "function") {
|
|
11
|
+
try {
|
|
12
|
+
reportError.call(globalThis, error);
|
|
13
|
+
return;
|
|
14
|
+
} catch (e) {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
console.error(`[Farm.js] ${label} callback failed:`, error);
|
|
19
|
+
} catch (e2) {
|
|
20
|
+
}
|
|
21
|
+
}, "report");
|
|
22
|
+
try {
|
|
23
|
+
const result = observer(...args);
|
|
24
|
+
if (result && typeof result.then === "function")
|
|
25
|
+
void Promise.resolve(result).catch(report);
|
|
26
|
+
} catch (error) {
|
|
27
|
+
report(error);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, notifyClientObserver, "notifyClientObserver");
|
|
31
|
+
|
|
32
|
+
// src/client-retry.ts
|
|
33
|
+
var MAX_TIMER_DELAY = 2147483647;
|
|
34
|
+
function resolveClientRetryCount(value) {
|
|
35
|
+
const count = _nullishCoalesce(value, () => ( 0));
|
|
36
|
+
if (!Number.isSafeInteger(count) || count < 0) {
|
|
37
|
+
throw new RangeError("retry.count must be a non-negative safe integer");
|
|
38
|
+
}
|
|
39
|
+
return count;
|
|
40
|
+
}
|
|
41
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveClientRetryCount, "resolveClientRetryCount");
|
|
42
|
+
function resolveClientRetryDelay(value) {
|
|
43
|
+
const delay = _nullishCoalesce(value, () => ( 0));
|
|
44
|
+
if (!Number.isFinite(delay) || delay < 0 || delay > MAX_TIMER_DELAY) {
|
|
45
|
+
throw new RangeError(`retry.delay must be between 0 and ${MAX_TIMER_DELAY} milliseconds`);
|
|
46
|
+
}
|
|
47
|
+
return delay;
|
|
48
|
+
}
|
|
49
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveClientRetryDelay, "resolveClientRetryDelay");
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.notifyClientObserver = notifyClientObserver; exports.resolveClientRetryCount = resolveClientRetryCount; exports.resolveClientRetryDelay = resolveClientRetryDelay;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/cli-colors.ts
|
|
6
|
+
var _picocolors = require('picocolors'); var _picocolors2 = _interopRequireDefault(_picocolors);
|
|
7
|
+
function createCliColors(interactive = process.stdout.isTTY === true) {
|
|
8
|
+
return _picocolors2.default.createColors(interactive);
|
|
9
|
+
}
|
|
10
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, createCliColors, "createCliColors");
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.createCliColors = createCliColors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|