File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ for (var idx in frames) {
127
127
var urlWithBlacklistedUrl = new Error ( 'filter' ) ;
128
128
urlWithBlacklistedUrl . stack =
129
129
'Error: bar\n' +
130
- ' at baz( http://localhost:5000/baz .js:2:9) \n' +
130
+ ' at http://localhost:5000/foo .js:7:19 \n' +
131
131
' at bar(http://localhost:5000/bar.js:2:3)\n' +
132
- ' at http://localhost:5000/foo .js:7:19 ' ;
132
+ ' at baz( http://localhost:5000/baz .js:2:9)\n ' ;
133
133
134
134
/**
135
135
* > foo-pass.js file called a function in bar-pass.js
@@ -141,9 +141,9 @@ for (var idx in frames) {
141
141
var urlWithoutBlacklistedUrl = new Error ( 'pass' ) ;
142
142
urlWithoutBlacklistedUrl . stack =
143
143
'Error: bar\n' +
144
- ' at baz( http://localhost:5000/baz -pass.js:2:9) \n' +
144
+ ' at http://localhost:5000/foo -pass.js:7:19 \n' +
145
145
' at bar(http://localhost:5000/bar-pass.js:2:3)\n' +
146
- ' at http://localhost:5000/foo -pass.js:7:19 ' ;
146
+ ' at baz( http://localhost:5000/baz -pass.js:2:9)\n ' ;
147
147
148
148
Sentry . captureException ( urlWithBlacklistedUrl ) ;
149
149
Sentry . captureException ( urlWithoutBlacklistedUrl ) ;
Original file line number Diff line number Diff line change @@ -177,11 +177,11 @@ export class InboundFilters implements Integration {
177
177
private getEventFilterUrl ( event : SentryEvent ) : string | null {
178
178
try {
179
179
if ( event . stacktrace ) {
180
- // tslint:disable-next-line :no-unsafe-any
180
+ // tslint:disable:no-unsafe-any
181
181
const frames = ( event as any ) . stacktrace . frames ;
182
182
return frames [ frames . length - 1 ] . filename ;
183
183
} else if ( event . exception ) {
184
- // tslint:disable-next-line :no-unsafe-any
184
+ // tslint:disable:no-unsafe-any
185
185
const frames = ( event as any ) . exception . values [ 0 ] . stacktrace . frames ;
186
186
return frames [ frames . length - 1 ] . filename ;
187
187
} else {
You can’t perform that action at this time.
0 commit comments