Skip to content

Commit b404a25

Browse files
committed
Rename to getModuleFromFilename
1 parent 9df6ade commit b404a25

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/node/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export { makeNodeTransport } from './transports';
6060
export { defaultIntegrations, init, defaultStackParser, lastEventId, flush, close, getSentryRelease } from './sdk';
6161
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from './requestdata';
6262
export { deepReadDirSync } from './utils';
63-
export { getModule } from './module';
63+
export { getModuleFromFilename } from './module';
6464

6565
import { Integrations as CoreIntegrations } from '@sentry/core';
6666

packages/node/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function normalizeWindowsPath(path: string): string {
1010
}
1111

1212
/** Gets the module from a filename */
13-
export function getModule(
13+
export function getModuleFromFilename(
1414
filename: string | undefined,
1515
normalizeWindowsPathSeparator: boolean = isWindowsPlatform,
1616
): string | undefined {

packages/node/src/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
RequestData,
3232
Undici,
3333
} from './integrations';
34-
import { getModule } from './module';
34+
import { getModuleFromFilename } from './module';
3535
import { makeNodeTransport } from './transports';
3636
import type { NodeClientOptions, NodeOptions } from './types';
3737

@@ -267,7 +267,7 @@ export function getSentryRelease(fallback?: string): string | undefined {
267267
}
268268

269269
/** Node.js stack parser */
270-
export const defaultStackParser: StackParser = createStackParser(nodeStackLineParser(getModule));
270+
export const defaultStackParser: StackParser = createStackParser(nodeStackLineParser(getModuleFromFilename));
271271

272272
/**
273273
* Enable automatic Session Tracking for the node process.

0 commit comments

Comments
 (0)