@firebase/database-compat 2.0.6-canary.e99683b17 → 2.0.6-canary.f92069a21
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
CHANGED
@@ -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.6-canary.
|
8
|
+
const version = "2.0.6-canary.f92069a21";
|
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.6-canary.
|
14
|
+
const version = "2.0.6-canary.f92069a21";
|
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.12.1-canary.
|
3720
|
+
const version$1 = "0.12.1-canary.f92069a21";
|
3721
3721
|
|
3722
3722
|
/**
|
3723
3723
|
* @license
|
@@ -3783,12 +3783,12 @@ const name$4 = "@firebase/storage-compat";
|
|
3783
3783
|
|
3784
3784
|
const name$3 = "@firebase/firestore";
|
3785
3785
|
|
3786
|
-
const name$2 = "@firebase/
|
3786
|
+
const name$2 = "@firebase/ai";
|
3787
3787
|
|
3788
3788
|
const name$1 = "@firebase/firestore-compat";
|
3789
3789
|
|
3790
3790
|
const name = "firebase";
|
3791
|
-
const version = "11.7.1-canary.
|
3791
|
+
const version = "11.7.1-canary.f92069a21";
|
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)) {
|
@@ -18493,6 +18493,7 @@ class Database$1 {
|
|
18493
18493
|
if (!this._instanceStarted) {
|
18494
18494
|
repoStart(this._repoInternal, this.app.options.appId, this.app.options['databaseAuthVariableOverride']);
|
18495
18495
|
this._instanceStarted = true;
|
18496
|
+
util.updateEmulatorBanner('Database', this._repo.repoInfo_.emulatorOptions !== null);
|
18496
18497
|
}
|
18497
18498
|
return this._repoInternal;
|
18498
18499
|
}
|
@@ -18577,6 +18578,7 @@ function connectDatabaseEmulator(db, host, port, options = {}) {
|
|
18577
18578
|
// Workaround to get cookies in Firebase Studio
|
18578
18579
|
if (util.isCloudWorkstation(host)) {
|
18579
18580
|
void util.pingServer(host);
|
18581
|
+
util.updateEmulatorBanner('Database', true);
|
18580
18582
|
}
|
18581
18583
|
// Modify the repo to apply emulator settings
|
18582
18584
|
repoManagerApplyEmulatorSettings(repo, hostAndPort, options, tokenProvider);
|