[ci] format
This commit is contained in:
parent
c7921e9e1b
commit
ba7b23b9e0
5 changed files with 5 additions and 6 deletions
|
@ -9,7 +9,7 @@ import type {
|
|||
import type { SinglePageBuiltModule } from '../build/types';
|
||||
import { getSetCookiesFromResponse } from '../cookies/index.js';
|
||||
import { consoleLogDestination } from '../logger/console.js';
|
||||
import { Logger } from '../logger/core.js';
|
||||
import { AstroIntegrationLogger, Logger } from '../logger/core.js';
|
||||
import {
|
||||
collapseDuplicateSlashes,
|
||||
prependForwardSlash,
|
||||
|
@ -27,7 +27,6 @@ import { matchRoute } from '../routing/match.js';
|
|||
import { EndpointNotFoundError, SSRRoutePipeline } from './ssrPipeline.js';
|
||||
import type { RouteInfo } from './types';
|
||||
export { deserializeManifest } from './common.js';
|
||||
import { AstroIntegrationLogger } from '../logger/core.js';
|
||||
|
||||
const clientLocalsSymbol = Symbol.for('astro.locals');
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { createRequire } from 'node:module';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
import type { AstroInlineConfig, PreviewModule, PreviewServer } from '../../@types/astro';
|
||||
import { AstroIntegrationLogger } from '../../core/logger/core.js';
|
||||
import { telemetry } from '../../events/index.js';
|
||||
import { eventCliSession } from '../../events/session.js';
|
||||
import { runHookConfigDone, runHookConfigSetup } from '../../integrations/index.js';
|
||||
|
@ -9,7 +10,6 @@ import { createNodeLogger } from '../config/logging.js';
|
|||
import { createSettings } from '../config/settings.js';
|
||||
import createStaticPreviewServer from './static-preview-server.js';
|
||||
import { getResolvedHostForHttpServer } from './util.js';
|
||||
import { AstroIntegrationLogger } from '../../core/logger/core.js';
|
||||
|
||||
/**
|
||||
* Starts a local server to serve your static dist/ directory. This command is useful for previewing
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { AstroAdapter, AstroIntegration } from 'astro';
|
||||
import type { Options, UserOptions } from './types';
|
||||
import { AstroError } from 'astro/errors';
|
||||
import type { Options, UserOptions } from './types';
|
||||
export function getAdapter(options: Options): AstroAdapter {
|
||||
return {
|
||||
name: '@astrojs/node',
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import type { CreatePreviewServer } from 'astro';
|
||||
import { AstroError } from 'astro/errors';
|
||||
import type http from 'node:http';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { getNetworkAddress } from './get-network-address.js';
|
||||
import { createServer } from './http-server.js';
|
||||
import type { createExports } from './server';
|
||||
import { AstroError } from 'astro/errors';
|
||||
|
||||
const preview: CreatePreviewServer = async function ({
|
||||
client,
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* - https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/responseIterator.ts
|
||||
*/
|
||||
|
||||
import { AstroError } from 'astro/errors';
|
||||
import type { ReadableStreamDefaultReadResult } from 'node:stream/web';
|
||||
import { Readable as NodeReadableStream } from 'stream';
|
||||
import { AstroError } from 'astro/errors';
|
||||
|
||||
interface NodeStreamIterator<T> {
|
||||
next(): Promise<IteratorResult<T, boolean | undefined>>;
|
||||
|
|
Loading…
Reference in a new issue