Skip to content

Commit

Permalink
Release 2.25.0 (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Apr 15, 2022
1 parent 2b57b62 commit 0b7a65e
Show file tree
Hide file tree
Showing 26 changed files with 66 additions and 58 deletions.
20 changes: 11 additions & 9 deletions dist/rollbar.js
Expand Up @@ -1084,11 +1084,11 @@ function Stack(exception, skip) {
function parse(e, skip) {
var err = e;

if (err.nested) {
if (err.nested || err.cause) {
var traceChain = [];
while (err) {
traceChain.push(new Stack(err, skip));
err = err.nested;
err = err.nested || err.cause;

skip = 0; // Only apply skip value to primary error
}
Expand Down Expand Up @@ -3545,8 +3545,8 @@ function addErrorContext(item) {

chain.push(err);

while (err.nested) {
err = err.nested;
while (err.nested || err.cause) {
err = err.nested || err.cause;
chain.push(err);
}

Expand Down Expand Up @@ -4579,7 +4579,7 @@ module.exports = {


module.exports = {
version: '2.24.1',
version: '2.25.0',
endpoint: 'api.rollbar.com/api/1/item/',
logLevel: 'debug',
reportLevel: 'debug',
Expand Down Expand Up @@ -5255,8 +5255,10 @@ Instrumenter.prototype.instrumentNetwork = function() {
// Test to ensure body is a Promise, which it should always be.
if (typeof body.then === 'function') {
body.then(function (text) {
if (self.isJsonContentType(metadata.response_content_type)) {
if (text && self.isJsonContentType(metadata.response_content_type)) {
metadata.response.body = self.scrubJson(text);
} else {
metadata.response.body = text;
}
});
} else {
Expand Down Expand Up @@ -5581,16 +5583,16 @@ Instrumenter.prototype.handleCspError = function(message) {
}

Instrumenter.prototype.deinstrumentContentSecurityPolicy = function() {
if (!('addEventListener' in this._window)) { return; }
if (!('addEventListener' in this._document)) { return; }

this.removeListeners('contentsecuritypolicy');
};

Instrumenter.prototype.instrumentContentSecurityPolicy = function() {
if (!('addEventListener' in this._window)) { return; }
if (!('addEventListener' in this._document)) { return; }

var cspHandler = this.handleCspEvent.bind(this);
this.addListener('contentsecuritypolicy', this._window, 'securitypolicyviolation', null, cspHandler, false);
this.addListener('contentsecuritypolicy', this._document, 'securitypolicyviolation', null, cspHandler, false);
};

Instrumenter.prototype.addListener = function(section, obj, type, altType, handler, capture) {
Expand Down
2 changes: 1 addition & 1 deletion dist/rollbar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.min.js.map

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions dist/rollbar.named-amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/rollbar.named-amd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.named-amd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.named-amd.min.js.map

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions dist/rollbar.noconflict.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/rollbar.noconflict.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.noconflict.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollbar.noconflict.umd.min.js.map

Large diffs are not rendered by default.

0 comments on commit 0b7a65e

Please sign in to comment.