UNPKG

823 BTypeScriptView Raw
1import type { StackLineParser, StackLineParserFn } from '@sentry/types';
2export type GetModuleFn = (filename: string | undefined) => string | undefined;
3/**
4 * Does this filename look like it's part of the app code?
5 */
6export declare function filenameIsInApp(filename: string, isNative?: boolean): boolean;
7/** Node Stack line parser */
8export declare function node(getModule?: GetModuleFn): StackLineParserFn;
9/**
10 * Node.js stack line parser
11 *
12 * This is in @sentry/utils so it can be used from the Electron SDK in the browser for when `nodeIntegration == true`.
13 * This allows it to be used without referencing or importing any node specific code which causes bundlers to complain
14 */
15export declare function nodeStackLineParser(getModule?: GetModuleFn): StackLineParser;
16//# sourceMappingURL=node-stack-trace.d.ts.map
\No newline at end of file