Skip to content

Commit

Permalink
Release 2.26.1 (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones authored Jan 4, 2023
1 parent e2b98e0 commit a849c77
Show file tree
Hide file tree
Showing 27 changed files with 103 additions and 67 deletions.
31 changes: 20 additions & 11 deletions dist/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,7 @@ function addTransformsToNotifier(notifier, rollbar, gWindow) {
.addTransform(sharedTransforms.addTelemetryData)
.addTransform(sharedTransforms.addConfigToPayload)
.addTransform(transforms.addScrubber(rollbar.scrub))
.addTransform(sharedTransforms.addPayloadOptions)
.addTransform(sharedTransforms.userTransform(logger))
.addTransform(sharedTransforms.addConfiguredOptions)
.addTransform(sharedTransforms.addDiagnosticKeys)
Expand Down Expand Up @@ -3337,8 +3338,9 @@ Transport.prototype._makeZoneRequest = function () {

if (currentZone && currentZone._name === 'angular') {
var rootZone = currentZone._parent;
var self = this;
rootZone.run(function () {
this._makeRequest.apply(undefined, args);
self._makeRequest.apply(undefined, args);
});
} else {
this._makeRequest.apply(undefined, args);
Expand Down Expand Up @@ -3390,7 +3392,7 @@ function makeFetchRequest(accessToken, url, method, data, callback, timeout) {

if(_.isFiniteNumber(timeout)) {
controller = new AbortController();
timeoutId = setTimeout(() => controller.abort(), timeout);
timeoutId = setTimeout(function () {controller.abort()}, timeout);
}

fetch(url, {
Expand All @@ -3402,14 +3404,14 @@ function makeFetchRequest(accessToken, url, method, data, callback, timeout) {
},
body: data,
})
.then((response) => {
.then(function (response) {
if (timeoutId) clearTimeout(timeoutId);
return response.json();
})
.then((data) => {
.then(function (data) {
callback(null, data);
})
.catch((error) => {
.catch(function (error) {
logger.error(error.message);
callback(error);
});
Expand Down Expand Up @@ -4298,12 +4300,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var _ = __webpack_require__(0);

function itemToPayload(item, options, callback) {
var payloadOptions = options.payload || {};
if (payloadOptions.body) {
delete payloadOptions.body;
}
var data = item.data;

var data = _.merge(item.data, payloadOptions);
if (item._isUncaught) {
data._isUncaught = true;
}
Expand All @@ -4313,6 +4311,16 @@ function itemToPayload(item, options, callback) {
callback(null, data);
}

function addPayloadOptions(item, options, callback) {
var payloadOptions = options.payload || {};
if (payloadOptions.body) {
delete payloadOptions.body;
}

item.data = _.merge(item.data, payloadOptions);
callback(null, item);
}

function addTelemetryData(item, options, callback) {
if (item.telemetryEvents) {
_.set(item, 'data.body.telemetry', item.telemetryEvents);
Expand Down Expand Up @@ -4436,6 +4444,7 @@ function addDiagnosticKeys(item, options, callback) {

module.exports = {
itemToPayload: itemToPayload,
addPayloadOptions: addPayloadOptions,
addTelemetryData: addTelemetryData,
addMessageWithError: addMessageWithError,
userTransform: userTransform,
Expand Down Expand Up @@ -4676,7 +4685,7 @@ module.exports = {


module.exports = {
version: '2.26.0',
version: '2.26.1',
endpoint: 'api.rollbar.com/api/1/item/',
logLevel: 'debug',
reportLevel: 'debug',
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.

31 changes: 20 additions & 11 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.

31 changes: 20 additions & 11 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 a849c77

Please sign in to comment.