@firebase/database 1.0.14-auth-redirect-credentials.b424e5897 → 1.0.14-canary.0e2558a96

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.
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "1.0.14-auth-redirect-credentials.b424e5897";
7
+ const version = "1.0.14-canary.0e2558a96";
8
8
 
9
9
  /**
10
10
  * @license
@@ -13488,18 +13488,8 @@ let useRestClient = false;
13488
13488
  * Update an existing `Repo` in place to point to a new host/port.
13489
13489
  */
13490
13490
  function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
13491
- let ssl = false;
13492
- let host = hostAndPort;
13493
- if (/^https:\/\//.test(host)) {
13494
- ssl = true;
13495
- host = host.substring(8);
13496
- }
13497
- if (/^wss:\/\//.test(host)) {
13498
- ssl = true;
13499
- host = host.substring(6);
13500
- }
13501
- repo.repoInfo_ = new RepoInfo(host,
13502
- /* secure= */ ssl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13491
+ repo.repoInfo_ = new RepoInfo(hostAndPort,
13492
+ /* secure= */ false, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13503
13493
  /*isUsingEmulator=*/ true, emulatorOptions);
13504
13494
  if (tokenProvider) {
13505
13495
  repo.authTokenProvider_ = tokenProvider;