File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ import {
10
10
normalizeToSize ,
11
11
} from '@sentry/utils' ;
12
12
13
- import { node } from './stack-parser' ;
13
+ import { nodeStackParser } from './stack-parser' ;
14
14
15
15
/**
16
16
* Extracts stack frames from the error.stack string
17
17
*/
18
18
export function extractStackFromError ( error : Error ) : StackFrame [ ] {
19
- return createStackParser ( node ) ( error . stack || '' ) ;
19
+ return createStackParser ( nodeStackParser ) ( error . stack || '' ) ;
20
20
}
21
21
22
22
/**
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function getModule(filename: string | undefined): string | undefined {
38
38
const FILENAME_MATCH = / ^ \s * [ - ] { 4 , } $ / ;
39
39
const FULL_MATCH = / a t (?: ( .+ ?) \s + \( ) ? (?: ( .+ ?) : ( \d + ) (?: : ( \d + ) ) ? | ( [ ^ ) ] + ) ) \) ? / ;
40
40
41
- export const node : StackLineParser = ( line : string ) => {
41
+ export const nodeStackParser : StackLineParser = ( line : string ) => {
42
42
if ( line . match ( FILENAME_MATCH ) ) {
43
43
return {
44
44
filename : line ,
You can’t perform that action at this time.
0 commit comments