@farm.js/core 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-xPua9Zdz.d.ts → agent-mcp.d-DuZjglYX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DhZf5-v0.d.mts → agent-mcp.d-gI3ahrF6.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/analyzer-5RSMYPWD.cjs +17 -0
- package/dist/{analyzer-LQ4LVDCW.mjs → analyzer-7TNBOI3J.mjs} +2 -2
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-D6l1Wkn6.d.ts → app-manifest.d-B3h89j6a.d.ts} +1 -1
- package/dist/{app-manifest.d-Bq9VWtpk.d.mts → app-manifest.d-bHK9EGPI.d.mts} +1 -1
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/{app.d-gnTrW72o.d.ts → app.d-C3uyET_L.d.ts} +4 -4
- package/dist/{app.d-Bn1bqBkf.d.mts → app.d-Cr7fXGvJ.d.mts} +4 -4
- package/dist/{chunk-MEIZIRMK.mjs → chunk-2FKGY2ZS.mjs} +1 -1
- package/dist/{chunk-YOVSWY2E.mjs → chunk-2XDRRAAD.mjs} +1 -1
- package/dist/{chunk-GAD63TH7.mjs → chunk-4WCEWA22.mjs} +4 -4
- package/dist/{chunk-YQXLBYY2.cjs → chunk-5B2Y4EVS.cjs} +32 -8
- package/dist/{chunk-QCVP22KW.cjs → chunk-5RYBQKBY.cjs} +3 -3
- package/dist/{chunk-VFZQXADS.cjs → chunk-6QWBZGGP.cjs} +139 -137
- package/dist/{chunk-DVL3UVYT.mjs → chunk-6XABTMXR.mjs} +2 -2
- package/dist/{chunk-RDT2LJES.mjs → chunk-6YOMQ4GX.mjs} +9 -9
- package/dist/chunk-7QGA6UX6.cjs +26 -0
- package/dist/{chunk-LGL5QKUJ.cjs → chunk-A4WDDASS.cjs} +2 -2
- package/dist/{chunk-V36K4TSU.mjs → chunk-ADKPJZPP.mjs} +1 -1
- package/dist/{chunk-LQZXCSYG.mjs → chunk-B6K2ZM3C.mjs} +5 -3
- package/dist/{chunk-Z7YIQ7AJ.cjs → chunk-C2J5LMH6.cjs} +1 -1
- package/dist/{chunk-D7KBMJ7L.mjs → chunk-CIRC2LRP.mjs} +1 -1
- package/dist/{chunk-RMLXUVR5.cjs → chunk-CS6GXE42.cjs} +91 -21
- package/dist/{chunk-DNERKYN4.cjs → chunk-CSCORWIQ.cjs} +15 -15
- package/dist/{chunk-GK2RCRT2.mjs → chunk-CTHQE7DO.mjs} +1 -1
- package/dist/{chunk-PRKFECGT.cjs → chunk-DZWX7FDX.cjs} +6 -4
- package/dist/{chunk-ZVEKOMZS.mjs → chunk-ERY4VYUH.mjs} +1 -1
- package/dist/{chunk-4ER5KYSC.cjs → chunk-F6JSVP5C.cjs} +3 -3
- package/dist/chunk-G7LNCHTS.mjs +21 -0
- package/dist/{chunk-ZCT6B5PQ.cjs → chunk-GWFNJLDN.cjs} +11 -11
- package/dist/{chunk-O47IT4CS.cjs → chunk-H7DAFRYR.cjs} +4 -4
- package/dist/{chunk-MX4G24YS.mjs → chunk-HOBCEE5J.mjs} +17 -15
- package/dist/{chunk-ZF7N222A.mjs → chunk-IPKL7L6B.mjs} +2 -2
- package/dist/{chunk-54INSSWI.mjs → chunk-IQQ3SWH6.mjs} +99 -56
- package/dist/{chunk-MUQP2APN.cjs → chunk-JJUHUPRB.cjs} +2 -2
- package/dist/{chunk-2LHO4HTP.cjs → chunk-K7RXZ77U.cjs} +2 -2
- package/dist/{chunk-SIHHYNX4.mjs → chunk-KJMRW3IP.mjs} +1 -1
- package/dist/{chunk-PYPHM7AS.cjs → chunk-LH7S7FI3.cjs} +5 -1
- package/dist/chunk-O77EKGAS.mjs +36 -0
- package/dist/{chunk-WXPY5FRF.cjs → chunk-P2PF5FUW.cjs} +2 -2
- package/dist/{chunk-WOPQQCP3.mjs → chunk-P3UT3OLV.mjs} +3 -3
- package/dist/{chunk-PZ5ZJAAO.mjs → chunk-POCWXRXW.mjs} +1 -1
- package/dist/{chunk-Z23OCU33.cjs → chunk-RF3VCNV7.cjs} +6 -6
- package/dist/{chunk-MLMDOIBY.mjs → chunk-RS4QZOFK.mjs} +3 -3
- package/dist/{chunk-MZG5M4JS.cjs → chunk-SO4USIKL.cjs} +4 -4
- package/dist/{chunk-HYYOVRED.mjs → chunk-SPVXL37B.mjs} +1 -1
- package/dist/{chunk-VWPGK6UV.cjs → chunk-TAXZQNFZ.cjs} +74 -74
- package/dist/{chunk-KKXGBQ2K.mjs → chunk-UKGAP2OK.mjs} +4 -4
- package/dist/{chunk-DZXD6CYJ.mjs → chunk-V2RXBDV6.mjs} +4 -0
- package/dist/{chunk-FFROR7QD.mjs → chunk-VZRY3CL5.mjs} +1 -1
- package/dist/{chunk-LO5BNR6Y.mjs → chunk-W5T3ZAFU.mjs} +25 -1
- package/dist/{chunk-ADCVSTFV.cjs → chunk-WAQIO2VD.cjs} +2 -2
- package/dist/{chunk-JKNQMGZE.cjs → chunk-WFL7CD5C.cjs} +12 -12
- package/dist/{chunk-KJW6KEOZ.mjs → chunk-WRT775N6.mjs} +92 -22
- package/dist/{chunk-RP55BUJM.mjs → chunk-XGBDRC5B.mjs} +2 -2
- package/dist/{chunk-J6JAUJPC.cjs → chunk-XLJ2REOI.cjs} +385 -342
- package/dist/{chunk-ZTNU4XCC.cjs → chunk-Y3MTKPLN.cjs} +7 -7
- package/dist/{chunk-MNBFSAWF.cjs → chunk-YCGOQKVC.cjs} +20 -1
- package/dist/{chunk-T4VF6BYV.cjs → chunk-YPPAYYSX.cjs} +6 -6
- package/dist/{chunk-PATIHHC7.cjs → chunk-ZQOHL6TX.cjs} +2 -2
- package/dist/{client-component.d-DT5OKBZu.d.ts → client-component.d-BavTzqsn.d.ts} +1 -1
- package/dist/{client-component.d-34DDMZcl.d.mts → client-component.d-X3j9FOZ2.d.mts} +1 -1
- package/dist/{client-plugins.d-D9CnUvZ5.d.ts → client-plugins.d-CqTr5IrQ.d.ts} +64 -4
- package/dist/{client-plugins.d-D7k9t9Ge.d.mts → client-plugins.d-DnnAopKG.d.mts} +64 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.d.mts +10 -10
- package/dist/client.d.ts +10 -10
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/desktop.cjs +5 -1
- package/dist/desktop.d.mts +11 -7
- package/dist/desktop.d.ts +11 -7
- package/dist/desktop.mjs +4 -0
- package/dist/{dev-guard-M3ZCDWCK.cjs → dev-guard-5NUIX6IZ.cjs} +4 -3
- package/dist/{dev-guard-TFVWJNIB.mjs → dev-guard-L42ZZRCZ.mjs} +2 -1
- package/dist/{devtools-R77KAJA4.mjs → devtools-VPFBH6I2.mjs} +1 -1
- package/dist/{devtools-IUU4SWQL.cjs → devtools-YTND2OWT.cjs} +2 -2
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-BFOMM8Ef.d.mts → generate-route-types.d-CAiRw4N0.d.mts} +1 -1
- package/dist/{generate-route-types.d-C2m8myHb.d.ts → generate-route-types.d-Dz8MOQ3u.d.ts} +1 -1
- package/dist/{handler.d-fxTjv3Nn.d.mts → handler.d-BSlpYCDB.d.mts} +2 -2
- package/dist/{handler.d-DbZvbwNi.d.ts → handler.d-DgX7gPO6.d.ts} +2 -2
- package/dist/{headers.d-OBHpGTF_.d.mts → headers.d-Cf8l5LMo.d.mts} +1 -1
- package/dist/{headers.d-oeWybIk8.d.ts → headers.d-CmxW42R2.d.ts} +1 -1
- package/dist/index.cjs +29 -28
- package/dist/{index.d-CRrPQwlO.d.mts → index.d-7xoJqKRZ.d.mts} +1 -1
- package/dist/{index.d-BM-dKdzH.d.ts → index.d-BZZt7kxO.d.ts} +1 -1
- package/dist/index.d.mts +27 -27
- package/dist/index.d.ts +27 -27
- package/dist/index.mjs +24 -23
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.cjs +24 -23
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +23 -22
- package/dist/internal/cli-runtime.cjs +12 -9
- package/dist/internal/cli-runtime.d.mts +20 -12
- package/dist/internal/cli-runtime.d.ts +20 -12
- package/dist/internal/cli-runtime.mjs +11 -8
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +8 -8
- package/dist/internal/client-runtime.d.ts +8 -8
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +5 -4
- package/dist/internal/config-runtime.d.mts +8 -8
- package/dist/internal/config-runtime.d.ts +8 -8
- package/dist/internal/config-runtime.mjs +4 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +13 -13
- package/dist/internal/production-runtime.d.ts +13 -13
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +6 -6
- package/dist/internal/spa-router.d.ts +6 -6
- package/dist/internal/start-manifest.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/{layers.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.mts} +1 -1
- package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.ts} +1 -1
- package/dist/{manager-STAB5TVZ.cjs → manager-YRIENS63.cjs} +4 -4
- package/dist/{manager-EFPBRS3U.mjs → manager-YTJOAHII.mjs} +3 -3
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/{mount.d-TnD-Mebk.d.ts → mount.d-CD-xVBu7.d.ts} +1 -1
- package/dist/{mount.d-B7RiwjiO.d.mts → mount.d-Dd0xeRMl.d.mts} +1 -1
- package/dist/{navigation-delegate.d-VBCF0EeN.d.ts → navigation-delegate.d-Bses_F-y.d.ts} +1 -1
- package/dist/{navigation-delegate.d-Boz2511c.d.mts → navigation-delegate.d-dBNg976E.d.mts} +1 -1
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/plugin.cjs +19 -18
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +18 -17
- package/dist/{render-plan.d-BrumV_ZE.d.ts → render-plan.d-DaIwnRK2.d.ts} +1 -1
- package/dist/{render-plan.d-BwnmyfNk.d.mts → render-plan.d-vOdZHHLI.d.mts} +1 -1
- package/dist/renderer-client.d.mts +8 -8
- package/dist/renderer-client.d.ts +8 -8
- package/dist/{request.d-Dd5nRTO5.d.mts → request.d-B8U4pVFP.d.mts} +1 -1
- package/dist/{request.d-NUi01-5e.d.ts → request.d-CgXp3EEc.d.ts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{route-rendering.d-BK0Pf7_k.d.mts → route-rendering.d-BQvNYQqu.d.mts} +1 -1
- package/dist/{route-rendering.d-CJR5BPXV.d.ts → route-rendering.d-Di0AxFix.d.ts} +1 -1
- package/dist/{router.d-C-JSFCPU.d.ts → router.d-BJVGhSAJ.d.ts} +1 -1
- package/dist/{router.d-CNUS3x1j.d.mts → router.d-hNedVdoB.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-D7RWvfqL.d.ts → routes.d-CYe98R_8.d.ts} +1 -1
- package/dist/{routes.d-BWvpUoYu.d.mts → routes.d-DBGnKaUQ.d.mts} +1 -1
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-DHISDFT7.mjs → rsc-pipeline-2JSNRVIL.mjs} +6 -5
- package/dist/{rsc-pipeline-UBWVU3NF.cjs → rsc-pipeline-WTKDMTE2.cjs} +7 -6
- package/dist/{runtime-XKRQW3YT.cjs → runtime-I4GV4CDP.cjs} +8 -8
- package/dist/{runtime-VUKMY44G.mjs → runtime-RNSTQY27.mjs} +5 -5
- package/dist/{runtime.d-B2T4bM5_.d.ts → runtime.d-0R8nHCM6.d.ts} +1 -1
- package/dist/{runtime.d-CsOpO6yQ.d.mts → runtime.d-DpeuF_T-.d.mts} +1 -1
- package/dist/{cli-runtime.d-LwIb0swO.d.mts → schema-dependencies.d-_Wyey4Wv.d.mts} +21 -13
- package/dist/{cli-runtime.d-Vvxf-Z8a.d.ts → schema-dependencies.d-tkUHREqz.d.ts} +21 -13
- package/dist/{schema.d-BM-uVGpx.d.mts → schema.d-HlGSe1on.d.mts} +1 -1
- package/dist/{schema.d-BM-uVGpx.d.ts → schema.d-HlGSe1on.d.ts} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/{server-components-status.d-DOYt4E_Q.d.ts → server-components-status.d-B2Z5WvO5.d.ts} +2 -2
- package/dist/{server-components-status.d-Cc5rir0l.d.mts → server-components-status.d-sN7ju-ie.d.mts} +2 -2
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +46 -45
- package/dist/server.d.mts +14 -14
- package/dist/server.d.ts +14 -14
- package/dist/server.mjs +20 -19
- package/dist/{spa-router.d-Cq5UFJvq.d.mts → spa-router.d-D3AtR2Bc.d.mts} +2 -2
- package/dist/{spa-router.d-C7FcpLxU.d.ts → spa-router.d-MjT6sGb9.d.ts} +2 -2
- package/dist/{ssg.d-BzNZemk7.d.mts → ssg.d-B32Cp_XW.d.mts} +3 -3
- package/dist/{ssg.d-DUhacIxj.d.ts → ssg.d-C1SNuPz5.d.ts} +3 -3
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/{store-core.d-BX3yXrxA.d.ts → store-core.d-BZ3YXs70.d.ts} +2 -2
- package/dist/{store-core.d-DbUAtSBK.d.mts → store-core.d-BbVdaoA0.d.mts} +2 -2
- package/dist/testing.cjs +6 -6
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +5 -5
- package/dist/{types.d-C5hlNbHa.d.mts → types.d-CRiwa0jj.d.mts} +1 -1
- package/dist/{types.d-C5hlNbHa.d.ts → types.d-CRiwa0jj.d.ts} +1 -1
- package/dist/{utils.d-BhJJEXzo.d.ts → utils.d-Bjbm44fP.d.ts} +1 -1
- package/dist/{utils.d-NOMkLFpC.d.mts → utils.d-CoLozp7-.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +19 -18
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +18 -17
- package/package.json +1 -1
- package/dist/analyzer-ZFC2L6NZ.cjs +0 -17
- package/dist/chunk-OZAVCLXY.mjs +0 -17
- /package/dist/{chunk-OAAVIFOJ.cjs → chunk-2LGM5WIK.cjs} +0 -0
- /package/dist/{chunk-ZRTBDHO2.mjs → chunk-MVNIAD6O.mjs} +0 -0
|
@@ -344,6 +344,9 @@ var PROGRAMMATIC_ROUTE_FILE_NAMES = [
|
|
|
344
344
|
"routes.js",
|
|
345
345
|
"routes.jsx"
|
|
346
346
|
];
|
|
347
|
+
function isTestSourceFile(file) {
|
|
348
|
+
return /(?:^|[\\/])__tests__[\\/]|\.(?:test|spec)\.[^./\\]+$/.test(file);
|
|
349
|
+
}
|
|
347
350
|
function getProgrammaticRouteSearchClientOptions(search) {
|
|
348
351
|
if (!search || "parse" in search) return void 0;
|
|
349
352
|
const options = {};
|
|
@@ -451,4 +454,5 @@ function getProgrammaticRouteDefinitionSource(route) {
|
|
|
451
454
|
|
|
452
455
|
|
|
453
456
|
|
|
454
|
-
|
|
457
|
+
|
|
458
|
+
exports.extractProgrammaticPageCallPathLiterals = extractProgrammaticPageCallPathLiterals; exports.PROGRAMMATIC_ROUTE_FILE_NAMES = PROGRAMMATIC_ROUTE_FILE_NAMES; exports.isTestSourceFile = isTestSourceFile; exports.getProgrammaticRouteSearchClientOptions = getProgrammaticRouteSearchClientOptions; exports.isProgrammaticRoutesFileName = isProgrammaticRoutesFileName; exports.createProgrammaticRouteModuleId = createProgrammaticRouteModuleId; exports.parseProgrammaticRouteModuleId = parseProgrammaticRouteModuleId; exports.parseProgrammaticRoutePath = parseProgrammaticRoutePath; exports.scanProgrammaticPagePaths = scanProgrammaticPagePaths; exports.normalizeProgrammaticRoutePath = normalizeProgrammaticRoutePath; exports.PROGRAMMATIC_ROUTE_SOURCE = PROGRAMMATIC_ROUTE_SOURCE; exports.TRACK_PROGRAMMATIC_ROUTE_SOURCES = TRACK_PROGRAMMATIC_ROUTE_SOURCES; exports.trackProgrammaticRouteSources = trackProgrammaticRouteSources; exports.getProgrammaticRouteDefinitionSource = getProgrammaticRouteDefinitionSource;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/api/route-files.ts
|
|
2
|
+
function hasPolyroutePlugin(plugins) {
|
|
3
|
+
return plugins?.some((plugin) => plugin.name === "polyroute") === true;
|
|
4
|
+
}
|
|
5
|
+
async function hasPolyroutePluginOption(option) {
|
|
6
|
+
const value = await option;
|
|
7
|
+
if (Array.isArray(value)) {
|
|
8
|
+
for (const entry of value) {
|
|
9
|
+
if (await hasPolyroutePluginOption(entry)) return true;
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
return typeof value === "object" && value !== null && value.name === "polyroute";
|
|
14
|
+
}
|
|
15
|
+
function isPolyrouteRouteFileName(fileName) {
|
|
16
|
+
return fileName === "route.rs" || fileName === "route.go" || fileName === "route.py";
|
|
17
|
+
}
|
|
18
|
+
function getPolyrouteRouteDeclarationFileName(routeFileName) {
|
|
19
|
+
return routeFileName.replace(/^route\./, "route.d.") + ".ts";
|
|
20
|
+
}
|
|
21
|
+
function isPolyrouteRouteDeclarationFileName(fileName) {
|
|
22
|
+
return fileName === "route.d.rs.ts" || fileName === "route.d.go.ts" || fileName === "route.d.py.ts";
|
|
23
|
+
}
|
|
24
|
+
function isFarmAPIRouteFileName(fileName, polyroute = false) {
|
|
25
|
+
if (polyroute && isPolyrouteRouteFileName(fileName)) return true;
|
|
26
|
+
return /^route\.(?:ts|tsx|js|jsx)$/.test(fileName);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
hasPolyroutePlugin,
|
|
31
|
+
hasPolyroutePluginOption,
|
|
32
|
+
isPolyrouteRouteFileName,
|
|
33
|
+
getPolyrouteRouteDeclarationFileName,
|
|
34
|
+
isPolyrouteRouteDeclarationFileName,
|
|
35
|
+
isFarmAPIRouteFileName
|
|
36
|
+
};
|
|
@@ -11,7 +11,7 @@ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
|
|
|
11
11
|
var _chunkRBDAW6IZcjs = require('./chunk-RBDAW6IZ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDZWX7FDXcjs = require('./chunk-DZWX7FDX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
|
|
@@ -375,7 +375,7 @@ async function scanRoutePatterns(options) {
|
|
|
375
375
|
);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
for (const route of await
|
|
378
|
+
for (const route of await _chunkDZWX7FDXcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
|
|
379
379
|
pages.add(route);
|
|
380
380
|
modules.add(route);
|
|
381
381
|
}
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-NRWEY2CM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findProgrammaticRouteFilesInDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B6K2ZM3C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
hasPolyroutePlugin,
|
|
9
9
|
isFarmAPIRouteFileName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O77EKGAS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
_runWithFarmI18nRequest
|
|
13
13
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-2LKUR5QJ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
createProgrammaticRouteModuleId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-V2RXBDV6.mjs";
|
|
32
32
|
import {
|
|
33
33
|
getFarmRouteRuntimeConfig,
|
|
34
34
|
normalizeFarmRouteRuntimeConfig
|
|
@@ -7,7 +7,7 @@ var _chunkYZMSJRM5cjs = require('./chunk-YZMSJRM5.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkLH7S7FI3cjs = require('./chunk-LH7S7FI3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkGUDYDNKUcjs = require('./chunk-GUDYDNKU.cjs');
|
|
@@ -105,13 +105,13 @@ function createProgrammaticRoute(route) {
|
|
|
105
105
|
return stampProgrammaticRouteSource(normalizeProgrammaticRoute(route), route, true);
|
|
106
106
|
}
|
|
107
107
|
function stampProgrammaticRouteSource(route, input, created) {
|
|
108
|
-
if (!globalThis[
|
|
109
|
-
const previous =
|
|
108
|
+
if (!globalThis[_chunkLH7S7FI3cjs.TRACK_PROGRAMMATIC_ROUTE_SOURCES]) return route;
|
|
109
|
+
const previous = _chunkLH7S7FI3cjs.getProgrammaticRouteDefinitionSource.call(void 0, input);
|
|
110
110
|
const source = {
|
|
111
111
|
stacks: [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _ => _.stacks]), () => ( [])), captureRouteSourceStack()],
|
|
112
112
|
raw: created ? false : _nullishCoalesce(_optionalChain([previous, 'optionalAccess', _2 => _2.raw]), () => ( true))
|
|
113
113
|
};
|
|
114
|
-
Object.defineProperty(route,
|
|
114
|
+
Object.defineProperty(route, _chunkLH7S7FI3cjs.PROGRAMMATIC_ROUTE_SOURCE, {
|
|
115
115
|
value: source,
|
|
116
116
|
enumerable: true,
|
|
117
117
|
configurable: true,
|
|
@@ -305,7 +305,7 @@ function parseProgrammaticRouteModuleId(moduleId) {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
function parseProgrammaticRoutePath2(routePath, type = "page") {
|
|
308
|
-
return
|
|
308
|
+
return _chunkLH7S7FI3cjs.parseProgrammaticRoutePath.call(void 0, routePath, type);
|
|
309
309
|
}
|
|
310
310
|
function createRouteModuleFromProgrammaticPage(route, rendererRuntime) {
|
|
311
311
|
const mod = {
|
|
@@ -365,7 +365,7 @@ function createLayoutModuleFromProgrammaticLayout(route) {
|
|
|
365
365
|
}
|
|
366
366
|
function scanProgrammaticPagePaths(source) {
|
|
367
367
|
const paths = /* @__PURE__ */ new Set();
|
|
368
|
-
for (const routePath of
|
|
368
|
+
for (const routePath of _chunkLH7S7FI3cjs.extractProgrammaticPageCallPathLiterals.call(void 0, source)) {
|
|
369
369
|
if (routePath) {
|
|
370
370
|
paths.add(normalizeRoutePath(routePath));
|
|
371
371
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteTypeDeclarations,
|
|
3
3
|
generateRouteTypes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-POCWXRXW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
APITypeGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WRT775N6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getOptionalCatchAllParameterNames,
|
|
10
10
|
materializeSSGRoutePath,
|
|
@@ -841,7 +841,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
if (shouldGenerateApi) {
|
|
844
|
-
const generator = new APITypeGenerator(appDirs);
|
|
844
|
+
const generator = new APITypeGenerator(appDirs, { polyroute: options.polyroute });
|
|
845
845
|
const apiRoutes = generator.scanAPIRoutes();
|
|
846
846
|
const apiTypesPath = options.apiTypesOutFile ? resolve3(root, options.apiTypesOutFile) : join3(root, srcDir, "lib", "api.generated.ts");
|
|
847
847
|
const pluginRoutes = resolvePluginRoutes(
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJJUHUPRBcjs = require('./chunk-JJUHUPRB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk6QCZWAGOcjs = require('./chunk-6QCZWAGO.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunkH5AC3XSEcjs = require('./chunk-H5AC3XSE.cjs');
|
|
|
29
29
|
var _chunk7GKZDRY2cjs = require('./chunk-7GKZDRY2.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkC2J5LMH6cjs = require('./chunk-C2J5LMH6.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkTFCBJFP7cjs = require('./chunk-TFCBJFP7.cjs');
|
|
@@ -294,7 +294,7 @@ function createFarmAppManifest(input, registered = []) {
|
|
|
294
294
|
return {
|
|
295
295
|
schemaVersion: 1,
|
|
296
296
|
app: app ? {
|
|
297
|
-
...app.version ? { farm:
|
|
297
|
+
...app.version ? { farm: _chunkC2J5LMH6cjs.FARM_VERSION } : {},
|
|
298
298
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
299
299
|
basePath: input.basePath,
|
|
300
300
|
...app.build ? { build: input.build } : {}
|
|
@@ -325,7 +325,7 @@ function resolveFarmSiteUrl() {
|
|
|
325
325
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
326
326
|
];
|
|
327
327
|
for (const candidate of candidates) {
|
|
328
|
-
const origin = candidate ?
|
|
328
|
+
const origin = candidate ? _chunkJJUHUPRBcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
329
329
|
if (origin) return origin;
|
|
330
330
|
}
|
|
331
331
|
return null;
|