File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ import {
1010 normalizeToSize ,
1111} from '@sentry/utils' ;
1212
13- import { node } from './stack-parser' ;
13+ import { nodeStackParser } from './stack-parser' ;
1414
1515/**
1616 * Extracts stack frames from the error.stack string
1717 */
1818export function extractStackFromError ( error : Error ) : StackFrame [ ] {
19- return createStackParser ( node ) ( error . stack || '' ) ;
19+ return createStackParser ( nodeStackParser ) ( error . stack || '' ) ;
2020}
2121
2222/**
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function getModule(filename: string | undefined): string | undefined {
3838const FILENAME_MATCH = / ^ \s * [ - ] { 4 , } $ / ;
3939const FULL_MATCH = / a t (?: ( .+ ?) \s + \( ) ? (?: ( .+ ?) : ( \d + ) (?: : ( \d + ) ) ? | ( [ ^ ) ] + ) ) \) ? / ;
4040
41- export const node : StackLineParser = ( line : string ) => {
41+ export const nodeStackParser : StackLineParser = ( line : string ) => {
4242 if ( line . match ( FILENAME_MATCH ) ) {
4343 return {
4444 filename : line ,
You can’t perform that action at this time.
0 commit comments