@firebase/database 0.12.7 → 0.12.8-canary.19e31a231

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
  # Unreleased
2
2
 
3
+ ## 0.12.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7a4e65cef`](https://github.com/firebase/firebase-js-sdk/commit/7a4e65cef9468a20fb32dc112aa7113345bc76c5) [#6126](https://github.com/firebase/firebase-js-sdk/pull/6126) - Fix issue where if a websocket protocol was used in the databaseURL, `webSocketOnly` field was incorrectly set to undefined. (When using `wss` or `ws` protocols in the databaseURL, webSocketOnly will be true and longPolling will be disabled)
8
+
9
+ - Updated dependencies [[`e9e5f6b3c`](https://github.com/firebase/firebase-js-sdk/commit/e9e5f6b3ca9d61323b22f87986d9959f5297ec59)]:
10
+ - @firebase/util@1.5.2
11
+ - @firebase/component@0.5.13
12
+
3
13
  ## 0.12.7
4
14
 
5
15
  ### Patch Changes
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, base64, stringToByteArray, Sha1,
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "0.12.7";
7
+ const version = "0.12.8-canary.19e31a231";
8
8
 
9
9
  /**
10
10
  * @license
@@ -11903,7 +11903,7 @@ const parseRepoInfo = function (dataURL, nodeAdmin) {
11903
11903
  }
11904
11904
  const webSocketOnly = parsedUrl.scheme === 'ws' || parsedUrl.scheme === 'wss';
11905
11905
  return {
11906
- repoInfo: new RepoInfo(parsedUrl.host, parsedUrl.secure, namespace, nodeAdmin, webSocketOnly,
11906
+ repoInfo: new RepoInfo(parsedUrl.host, parsedUrl.secure, namespace, webSocketOnly, nodeAdmin,
11907
11907
  /*persistenceKey=*/ '',
11908
11908
  /*includeNamespaceInQueryParams=*/ namespace !== parsedUrl.subdomain),
11909
11909
  path: new Path(parsedUrl.pathString)
@@ -13535,7 +13535,7 @@ function repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, no
13535
13535
  let repoInfo = parsedUrl.repoInfo;
13536
13536
  let isEmulator;
13537
13537
  let dbEmulatorHost = undefined;
13538
- if (typeof process !== 'undefined') {
13538
+ if (typeof process !== 'undefined' && process.env) {
13539
13539
  dbEmulatorHost = process.env[FIREBASE_DATABASE_EMULATOR_HOST_VAR];
13540
13540
  }
13541
13541
  if (dbEmulatorHost) {