@firebase/database-compat 2.0.5 → 2.0.6-20250507150015
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 +13 -6
- 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-20250507150015";
|
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.
|
3720
|
+
const version$1 = "0.12.0-20250507150015";
|
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.7.0-20250507150015";
|
3792
3792
|
|
3793
3793
|
/**
|
3794
3794
|
* @license
|
@@ -4125,7 +4125,7 @@ class FirebaseServerAppImpl extends FirebaseAppImpl {
|
|
4125
4125
|
// Build configuration parameters for the FirebaseAppImpl base class.
|
4126
4126
|
const automaticDataCollectionEnabled = serverConfig.automaticDataCollectionEnabled !== undefined
|
4127
4127
|
? serverConfig.automaticDataCollectionEnabled
|
4128
|
-
:
|
4128
|
+
: true;
|
4129
4129
|
// Create the FirebaseAppSettings object for the FirebaseAppImp constructor.
|
4130
4130
|
const config = {
|
4131
4131
|
name,
|
@@ -4236,7 +4236,7 @@ function initializeApp(_options, rawConfig = {}) {
|
|
4236
4236
|
const name = rawConfig;
|
4237
4237
|
rawConfig = { name };
|
4238
4238
|
}
|
4239
|
-
const config = Object.assign({ name: DEFAULT_ENTRY_NAME, automaticDataCollectionEnabled:
|
4239
|
+
const config = Object.assign({ name: DEFAULT_ENTRY_NAME, automaticDataCollectionEnabled: true }, rawConfig);
|
4240
4240
|
const name = config.name;
|
4241
4241
|
if (typeof name !== 'string' || !name) {
|
4242
4242
|
throw ERROR_FACTORY.create("bad-app-name" /* AppError.BAD_APP_NAME */, {
|
@@ -4272,7 +4272,7 @@ function initializeServerApp(_options, _serverAppConfig) {
|
|
4272
4272
|
throw ERROR_FACTORY.create("invalid-server-app-environment" /* AppError.INVALID_SERVER_APP_ENVIRONMENT */);
|
4273
4273
|
}
|
4274
4274
|
if (_serverAppConfig.automaticDataCollectionEnabled === undefined) {
|
4275
|
-
_serverAppConfig.automaticDataCollectionEnabled =
|
4275
|
+
_serverAppConfig.automaticDataCollectionEnabled = true;
|
4276
4276
|
}
|
4277
4277
|
let appOptions;
|
4278
4278
|
if (_isFirebaseApp(_options)) {
|
@@ -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
|
}
|