@firebase/database 1.0.14-firebase-studio-sdk-integration.bffdabd70 → 1.0.14-firebase-studio-sdk-integration.fe1264c00

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.
@@ -1,5 +1,5 @@
1
1
  import Websocket from 'faye-websocket';
2
- import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sha1, base64, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, isCloudWorkstation, pingServer } from '@firebase/util';
2
+ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sha1, base64, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, updateEmulatorBanner, getModularInstance, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, isCloudWorkstation, pingServer } from '@firebase/util';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { _isFirebaseServerApp, _getProvider, getApp, SDK_VERSION as SDK_VERSION$1, _registerComponent, registerVersion } from '@firebase/app';
5
5
  import { Component, ComponentContainer, Provider } from '@firebase/component';
@@ -1252,7 +1252,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1252
1252
  WebSocketConnection.healthyTimeout = 30000;
1253
1253
 
1254
1254
  const name = "@firebase/database";
1255
- const version = "1.0.14-firebase-studio-sdk-integration.bffdabd70";
1255
+ const version = "1.0.14-firebase-studio-sdk-integration.fe1264c00";
1256
1256
 
1257
1257
  /**
1258
1258
  * @license
@@ -10940,6 +10940,7 @@ function repoStart(repo, appId, authOverride) {
10940
10940
  repo.server_.unlisten(query, tag);
10941
10941
  }
10942
10942
  });
10943
+ updateEmulatorBanner('Database', repo.repoInfo_.isUsingEmulator);
10943
10944
  }
10944
10945
  /**
10945
10946
  * @returns The time in milliseconds, taking the server offset into account if we have one.
@@ -13709,6 +13710,7 @@ function connectDatabaseEmulator(db, host, port, options = {}) {
13709
13710
  // Workaround to get cookies in Firebase Studio
13710
13711
  if (isCloudWorkstation(host)) {
13711
13712
  void pingServer(host);
13713
+ updateEmulatorBanner('Database', true);
13712
13714
  }
13713
13715
  // Modify the repo to apply emulator settings
13714
13716
  repoManagerApplyEmulatorSettings(repo, hostAndPort, options, tokenProvider);