@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.
@@ -13497,18 +13497,8 @@ let useRestClient = false;
13497
13497
  * Update an existing `Repo` in place to point to a new host/port.
13498
13498
  */
13499
13499
  function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
13500
- let ssl = false;
13501
- let host = hostAndPort;
13502
- if (/^https:\/\//.test(host)) {
13503
- ssl = true;
13504
- host = host.substring(8);
13505
- }
13506
- if (/^wss:\/\//.test(host)) {
13507
- ssl = true;
13508
- host = host.substring(6);
13509
- }
13510
- repo.repoInfo_ = new RepoInfo(host,
13511
- /* secure= */ ssl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13500
+ repo.repoInfo_ = new RepoInfo(hostAndPort,
13501
+ /* secure= */ false, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13512
13502
  /*isUsingEmulator=*/ true, emulatorOptions);
13513
13503
  if (tokenProvider) {
13514
13504
  repo.authTokenProvider_ = tokenProvider;