@firebase/database-compat 0.2.2 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @firebase/database-compat
2
2
 
3
+ ## 0.2.3-20220706191717
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf)]:
8
+ - @firebase/database@0.13.3-20220706191717
9
+ - @firebase/util@1.6.3-20220706191717
10
+ - @firebase/component@0.5.17-20220706191717
11
+ - @firebase/database-types@0.9.11-20220706191717
12
+
3
13
  ## 0.2.2
4
14
 
5
15
  ### Patch Changes
@@ -5,7 +5,7 @@ import { errorPrefix, validateArgCount, validateCallback, validateContextObject,
5
5
  import { Logger } from '@firebase/logger';
6
6
 
7
7
  const name = "@firebase/database-compat";
8
- const version = "0.2.2";
8
+ const version = "0.2.3-20220706191717";
9
9
 
10
10
  /**
11
11
  * @license
@@ -6,7 +6,7 @@ import { __extends } from 'tslib';
6
6
  import { Logger } from '@firebase/logger';
7
7
 
8
8
  var name = "@firebase/database-compat";
9
- var version = "0.2.2";
9
+ var version = "0.2.3-20220706191717";
10
10
 
11
11
  /**
12
12
  * @license
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
13
13
 
14
14
  var name = "@firebase/database-compat";
15
- var version = "0.2.2";
15
+ var version = "0.2.3-20220706191717";
16
16
 
17
17
  /**
18
18
  * @license
@@ -6649,7 +6649,6 @@ var VisibilityMonitor = /** @class */ (function (_super) {
6649
6649
  */
6650
6650
  var RECONNECT_MIN_DELAY = 1000;
6651
6651
  var RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
6652
- var GET_CONNECT_TIMEOUT = 3 * 1000;
6653
6652
  var RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
6654
6653
  var RECONNECT_DELAY_MULTIPLIER = 1.3;
6655
6654
  var RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
@@ -6728,7 +6727,6 @@ var PersistentConnection = /** @class */ (function (_super) {
6728
6727
  }
6729
6728
  };
6730
6729
  PersistentConnection.prototype.get = function (query) {
6731
- var _this = this;
6732
6730
  this.initConnection_();
6733
6731
  var deferred = new util.Deferred();
6734
6732
  var request = {
@@ -6751,21 +6749,6 @@ var PersistentConnection = /** @class */ (function (_super) {
6751
6749
  this.outstandingGets_.push(outstandingGet);
6752
6750
  this.outstandingGetCount_++;
6753
6751
  var index = this.outstandingGets_.length - 1;
6754
- if (!this.connected_) {
6755
- setTimeout(function () {
6756
- var get = _this.outstandingGets_[index];
6757
- if (get === undefined || outstandingGet !== get) {
6758
- return;
6759
- }
6760
- delete _this.outstandingGets_[index];
6761
- _this.outstandingGetCount_--;
6762
- if (_this.outstandingGetCount_ === 0) {
6763
- _this.outstandingGets_ = [];
6764
- }
6765
- _this.log_('get ' + index + ' timed out on connection');
6766
- deferred.reject(new Error('Client is offline.'));
6767
- }, GET_CONNECT_TIMEOUT);
6768
- }
6769
6752
  if (this.connected_) {
6770
6753
  this.sendGet_(index);
6771
6754
  }