Skip to content

Commit 0c2973a

Browse files
committed
3.26.2
1 parent b10a875 commit 0c2973a

File tree

116 files changed

+1159
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1159
-579
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## raven-js - 3.26.2
4+
5+
* FIX: Fallback to <anonymous> handler name in mechanism (#1359)
6+
* FIX: check for undefined stacks in isSameStacktrace (#1339)
7+
38
## raven-js - 3.26.1
49

510
* FIX: Bower build

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.26.1",
3+
"version": "3.26.2",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

dist/angular,console,ember,require,vue/raven.js

+30-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -419,7 +419,7 @@ Raven.prototype = {
419419
// webpack (using a build step causes webpack #1617). Grunt verifies that
420420
// this value matches package.json during build.
421421
// See: https://github.com/getsentry/raven-js/issues/465
422-
VERSION: '3.26.1',
422+
VERSION: '3.26.2',
423423

424424
debug: false,
425425

@@ -1392,7 +1392,7 @@ Raven.prototype = {
13921392
{
13931393
mechanism: {
13941394
type: 'instrument',
1395-
data: {function: orig.name}
1395+
data: {function: orig.name || '<anonymous>'}
13961396
}
13971397
},
13981398
originalCallback
@@ -1427,7 +1427,11 @@ Raven.prototype = {
14271427
{
14281428
mechanism: {
14291429
type: 'instrument',
1430-
data: {target: global, function: 'handleEvent', handler: fn.name}
1430+
data: {
1431+
target: global,
1432+
function: 'handleEvent',
1433+
handler: (fn && fn.name) || '<anonymous>'
1434+
}
14311435
}
14321436
},
14331437
fn.handleEvent
@@ -1478,7 +1482,7 @@ Raven.prototype = {
14781482
data: {
14791483
target: global,
14801484
function: 'addEventListener',
1481-
handler: fn.name
1485+
handler: (fn && fn.name) || '<anonymous>'
14821486
}
14831487
}
14841488
},
@@ -1523,7 +1527,10 @@ Raven.prototype = {
15231527
{
15241528
mechanism: {
15251529
type: 'instrument',
1526-
data: {function: 'requestAnimationFrame', handler: orig.name}
1530+
data: {
1531+
function: 'requestAnimationFrame',
1532+
handler: (orig && orig.name) || '<anonymous>'
1533+
}
15271534
}
15281535
},
15291536
cb
@@ -1595,7 +1602,7 @@ Raven.prototype = {
15951602
{
15961603
mechanism: {
15971604
type: 'instrument',
1598-
data: {function: prop, handler: orig.name}
1605+
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
15991606
}
16001607
},
16011608
orig
@@ -1670,7 +1677,7 @@ Raven.prototype = {
16701677
type: 'instrument',
16711678
data: {
16721679
function: 'onreadystatechange',
1673-
handler: orig.name
1680+
handler: (orig && orig.name) || '<anonymous>'
16741681
}
16751682
}
16761683
},
@@ -2054,10 +2061,13 @@ Raven.prototype = {
20542061
delete data.mechanism;
20552062
}
20562063

2057-
data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
2058-
type: 'generic',
2059-
handled: true
2060-
});
2064+
data.exception.mechanism = objectMerge(
2065+
{
2066+
type: 'generic',
2067+
handled: true
2068+
},
2069+
data.exception.mechanism || {}
2070+
);
20612071

20622072
// Fire away!
20632073
this._send(data);
@@ -2622,7 +2632,11 @@ var stringify = _dereq_(12);
26222632
var _window =
26232633
typeof window !== 'undefined'
26242634
? window
2625-
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2635+
: typeof global !== 'undefined'
2636+
? global
2637+
: typeof self !== 'undefined'
2638+
? self
2639+
: {};
26262640

26272641
function isObject(what) {
26282642
return typeof what === 'object' && what !== null;
@@ -3036,6 +3050,9 @@ function isSameStacktrace(stack1, stack2) {
30363050
var frames1 = stack1.frames;
30373051
var frames2 = stack2.frames;
30383052

3053+
// Exit early if stacktrace is malformed
3054+
if (frames1 === undefined || frames2 === undefined) return false;
3055+
30393056
// Exit early if frame count differs
30403057
if (frames1.length !== frames2.length) return false;
30413058

dist/angular,console,ember,require,vue/raven.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require,vue/raven.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require/raven.js

+30-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -369,7 +369,7 @@ Raven.prototype = {
369369
// webpack (using a build step causes webpack #1617). Grunt verifies that
370370
// this value matches package.json during build.
371371
// See: https://github.com/getsentry/raven-js/issues/465
372-
VERSION: '3.26.1',
372+
VERSION: '3.26.2',
373373

374374
debug: false,
375375

@@ -1342,7 +1342,7 @@ Raven.prototype = {
13421342
{
13431343
mechanism: {
13441344
type: 'instrument',
1345-
data: {function: orig.name}
1345+
data: {function: orig.name || '<anonymous>'}
13461346
}
13471347
},
13481348
originalCallback
@@ -1377,7 +1377,11 @@ Raven.prototype = {
13771377
{
13781378
mechanism: {
13791379
type: 'instrument',
1380-
data: {target: global, function: 'handleEvent', handler: fn.name}
1380+
data: {
1381+
target: global,
1382+
function: 'handleEvent',
1383+
handler: (fn && fn.name) || '<anonymous>'
1384+
}
13811385
}
13821386
},
13831387
fn.handleEvent
@@ -1428,7 +1432,7 @@ Raven.prototype = {
14281432
data: {
14291433
target: global,
14301434
function: 'addEventListener',
1431-
handler: fn.name
1435+
handler: (fn && fn.name) || '<anonymous>'
14321436
}
14331437
}
14341438
},
@@ -1473,7 +1477,10 @@ Raven.prototype = {
14731477
{
14741478
mechanism: {
14751479
type: 'instrument',
1476-
data: {function: 'requestAnimationFrame', handler: orig.name}
1480+
data: {
1481+
function: 'requestAnimationFrame',
1482+
handler: (orig && orig.name) || '<anonymous>'
1483+
}
14771484
}
14781485
},
14791486
cb
@@ -1545,7 +1552,7 @@ Raven.prototype = {
15451552
{
15461553
mechanism: {
15471554
type: 'instrument',
1548-
data: {function: prop, handler: orig.name}
1555+
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
15491556
}
15501557
},
15511558
orig
@@ -1620,7 +1627,7 @@ Raven.prototype = {
16201627
type: 'instrument',
16211628
data: {
16221629
function: 'onreadystatechange',
1623-
handler: orig.name
1630+
handler: (orig && orig.name) || '<anonymous>'
16241631
}
16251632
}
16261633
},
@@ -2004,10 +2011,13 @@ Raven.prototype = {
20042011
delete data.mechanism;
20052012
}
20062013

2007-
data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
2008-
type: 'generic',
2009-
handled: true
2010-
});
2014+
data.exception.mechanism = objectMerge(
2015+
{
2016+
type: 'generic',
2017+
handled: true
2018+
},
2019+
data.exception.mechanism || {}
2020+
);
20112021

20122022
// Fire away!
20132023
this._send(data);
@@ -2572,7 +2582,11 @@ var stringify = _dereq_(11);
25722582
var _window =
25732583
typeof window !== 'undefined'
25742584
? window
2575-
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2585+
: typeof global !== 'undefined'
2586+
? global
2587+
: typeof self !== 'undefined'
2588+
? self
2589+
: {};
25762590

25772591
function isObject(what) {
25782592
return typeof what === 'object' && what !== null;
@@ -2986,6 +3000,9 @@ function isSameStacktrace(stack1, stack2) {
29863000
var frames1 = stack1.frames;
29873001
var frames2 = stack2.frames;
29883002

3003+
// Exit early if stacktrace is malformed
3004+
if (frames1 === undefined || frames2 === undefined) return false;
3005+
29893006
// Exit early if frame count differs
29903007
if (frames1.length !== frames2.length) return false;
29913008

dist/angular,console,ember,require/raven.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,require/raven.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,vue/raven.js

+30-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -402,7 +402,7 @@ Raven.prototype = {
402402
// webpack (using a build step causes webpack #1617). Grunt verifies that
403403
// this value matches package.json during build.
404404
// See: https://github.com/getsentry/raven-js/issues/465
405-
VERSION: '3.26.1',
405+
VERSION: '3.26.2',
406406

407407
debug: false,
408408

@@ -1375,7 +1375,7 @@ Raven.prototype = {
13751375
{
13761376
mechanism: {
13771377
type: 'instrument',
1378-
data: {function: orig.name}
1378+
data: {function: orig.name || '<anonymous>'}
13791379
}
13801380
},
13811381
originalCallback
@@ -1410,7 +1410,11 @@ Raven.prototype = {
14101410
{
14111411
mechanism: {
14121412
type: 'instrument',
1413-
data: {target: global, function: 'handleEvent', handler: fn.name}
1413+
data: {
1414+
target: global,
1415+
function: 'handleEvent',
1416+
handler: (fn && fn.name) || '<anonymous>'
1417+
}
14141418
}
14151419
},
14161420
fn.handleEvent
@@ -1461,7 +1465,7 @@ Raven.prototype = {
14611465
data: {
14621466
target: global,
14631467
function: 'addEventListener',
1464-
handler: fn.name
1468+
handler: (fn && fn.name) || '<anonymous>'
14651469
}
14661470
}
14671471
},
@@ -1506,7 +1510,10 @@ Raven.prototype = {
15061510
{
15071511
mechanism: {
15081512
type: 'instrument',
1509-
data: {function: 'requestAnimationFrame', handler: orig.name}
1513+
data: {
1514+
function: 'requestAnimationFrame',
1515+
handler: (orig && orig.name) || '<anonymous>'
1516+
}
15101517
}
15111518
},
15121519
cb
@@ -1578,7 +1585,7 @@ Raven.prototype = {
15781585
{
15791586
mechanism: {
15801587
type: 'instrument',
1581-
data: {function: prop, handler: orig.name}
1588+
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
15821589
}
15831590
},
15841591
orig
@@ -1653,7 +1660,7 @@ Raven.prototype = {
16531660
type: 'instrument',
16541661
data: {
16551662
function: 'onreadystatechange',
1656-
handler: orig.name
1663+
handler: (orig && orig.name) || '<anonymous>'
16571664
}
16581665
}
16591666
},
@@ -2037,10 +2044,13 @@ Raven.prototype = {
20372044
delete data.mechanism;
20382045
}
20392046

2040-
data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
2041-
type: 'generic',
2042-
handled: true
2043-
});
2047+
data.exception.mechanism = objectMerge(
2048+
{
2049+
type: 'generic',
2050+
handled: true
2051+
},
2052+
data.exception.mechanism || {}
2053+
);
20442054

20452055
// Fire away!
20462056
this._send(data);
@@ -2605,7 +2615,11 @@ var stringify = _dereq_(11);
26052615
var _window =
26062616
typeof window !== 'undefined'
26072617
? window
2608-
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2618+
: typeof global !== 'undefined'
2619+
? global
2620+
: typeof self !== 'undefined'
2621+
? self
2622+
: {};
26092623

26102624
function isObject(what) {
26112625
return typeof what === 'object' && what !== null;
@@ -3019,6 +3033,9 @@ function isSameStacktrace(stack1, stack2) {
30193033
var frames1 = stack1.frames;
30203034
var frames2 = stack2.frames;
30213035

3036+
// Exit early if stacktrace is malformed
3037+
if (frames1 === undefined || frames2 === undefined) return false;
3038+
30223039
// Exit early if frame count differs
30233040
if (frames1.length !== frames2.length) return false;
30243041

dist/angular,console,ember,vue/raven.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular,console,ember,vue/raven.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)