@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.
package/dist/index.cjs.js CHANGED
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  const name = "@firebase/database";
11
- const version = "1.0.14-auth-redirect-credentials.b424e5897";
11
+ const version = "1.0.14-canary.0e2558a96";
12
12
 
13
13
  /**
14
14
  * @license
@@ -13492,18 +13492,8 @@ let useRestClient = false;
13492
13492
  * Update an existing `Repo` in place to point to a new host/port.
13493
13493
  */
13494
13494
  function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
13495
- let ssl = false;
13496
- let host = hostAndPort;
13497
- if (/^https:\/\//.test(host)) {
13498
- ssl = true;
13499
- host = host.substring(8);
13500
- }
13501
- if (/^wss:\/\//.test(host)) {
13502
- ssl = true;
13503
- host = host.substring(6);
13504
- }
13505
- repo.repoInfo_ = new RepoInfo(host,
13506
- /* secure= */ ssl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13495
+ repo.repoInfo_ = new RepoInfo(hostAndPort,
13496
+ /* secure= */ false, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
13507
13497
  /*isUsingEmulator=*/ true, emulatorOptions);
13508
13498
  if (tokenProvider) {
13509
13499
  repo.authTokenProvider_ = tokenProvider;