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.
@@ -2899,7 +2899,12 @@ function Api(options, transport, urllib, truncation, jsonBackup) {
2899
2899
  Api.prototype.postItem = function(data, callback) {
2900
2900
  var transportOptions = helpers.transportOptions(this.transportOptions, 'POST');
2901
2901
  var payload = helpers.buildPayload(this.accessToken, data, this.jsonBackup);
2902
- this.transport.post(this.accessToken, transportOptions, payload, callback);
2902
+ var self = this;
2903
+
2904
+ // ensure the network request is scheduled after the current tick.
2905
+ setTimeout(function() {
2906
+ self.transport.post(self.accessToken, transportOptions, payload, callback);
2907
+ }, 0);
2903
2908
  };
2904
2909
 
2905
2910
  /**
@@ -4581,7 +4586,7 @@ module.exports = {
4581
4586
 
4582
4587
 
4583
4588
  module.exports = {
4584
- version: '2.25.0',
4589
+ version: '2.25.1',
4585
4590
  endpoint: 'api.rollbar.com/api/1/item/',
4586
4591
  logLevel: 'debug',
4587
4592
  reportLevel: 'debug',