hatch-surf/node_modules/next/dist/server/dev/browser-logs/source-map.d.ts
Riley Zhang df378d33ef
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
Merge GitHub main into Gitea repo (allow unrelated histories)
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>
2026-06-25 05:20:46 +02:00

66 lines
2.0 KiB
TypeScript

import type { Project } from '../../../build/swc/types';
import { type StackFrame } from '../../lib/parse-stack';
type WebpackMappingContext = {
bundler: 'webpack';
isServer: boolean;
isEdgeServer: boolean;
isAppDirectory: boolean;
clientStats: () => any;
serverStats: () => any;
edgeServerStats: () => any;
rootDirectory: string;
};
type TurbopackMappingContext = {
bundler: 'turbopack';
isServer: boolean;
isEdgeServer: boolean;
isAppDirectory: boolean;
project: Project;
projectPath: string;
};
export type MappingContext = WebpackMappingContext | TurbopackMappingContext;
export declare function mapFramesUsingBundler(frames: StackFrame[], ctx: MappingContext): Promise<import("../../../next-devtools/server/shared").OriginalStackFramesResponse>;
export declare function getSourceMappedStackFrames(stackTrace: string, ctx: MappingContext, distDir: string, ignore?: boolean): Promise<{
kind: "stack";
stack: string;
frameCode?: undefined;
frames?: undefined;
} | {
kind: "all-ignored";
stack?: undefined;
frameCode?: undefined;
frames?: undefined;
} | {
kind: "with-frame-code";
frameCode: string;
stack: string;
frames: ({
kind: "rejected";
frameText: string;
codeFrame: null;
} | {
kind: "success";
frameText: string;
codeFrame: string | null;
})[];
} | {
kind: "mapped-stack";
stack: string;
frames: ({
kind: "rejected";
frameText: string;
codeFrame: null;
} | {
kind: "success";
frameText: string;
codeFrame: string | null;
})[];
frameCode?: undefined;
}>;
export declare const withLocation: ({ original, stack, }: {
original: Array<any>;
stack: string | null;
}, ctx: MappingContext, distDir: string, _config: boolean | "error" | "warn") => Promise<any[]>;
export declare const getConsoleLocation: (mapped: Awaited<ReturnType<typeof getSourceMappedStackFrames>>) => string | null;
export {};