diff options
author | 2024-06-11 12:00:00 +0000 | |
---|---|---|
committer | 2024-06-11 12:00:00 +0000 | |
commit | c5152dbea35011a41253e6bcc3e07cb248aac79e (patch) | |
tree | e60b1a1a25d56e651d43e079965523062b06860a | |
parent | 7d9aac376c4b8844917901f7f566f7259d7f66c8 (diff) | |
download | astro-c5152dbea35011a41253e6bcc3e07cb248aac79e.tar.gz astro-c5152dbea35011a41253e6bcc3e07cb248aac79e.tar.zst astro-c5152dbea35011a41253e6bcc3e07cb248aac79e.zip |
[ci] format
-rw-r--r-- | packages/astro/src/container/pipeline.ts | 7 | ||||
-rw-r--r-- | packages/astro/src/core/render-context.ts | 9 |
2 files changed, 11 insertions, 5 deletions
diff --git a/packages/astro/src/container/pipeline.ts b/packages/astro/src/container/pipeline.ts index 8b18e8dff..d7ed57088 100644 --- a/packages/astro/src/container/pipeline.ts +++ b/packages/astro/src/container/pipeline.ts @@ -13,7 +13,7 @@ import { createModuleScriptElement, createStylesheetElementSet, } from '../core/render/ssr-element.js'; -import {default404Page, DEFAULT_404_ROUTE} from '../core/routing/astro-designed-error-pages.js'; +import { DEFAULT_404_ROUTE, default404Page } from '../core/routing/astro-designed-error-pages.js'; export class ContainerPipeline extends Pipeline { /** @@ -70,7 +70,10 @@ export class ContainerPipeline extends Pipeline { return { links, styles, scripts }; } - async tryRewrite(payload: RewritePayload, request: Request): Promise<[RouteData, ComponentInstance, URL]> { + async tryRewrite( + payload: RewritePayload, + request: Request + ): Promise<[RouteData, ComponentInstance, URL]> { let foundRoute: RouteData | undefined; // options.manifest is the actual type that contains the information let finalUrl: URL | undefined = undefined; diff --git a/packages/astro/src/core/render-context.ts b/packages/astro/src/core/render-context.ts index 18a47c532..ff25cef28 100644 --- a/packages/astro/src/core/render-context.ts +++ b/packages/astro/src/core/render-context.ts @@ -358,11 +358,14 @@ export class RenderContext { slotValues: Record<string, any> | null ): AstroGlobal { let astroPagePartial; - // During rewriting, we must recompute the Astro global, because we need to purge the previous params/props/etc. + // During rewriting, we must recompute the Astro global, because we need to purge the previous params/props/etc. if (this.isRewriting) { - astroPagePartial = this.#astroPagePartial = this.createAstroPagePartial(result, astroStaticPartial); + astroPagePartial = this.#astroPagePartial = this.createAstroPagePartial( + result, + astroStaticPartial + ); } else { - // Create page partial with static partial so they can be cached together. + // Create page partial with static partial so they can be cached together. astroPagePartial = this.#astroPagePartial ??= this.createAstroPagePartial( result, astroStaticPartial |