@firebase/database 1.0.14-canary.0cbff6bc7 → 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 +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +6 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +5 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +4 -1
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +6 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/index.node.cjs.js
CHANGED
|
@@ -1260,7 +1260,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
|
|
|
1260
1260
|
WebSocketConnection.healthyTimeout = 30000;
|
|
1261
1261
|
|
|
1262
1262
|
const name = "@firebase/database";
|
|
1263
|
-
const version = "1.0.14-canary.
|
|
1263
|
+
const version = "1.0.14-canary.0e1276649";
|
|
1264
1264
|
|
|
1265
1265
|
/**
|
|
1266
1266
|
* @license
|
|
@@ -13500,8 +13500,11 @@ let useRestClient = false;
|
|
|
13500
13500
|
* Update an existing `Repo` in place to point to a new host/port.
|
|
13501
13501
|
*/
|
|
13502
13502
|
function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
|
|
13503
|
+
const portIndex = hostAndPort.lastIndexOf(':');
|
|
13504
|
+
const host = hostAndPort.substring(0, portIndex);
|
|
13505
|
+
const useSsl = util.isCloudWorkstation(host);
|
|
13503
13506
|
repo.repoInfo_ = new RepoInfo(hostAndPort,
|
|
13504
|
-
/* secure= */
|
|
13507
|
+
/* secure= */ useSsl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
|
|
13505
13508
|
/*isUsingEmulator=*/ true, emulatorOptions);
|
|
13506
13509
|
if (tokenProvider) {
|
|
13507
13510
|
repo.authTokenProvider_ = tokenProvider;
|