@firebase/database 1.0.14-auth-redirect-credentials.b424e5897 → 1.0.14-canary.0e1276649
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 +6 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +7 -14
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +6 -13
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +5 -12
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +7 -14
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/index.standalone.js
CHANGED
|
@@ -13497,18 +13497,11 @@ 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
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
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
|
+
const portIndex = hostAndPort.lastIndexOf(':');
|
|
13501
|
+
const host = hostAndPort.substring(0, portIndex);
|
|
13502
|
+
const useSsl = util.isCloudWorkstation(host);
|
|
13503
|
+
repo.repoInfo_ = new RepoInfo(hostAndPort,
|
|
13504
|
+
/* secure= */ useSsl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
|
|
13512
13505
|
/*isUsingEmulator=*/ true, emulatorOptions);
|
|
13513
13506
|
if (tokenProvider) {
|
|
13514
13507
|
repo.authTokenProvider_ = tokenProvider;
|