@firebase/firestore 4.7.11-firebase-studio-sdk-integration.226be0bb1 → 4.7.11-firebase-studio-sdk-integration.9de25069c

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, testConnectionAlive, deepEqual, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort, getGlobal, isIndexedDBAvailable, getUA, isSafari } from '@firebase/util';
4
+ import { FirebaseError, isCloudWorkstation, pingServer, deepEqual, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort, getGlobal, isIndexedDBAvailable, getUA, isSafari } 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 v = "@firebase/firestore", C = "4.7.11-firebase-studio-sdk-integration.226be0bb1";
8
+ const v = "@firebase/firestore", C = "4.7.11-firebase-studio-sdk-integration.9de25069c";
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 F = "11.6.1-firebase-studio-sdk-integration.226be0bb1";
70
+ let F = "11.6.1-firebase-studio-sdk-integration.9de25069c";
71
71
 
72
72
  /**
73
73
  * @license
@@ -14037,7 +14037,9 @@ class __PRIVATE_RestConnection {
14037
14037
  "google-cloud-resource-prefix": this.ko,
14038
14038
  "x-goog-request-params": this.qo
14039
14039
  };
14040
- return this.Uo(_, r, i), this.Ko(e, o, _, n, this.databaseInfo.isUsingEmulator).then((t => (__PRIVATE_logDebug(Gt, `Received RPC '${e}' ${s}: `, t),
14040
+ this.Uo(_, r, i);
14041
+ const {host: a} = new URL(o), u = isCloudWorkstation(a);
14042
+ return this.Ko(e, o, _, n, u).then((t => (__PRIVATE_logDebug(Gt, `Received RPC '${e}' ${s}: `, t),
14041
14043
  t)), (t => {
14042
14044
  throw __PRIVATE_logWarn(Gt, `RPC '${e}' ${s} failed with error: `, t, "url: ", o, "request:", n),
14043
14045
  t;
@@ -18655,7 +18657,7 @@ class Firestore$1 {
18655
18657
  const s = isCloudWorkstation(t), o = e._getSettings(), _ = Object.assign(Object.assign({}, o), {
18656
18658
  emulatorOptions: e._getEmulatorOptions()
18657
18659
  }), a = `${t}:${n}`;
18658
- s && testConnectionAlive(`https://${a}`), o.host !== nn && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18660
+ s && pingServer(`https://${a}`), o.host !== nn && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18659
18661
  const u = Object.assign(Object.assign({}, o), {
18660
18662
  host: a,
18661
18663
  ssl: s,