Skip to content

Commit

Permalink
ref: Move RewriteFrames integration to the core
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Oct 8, 2018
1 parent 01228c8 commit 50918f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@
- [node] feat: Make node transactions a pluggable integration with tests
- [core] feat: getRequestheaders should handle legacy DSNs
- [core] fix: correct sampleRate behaviour
- [core] feat: RewriteFrames pluggable integration

## 4.0.6

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/integrations/index.ts
Expand Up @@ -4,3 +4,4 @@ export { SDKInformation } from './sdkinformation';
export { InboundFilters } from './inboundfilters';

export { Debug } from './pluggable/debug';
export { RewriteFrames } from './pluggable/rewriteframes';
@@ -1,7 +1,6 @@
import { Scope } from '@sentry/hub';
import { getCurrentHub, Scope } from '@sentry/hub';
import { Integration, SentryEvent, StackFrame } from '@sentry/types';
import { basename, relative } from 'path';
import { getCurrentHub } from '../../hub';

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

Expand Down Expand Up @@ -67,6 +66,7 @@ export class RewriteFrames implements Integration {

if (exception) {
try {
// tslint:disable-next-line:no-unsafe-any
return (exception as any).values[0].stacktrace.frames;
} catch (_oO) {
return undefined;
Expand Down

0 comments on commit 50918f9

Please sign in to comment.