UNPKG

@backtrace/sourcemap-tools

Version:
16 lines (15 loc) 788 B
export declare const SOURCE_DEBUG_ID_VARIABLE = "_btDebugIds"; export declare const SOURCE_DEBUG_ID_COMMENT = "debugId"; export declare const SOURCEMAP_DEBUG_ID_KEY = "debugId"; export declare class DebugIdGenerator { generateSourceSnippet(uuid: string): string; generateSourceComment(uuid: string): string; replaceDebugId(source: string, oldDebugId: string, newDebugId: string): string; hasCodeSnippet(source: string, debugId: string): boolean; hasCommentSnippet(source: string, debugId: string): boolean; getSourceDebugIdFromComment(source: string): string | undefined; addSourceMapDebugId<T extends object>(sourceMap: T, uuid: string): T & { [SOURCEMAP_DEBUG_ID_KEY]: string; }; getSourceMapDebugId(sourcemap: object): string | undefined; }