[ci] format

This commit is contained in:
matthewp 2022-07-22 20:32:12 +00:00 committed by fredkbot
parent 0cc6ede362
commit c17efc1ad9
4 changed files with 25 additions and 11 deletions

View file

@ -93,7 +93,12 @@ export class App {
if (fiveHundredRouteData) { if (fiveHundredRouteData) {
mod = this.#manifest.pageMap.get(fiveHundredRouteData.component)!; mod = this.#manifest.pageMap.get(fiveHundredRouteData.component)!;
try { try {
let fiveHundredResponse = await this.#renderPage(request, fiveHundredRouteData, mod, 500); let fiveHundredResponse = await this.#renderPage(
request,
fiveHundredRouteData,
mod,
500
);
return fiveHundredResponse; return fiveHundredResponse;
} catch {} } catch {}
} }
@ -159,7 +164,7 @@ export class App {
ssr: true, ssr: true,
request, request,
streaming: this.#streaming, streaming: this.#streaming,
status status,
}); });
return response; return response;
@ -188,7 +193,7 @@ export class App {
route: routeData, route: routeData,
routeCache: this.#routeCache, routeCache: this.#routeCache,
ssr: true, ssr: true,
status status,
}); });
if (result.type === 'response') { if (result.type === 'response') {

View file

@ -5,7 +5,16 @@ import { getParamsAndProps, GetParamsAndPropsError } from '../render/core.js';
export type EndpointOptions = Pick< export type EndpointOptions = Pick<
RenderOptions, RenderOptions,
'logging' | 'origin' | 'request' | 'route' | 'routeCache' | 'pathname' | 'route' | 'site' | 'ssr' | 'status' | 'logging'
| 'origin'
| 'request'
| 'route'
| 'routeCache'
| 'pathname'
| 'route'
| 'site'
| 'ssr'
| 'status'
>; >;
type EndpointCallResult = type EndpointCallResult =

View file

@ -108,7 +108,7 @@ export async function render(opts: RenderOptions): Promise<Response> {
site, site,
ssr, ssr,
streaming, streaming,
status = 200 status = 200,
} = opts; } = opts;
const paramsAndPropsRes = await getParamsAndProps({ const paramsAndPropsRes = await getParamsAndProps({
@ -150,7 +150,7 @@ export async function render(opts: RenderOptions): Promise<Response> {
scripts, scripts,
ssr, ssr,
streaming, streaming,
status status,
}); });
// Support `export const components` for `MDX` pages // Support `export const components` for `MDX` pages