Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
57 lines
2.3 KiB
TypeScript
57 lines
2.3 KiB
TypeScript
import { type BasicSourceMapPayload } from '../lib/source-maps';
|
|
import { type StackFrame, type OriginalStackFrameResponse, type OriginalStackFramesResponse } from '../../next-devtools/server/shared';
|
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
import type webpack from 'webpack';
|
|
import type { RawSourceMap } from 'next/dist/compiled/source-map08';
|
|
type IgnoredSources = Array<{
|
|
url: string;
|
|
ignored: boolean;
|
|
}>;
|
|
type Source = {
|
|
type: 'file';
|
|
sourceMap: BasicSourceMapPayload;
|
|
ignoredSources: IgnoredSources;
|
|
moduleURL: string;
|
|
} | {
|
|
type: 'bundle';
|
|
sourceMap: BasicSourceMapPayload;
|
|
ignoredSources: IgnoredSources;
|
|
compilation: webpack.Compilation;
|
|
moduleId: string;
|
|
moduleURL: string;
|
|
};
|
|
export declare function getIgnoredSources(sourceMap: RawSourceMap & {
|
|
ignoreList?: number[];
|
|
}): IgnoredSources;
|
|
export declare function createOriginalStackFrame({ ignoredByDefault, source, rootDirectory, frame, errorMessage, }: {
|
|
/** setting this to true will not consult ignoreList */
|
|
ignoredByDefault: boolean;
|
|
source: Source;
|
|
rootDirectory: string;
|
|
frame: StackFrame;
|
|
errorMessage?: string;
|
|
}): Promise<OriginalStackFrameResponse | null>;
|
|
export declare function getOriginalStackFrames({ isServer, isEdgeServer, isAppDirectory, frames, clientStats, serverStats, edgeServerStats, rootDirectory, }: {
|
|
isServer: boolean;
|
|
isEdgeServer: boolean;
|
|
isAppDirectory: boolean;
|
|
frames: readonly StackFrame[];
|
|
clientStats: () => webpack.Stats | null;
|
|
serverStats: () => webpack.Stats | null;
|
|
edgeServerStats: () => webpack.Stats | null;
|
|
rootDirectory: string;
|
|
}): Promise<OriginalStackFramesResponse>;
|
|
export declare function getOverlayMiddleware(options: {
|
|
rootDirectory: string;
|
|
isSrcDir: boolean;
|
|
clientStats: () => webpack.Stats | null;
|
|
serverStats: () => webpack.Stats | null;
|
|
edgeServerStats: () => webpack.Stats | null;
|
|
}): (req: IncomingMessage, res: ServerResponse, next: () => void) => Promise<void>;
|
|
export declare function getSourceMapMiddleware(options: {
|
|
clientStats: () => webpack.Stats | null;
|
|
serverStats: () => webpack.Stats | null;
|
|
edgeServerStats: () => webpack.Stats | null;
|
|
}): (req: IncomingMessage, res: ServerResponse, next: () => void) => Promise<void>;
|
|
export {};
|