0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
ematipico 2023-07-20 08:07:29 +00:00 committed by astrobot-houston
parent 3043f98723
commit 47c698b08a
4 changed files with 8 additions and 8 deletions

View file

@ -12,6 +12,7 @@ import { consoleLogDestination } from '../logger/console.js';
import { error, type LogOptions } from '../logger/core.js';
import { prependForwardSlash, removeTrailingForwardSlash } from '../path.js';
import { RedirectSinglePageBuiltModule } from '../redirects/index.js';
import { isResponse } from '../render/core';
import {
createEnvironment,
createRenderContext,
@ -27,7 +28,6 @@ import {
} from '../render/ssr-element.js';
import { matchRoute } from '../routing/match.js';
import type { RouteInfo } from './types';
import { isResponse } from '../render/core';
export { deserializeManifest } from './common.js';
const clientLocalsSymbol = Symbol.for('astro.locals');

View file

@ -38,6 +38,7 @@ import { BEFORE_HYDRATION_SCRIPT_ID, PAGE_SCRIPT_ID } from '../../vite-plugin-sc
import { AstroError, AstroErrorData } from '../errors/index.js';
import { debug, info } from '../logger/core.js';
import { getRedirectLocationOrThrow, RedirectSinglePageBuiltModule } from '../redirects/index.js';
import { isEndpointResult } from '../render/core.js';
import { createEnvironment, createRenderContext, tryRenderRoute } from '../render/index.js';
import { callGetStaticPaths } from '../render/route-cache.js';
import {
@ -62,7 +63,6 @@ import type {
StylesheetAsset,
} from './types';
import { getTimeStat } from './util.js';
import { isEndpointResult } from '../render/core.js';
function createEntryURL(filePath: string, outFolder: URL) {
return new URL('./' + filePath + `?time=${Date.now()}`, outFolder);

View file

@ -1,6 +1,7 @@
import type {
AstroCookies,
ComponentInstance,
EndpointHandler,
MiddlewareHandler,
MiddlewareResponseHandler,
RouteType,
@ -13,7 +14,6 @@ import { redirectRouteGenerate, redirectRouteStatus, routeIsRedirect } from '../
import type { RenderContext } from './context.js';
import type { Environment } from './environment.js';
import { createResult } from './result.js';
import type { EndpointHandler } from '../../@types/astro';
export type RenderPage = {
mod: ComponentInstance;

View file

@ -12,20 +12,20 @@ import { attachToResponse } from '../core/cookies/index.js';
import { AstroErrorData, isAstroError } from '../core/errors/index.js';
import { warn } from '../core/logger/core.js';
import { loadMiddleware } from '../core/middleware/loadMiddleware.js';
import { getStylesForURL } from '../core/render/dev/css.js';
import type { DevelopmentEnvironment, SSROptions } from '../core/render/dev/index';
import { preload } from '../core/render/dev/index.js';
import { getComponentMetadata } from '../core/render/dev/metadata.js';
import { getScriptsForURL } from '../core/render/dev/scripts.js';
import { createRenderContext, getParamsAndProps, tryRenderRoute } from '../core/render/index.js';
import { createRequest } from '../core/request.js';
import { matchAllRoutes } from '../core/routing/index.js';
import { isPage, resolveIdToUrl, viteID } from '../core/util.js';
import { getSortedPreloadedMatches } from '../prerender/routing.js';
import { isServerLikeOutput } from '../prerender/utils.js';
import { PAGE_SCRIPT_ID } from '../vite-plugin-scripts/index.js';
import { log404 } from './common.js';
import { handle404Response, writeSSRResult, writeWebResponse } from './response.js';
import { getScriptsForURL } from '../core/render/dev/scripts.js';
import { isPage, resolveIdToUrl, viteID } from '../core/util.js';
import { PAGE_SCRIPT_ID } from '../vite-plugin-scripts/index.js';
import { getStylesForURL } from '../core/render/dev/css.js';
import { getComponentMetadata } from '../core/render/dev/metadata.js';
const clientLocalsSymbol = Symbol.for('astro.locals');