@firebase/database-compat 0.2.3-20220707184205 → 0.2.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 -6
- package/dist/index.esm2017.js +1 -1
- package/dist/index.esm5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.standalone.js +4 -4
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @firebase/database-compat
|
|
2
2
|
|
|
3
|
-
## 0.2.3
|
|
3
|
+
## 0.2.3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [[`c187446a2`](https://github.com/firebase/firebase-js-sdk/commit/c187446a202d881f55800be167cdb37b4d0e4a13), [`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf)]:
|
|
8
|
-
- @firebase/database@0.13.3
|
|
9
|
-
- @firebase/util@1.6.3
|
|
10
|
-
- @firebase/component@0.5.17
|
|
11
|
-
- @firebase/database-types@0.9.11
|
|
7
|
+
- Updated dependencies [[`c187446a2`](https://github.com/firebase/firebase-js-sdk/commit/c187446a202d881f55800be167cdb37b4d0e4a13), [`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf), [`6a8be1337`](https://github.com/firebase/firebase-js-sdk/commit/6a8be1337f19a49db40e0c757f571f42b5b4d494)]:
|
|
8
|
+
- @firebase/database@0.13.3
|
|
9
|
+
- @firebase/util@1.6.3
|
|
10
|
+
- @firebase/component@0.5.17
|
|
11
|
+
- @firebase/database-types@0.9.11
|
|
12
12
|
|
|
13
13
|
## 0.2.2
|
|
14
14
|
|
package/dist/index.esm2017.js
CHANGED
package/dist/index.esm5.js
CHANGED
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.3
|
|
15
|
+
var version = "0.2.3";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
package/dist/index.standalone.js
CHANGED
|
@@ -4383,7 +4383,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
4383
4383
|
if (util.isNodeSdk()) {
|
|
4384
4384
|
var device = this.nodeAdmin ? 'AdminNode' : 'Node';
|
|
4385
4385
|
// UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
|
|
4386
|
-
|
|
4386
|
+
options = {
|
|
4387
4387
|
headers: {
|
|
4388
4388
|
'User-Agent': "Firebase/" + PROTOCOL_VERSION + "/" + SDK_VERSION + "/" + process.platform + "/" + device,
|
|
4389
4389
|
'X-Firebase-GMPID': this.applicationId || ''
|
|
@@ -4395,10 +4395,10 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
4395
4395
|
// Note that this header is just used to bypass appcheck, and the token should still be sent
|
|
4396
4396
|
// through the websocket connection once it is established.
|
|
4397
4397
|
if (this.authToken) {
|
|
4398
|
-
|
|
4398
|
+
options.headers['Authorization'] = "Bearer " + this.authToken;
|
|
4399
4399
|
}
|
|
4400
4400
|
if (this.appCheckToken) {
|
|
4401
|
-
|
|
4401
|
+
options.headers['X-Firebase-AppCheck'] = this.appCheckToken;
|
|
4402
4402
|
}
|
|
4403
4403
|
// Plumb appropriate http_proxy environment variable into faye-websocket if it exists.
|
|
4404
4404
|
var env = process['env'];
|
|
@@ -4406,7 +4406,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
4406
4406
|
? env['HTTPS_PROXY'] || env['https_proxy']
|
|
4407
4407
|
: env['HTTP_PROXY'] || env['http_proxy'];
|
|
4408
4408
|
if (proxy) {
|
|
4409
|
-
|
|
4409
|
+
options['proxy'] = { origin: proxy };
|
|
4410
4410
|
}
|
|
4411
4411
|
}
|
|
4412
4412
|
this.mySock = new WebSocketImpl(this.connURL, [], options);
|