Skip to content

Commit

Permalink
Release v2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Jul 25, 2019
1 parent 0d0a01f commit b432344
Show file tree
Hide file tree
Showing 25 changed files with 129 additions and 29 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.8.1)](https://travis-ci.org/rollbar/rollbar.js)
[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.9.0)](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
29 changes: 27 additions & 2 deletions dist/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ var Instrumenter = __webpack_require__(26);

function Rollbar(options, client) {
this.options = _.handleOptions(defaultOptions, options);
this.options._configuredOptions = options;
var api = new API(this.options, transport, urllib);
this.client = client || new Client(this.options, api, logger, 'browser');

Expand Down Expand Up @@ -1286,6 +1287,7 @@ Rollbar.prototype.configure = function(options, payloadData) {
payload = {payload: payloadData};
}
this.options = _.handleOptions(oldOptions, options, payload);
this.options._configuredOptions = _.handleOptions(oldOptions._configuredOptions, options, payload);
this.client.configure(this.options, payloadData);
this.instrumenter.configure(this.options);
this.setupUnhandledCapture();
Expand Down Expand Up @@ -1525,6 +1527,9 @@ Rollbar.prototype.handleAnonymousErrors = function() {
return;
}

// Allow this to be tracked later.
error._isAnonymous = true;

// url, lineno, colno shouldn't be needed for these errors.
// If that changes, update this accordingly, using the unused
// _stack param as needed (rather than parse error.toString()).
Expand Down Expand Up @@ -1692,6 +1697,8 @@ function addTransformsToNotifier(notifier, gWindow) {
.addTransform(sharedTransforms.addConfigToPayload)
.addTransform(transforms.scrubPayload)
.addTransform(sharedTransforms.userTransform(logger))
.addTransform(sharedTransforms.addConfiguredOptions)
.addTransform(sharedTransforms.addDiagnosticKeys)
.addTransform(sharedTransforms.itemToPayload);
}

Expand Down Expand Up @@ -1730,7 +1737,7 @@ function _gWindow() {
/* global __DEFAULT_ENDPOINT__:false */

var defaultOptions = {
version: "2.8.1",
version: "2.9.0",
scrubFields: ["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","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","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp"],
logLevel: "debug",
reportLevel: "debug",
Expand Down Expand Up @@ -4765,12 +4772,30 @@ function addConfigToPayload(item, options, callback) {
callback(null, item);
}

function addConfiguredOptions(item, options, callback) {
delete options._configuredOptions.accessToken;
item.data.notifier.configured_options = options._configuredOptions;
callback(null, item);
}

function addDiagnosticKeys(item, options, callback) {
var diagnostic = {}

if (_.get(item, 'err._isAnonymous')) {
diagnostic.isAnonymous = true;
}
item.data.notifier.diagnostic = _.merge(item.data.notifier.diagnostic, diagnostic);
callback(null, item);
}

module.exports = {
itemToPayload: itemToPayload,
addTelemetryData: addTelemetryData,
addMessageWithError: addMessageWithError,
userTransform: userTransform,
addConfigToPayload: addConfigToPayload
addConfigToPayload: addConfigToPayload,
addConfiguredOptions: addConfiguredOptions,
addDiagnosticKeys: addDiagnosticKeys
};


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.

29 changes: 27 additions & 2 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.

29 changes: 27 additions & 2 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 b432344

Please sign in to comment.