@firebase/database 0.13.3-20220707184205 → 0.13.3

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.
@@ -5,7 +5,7 @@ import { __spreadArray, __read, __values, __extends, __awaiter, __generator, __a
5
5
  import { Logger, LogLevel } from '@firebase/logger';
6
6
 
7
7
  var name = "@firebase/database";
8
- var version = "0.13.3-20220707184205";
8
+ var version = "0.13.3";
9
9
 
10
10
  /**
11
11
  * @license
@@ -1923,7 +1923,7 @@ var WebSocketConnection = /** @class */ (function () {
1923
1923
  if (isNodeSdk()) {
1924
1924
  var device = this.nodeAdmin ? 'AdminNode' : 'Node';
1925
1925
  // UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
1926
- var options_1 = {
1926
+ options = {
1927
1927
  headers: {
1928
1928
  'User-Agent': "Firebase/" + PROTOCOL_VERSION + "/" + SDK_VERSION + "/" + process.platform + "/" + device,
1929
1929
  'X-Firebase-GMPID': this.applicationId || ''
@@ -1935,10 +1935,10 @@ var WebSocketConnection = /** @class */ (function () {
1935
1935
  // Note that this header is just used to bypass appcheck, and the token should still be sent
1936
1936
  // through the websocket connection once it is established.
1937
1937
  if (this.authToken) {
1938
- options_1.headers['Authorization'] = "Bearer " + this.authToken;
1938
+ options.headers['Authorization'] = "Bearer " + this.authToken;
1939
1939
  }
1940
1940
  if (this.appCheckToken) {
1941
- options_1.headers['X-Firebase-AppCheck'] = this.appCheckToken;
1941
+ options.headers['X-Firebase-AppCheck'] = this.appCheckToken;
1942
1942
  }
1943
1943
  // Plumb appropriate http_proxy environment variable into faye-websocket if it exists.
1944
1944
  var env = process['env'];
@@ -1946,7 +1946,7 @@ var WebSocketConnection = /** @class */ (function () {
1946
1946
  ? env['HTTPS_PROXY'] || env['https_proxy']
1947
1947
  : env['HTTP_PROXY'] || env['http_proxy'];
1948
1948
  if (proxy) {
1949
- options_1['proxy'] = { origin: proxy };
1949
+ options['proxy'] = { origin: proxy };
1950
1950
  }
1951
1951
  }
1952
1952
  this.mySock = new WebSocketImpl(this.connURL, [], options);