Skip to content

Commit 0b7a65e

Browse files
authored
Release 2.25.0 (#1022)
1 parent 2b57b62 commit 0b7a65e

26 files changed

+66
-58
lines changed

dist/rollbar.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -1084,11 +1084,11 @@ function Stack(exception, skip) {
10841084
function parse(e, skip) {
10851085
var err = e;
10861086

1087-
if (err.nested) {
1087+
if (err.nested || err.cause) {
10881088
var traceChain = [];
10891089
while (err) {
10901090
traceChain.push(new Stack(err, skip));
1091-
err = err.nested;
1091+
err = err.nested || err.cause;
10921092

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

35463546
chain.push(err);
35473547

3548-
while (err.nested) {
3549-
err = err.nested;
3548+
while (err.nested || err.cause) {
3549+
err = err.nested || err.cause;
35503550
chain.push(err);
35513551
}
35523552

@@ -4579,7 +4579,7 @@ module.exports = {
45794579

45804580

45814581
module.exports = {
4582-
version: '2.24.1',
4582+
version: '2.25.0',
45834583
endpoint: 'api.rollbar.com/api/1/item/',
45844584
logLevel: 'debug',
45854585
reportLevel: 'debug',
@@ -5255,8 +5255,10 @@ Instrumenter.prototype.instrumentNetwork = function() {
52555255
// Test to ensure body is a Promise, which it should always be.
52565256
if (typeof body.then === 'function') {
52575257
body.then(function (text) {
5258-
if (self.isJsonContentType(metadata.response_content_type)) {
5258+
if (text && self.isJsonContentType(metadata.response_content_type)) {
52595259
metadata.response.body = self.scrubJson(text);
5260+
} else {
5261+
metadata.response.body = text;
52605262
}
52615263
});
52625264
} else {
@@ -5581,16 +5583,16 @@ Instrumenter.prototype.handleCspError = function(message) {
55815583
}
55825584

55835585
Instrumenter.prototype.deinstrumentContentSecurityPolicy = function() {
5584-
if (!('addEventListener' in this._window)) { return; }
5586+
if (!('addEventListener' in this._document)) { return; }
55855587

55865588
this.removeListeners('contentsecuritypolicy');
55875589
};
55885590

55895591
Instrumenter.prototype.instrumentContentSecurityPolicy = function() {
5590-
if (!('addEventListener' in this._window)) { return; }
5592+
if (!('addEventListener' in this._document)) { return; }
55915593

55925594
var cspHandler = this.handleCspEvent.bind(this);
5593-
this.addListener('contentsecuritypolicy', this._window, 'securitypolicyviolation', null, cspHandler, false);
5595+
this.addListener('contentsecuritypolicy', this._document, 'securitypolicyviolation', null, cspHandler, false);
55945596
};
55955597

55965598
Instrumenter.prototype.addListener = function(section, obj, type, altType, handler, capture) {

dist/rollbar.js.map

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

dist/rollbar.min.js

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

dist/rollbar.min.js.map

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

dist/rollbar.named-amd.js

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

dist/rollbar.named-amd.js.map

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

dist/rollbar.named-amd.min.js

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

dist/rollbar.named-amd.min.js.map

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

dist/rollbar.noconflict.umd.js

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

dist/rollbar.noconflict.umd.js.map

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

dist/rollbar.noconflict.umd.min.js

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

dist/rollbar.noconflict.umd.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)