Skip to content

Commit

Permalink
Release v2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Apr 8, 2019
1 parent ddc2807 commit a4fa6f2
Show file tree
Hide file tree
Showing 26 changed files with 122 additions and 42 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.5.4)](https://travis-ci.org/rollbar/rollbar.js)
[![Build Status](https://api.travis-ci.org/rollbar/rollbar.js.png?branch=v2.5.5)](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
28 changes: 24 additions & 4 deletions dist/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
/* global __DEFAULT_ENDPOINT__:false */

var defaultOptions = {
version: ("2.5.4"),
version: ("2.5.5"),
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 @@ -934,7 +934,8 @@
* @returns true if e is an error
*/
function isError(e) {
return isType(e, 'error');
// Detect both Error and Firefox Exception type
return isType(e, 'error') || isType(e, 'exception');
}

function traverse(obj, func, seen) {
Expand Down Expand Up @@ -1204,6 +1205,7 @@
break;
case 'error':
case 'domexception':
case 'exception': // Firefox Exception type
err ? extraArgs.push(arg) : err = arg;
break;
case 'object':
Expand Down Expand Up @@ -3400,7 +3402,7 @@

var method = 'GET';
var url = _.formatUrl(options);
_makeRequest(accessToken, url, method, null, callback, requestFactory);
_makeZoneRequest(accessToken, url, method, null, callback, requestFactory);
}

function post(accessToken, options, payload, callback, requestFactory) {
Expand All @@ -3420,7 +3422,25 @@
var writeData = stringifyResult.value;
var method = 'POST';
var url = _.formatUrl(options);
_makeRequest(accessToken, url, method, writeData, callback, requestFactory);
_makeZoneRequest(accessToken, url, method, writeData, callback, requestFactory);
}

// Wraps _makeRequest and if Angular 2+ Zone.js is detected, changes scope
// so Angular change detection isn't triggered on each API call.
// This is the equivalent of runOutsideAngular().
//
function _makeZoneRequest(accessToken, url, method, data, callback, requestFactory) {
var gWindow = ((typeof window != 'undefined') && window) || ((typeof self != 'undefined') && self);
var currentZone = gWindow && gWindow.Zone && gWindow.Zone.current;

if (currentZone && currentZone._name === 'angular') {
var rootZone = currentZone._parent;
rootZone.run(function () {
_makeRequest(accessToken, url, method, data, callback, requestFactory);
});
} else {
_makeRequest(accessToken, url, method, data, callback, requestFactory);
}
}

function _makeRequest(accessToken, url, method, data, callback, requestFactory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/rollbar.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 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.

28 changes: 24 additions & 4 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.

4 changes: 2 additions & 2 deletions 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.

28 changes: 24 additions & 4 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.

4 changes: 2 additions & 2 deletions 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 a4fa6f2

Please sign in to comment.