Skip to content

Commit 50918f9

Browse files
committed
ref: Move RewriteFrames integration to the core
1 parent 01228c8 commit 50918f9

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [node] feat: Make node transactions a pluggable integration with tests
1414
- [core] feat: getRequestheaders should handle legacy DSNs
1515
- [core] fix: correct sampleRate behaviour
16+
- [core] feat: RewriteFrames pluggable integration
1617

1718
## 4.0.6
1819

packages/core/src/integrations/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export { SDKInformation } from './sdkinformation';
44
export { InboundFilters } from './inboundfilters';
55

66
export { Debug } from './pluggable/debug';
7+
export { RewriteFrames } from './pluggable/rewriteframes';

packages/node/src/integrations/pluggable/rewriteframes.ts renamed to packages/core/src/integrations/pluggable/rewriteframes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { Scope } from '@sentry/hub';
1+
import { getCurrentHub, Scope } from '@sentry/hub';
22
import { Integration, SentryEvent, StackFrame } from '@sentry/types';
33
import { basename, relative } from 'path';
4-
import { getCurrentHub } from '../../hub';
54

65
type StackFrameIteratee = (frame: StackFrame) => Promise<StackFrame>;
76

@@ -67,6 +66,7 @@ export class RewriteFrames implements Integration {
6766

6867
if (exception) {
6968
try {
69+
// tslint:disable-next-line:no-unsafe-any
7070
return (exception as any).values[0].stacktrace.frames;
7171
} catch (_oO) {
7272
return undefined;

0 commit comments

Comments
 (0)