Skip to content

Commit c69db78

Browse files
committed
Rename stack parser
1 parent 19dadbb commit c69db78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/node/src/eventbuilder.ts

+2-2
Original file line numberDiff line numberDiff 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
*/
1818
export function extractStackFromError(error: Error): StackFrame[] {
19-
return createStackParser(node)(error.stack || '');
19+
return createStackParser(nodeStackParser)(error.stack || '');
2020
}
2121

2222
/**

packages/node/src/stack-parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function getModule(filename: string | undefined): string | undefined {
3838
const FILENAME_MATCH = /^\s*[-]{4,}$/;
3939
const FULL_MATCH = /at (?:(.+?)\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,

0 commit comments

Comments
 (0)