Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions dist/rollbar.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -950,15 +950,15 @@ var Queue = /*#__PURE__*/function () {
* `api.postItem(payload, function(err, response))`
* @param logger - An object used to log verbose messages if desired
* @param options - see `Queue.prototype.configure`
* @param replayManager - Optional `ReplayManager` for coordinating session replay with error occurrences
* @param replay - Optional `Replay` for coordinating session replay with error occurrences
*/
function Queue(rateLimiter, api, logger, options, replayManager) {
function Queue(rateLimiter, api, logger, options, replay) {
_classCallCheck(this, Queue);
this.rateLimiter = rateLimiter;
this.api = api;
this.logger = logger;
this.options = options;
this.replayManager = replayManager;
this.replay = replay;
this.predicates = [];
this.pendingItems = [];
this.pendingRequests = [];
Expand Down Expand Up @@ -1047,8 +1047,8 @@ var Queue = /*#__PURE__*/function () {
callback(new Error('Transmit disabled'));
return;
}
if (this.replayManager && data.body) {
item.replayId = this.replayManager.capture(null, data.uuid, {
if (this.replay && data.body) {
item.replayId = this.replay.capture(null, data.uuid, {
type: 'occurrence',
level: item.level
});
Expand All @@ -1064,15 +1064,15 @@ var Queue = /*#__PURE__*/function () {
this._makeApiRequest(data, function (err, resp, headers) {
_this._dequeuePendingRequest(data);
if (item.replayId) {
_this.replayManager.sendOrDiscardReplay(item.replayId, err, resp, headers);
_this.replay.sendOrDiscardReplay(item.replayId, err, resp, headers);
}
callback(err, resp);
});
} catch (err) {
this._dequeuePendingRequest(data);
if (item.replayId) {
var _this$replayManager;
(_this$replayManager = this.replayManager) === null || _this$replayManager === void 0 || _this$replayManager.discard(item.replayId);
var _this$replay;
(_this$replay = this.replay) === null || _this$replay === void 0 || _this$replay.discard(item.replayId);
}
callback(err);
}
Expand Down Expand Up @@ -1390,13 +1390,13 @@ Notifier.prototype._applyTransforms = function (item, callback) {
* @param api
* @param logger
*/
function Rollbar(options, api, logger, telemeter, tracing, replayManager, platform) {
function Rollbar(options, api, logger, telemeter, tracing, replay, platform) {
this.options = src_merge(options);
this.logger = logger;
Rollbar.rateLimiter.configureGlobal(this.options);
Rollbar.rateLimiter.setPlatformOptions(platform, this.options);
this.api = api;
this.queue = new queue(Rollbar.rateLimiter, api, logger, this.options, replayManager);
this.queue = new queue(Rollbar.rateLimiter, api, logger, this.options, replay);
this.tracing = tracing;

// Legacy OpenTracing support
Expand Down
15,392 changes: 92 additions & 15,300 deletions dist/rollbar.js

Large diffs are not rendered by default.

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.cjs

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.

15,392 changes: 92 additions & 15,300 deletions dist/rollbar.named-amd.js

Large diffs are not rendered by default.

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.

15,392 changes: 92 additions & 15,300 deletions dist/rollbar.noconflict.umd.js

Large diffs are not rendered by default.

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
Loading