@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.
@@ -1037,7 +1037,7 @@ var WebSocketConnection = /** @class */ (function () {
1037
1037
  if (util.isNodeSdk()) {
1038
1038
  var device = this.nodeAdmin ? 'AdminNode' : 'Node';
1039
1039
  // UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
1040
- var options_1 = {
1040
+ options = {
1041
1041
  headers: {
1042
1042
  'User-Agent': "Firebase/" + PROTOCOL_VERSION + "/" + SDK_VERSION + "/" + process.platform + "/" + device,
1043
1043
  'X-Firebase-GMPID': this.applicationId || ''
@@ -1049,10 +1049,10 @@ var WebSocketConnection = /** @class */ (function () {
1049
1049
  // Note that this header is just used to bypass appcheck, and the token should still be sent
1050
1050
  // through the websocket connection once it is established.
1051
1051
  if (this.authToken) {
1052
- options_1.headers['Authorization'] = "Bearer " + this.authToken;
1052
+ options.headers['Authorization'] = "Bearer " + this.authToken;
1053
1053
  }
1054
1054
  if (this.appCheckToken) {
1055
- options_1.headers['X-Firebase-AppCheck'] = this.appCheckToken;
1055
+ options.headers['X-Firebase-AppCheck'] = this.appCheckToken;
1056
1056
  }
1057
1057
  // Plumb appropriate http_proxy environment variable into faye-websocket if it exists.
1058
1058
  var env = process['env'];
@@ -1060,7 +1060,7 @@ var WebSocketConnection = /** @class */ (function () {
1060
1060
  ? env['HTTPS_PROXY'] || env['https_proxy']
1061
1061
  : env['HTTP_PROXY'] || env['http_proxy'];
1062
1062
  if (proxy) {
1063
- options_1['proxy'] = { origin: proxy };
1063
+ options['proxy'] = { origin: proxy };
1064
1064
  }
1065
1065
  }
1066
1066
  this.mySock = new WebSocketImpl(this.connURL, [], options);