@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.
- package/CHANGELOG.md +6 -4
- package/dist/index.esm2017.js +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +5 -5
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +5 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +4 -4
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +2 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/index.node.cjs.js
CHANGED
|
@@ -1039,7 +1039,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1039
1039
|
if (util.isNodeSdk()) {
|
|
1040
1040
|
var device = this.nodeAdmin ? 'AdminNode' : 'Node';
|
|
1041
1041
|
// UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
|
|
1042
|
-
|
|
1042
|
+
options = {
|
|
1043
1043
|
headers: {
|
|
1044
1044
|
'User-Agent': "Firebase/" + PROTOCOL_VERSION + "/" + SDK_VERSION + "/" + process.platform + "/" + device,
|
|
1045
1045
|
'X-Firebase-GMPID': this.applicationId || ''
|
|
@@ -1051,10 +1051,10 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1051
1051
|
// Note that this header is just used to bypass appcheck, and the token should still be sent
|
|
1052
1052
|
// through the websocket connection once it is established.
|
|
1053
1053
|
if (this.authToken) {
|
|
1054
|
-
|
|
1054
|
+
options.headers['Authorization'] = "Bearer " + this.authToken;
|
|
1055
1055
|
}
|
|
1056
1056
|
if (this.appCheckToken) {
|
|
1057
|
-
|
|
1057
|
+
options.headers['X-Firebase-AppCheck'] = this.appCheckToken;
|
|
1058
1058
|
}
|
|
1059
1059
|
// Plumb appropriate http_proxy environment variable into faye-websocket if it exists.
|
|
1060
1060
|
var env = process['env'];
|
|
@@ -1062,7 +1062,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1062
1062
|
? env['HTTPS_PROXY'] || env['https_proxy']
|
|
1063
1063
|
: env['HTTP_PROXY'] || env['http_proxy'];
|
|
1064
1064
|
if (proxy) {
|
|
1065
|
-
|
|
1065
|
+
options['proxy'] = { origin: proxy };
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
this.mySock = new WebSocketImpl(this.connURL, [], options);
|
|
@@ -1289,7 +1289,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1289
1289
|
}());
|
|
1290
1290
|
|
|
1291
1291
|
var name = "@firebase/database";
|
|
1292
|
-
var version = "0.13.3
|
|
1292
|
+
var version = "0.13.3";
|
|
1293
1293
|
|
|
1294
1294
|
/**
|
|
1295
1295
|
* @license
|