From 0d86457d64e85a20ed24e2ded441324b0e3b1167 Mon Sep 17 00:00:00 2001 From: bluwy Date: Tue, 25 Jul 2023 15:47:03 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/render/result.ts | 2 +- packages/astro/src/runtime/server/render/astro/instance.ts | 2 +- packages/astro/src/runtime/server/render/component.ts | 6 +++--- packages/astro/src/runtime/server/render/index.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/core/render/result.ts b/packages/astro/src/core/render/result.ts index 46bae1128..968b232d4 100644 --- a/packages/astro/src/core/render/result.ts +++ b/packages/astro/src/core/render/result.ts @@ -9,10 +9,10 @@ import type { } from '../../@types/astro'; import { renderSlotToString, type ComponentSlots } from '../../runtime/server/index.js'; import { renderJSX } from '../../runtime/server/jsx.js'; +import { chunkToString } from '../../runtime/server/render/index.js'; import { AstroCookies } from '../cookies/index.js'; import { AstroError, AstroErrorData } from '../errors/index.js'; import { warn, type LogOptions } from '../logger/core.js'; -import { chunkToString } from '../../runtime/server/render/index.js'; const clientAddressSymbol = Symbol.for('astro.clientAddress'); const responseSentSymbol = Symbol.for('astro.responseSent'); diff --git a/packages/astro/src/runtime/server/render/astro/instance.ts b/packages/astro/src/runtime/server/render/astro/instance.ts index e4df186c6..06f2706b3 100644 --- a/packages/astro/src/runtime/server/render/astro/instance.ts +++ b/packages/astro/src/runtime/server/render/astro/instance.ts @@ -4,9 +4,9 @@ import type { AstroComponentFactory, AstroFactoryReturnValue } from './factory.j import { isPromise } from '../../util.js'; import { renderChild } from '../any.js'; +import type { RenderDestination } from '../common.js'; import { isAPropagatingComponent } from './factory.js'; import { isHeadAndContent } from './head-and-content.js'; -import type { RenderDestination } from '../common.js'; type ComponentProps = Record; diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index de36b0ac9..dcd4b562c 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -21,15 +21,15 @@ import { import { Fragment, Renderer, - type RenderDestination, chunkToString, - type RenderInstance, + type RenderDestination, type RenderDestinationChunk, + type RenderInstance, } from './common.js'; import { componentIsHTMLElement, renderHTMLElement } from './dom.js'; +import { maybeRenderHead } from './head.js'; import { renderSlotToString, renderSlots, type ComponentSlots } from './slot.js'; import { formatList, internalSpreadAttributes, renderElement, voidElementNames } from './util.js'; -import { maybeRenderHead } from './head.js'; const needsHeadRenderingSymbol = Symbol.for('astro.needsHeadRendering'); const rendererAliases = new Map([['solid', 'solid-js']]); diff --git a/packages/astro/src/runtime/server/render/index.ts b/packages/astro/src/runtime/server/render/index.ts index 8a5376797..70d63ca60 100644 --- a/packages/astro/src/runtime/server/render/index.ts +++ b/packages/astro/src/runtime/server/render/index.ts @@ -1,6 +1,6 @@ export type { AstroComponentFactory, AstroComponentInstance } from './astro/index'; export { createHeadAndContent, renderTemplate, renderToString } from './astro/index.js'; -export { Fragment, Renderer, chunkToString, chunkToByteArray } from './common.js'; +export { Fragment, Renderer, chunkToByteArray, chunkToString } from './common.js'; export { renderComponent, renderComponentToString } from './component.js'; export { renderHTMLElement } from './dom.js'; export { maybeRenderHead, renderHead } from './head.js';