@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.
@@ -5,7 +5,7 @@ import { errorPrefix, validateArgCount, validateCallback, validateContextObject,
5
5
  import { Logger } from '@firebase/logger';
6
6
 
7
7
  const name = "@firebase/database-compat";
8
- const version = "2.0.5";
8
+ const version = "2.0.6-20250505162014";
9
9
 
10
10
  /**
11
11
  * @license
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.5";
14
+ const version = "2.0.6-20250505162014";
15
15
 
16
16
  /**
17
17
  * @license
@@ -3717,7 +3717,7 @@ function isVersionServiceProvider(provider) {
3717
3717
  }
3718
3718
 
3719
3719
  const name$q = "@firebase/app";
3720
- const version$1 = "0.11.3";
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.5.0";
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= */ false, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams,
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
  }