@firebase/firestore 3.12.1-canary.e642fc7cd → 3.12.1-canary.fe7da7ec3

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.
@@ -66,7 +66,7 @@ V.MOCK_USER = new V("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let S = "9.22.1-canary.e642fc7cd";
69
+ let S = "9.22.1-canary.fe7da7ec3";
70
70
 
71
71
  /**
72
72
  * @license
@@ -7965,25 +7965,28 @@ function $r(t, e) {
7965
7965
  const e = ft(t);
7966
7966
  if (void 0 !== e && !this.en(e)) return !1;
7967
7967
  const n = dt(t);
7968
- let s = 0, i = 0;
7968
+ let s = new Set, i = 0, r = 0;
7969
7969
  // Process all equalities first. Equalities can appear out of order.
7970
- for (;s < n.length && this.en(n[s]); ++s) ;
7970
+ for (;i < n.length && this.en(n[i]); ++i) s = s.add(n[i].fieldPath.canonicalString());
7971
7971
  // If we already have processed all segments, all segments are used to serve
7972
7972
  // the equality filters and we do not need to map any segments to the
7973
7973
  // target's inequality and orderBy clauses.
7974
- if (s === n.length) return !0;
7975
- // If there is an inequality filter, the next segment must match both the
7976
- // filter and the first orderBy clause.
7977
- if (void 0 !== this.Ze) {
7978
- const t = n[s];
7979
- if (!this.nn(this.Ze, t) || !this.sn(this.Ye[i++], t)) return !1;
7980
- ++s;
7974
+ if (i === n.length) return !0;
7975
+ if (void 0 !== this.Ze) {
7976
+ // If there is an inequality filter and the field was not in one of the
7977
+ // equality filters above, the next segment must match both the filter
7978
+ // and the first orderBy clause.
7979
+ if (!s.has(this.Ze.field.canonicalString())) {
7980
+ const t = n[i];
7981
+ if (!this.nn(this.Ze, t) || !this.sn(this.Ye[r++], t)) return !1;
7982
+ }
7983
+ ++i;
7981
7984
  }
7982
7985
  // All remaining segments need to represent the prefix of the target's
7983
7986
  // orderBy.
7984
- for (;s < n.length; ++s) {
7985
- const t = n[s];
7986
- if (i >= this.Ye.length || !this.sn(this.Ye[i++], t)) return !1;
7987
+ for (;i < n.length; ++i) {
7988
+ const t = n[i];
7989
+ if (r >= this.Ye.length || !this.sn(this.Ye[r++], t)) return !1;
7987
7990
  }
7988
7991
  return !0;
7989
7992
  }
@@ -17778,10 +17781,10 @@ class hh {
17778
17781
  * Security Rules.
17779
17782
  */ function lh(t, e, n, s = {}) {
17780
17783
  var i;
17781
- const r = (t = uh(t, hh))._getSettings();
17782
- if ("firestore.googleapis.com" !== r.host && r.host !== e && M("Host has been set in both settings() and useEmulator(), emulator host will be used"),
17784
+ const r = (t = uh(t, hh))._getSettings(), o = `${e}:${n}`;
17785
+ if ("firestore.googleapis.com" !== r.host && r.host !== o && M("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),
17783
17786
  t._setSettings(Object.assign(Object.assign({}, r), {
17784
- host: `${e}:${n}`,
17787
+ host: o,
17785
17788
  ssl: !1
17786
17789
  })), s.mockUserToken) {
17787
17790
  let e, n;
@@ -21375,9 +21378,9 @@ function Jf(t, e) {
21375
21378
  return s = Object.assign({
21376
21379
  useFetchStreams: e
21377
21380
  }, s), r._setSettings(s), r;
21378
- }), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.12.1-canary.e642fc7cd", t),
21381
+ }), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.12.1-canary.fe7da7ec3", t),
21379
21382
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21380
- registerVersion(b, "3.12.1-canary.e642fc7cd", "esm2017");
21383
+ registerVersion(b, "3.12.1-canary.fe7da7ec3", "esm2017");
21381
21384
  }();
21382
21385
 
21383
21386
  export { Wl as AbstractUserDataWriter, Lh as AggregateField, qh as AggregateQuerySnapshot, Uh as Bytes, Ah as CACHE_SIZE_UNLIMITED, wh as CollectionReference, fh as DocumentReference, sf as DocumentSnapshot, Kh as FieldPath, Qh as FieldValue, vh as Firestore, U as FirestoreError, jh as GeoPoint, Eh as LoadBundleTask, dh as Query, Vl as QueryCompositeFilterConstraint, vl as QueryConstraint, rf as QueryDocumentSnapshot, Bl as QueryEndAtConstraint, Pl as QueryFieldFilterConstraint, Nl as QueryLimitConstraint, Cl as QueryOrderByConstraint, of as QuerySnapshot, $l as QueryStartAtConstraint, nf as SnapshotMetadata, it as Timestamp, qf as Transaction, Bf as WriteBatch, Oe as _DatabaseId, ht as _DocumentKey, X as _EmptyAppCheckTokenProvider, Q as _EmptyAuthCredentialsProvider, at as _FieldPath, ci as _TestingHooks, uh as _cast, B as _debugAssert, be as _isBase64Available, M as _logWarn, sh as _validateIsNotUsedTogether, pf as addDoc, tf as aggregateFieldEqual, ef as aggregateQuerySnapshotEqual, Dl as and, jf as arrayRemove, Qf as arrayUnion, Xl as average, xh as clearIndexedDbPersistence, _h as collection, mh as collectionGroup, lh as connectFirestoreEmulator, Zl as count, yf as deleteDoc, Kf as deleteField, Mh as disableNetwork, gh as doc, Gh as documentId, Sh as enableIndexedDbPersistence, Dh as enableMultiTabIndexedDbPersistence, kh as enableNetwork, ql as endAt, Ll as endBefore, bh as ensureFirestoreConfigured, Ef as executeWrite, Rf as getAggregateFromServer, vf as getCountFromServer, af as getDoc, lf as getDocFromCache, ff as getDocFromServer, df as getDocs, wf as getDocsFromCache, _f as getDocsFromServer, Ph as getFirestore, zf as increment, Rh as initializeFirestore, kl as limit, Ml as limitToLast, Oh as loadBundle, Df as memoryEagerGarbageCollector, xf as memoryLocalCache, Cf as memoryLruGarbageCollector, Fh as namedQuery, If as onSnapshot, Tf as onSnapshotsInSync, Sl as or, xl as orderBy, Nf as persistentLocalCache, Of as persistentMultipleTabManager, $f as persistentSingleTabManager, Rl as query, ph as queryEqual, yh as refEqual, Uf as runTransaction, Gf as serverTimestamp, mf as setDoc, Hf as setIndexConfiguration, x as setLogLevel, cf as snapshotEqual, Fl as startAfter, Ol as startAt, Yl as sum, $h as terminate, gf as updateDoc, Nh as waitForPendingWrites, bl as where, Wf as writeBatch };