@firebase/database-compat 2.0.5 → 2.0.6-20250505162014
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.esm2017.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.standalone.js +10 -3
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.js +1 -1
- package/package.json +6 -6
package/dist/index.esm2017.js
CHANGED
package/dist/index.js
CHANGED
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
11
11
|
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
12
12
|
|
13
13
|
const name = "@firebase/database-compat";
|
14
|
-
const version = "2.0.
|
14
|
+
const version = "2.0.6-20250505162014";
|
15
15
|
|
16
16
|
/**
|
17
17
|
* @license
|
package/dist/index.standalone.js
CHANGED
@@ -3717,7 +3717,7 @@ function isVersionServiceProvider(provider) {
|
|
3717
3717
|
}
|
3718
3718
|
|
3719
3719
|
const name$q = "@firebase/app";
|
3720
|
-
const version$1 = "0.11.
|
3720
|
+
const version$1 = "0.11.6-20250505162014";
|
3721
3721
|
|
3722
3722
|
/**
|
3723
3723
|
* @license
|
@@ -3788,7 +3788,7 @@ const name$2 = "@firebase/vertexai";
|
|
3788
3788
|
const name$1 = "@firebase/firestore-compat";
|
3789
3789
|
|
3790
3790
|
const name = "firebase";
|
3791
|
-
const version = "11.
|
3791
|
+
const version = "11.6.2-20250505162014";
|
3792
3792
|
|
3793
3793
|
/**
|
3794
3794
|
* @license
|
@@ -18383,8 +18383,11 @@ let useRestClient = false;
|
|
18383
18383
|
* Update an existing `Repo` in place to point to a new host/port.
|
18384
18384
|
*/
|
18385
18385
|
function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
|
18386
|
+
const portIndex = hostAndPort.lastIndexOf(':');
|
18387
|
+
const host = hostAndPort.substring(0, portIndex);
|
18388
|
+
const useSsl = util.isCloudWorkstation(host);
|
18386
18389
|
repo.repoInfo_ = new RepoInfo(hostAndPort,
|
18387
|
-
/* secure= */
|
18390
|
+
/* secure= */ useSsl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
|
18388
18391
|
/*isUsingEmulator=*/ true, emulatorOptions);
|
18389
18392
|
if (tokenProvider) {
|
18390
18393
|
repo.authTokenProvider_ = tokenProvider;
|
@@ -18571,6 +18574,10 @@ function connectDatabaseEmulator(db, host, port, options = {}) {
|
|
18571
18574
|
: util.createMockUserToken(options.mockUserToken, db.app.options.projectId);
|
18572
18575
|
tokenProvider = new EmulatorTokenProvider(token);
|
18573
18576
|
}
|
18577
|
+
// Workaround to get cookies in Firebase Studio
|
18578
|
+
if (util.isCloudWorkstation(host)) {
|
18579
|
+
void util.pingServer(host);
|
18580
|
+
}
|
18574
18581
|
// Modify the repo to apply emulator settings
|
18575
18582
|
repoManagerApplyEmulatorSettings(repo, hostAndPort, options, tokenProvider);
|
18576
18583
|
}
|