rollbar 2.25.0 → 2.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rollbar.js CHANGED
@@ -2897,7 +2897,12 @@ function Api(options, transport, urllib, truncation, jsonBackup) {
2897
2897
  Api.prototype.postItem = function(data, callback) {
2898
2898
  var transportOptions = helpers.transportOptions(this.transportOptions, 'POST');
2899
2899
  var payload = helpers.buildPayload(this.accessToken, data, this.jsonBackup);
2900
- this.transport.post(this.accessToken, transportOptions, payload, callback);
2900
+ var self = this;
2901
+
2902
+ // ensure the network request is scheduled after the current tick.
2903
+ setTimeout(function() {
2904
+ self.transport.post(self.accessToken, transportOptions, payload, callback);
2905
+ }, 0);
2901
2906
  };
2902
2907
 
2903
2908
  /**
@@ -4579,7 +4584,7 @@ module.exports = {
4579
4584
 
4580
4585
 
4581
4586
  module.exports = {
4582
- version: '2.25.0',
4587
+ version: '2.25.1',
4583
4588
  endpoint: 'api.rollbar.com/api/1/item/',
4584
4589
  logLevel: 'debug',
4585
4590
  reportLevel: 'debug',