Skip to content

Commit

Permalink
Release v2.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Apr 14, 2020
1 parent 802b5ce commit fc5e3b2
Show file tree
Hide file tree
Showing 26 changed files with 66 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rollbar.js

[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.15.0)](https://travis-ci.org/rollbar/rollbar.js)
[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.15.1)](https://travis-ci.org/rollbar/rollbar.js)
[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/rollbar/rollbar.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rollbar/rollbar.js/context:javascript)
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/rollbar/rollbar.js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rollbar/rollbar.js/alerts)

Expand Down
14 changes: 11 additions & 3 deletions dist/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ function _gWindow() {
/* global __DEFAULT_ENDPOINT__:false */

var defaultOptions = {
version: "2.15.0",
version: "2.15.1",
scrubFields: ["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"],
logLevel: "debug",
reportLevel: "debug",
Expand Down Expand Up @@ -5571,7 +5571,7 @@ Instrumenter.prototype.instrumentNetwork = function() {
} else {
xhr.onreadystatechange = onreadystatechangeHandler;
}
if (xhr.__rollbar_xhr) {
if (xhr.__rollbar_xhr && self.trackHttpErrors()) {
xhr.__rollbar_xhr.stack = (new Error()).stack;
}
return orig.apply(this, arguments);
Expand Down Expand Up @@ -5629,7 +5629,9 @@ Instrumenter.prototype.instrumentNetwork = function() {
}
}
self.captureNetwork(metadata, 'fetch', undefined);
metadata.stack = (new Error()).stack;
if (self.trackHttpErrors()) {
metadata.stack = (new Error()).stack;
}
return orig.apply(this, args).then(function (resp) {
metadata.end_time_ms = _.now();
metadata.status_code = resp.status;
Expand Down Expand Up @@ -5710,6 +5712,12 @@ Instrumenter.prototype.fetchHeaders = function(inHeaders, headersConfig) {
return outHeaders;
}

Instrumenter.prototype.trackHttpErrors = function() {
return this.autoInstrument.networkErrorOnHttp5xx ||
this.autoInstrument.networkErrorOnHttp4xx ||
this.autoInstrument.networkErrorOnHttp0;
}

Instrumenter.prototype.errorOnHttpStatus = function(metadata) {
var status = metadata.status_code;

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.

14 changes: 11 additions & 3 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.

14 changes: 11 additions & 3 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.

Loading

0 comments on commit fc5e3b2

Please sign in to comment.