Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ If you are using the `Hub` right now, see the following table on how to migrate

## Deprecate `client.setupIntegrations()`

Instead, use the new `client.init()` method. You should probably not use this directly and instead use `Sentry.init()`, which calls this under the hood. But if you have a special use case that requires that, you can call `client.init()` instead now.
Instead, use the new `client.init()` method. You should probably not use this directly and instead use `Sentry.init()`,
which calls this under the hood. But if you have a special use case that requires that, you can call `client.init()`
instead now.

## Deprecate `scope.getSpan()` and `scope.setSpan()`

Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function normalizeWindowsPath(path: string): string {

/** Creates a function that gets the module name from a filename */
export function createGetModuleFromFilename(
basePath: string = dirname(process.argv[1]),
basePath: string = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),
isWindows: boolean = sep === '\\',
): (filename: string | undefined) => string | undefined {
const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;
Expand Down