@farm.js/core 0.1.76 → 0.1.78
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 +1 -1
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
- package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
- package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
- package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-KVTUYGTT.cjs +16 -0
- package/dist/{analyzer-NLQKPN74.mjs → analyzer-M2BG6QYU.mjs} +3 -3
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +1 -1
- package/dist/api/node.d.mts +4 -4
- package/dist/api/node.d.ts +4 -4
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
- package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +1 -1
- package/dist/{app.d-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
- package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
- package/dist/cache.cjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
- package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
- package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
- package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
- package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
- package/dist/{chunk-WILPJVQE.cjs → chunk-5KISFWD2.cjs} +4 -4
- package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
- package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
- package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
- package/dist/{chunk-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
- package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
- package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
- package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
- package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
- package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
- package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
- package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
- package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
- package/dist/chunk-DS2KZ5BT.mjs +16 -0
- package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
- package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
- package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
- package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
- package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
- package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
- package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
- package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
- package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
- package/dist/{chunk-2JEXQAIR.cjs → chunk-IWGGRXD2.cjs} +2 -2
- package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
- package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
- package/dist/{chunk-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
- package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
- package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
- package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
- package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
- package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
- package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
- package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
- package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
- package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
- package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
- package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
- package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
- package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
- package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
- package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
- package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
- package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
- package/dist/chunk-XRRHPBG2.cjs +16 -0
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
- package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
- package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
- package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
- package/dist/client/lifecycle.cjs +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
- package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
- package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +1 -1
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +1 -1
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +1 -1
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
- package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
- package/dist/{devtools-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
- package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
- package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
- package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
- package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
- package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
- package/dist/docs.cjs +8 -7
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +7 -6
- package/dist/env-types.cjs +1 -1
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +6 -5
- package/dist/environment/vite.mjs +5 -4
- package/dist/environment.cjs +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +1 -1
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
- package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
- package/dist/{headers.d-D-OvGikv.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +1 -1
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +1 -1
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +1 -1
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +44 -39
- package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
- package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +40 -35
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +5 -4
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +4 -3
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +1 -1
- 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 +1 -1
- package/dist/internal/build-runtime.cjs +30 -29
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +29 -28
- package/dist/internal/cli-runtime.cjs +17 -14
- package/dist/internal/cli-runtime.d.mts +9 -8
- package/dist/internal/cli-runtime.d.ts +9 -8
- package/dist/internal/cli-runtime.mjs +17 -14
- package/dist/internal/client-error-overlay.cjs +5 -5
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.cjs +3 -3
- package/dist/internal/compression-runtime.d.mts +6 -3
- package/dist/internal/compression-runtime.d.ts +6 -3
- package/dist/internal/compression-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +8 -7
- 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 -6
- package/dist/internal/desktop-guard.cjs +1 -1
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +1 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +1 -1
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +1 -1
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +1 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-boot.cjs +27 -6
- package/dist/internal/islands-boot.mjs +24 -3
- package/dist/internal/islands-runtime.cjs +1 -1
- package/dist/internal/islands-runtime.mjs +1 -1
- package/dist/internal/islands-server.cjs +1 -1
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +1 -1
- package/dist/internal/islx-react.cjs +1 -1
- package/dist/internal/islx-server.cjs +1 -1
- package/dist/internal/isolated-boundary.cjs +1 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +1 -1
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +1 -1
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +8 -7
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +7 -6
- package/dist/internal/react-cache.cjs +1 -1
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/request-cookies.cjs +1 -1
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +1 -1
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +1 -1
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/start-manifest.cjs +1 -1
- package/dist/internal/start-manifest.d.mts +2 -2
- package/dist/internal/start-manifest.d.ts +2 -2
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/json-ld.cjs +1 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/{layers-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
- package/dist/layers-HMEGUEXM.cjs +21 -0
- package/dist/libsql-http-2QD224YS.mjs +600 -0
- package/dist/libsql-http-M6LMNXCN.cjs +600 -0
- package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
- package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.mjs +4 -4
- package/dist/mobile.cjs +1 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
- package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
- package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
- package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
- package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
- package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
- package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
- package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
- package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
- package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
- package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +1 -1
- package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
- package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
- package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
- package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
- package/dist/observability.cjs +1 -1
- package/dist/observability.mjs +1 -1
- package/dist/og.cjs +1 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
- package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
- package/dist/plugin.cjs +23 -22
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +22 -21
- package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
- package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
- package/dist/query/client.cjs +1 -1
- package/dist/query/client.mjs +1 -1
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +1 -1
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +1 -1
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
- package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +1 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +1 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +1 -1
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +1 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/{request.d-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
- package/dist/{request.d-Be9rWboC.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
- package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
- package/dist/{router.d-VxTgLGxN.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
- package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
- package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
- package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
- package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
- package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
- package/dist/safe-fetch.cjs +1 -1
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
- package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
- package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
- package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
- package/dist/server-fn-client.cjs +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +1 -1
- package/dist/server-fn.mjs +1 -1
- package/dist/server-plugins.cjs +3 -3
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +2 -2
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +1 -1
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +99 -72
- package/dist/server.d.mts +13 -13
- package/dist/server.d.ts +13 -13
- package/dist/server.mjs +57 -30
- package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
- package/dist/session-H4TWP73H.cjs +24 -0
- package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
- package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
- package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
- package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
- package/dist/storage.cjs +8 -3
- package/dist/storage.d.mts +260 -38
- package/dist/storage.d.ts +260 -38
- package/dist/storage.mjs +7 -2
- package/dist/testing.cjs +4 -4
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +4 -4
- package/dist/theme/client.cjs +1 -1
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +1 -1
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +1 -1
- package/dist/theme/server.mjs +1 -1
- package/dist/{types.d-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
- package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
- package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
- package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +23 -22
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +22 -21
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +4 -6
- package/dist/analyzer-KFJGYJS7.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/layers-7P4RLKVX.cjs +0 -20
- package/dist/session-ACVUJ5XV.cjs +0 -23
- package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
- package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
- package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
- package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
- package/dist/{chunk-6MNDFNZW.mjs → chunk-JKFN3YVG.mjs} +0 -0
- package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
- package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
- package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
|
@@ -1,4 +1,8 @@
|
|
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; } async function _asyncOptionalChain(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 = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; } async function _asyncOptionalChain(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 = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
|
|
4
|
+
|
|
5
|
+
// src/storage/managed-sqlite.ts
|
|
2
6
|
function managedSqliteName(mount, managed) {
|
|
3
7
|
const name = managed === true ? mount : managed && typeof managed === "object" && "name" in managed ? managed.name : void 0;
|
|
4
8
|
if (typeof name !== "string" || !/^[a-z][a-z0-9-]{0,62}$/.test(name))
|
|
@@ -14,7 +18,7 @@ function secureUrl(value) {
|
|
|
14
18
|
throw new Error("Use HTTPS or a loopback URL for Farm managed SQLite.");
|
|
15
19
|
return url;
|
|
16
20
|
}
|
|
17
|
-
async function requestSqliteResource(name, operation) {
|
|
21
|
+
async function requestSqliteResource(name, operation, declarations) {
|
|
18
22
|
const key = process.env.FARMJS_API_KEY;
|
|
19
23
|
if (!key) throw new Error("Set FARMJS_API_KEY on the server to access managed SQLite.");
|
|
20
24
|
const base = secureUrl(process.env.FARMJS_API_URL || "https://app.farmjs.dev");
|
|
@@ -29,7 +33,7 @@ async function requestSqliteResource(name, operation) {
|
|
|
29
33
|
const response = await fetch(new URL("/api/storage/sqlite/" + operation, base), {
|
|
30
34
|
method: operation === "token" ? "POST" : "PUT",
|
|
31
35
|
headers,
|
|
32
|
-
body: JSON.stringify({ name }),
|
|
36
|
+
body: JSON.stringify(operation === "provision" ? { name, declarations } : { name }),
|
|
33
37
|
redirect: "error",
|
|
34
38
|
signal: AbortSignal.timeout(15e3)
|
|
35
39
|
});
|
|
@@ -75,7 +79,8 @@ async function connect(name, loadClient) {
|
|
|
75
79
|
});
|
|
76
80
|
}
|
|
77
81
|
var databaseAccessor = /* @__PURE__ */ Symbol.for("farmjs.storage.managedDatabase");
|
|
78
|
-
|
|
82
|
+
var mountSchema = /* @__PURE__ */ Symbol.for("farmjs.storage.managedSchema");
|
|
83
|
+
function managedSqliteDriver(name, loadClient, schema) {
|
|
79
84
|
let pending;
|
|
80
85
|
let initialized;
|
|
81
86
|
let closed = false;
|
|
@@ -100,6 +105,7 @@ function managedSqliteDriver(name, loadClient) {
|
|
|
100
105
|
return {
|
|
101
106
|
name: "farm-managed-sqlite",
|
|
102
107
|
[databaseAccessor]: client,
|
|
108
|
+
[mountSchema]: schema,
|
|
103
109
|
async hasItem(key) {
|
|
104
110
|
return (await (await kv()).execute({ sql: "SELECT 1 FROM _farm_kv WHERE key=?", args: [key] })).rows.length > 0;
|
|
105
111
|
},
|
|
@@ -287,6 +293,7 @@ function extractDriverOptions(config) {
|
|
|
287
293
|
client: _client,
|
|
288
294
|
driver: _driver,
|
|
289
295
|
mounts: _mounts,
|
|
296
|
+
managed: _managed,
|
|
290
297
|
options,
|
|
291
298
|
tableName: _tableName,
|
|
292
299
|
...inlineOptions
|
|
@@ -332,14 +339,16 @@ async function resolveDriver(config, mount) {
|
|
|
332
339
|
if (config && isStorageClient(config)) {
|
|
333
340
|
return config.resolveDriver();
|
|
334
341
|
}
|
|
335
|
-
|
|
342
|
+
const hosted = resolveManagedStorageMount(config);
|
|
343
|
+
if (hosted) {
|
|
336
344
|
if (!mount) throw new TypeError("Register managed SQLite in storage.mounts.");
|
|
337
345
|
return managedSqliteDriver(
|
|
338
|
-
managedSqliteName(mount,
|
|
339
|
-
() =>
|
|
346
|
+
managedSqliteName(mount, hosted.managed),
|
|
347
|
+
() => import("./libsql-http-M6LMNXCN.cjs"),
|
|
348
|
+
hosted.schema
|
|
340
349
|
);
|
|
341
350
|
}
|
|
342
|
-
const driverInput = _nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
351
|
+
const driverInput = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.driver]), () => ( "memory"));
|
|
343
352
|
if (typeof driverInput === "function") {
|
|
344
353
|
return await driverInput();
|
|
345
354
|
}
|
|
@@ -421,12 +430,17 @@ function createStorageClientFromResolver(resolveDriver2, modules = []) {
|
|
|
421
430
|
function defineStorageClient(resolveDriver2) {
|
|
422
431
|
return createStorageClientFromResolver(resolveDriver2);
|
|
423
432
|
}
|
|
424
|
-
function
|
|
433
|
+
function configuredStorageClient(config) {
|
|
434
|
+
const hosted = resolveManagedStorageMount(config);
|
|
435
|
+
if (hosted) return hosted;
|
|
425
436
|
return createStorageClientFromResolver(
|
|
426
437
|
() => resolveDriver(config),
|
|
427
438
|
_collectFarmStorageModules(config)
|
|
428
439
|
);
|
|
429
440
|
}
|
|
441
|
+
function createStorageClient(config) {
|
|
442
|
+
return configuredStorageClient(config);
|
|
443
|
+
}
|
|
430
444
|
function driverStorage(driver) {
|
|
431
445
|
return defineStorageClient(() => typeof driver === "function" ? driver() : driver);
|
|
432
446
|
}
|
|
@@ -440,105 +454,96 @@ function databaseStorage(database, options = {}) {
|
|
|
440
454
|
return driver;
|
|
441
455
|
}, ["unstorage/drivers/db0"]);
|
|
442
456
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
function localStorage(options = {}) {
|
|
447
|
-
return createStorageClient({
|
|
448
|
-
driver: "local",
|
|
449
|
-
...options
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
function sqliteStorage(options) {
|
|
453
|
-
if ("managed" in options) {
|
|
454
|
-
if (Object.keys(options).some((key) => key !== "managed"))
|
|
455
|
-
throw new TypeError("Supply only managed when Farm provisions SQLite.");
|
|
456
|
-
if (options.managed !== true) managedSqliteName("", options.managed);
|
|
457
|
-
return { driver: "farm-managed-sqlite", managed: options.managed };
|
|
457
|
+
function assertMountSchema(schema) {
|
|
458
|
+
if (schema !== void 0 && !_chunkXRRHPBG2cjs.isMountSchema.call(void 0, schema)) {
|
|
459
|
+
throw new TypeError("Pass a schema created with defineSchema() from @farming-labs/orm.");
|
|
458
460
|
}
|
|
459
|
-
return createStorageClient({
|
|
460
|
-
driver: "sqlite",
|
|
461
|
-
...options
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
function mysqlStorage(options) {
|
|
465
|
-
return createStorageClient({
|
|
466
|
-
driver: "mysql",
|
|
467
|
-
...options
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
function mysql2Storage(options) {
|
|
471
|
-
return mysqlStorage(options);
|
|
472
|
-
}
|
|
473
|
-
function postgresStorage(options) {
|
|
474
|
-
return createStorageClient({
|
|
475
|
-
driver: "postgres",
|
|
476
|
-
...options
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
function pgStorage(options) {
|
|
480
|
-
return postgresStorage(options);
|
|
481
|
-
}
|
|
482
|
-
function pgliteStorage(options) {
|
|
483
|
-
return createStorageClient({
|
|
484
|
-
driver: "pglite",
|
|
485
|
-
...options
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
function planetscaleStorage(options) {
|
|
489
|
-
return createStorageClient({
|
|
490
|
-
driver: "planetscale",
|
|
491
|
-
...options
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
function libsqlStorage(options) {
|
|
495
|
-
return createStorageClient({
|
|
496
|
-
driver: "libsql",
|
|
497
|
-
...options
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
function redisStorage(options) {
|
|
501
|
-
return createStorageClient({
|
|
502
|
-
driver: "redis",
|
|
503
|
-
...options
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
function s3Storage(options) {
|
|
507
|
-
return createStorageClient({
|
|
508
|
-
driver: "s3",
|
|
509
|
-
...options
|
|
510
|
-
});
|
|
511
461
|
}
|
|
512
|
-
function
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
462
|
+
function farmStorage(options = {}) {
|
|
463
|
+
if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some((key) => key !== "namespace" && key !== "managed" && key !== "schema"))
|
|
464
|
+
throw new TypeError(
|
|
465
|
+
"Use farmStorage() or pass only the `managed`, `namespace`, and `schema` options."
|
|
466
|
+
);
|
|
467
|
+
if (options.managed !== void 0 && options.managed !== true)
|
|
468
|
+
throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
|
|
469
|
+
assertMountSchema(options.schema);
|
|
470
|
+
return createManagedMount(options.namespace, options.schema, "farm");
|
|
471
|
+
}
|
|
472
|
+
function createManagedMount(namespace, schema, declaredDriver) {
|
|
473
|
+
const managed = namespace === void 0 ? true : { name: namespace };
|
|
474
|
+
if (managed !== true) managedSqliteName("", managed);
|
|
475
|
+
return {
|
|
476
|
+
driver: "farm-managed-sqlite",
|
|
477
|
+
managed,
|
|
478
|
+
...declaredDriver && { declaredDriver },
|
|
479
|
+
...schema && { schema }
|
|
480
|
+
};
|
|
523
481
|
}
|
|
524
|
-
function
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
482
|
+
function resolveManagedStorageMount(config) {
|
|
483
|
+
if (!config || typeof config !== "object") return;
|
|
484
|
+
if ("schema" in config && _chunkXRRHPBG2cjs.isMountSchema.call(void 0, config.schema) && (!("managed" in config) || !config.managed)) {
|
|
485
|
+
throw new TypeError(
|
|
486
|
+
"Set `managed: true` or use farmStorage({ schema }) to bind an ORM schema."
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
if (!("managed" in config)) {
|
|
490
|
+
if ("driver" in config && config.driver === "farm-managed-sqlite")
|
|
491
|
+
throw new TypeError("Set `managed` to true on a hosted storage mount.");
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
const { driver, managed, ...options } = config;
|
|
495
|
+
if ((managed === false || managed === void 0) && driver !== "farm-managed-sqlite") return;
|
|
496
|
+
if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
|
|
497
|
+
throw new TypeError("Select a built-in storage driver to use `managed: true`.");
|
|
498
|
+
const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
|
|
499
|
+
if (driver === "farm-managed-sqlite") {
|
|
500
|
+
delete options.declaredDriver;
|
|
501
|
+
if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
|
|
502
|
+
throw new TypeError("Use a known storage driver in the managed mount descriptor.");
|
|
503
|
+
}
|
|
504
|
+
if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
|
|
505
|
+
throw new TypeError(
|
|
506
|
+
"Remove provider connection settings and driver options when using `managed: true`."
|
|
507
|
+
);
|
|
508
|
+
assertMountSchema(options.schema);
|
|
509
|
+
let namespace;
|
|
510
|
+
if (managed === true) namespace = options.namespace;
|
|
511
|
+
else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
|
|
512
|
+
namespace = managedSqliteName("", managed);
|
|
513
|
+
else
|
|
514
|
+
throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
|
|
515
|
+
return createManagedMount(
|
|
516
|
+
namespace,
|
|
517
|
+
options.schema,
|
|
518
|
+
typeof declaredDriver === "string" ? declaredDriver : void 0
|
|
519
|
+
);
|
|
529
520
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
532
|
-
driver: "vercel-kv",
|
|
533
|
-
...options
|
|
534
|
-
});
|
|
521
|
+
function isHostedDriver(driver) {
|
|
522
|
+
return typeof driver === "string" && (driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(_unstorage.builtinDrivers, driver));
|
|
535
523
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
538
|
-
driver
|
|
539
|
-
|
|
540
|
-
|
|
524
|
+
function providerStorage(driver) {
|
|
525
|
+
function storage(options) {
|
|
526
|
+
return configuredStorageClient({ ...options, driver });
|
|
527
|
+
}
|
|
528
|
+
return storage;
|
|
541
529
|
}
|
|
530
|
+
var memoryStorage = providerStorage("memory");
|
|
531
|
+
var localStorage = providerStorage("local");
|
|
532
|
+
var sqliteStorage = providerStorage("sqlite");
|
|
533
|
+
var mysqlStorage = providerStorage("mysql");
|
|
534
|
+
var mysql2Storage = mysqlStorage;
|
|
535
|
+
var postgresStorage = providerStorage("postgres");
|
|
536
|
+
var pgStorage = postgresStorage;
|
|
537
|
+
var pgliteStorage = providerStorage("pglite");
|
|
538
|
+
var planetscaleStorage = providerStorage("planetscale");
|
|
539
|
+
var libsqlStorage = providerStorage("libsql");
|
|
540
|
+
var redisStorage = providerStorage("redis");
|
|
541
|
+
var s3Storage = providerStorage("s3");
|
|
542
|
+
var mongodbStorage = providerStorage("mongodb");
|
|
543
|
+
var upstashStorage = providerStorage("upstash");
|
|
544
|
+
var netlifyBlobsStorage = providerStorage("netlify-blobs");
|
|
545
|
+
var vercelKVStorage = providerStorage("vercel-kv");
|
|
546
|
+
var vercelBlobStorage = providerStorage("vercel-blob");
|
|
542
547
|
function collectDriverModules(config, modules) {
|
|
543
548
|
if (!config || typeof config !== "object") return;
|
|
544
549
|
if (isStorageClient(config)) {
|
|
@@ -549,10 +554,8 @@ function collectDriverModules(config, modules) {
|
|
|
549
554
|
if (isStorageInstance(config)) return;
|
|
550
555
|
const source = config;
|
|
551
556
|
const driver = source.driver;
|
|
552
|
-
if (typeof driver === "string") {
|
|
553
|
-
if (driver
|
|
554
|
-
modules.add("@libsql/client/http");
|
|
555
|
-
} else if (isDatabaseDriverName(driver)) {
|
|
557
|
+
if (typeof driver === "string" && !resolveManagedStorageMount(config)) {
|
|
558
|
+
if (isDatabaseDriverName(driver)) {
|
|
556
559
|
modules.add("db0");
|
|
557
560
|
modules.add(DATABASE_CONNECTORS[driver].module);
|
|
558
561
|
modules.add("unstorage/drivers/db0");
|
|
@@ -629,7 +632,9 @@ async function getDatabase(name, options) {
|
|
|
629
632
|
"Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
|
|
630
633
|
);
|
|
631
634
|
const client = await driver[databaseAccessor]();
|
|
632
|
-
|
|
635
|
+
if (options && "raw" in options) return client;
|
|
636
|
+
const schema = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _9 => _9.schema]), () => ( driver[mountSchema]));
|
|
637
|
+
return schema ? managedOrm(client, schema) : client;
|
|
633
638
|
}
|
|
634
639
|
function getStorage(namespace) {
|
|
635
640
|
globalStorage = getActiveGlobalStorage();
|
|
@@ -726,4 +731,6 @@ async function disposeStorage() {
|
|
|
726
731
|
|
|
727
732
|
|
|
728
733
|
|
|
729
|
-
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
exports.managedSqliteName = managedSqliteName; exports.requestSqliteResource = requestSqliteResource; exports._registerFarmStorageModules = _registerFarmStorageModules; exports.defineStorageClient = defineStorageClient; exports.createStorageClient = createStorageClient; exports.driverStorage = driverStorage; exports.databaseStorage = databaseStorage; exports.farmStorage = farmStorage; exports.resolveManagedStorageMount = resolveManagedStorageMount; exports.memoryStorage = memoryStorage; exports.localStorage = localStorage; exports.sqliteStorage = sqliteStorage; exports.mysqlStorage = mysqlStorage; exports.mysql2Storage = mysql2Storage; exports.postgresStorage = postgresStorage; exports.pgStorage = pgStorage; exports.pgliteStorage = pgliteStorage; exports.planetscaleStorage = planetscaleStorage; exports.libsqlStorage = libsqlStorage; exports.redisStorage = redisStorage; exports.s3Storage = s3Storage; exports.mongodbStorage = mongodbStorage; exports.upstashStorage = upstashStorage; exports.netlifyBlobsStorage = netlifyBlobsStorage; exports.vercelKVStorage = vercelKVStorage; exports.vercelBlobStorage = vercelBlobStorage; exports._collectFarmStorageModules = _collectFarmStorageModules; exports.createFarmStorage = createFarmStorage; exports.resolveStorageRuntimeClient = resolveStorageRuntimeClient; exports.initStorage = initStorage; exports.getDatabase = getDatabase; exports.getStorage = getStorage; exports.disposeStorage = disposeStorage;
|
|
@@ -38,7 +38,7 @@ var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -70,13 +70,13 @@ var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
|
|
|
70
70
|
var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkCKNZJFK5cjs = require('./chunk-CKNZJFK5.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -106,7 +106,7 @@ var _chunk7JUIK547cjs = require('./chunk-7JUIK547.cjs');
|
|
|
106
106
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
var
|
|
109
|
+
var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
|
|
110
110
|
|
|
111
111
|
// src/mcp-config.ts
|
|
112
112
|
var _module = require('module');
|
|
@@ -154,7 +154,7 @@ var parseAst;
|
|
|
154
154
|
async function loadParseAst() {
|
|
155
155
|
if (!parseAst) {
|
|
156
156
|
const { createRequire: createRequire3 } = await import("module");
|
|
157
|
-
parseAst = createRequire3(typeof __filename === "string" ? __filename :
|
|
157
|
+
parseAst = createRequire3(typeof __filename === "string" ? __filename : _chunkUZM3PDKKcjs.define_import_meta_default.url)(
|
|
158
158
|
"rolldown/parseAst"
|
|
159
159
|
).parseAst;
|
|
160
160
|
}
|
|
@@ -1049,7 +1049,7 @@ function validateConfigRouteSources(routes, field) {
|
|
|
1049
1049
|
async function resolveConfig(userConfig, mode) {
|
|
1050
1050
|
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([userConfig, 'access', _43 => _43.experimental, 'optionalAccess', _44 => _44.serverComponents]));
|
|
1051
1051
|
const projectRoot = userConfig.root || process.cwd();
|
|
1052
|
-
const layerResolution = await
|
|
1052
|
+
const layerResolution = await _chunkQMR2TUVZcjs.resolveFarmLayers.call(void 0, userConfig, {
|
|
1053
1053
|
root: projectRoot,
|
|
1054
1054
|
mode
|
|
1055
1055
|
});
|
|
@@ -1123,12 +1123,12 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1123
1123
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
1124
1124
|
);
|
|
1125
1125
|
const basePath = _chunkD22BUQKWcjs.normalizeFarmConfigBasePath.call(void 0, userConfig.basePath);
|
|
1126
|
-
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-
|
|
1126
|
+
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-H4TWP73H.cjs")).createFarmMobileSessionPlugin({
|
|
1127
1127
|
basePath,
|
|
1128
1128
|
integrations: () => integrations
|
|
1129
1129
|
}) : null;
|
|
1130
1130
|
let nativeServerFnAppDirs = [];
|
|
1131
|
-
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-
|
|
1131
|
+
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-XRTZR7SZ.cjs")).createFarmNativeServerFnPlugin({
|
|
1132
1132
|
resolve: (await import("./internal/native-server-fns.cjs")).createFarmDevNativeServerFnResolver(
|
|
1133
1133
|
{ root, srcDir, appDirs: () => nativeServerFnAppDirs }
|
|
1134
1134
|
)
|
|
@@ -1160,7 +1160,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1160
1160
|
mdx,
|
|
1161
1161
|
migrations: resolveMigrationsConfig(userConfig.migrations),
|
|
1162
1162
|
cron,
|
|
1163
|
-
workflows:
|
|
1163
|
+
workflows: _chunkCKNZJFK5cjs.resolveWorkflowsConfig.call(void 0, userConfig.workflows),
|
|
1164
1164
|
api,
|
|
1165
1165
|
observability: _nullishCoalesce(userConfig.observability, () => ( false)),
|
|
1166
1166
|
telemetry: userConfig.telemetry !== false,
|
|
@@ -1190,7 +1190,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1190
1190
|
plugins: [
|
|
1191
1191
|
...mobileSessionPlugin ? [mobileSessionPlugin] : [],
|
|
1192
1192
|
...nativeServerFnPlugin ? [nativeServerFnPlugin] : [],
|
|
1193
|
-
...
|
|
1193
|
+
..._chunkAOTD2N5Pcjs.resolveIntegrationPlugins.call(void 0, integrations),
|
|
1194
1194
|
...nativeMCPPlugin ? [nativeMCPPlugin] : [],
|
|
1195
1195
|
...userConfig.plugins || []
|
|
1196
1196
|
],
|
|
@@ -1236,7 +1236,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1236
1236
|
};
|
|
1237
1237
|
_chunkLSHX2H5Gcjs.assertPluginDependencies.call(void 0, resolved.plugins, resolved.integrations);
|
|
1238
1238
|
if (nativeServerFnPlugin) {
|
|
1239
|
-
nativeServerFnAppDirs = (await import("./layers-
|
|
1239
|
+
nativeServerFnAppDirs = (await import("./layers-HMEGUEXM.cjs")).getFarmAppDirectories(resolved);
|
|
1240
1240
|
}
|
|
1241
1241
|
return resolved;
|
|
1242
1242
|
}
|
|
@@ -1292,7 +1292,7 @@ async function loadConfig(rootDir, configPath, mode = process.env.NODE_ENV === "
|
|
|
1292
1292
|
if (!existsSync(normalizedPath)) {
|
|
1293
1293
|
continue;
|
|
1294
1294
|
}
|
|
1295
|
-
const loadedConfig = await
|
|
1295
|
+
const loadedConfig = await _chunkQMR2TUVZcjs.loadFarmConfigFile.call(void 0, normalizedPath, { root });
|
|
1296
1296
|
return loadedConfig.root === void 0 ? { ...loadedConfig, root } : loadedConfig;
|
|
1297
1297
|
} catch (error) {
|
|
1298
1298
|
const configError = new Error(
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/plugins/compression.ts
|
|
6
6
|
import { pipeline, Readable } from "stream";
|
|
7
|
+
import { promisify } from "util";
|
|
7
8
|
import { brotliCompress, constants, createBrotliCompress, createGzip, gzip } from "zlib";
|
|
8
9
|
var Q_VALUE = /^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/;
|
|
9
10
|
function parseEncodingQuality(header) {
|
|
@@ -28,10 +29,10 @@ function selectEncoding(header) {
|
|
|
28
29
|
const qualities = parseEncodingQuality(header);
|
|
29
30
|
const wildcard = qualities.get("*") ?? 0;
|
|
30
31
|
const quality = (encoding) => qualities.get(encoding) ?? wildcard;
|
|
31
|
-
const
|
|
32
|
+
const brotli2 = quality("br");
|
|
32
33
|
const gzip2 = quality("gzip");
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
34
|
+
if (brotli2 <= 0 && gzip2 <= 0) return void 0;
|
|
35
|
+
return brotli2 >= gzip2 ? "br" : "gzip";
|
|
35
36
|
}
|
|
36
37
|
var COMPRESSIBLE_MEDIA_TYPES = /* @__PURE__ */ new Set([
|
|
37
38
|
"application/javascript",
|
|
@@ -86,32 +87,40 @@ function compressedHeaders(response, encoding) {
|
|
|
86
87
|
}
|
|
87
88
|
return headers;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
var compressedShells = /* @__PURE__ */ new WeakMap();
|
|
91
|
+
var brotli = promisify(brotliCompress);
|
|
92
|
+
var gzipBuffer = promisify(gzip);
|
|
93
|
+
function encodeText(text, encoding) {
|
|
94
|
+
const input = Buffer.from(text);
|
|
95
|
+
return encoding === "br" ? brotli(input, { params: { [constants.BROTLI_PARAM_QUALITY]: BROTLI_QUALITY } }) : gzipBuffer(input);
|
|
96
|
+
}
|
|
97
|
+
function getEncodedShell(shell, encoding) {
|
|
98
|
+
let entry = compressedShells.get(shell);
|
|
99
|
+
if (entry?.html !== shell.html) {
|
|
100
|
+
entry = { html: shell.html };
|
|
101
|
+
compressedShells.set(shell, entry);
|
|
102
|
+
}
|
|
103
|
+
const variants = entry;
|
|
104
|
+
return variants[encoding] ?? (variants[encoding] = encodeText(shell.html, encoding).catch((error) => {
|
|
105
|
+
delete variants[encoding];
|
|
106
|
+
throw error;
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
function compressBufferedResponse(response, text, encoding, lazyBody, shell) {
|
|
90
110
|
const headers = compressedHeaders(response, encoding);
|
|
91
111
|
if (!lazyBody) response.body?.cancel().catch(() => {
|
|
92
112
|
});
|
|
93
|
-
const
|
|
113
|
+
const reuse = shell && shell.html === text;
|
|
114
|
+
const bytes = reuse ? getEncodedShell(shell, encoding) : encodeText(text, encoding);
|
|
94
115
|
let cancelled = false;
|
|
95
116
|
const body = new ReadableStream({
|
|
96
|
-
start(controller) {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
controller.enqueue(new Uint8Array(output.buffer, output.byteOffset, output.byteLength));
|
|
104
|
-
controller.close();
|
|
105
|
-
};
|
|
106
|
-
if (encoding === "br") {
|
|
107
|
-
brotliCompress(
|
|
108
|
-
input,
|
|
109
|
-
{ params: { [constants.BROTLI_PARAM_QUALITY]: BROTLI_QUALITY } },
|
|
110
|
-
done
|
|
111
|
-
);
|
|
112
|
-
} else {
|
|
113
|
-
gzip(input, done);
|
|
114
|
-
}
|
|
117
|
+
async start(controller) {
|
|
118
|
+
const output = await bytes;
|
|
119
|
+
if (cancelled) return;
|
|
120
|
+
controller.enqueue(
|
|
121
|
+
reuse ? new Uint8Array(output) : new Uint8Array(output.buffer, output.byteOffset, output.byteLength)
|
|
122
|
+
);
|
|
123
|
+
controller.close();
|
|
115
124
|
},
|
|
116
125
|
cancel() {
|
|
117
126
|
cancelled = true;
|
|
@@ -141,12 +150,12 @@ function compressResponse(response, encoding) {
|
|
|
141
150
|
function varyIdentityResponse(response) {
|
|
142
151
|
return _withFarmResponseHeaders(response, (headers) => appendVary(headers, "Accept-Encoding"));
|
|
143
152
|
}
|
|
144
|
-
function compressFarmResponse(request, response, bufferedText, lazyBody = false) {
|
|
153
|
+
function compressFarmResponse(request, response, bufferedText, lazyBody = false, shell) {
|
|
145
154
|
if (!isCompressionEligible(request, response, bufferedText)) return response;
|
|
146
155
|
if (request.method === "HEAD") return varyIdentityResponse(response);
|
|
147
156
|
const encoding = selectEncoding(request.headers.get("accept-encoding") ?? "");
|
|
148
157
|
if (!encoding) return varyIdentityResponse(response);
|
|
149
|
-
return bufferedText === void 0 ? compressResponse(response, encoding) : compressBufferedResponse(response, bufferedText, encoding, lazyBody);
|
|
158
|
+
return bufferedText === void 0 ? compressResponse(response, encoding) : compressBufferedResponse(response, bufferedText, encoding, lazyBody, shell);
|
|
150
159
|
}
|
|
151
160
|
function createCompressionPlugin({
|
|
152
161
|
beforeRequest: overrideBeforeRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLMXGCFAMcjs = require('./chunk-LMXGCFAM.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkLMXGCFAMcjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk26CNCIFIcjs = require('./chunk-26CNCIFI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ var _chunkGDM3ZD2Ocjs = require('./chunk-GDM3ZD2O.cjs');
|
|
|
25
25
|
var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
|
|
@@ -117,14 +117,14 @@ async function withTimeout(work, timeoutMs) {
|
|
|
117
117
|
var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
|
|
118
118
|
function collectSchemaOwners(config) {
|
|
119
119
|
const owners = [];
|
|
120
|
-
const integrationSchemas =
|
|
120
|
+
const integrationSchemas = _chunkAOTD2N5Pcjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
121
121
|
let integrationClient;
|
|
122
122
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
123
123
|
owners.push({
|
|
124
124
|
name,
|
|
125
125
|
kind: "integration",
|
|
126
126
|
schema,
|
|
127
|
-
resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient =
|
|
127
|
+
resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunk26CNCIFIcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
for (const declaration of _chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config)) {
|