@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.
@@ -1,11 +1,11 @@
1
1
  import { _registerComponent, registerVersion, _isFirebaseServerApp, _getProvider, getApp, _removeServiceInstance, SDK_VERSION } from '@firebase/app';
2
2
  import { Component } from '@firebase/component';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
- import { FirebaseError, isCloudWorkstation, deepEqual, pingServer, updateEmulatorBanner, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort, getGlobal, isIndexedDBAvailable, getUA, isSafari, isSafariOrWebkit } from '@firebase/util';
4
+ import { FirebaseError, isCloudWorkstation, pingServer, updateEmulatorBanner, deepEqual, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort, getGlobal, isIndexedDBAvailable, getUA, isSafari, isSafariOrWebkit } from '@firebase/util';
5
5
  import { Integer, Md5 } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
  import { XhrIo, EventType, ErrorCode, createWebChannelTransport, getStatEventTarget, WebChannel, Event, Stat } from '@firebase/webchannel-wrapper/webchannel-blob';
7
7
 
8
- const F = "@firebase/firestore", M = "4.7.15";
8
+ const F = "@firebase/firestore", M = "4.7.16-20250521232236";
9
9
 
10
10
  /**
11
11
  * @license
@@ -67,7 +67,7 @@ User.MOCK_USER = new User("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- let x = "11.8.0";
70
+ let x = "11.8.1-20250521232236";
71
71
 
72
72
  /**
73
73
  * @license
@@ -18650,8 +18650,7 @@ class Firestore$1 {
18650
18650
  return this._emulatorOptions;
18651
18651
  }
18652
18652
  _freezeSettings() {
18653
- return this._settingsFrozen = !0, updateEmulatorBanner("Firestore", this._settings.isUsingEmulator),
18654
- this._settings;
18653
+ return this._settingsFrozen = !0, this._settings;
18655
18654
  }
18656
18655
  _delete() {
18657
18656
  // The `_terminateTask` must be assigned future that completes when
@@ -18709,7 +18708,7 @@ class Firestore$1 {
18709
18708
  const s = isCloudWorkstation(t), o = e._getSettings(), _ = Object.assign(Object.assign({}, o), {
18710
18709
  emulatorOptions: e._getEmulatorOptions()
18711
18710
  }), a = `${t}:${n}`;
18712
- o.host !== on && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18711
+ s && (pingServer(`https://${a}`), updateEmulatorBanner("Firestore", !0)), o.host !== on && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18713
18712
  const u = Object.assign(Object.assign({}, o), {
18714
18713
  host: a,
18715
18714
  ssl: s,
@@ -18717,8 +18716,7 @@ class Firestore$1 {
18717
18716
  });
18718
18717
  // No-op if the new configuration matches the current configuration. This supports SSR
18719
18718
  // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
18720
- if (!deepEqual(u, _) && (e._setSettings(u), s && (pingServer(`https://${a}`), updateEmulatorBanner("Firestore", !0)),
18721
- r.mockUserToken)) {
18719
+ if (!deepEqual(u, _) && (e._setSettings(u), r.mockUserToken)) {
18722
18720
  let t, n;
18723
18721
  if ("string" == typeof r.mockUserToken) t = r.mockUserToken, n = User.MOCK_USER; else {
18724
18722
  // Let createMockUserToken validate first (catches common mistakes like