Skip to content

Commit

Permalink
3.26.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jun 11, 2018
1 parent b10a875 commit 0c2973a
Show file tree
Hide file tree
Showing 116 changed files with 1,159 additions and 579 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## raven-js - 3.26.2

* FIX: Fallback to <anonymous> handler name in mechanism (#1359)
* FIX: check for undefined stacks in isSameStacktrace (#1339)

## raven-js - 3.26.1

* FIX: Bower build
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raven-js",
"version": "3.26.1",
"version": "3.26.2",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
43 changes: 30 additions & 13 deletions dist/angular,console,ember,require,vue/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */

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

debug: false,

Expand Down Expand Up @@ -1392,7 +1392,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: orig.name}
data: {function: orig.name || '<anonymous>'}
}
},
originalCallback
Expand Down Expand Up @@ -1427,7 +1427,11 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {target: global, function: 'handleEvent', handler: fn.name}
data: {
target: global,
function: 'handleEvent',
handler: (fn && fn.name) || '<anonymous>'
}
}
},
fn.handleEvent
Expand Down Expand Up @@ -1478,7 +1482,7 @@ Raven.prototype = {
data: {
target: global,
function: 'addEventListener',
handler: fn.name
handler: (fn && fn.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -1523,7 +1527,10 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: 'requestAnimationFrame', handler: orig.name}
data: {
function: 'requestAnimationFrame',
handler: (orig && orig.name) || '<anonymous>'
}
}
},
cb
Expand Down Expand Up @@ -1595,7 +1602,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: prop, handler: orig.name}
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
}
},
orig
Expand Down Expand Up @@ -1670,7 +1677,7 @@ Raven.prototype = {
type: 'instrument',
data: {
function: 'onreadystatechange',
handler: orig.name
handler: (orig && orig.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -2054,10 +2061,13 @@ Raven.prototype = {
delete data.mechanism;
}

data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
type: 'generic',
handled: true
});
data.exception.mechanism = objectMerge(
{
type: 'generic',
handled: true
},
data.exception.mechanism || {}
);

// Fire away!
this._send(data);
Expand Down Expand Up @@ -2622,7 +2632,11 @@ var stringify = _dereq_(12);
var _window =
typeof window !== 'undefined'
? window
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
: typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: {};

function isObject(what) {
return typeof what === 'object' && what !== null;
Expand Down Expand Up @@ -3036,6 +3050,9 @@ function isSameStacktrace(stack1, stack2) {
var frames1 = stack1.frames;
var frames2 = stack2.frames;

// Exit early if stacktrace is malformed
if (frames1 === undefined || frames2 === undefined) return false;

// Exit early if frame count differs
if (frames1.length !== frames2.length) return false;

Expand Down
6 changes: 3 additions & 3 deletions dist/angular,console,ember,require,vue/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,require,vue/raven.min.js.map

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions dist/angular,console,ember,require/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */

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

debug: false,

Expand Down Expand Up @@ -1342,7 +1342,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: orig.name}
data: {function: orig.name || '<anonymous>'}
}
},
originalCallback
Expand Down Expand Up @@ -1377,7 +1377,11 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {target: global, function: 'handleEvent', handler: fn.name}
data: {
target: global,
function: 'handleEvent',
handler: (fn && fn.name) || '<anonymous>'
}
}
},
fn.handleEvent
Expand Down Expand Up @@ -1428,7 +1432,7 @@ Raven.prototype = {
data: {
target: global,
function: 'addEventListener',
handler: fn.name
handler: (fn && fn.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -1473,7 +1477,10 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: 'requestAnimationFrame', handler: orig.name}
data: {
function: 'requestAnimationFrame',
handler: (orig && orig.name) || '<anonymous>'
}
}
},
cb
Expand Down Expand Up @@ -1545,7 +1552,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: prop, handler: orig.name}
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
}
},
orig
Expand Down Expand Up @@ -1620,7 +1627,7 @@ Raven.prototype = {
type: 'instrument',
data: {
function: 'onreadystatechange',
handler: orig.name
handler: (orig && orig.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -2004,10 +2011,13 @@ Raven.prototype = {
delete data.mechanism;
}

data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
type: 'generic',
handled: true
});
data.exception.mechanism = objectMerge(
{
type: 'generic',
handled: true
},
data.exception.mechanism || {}
);

// Fire away!
this._send(data);
Expand Down Expand Up @@ -2572,7 +2582,11 @@ var stringify = _dereq_(11);
var _window =
typeof window !== 'undefined'
? window
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
: typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: {};

function isObject(what) {
return typeof what === 'object' && what !== null;
Expand Down Expand Up @@ -2986,6 +3000,9 @@ function isSameStacktrace(stack1, stack2) {
var frames1 = stack1.frames;
var frames2 = stack2.frames;

// Exit early if stacktrace is malformed
if (frames1 === undefined || frames2 === undefined) return false;

// Exit early if frame count differs
if (frames1.length !== frames2.length) return false;

Expand Down
4 changes: 2 additions & 2 deletions dist/angular,console,ember,require/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,require/raven.min.js.map

Large diffs are not rendered by default.

43 changes: 30 additions & 13 deletions dist/angular,console,ember,vue/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.26.1 (d8f8951) | github.com/getsentry/raven-js */
/*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */

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

debug: false,

Expand Down Expand Up @@ -1375,7 +1375,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: orig.name}
data: {function: orig.name || '<anonymous>'}
}
},
originalCallback
Expand Down Expand Up @@ -1410,7 +1410,11 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {target: global, function: 'handleEvent', handler: fn.name}
data: {
target: global,
function: 'handleEvent',
handler: (fn && fn.name) || '<anonymous>'
}
}
},
fn.handleEvent
Expand Down Expand Up @@ -1461,7 +1465,7 @@ Raven.prototype = {
data: {
target: global,
function: 'addEventListener',
handler: fn.name
handler: (fn && fn.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -1506,7 +1510,10 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: 'requestAnimationFrame', handler: orig.name}
data: {
function: 'requestAnimationFrame',
handler: (orig && orig.name) || '<anonymous>'
}
}
},
cb
Expand Down Expand Up @@ -1578,7 +1585,7 @@ Raven.prototype = {
{
mechanism: {
type: 'instrument',
data: {function: prop, handler: orig.name}
data: {function: prop, handler: (orig && orig.name) || '<anonymous>'}
}
},
orig
Expand Down Expand Up @@ -1653,7 +1660,7 @@ Raven.prototype = {
type: 'instrument',
data: {
function: 'onreadystatechange',
handler: orig.name
handler: (orig && orig.name) || '<anonymous>'
}
}
},
Expand Down Expand Up @@ -2037,10 +2044,13 @@ Raven.prototype = {
delete data.mechanism;
}

data.exception.mechanism = objectMerge(data.exception.mechanism || {}, {
type: 'generic',
handled: true
});
data.exception.mechanism = objectMerge(
{
type: 'generic',
handled: true
},
data.exception.mechanism || {}
);

// Fire away!
this._send(data);
Expand Down Expand Up @@ -2605,7 +2615,11 @@ var stringify = _dereq_(11);
var _window =
typeof window !== 'undefined'
? window
: typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
: typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: {};

function isObject(what) {
return typeof what === 'object' && what !== null;
Expand Down Expand Up @@ -3019,6 +3033,9 @@ function isSameStacktrace(stack1, stack2) {
var frames1 = stack1.frames;
var frames2 = stack2.frames;

// Exit early if stacktrace is malformed
if (frames1 === undefined || frames2 === undefined) return false;

// Exit early if frame count differs
if (frames1.length !== frames2.length) return false;

Expand Down
6 changes: 3 additions & 3 deletions dist/angular,console,ember,vue/raven.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular,console,ember,vue/raven.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 0c2973a

Please sign in to comment.