inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export { };
//# sourceMappingURL=app-page-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/app-page-route-match.ts"],"sourcesContent":["import type { RouteMatch } from './route-match'\nimport type { AppPageRouteDefinition } from '../route-definitions/app-page-route-definition'\n\nexport interface AppPageRouteMatch extends RouteMatch<AppPageRouteDefinition> {}\n"],"names":[],"mappings":"AAGA,WAAgF"}

View File

@@ -0,0 +1,3 @@
export { };
//# sourceMappingURL=app-route-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/app-route-route-match.ts"],"sourcesContent":["import type { RouteMatch } from './route-match'\nimport type { AppRouteRouteDefinition } from '../route-definitions/app-route-route-definition'\n\nexport interface AppRouteRouteMatch\n extends RouteMatch<AppRouteRouteDefinition> {}\n"],"names":[],"mappings":"AAGA,WACgD"}

View File

@@ -0,0 +1,3 @@
export { };
//# sourceMappingURL=locale-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/locale-route-match.ts"],"sourcesContent":["import type { LocaleRouteDefinition } from '../route-definitions/locale-route-definition'\nimport type { RouteMatch } from './route-match'\n\nexport interface LocaleRouteMatch<R extends LocaleRouteDefinition>\n extends RouteMatch<R> {\n readonly detectedLocale?: string\n}\n"],"names":[],"mappings":"AAGA,WAGC"}

View File

@@ -0,0 +1,10 @@
import { RouteKind } from '../route-kind';
/**
* Checks if the given match is a Pages API route match.
* @param match the match to check
* @returns true if the match is a Pages API route match, false otherwise
*/ export function isPagesAPIRouteMatch(match) {
return match.definition.kind === RouteKind.PAGES_API;
}
//# sourceMappingURL=pages-api-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/pages-api-route-match.ts"],"sourcesContent":["import type { RouteMatch } from './route-match'\nimport type { PagesAPIRouteDefinition } from '../route-definitions/pages-api-route-definition'\n\nimport { RouteKind } from '../route-kind'\n\nexport interface PagesAPIRouteMatch\n extends RouteMatch<PagesAPIRouteDefinition> {}\n\n/**\n * Checks if the given match is a Pages API route match.\n * @param match the match to check\n * @returns true if the match is a Pages API route match, false otherwise\n */\nexport function isPagesAPIRouteMatch(\n match: RouteMatch\n): match is PagesAPIRouteMatch {\n return match.definition.kind === RouteKind.PAGES_API\n}\n"],"names":["RouteKind","isPagesAPIRouteMatch","match","definition","kind","PAGES_API"],"mappings":"AAGA,SAASA,SAAS,QAAQ,gBAAe;AAKzC;;;;CAIC,GACD,OAAO,SAASC,qBACdC,KAAiB;IAEjB,OAAOA,MAAMC,UAAU,CAACC,IAAI,KAAKJ,UAAUK,SAAS;AACtD"}

View File

@@ -0,0 +1,3 @@
export { };
//# sourceMappingURL=pages-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/pages-route-match.ts"],"sourcesContent":["import type { PagesRouteDefinition } from '../route-definitions/pages-route-definition'\nimport type { LocaleRouteMatch } from './locale-route-match'\n\nexport interface PagesRouteMatch\n extends LocaleRouteMatch<PagesRouteDefinition> {}\n"],"names":[],"mappings":"AAGA,WACmD"}

View File

@@ -0,0 +1,6 @@
/**
* RouteMatch is the resolved match for a given request. This will contain all
* the dynamic parameters used for this route.
*/ export { };
//# sourceMappingURL=route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/server/route-matches/route-match.ts"],"sourcesContent":["import type { Params } from '../request/params'\nimport type { RouteDefinition } from '../route-definitions/route-definition'\n\n/**\n * RouteMatch is the resolved match for a given request. This will contain all\n * the dynamic parameters used for this route.\n */\nexport interface RouteMatch<D extends RouteDefinition = RouteDefinition> {\n readonly definition: D\n\n /**\n * params when provided are the dynamic route parameters that were parsed from\n * the incoming request pathname. If a route match is returned without any\n * params, it should be considered a static route.\n */\n readonly params: Params | undefined\n}\n"],"names":[],"mappings":"AAGA;;;CAGC,GACD,WASC"}