@firebase/firestore 4.7.15 → 4.7.16-20250521232236

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.
@@ -2,11 +2,11 @@ import { _getProvider, getApp, _removeServiceInstance, _registerComponent, regis
2
2
  import { Component } from '@firebase/component';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { inspect } from 'util';
5
- import { FirebaseError, updateEmulatorBanner, getDefaultEmulatorHostnameAndPort, isCloudWorkstation, deepEqual, pingServer, createMockUserToken, getModularInstance } from '@firebase/util';
5
+ import { FirebaseError, getDefaultEmulatorHostnameAndPort, isCloudWorkstation, pingServer, updateEmulatorBanner, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
6
6
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "4.7.15";
9
+ const version$1 = "4.7.16-20250521232236";
10
10
 
11
11
  /**
12
12
  * @license
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
59
59
  User.FIRST_PARTY = new User('first-party-uid');
60
60
  User.MOCK_USER = new User('mock-user');
61
61
 
62
- const version = "11.8.0";
62
+ const version = "11.8.1-20250521232236";
63
63
 
64
64
  /**
65
65
  * @license
@@ -5837,7 +5837,6 @@ class Firestore {
5837
5837
  }
5838
5838
  _freezeSettings() {
5839
5839
  this._settingsFrozen = true;
5840
- updateEmulatorBanner('Firestore', this._settings.isUsingEmulator);
5841
5840
  return this._settings;
5842
5841
  }
5843
5842
  _delete() {
@@ -5928,6 +5927,10 @@ function connectFirestoreEmulator(firestore, host, port, options = {}) {
5928
5927
  const settings = firestore._getSettings();
5929
5928
  const existingConfig = Object.assign(Object.assign({}, settings), { emulatorOptions: firestore._getEmulatorOptions() });
5930
5929
  const newHostSetting = `${host}:${port}`;
5930
+ if (useSsl) {
5931
+ void pingServer(`https://${newHostSetting}`);
5932
+ updateEmulatorBanner('Firestore', true);
5933
+ }
5931
5934
  if (settings.host !== DEFAULT_HOST && settings.host !== newHostSetting) {
5932
5935
  logWarn('Host has been set in both settings() and connectFirestoreEmulator(), emulator host ' +
5933
5936
  'will be used.');
@@ -5939,10 +5942,6 @@ function connectFirestoreEmulator(firestore, host, port, options = {}) {
5939
5942
  return;
5940
5943
  }
5941
5944
  firestore._setSettings(newConfig);
5942
- if (useSsl) {
5943
- void pingServer(`https://${newHostSetting}`);
5944
- updateEmulatorBanner('Firestore', true);
5945
- }
5946
5945
  if (options.mockUserToken) {
5947
5946
  let token;
5948
5947
  let user;