@firebase/database 0.13.2 → 0.13.3-20220706191717

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.
@@ -1289,7 +1289,7 @@ var WebSocketConnection = /** @class */ (function () {
1289
1289
  }());
1290
1290
 
1291
1291
  var name = "@firebase/database";
1292
- var version = "0.13.2";
1292
+ var version = "0.13.3-20220706191717";
1293
1293
 
1294
1294
  /**
1295
1295
  * @license
@@ -3308,7 +3308,6 @@ var VisibilityMonitor = /** @class */ (function (_super) {
3308
3308
  */
3309
3309
  var RECONNECT_MIN_DELAY = 1000;
3310
3310
  var RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
3311
- var GET_CONNECT_TIMEOUT = 3 * 1000;
3312
3311
  var RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
3313
3312
  var RECONNECT_DELAY_MULTIPLIER = 1.3;
3314
3313
  var RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
@@ -3387,7 +3386,6 @@ var PersistentConnection = /** @class */ (function (_super) {
3387
3386
  }
3388
3387
  };
3389
3388
  PersistentConnection.prototype.get = function (query) {
3390
- var _this = this;
3391
3389
  this.initConnection_();
3392
3390
  var deferred = new util.Deferred();
3393
3391
  var request = {
@@ -3410,21 +3408,6 @@ var PersistentConnection = /** @class */ (function (_super) {
3410
3408
  this.outstandingGets_.push(outstandingGet);
3411
3409
  this.outstandingGetCount_++;
3412
3410
  var index = this.outstandingGets_.length - 1;
3413
- if (!this.connected_) {
3414
- setTimeout(function () {
3415
- var get = _this.outstandingGets_[index];
3416
- if (get === undefined || outstandingGet !== get) {
3417
- return;
3418
- }
3419
- delete _this.outstandingGets_[index];
3420
- _this.outstandingGetCount_--;
3421
- if (_this.outstandingGetCount_ === 0) {
3422
- _this.outstandingGets_ = [];
3423
- }
3424
- _this.log_('get ' + index + ' timed out on connection');
3425
- deferred.reject(new Error('Client is offline.'));
3426
- }, GET_CONNECT_TIMEOUT);
3427
- }
3428
3411
  if (this.connected_) {
3429
3412
  this.sendGet_(index);
3430
3413
  }