@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.
package/dist/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ V.MOCK_USER = new V("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let S = "9.22.1-canary.e642fc7cd";
73
+ let S = "9.22.1-canary.fe7da7ec3";
74
74
 
75
75
  /**
76
76
  * @license
@@ -7969,25 +7969,28 @@ function $r(t, e) {
7969
7969
  const e = ft(t);
7970
7970
  if (void 0 !== e && !this.en(e)) return !1;
7971
7971
  const n = dt(t);
7972
- let s = 0, i = 0;
7972
+ let s = new Set, i = 0, r = 0;
7973
7973
  // Process all equalities first. Equalities can appear out of order.
7974
- for (;s < n.length && this.en(n[s]); ++s) ;
7974
+ for (;i < n.length && this.en(n[i]); ++i) s = s.add(n[i].fieldPath.canonicalString());
7975
7975
  // If we already have processed all segments, all segments are used to serve
7976
7976
  // the equality filters and we do not need to map any segments to the
7977
7977
  // target's inequality and orderBy clauses.
7978
- if (s === n.length) return !0;
7979
- // If there is an inequality filter, the next segment must match both the
7980
- // filter and the first orderBy clause.
7981
- if (void 0 !== this.Ze) {
7982
- const t = n[s];
7983
- if (!this.nn(this.Ze, t) || !this.sn(this.Ye[i++], t)) return !1;
7984
- ++s;
7978
+ if (i === n.length) return !0;
7979
+ if (void 0 !== this.Ze) {
7980
+ // If there is an inequality filter and the field was not in one of the
7981
+ // equality filters above, the next segment must match both the filter
7982
+ // and the first orderBy clause.
7983
+ if (!s.has(this.Ze.field.canonicalString())) {
7984
+ const t = n[i];
7985
+ if (!this.nn(this.Ze, t) || !this.sn(this.Ye[r++], t)) return !1;
7986
+ }
7987
+ ++i;
7985
7988
  }
7986
7989
  // All remaining segments need to represent the prefix of the target's
7987
7990
  // orderBy.
7988
- for (;s < n.length; ++s) {
7989
- const t = n[s];
7990
- if (i >= this.Ye.length || !this.sn(this.Ye[i++], t)) return !1;
7991
+ for (;i < n.length; ++i) {
7992
+ const t = n[i];
7993
+ if (r >= this.Ye.length || !this.sn(this.Ye[r++], t)) return !1;
7991
7994
  }
7992
7995
  return !0;
7993
7996
  }
@@ -17782,10 +17785,10 @@ class hh {
17782
17785
  * Security Rules.
17783
17786
  */ function lh(t, e, n, s = {}) {
17784
17787
  var i;
17785
- const r = (t = uh(t, hh))._getSettings();
17786
- if ("firestore.googleapis.com" !== r.host && r.host !== e && M("Host has been set in both settings() and useEmulator(), emulator host will be used"),
17788
+ const r = (t = uh(t, hh))._getSettings(), o = `${e}:${n}`;
17789
+ if ("firestore.googleapis.com" !== r.host && r.host !== o && M("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),
17787
17790
  t._setSettings(Object.assign(Object.assign({}, r), {
17788
- host: `${e}:${n}`,
17791
+ host: o,
17789
17792
  ssl: !1
17790
17793
  })), s.mockUserToken) {
17791
17794
  let e, n;
@@ -21379,9 +21382,9 @@ function Jf(t, e) {
21379
21382
  return s = Object.assign({
21380
21383
  useFetchStreams: e
21381
21384
  }, s), r._setSettings(s), r;
21382
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.12.1-canary.e642fc7cd", t),
21385
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.12.1-canary.fe7da7ec3", t),
21383
21386
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21384
- app.registerVersion(b, "3.12.1-canary.e642fc7cd", "cjs2017");
21387
+ app.registerVersion(b, "3.12.1-canary.fe7da7ec3", "cjs2017");
21385
21388
  }();
21386
21389
 
21387
21390
  exports.AbstractUserDataWriter = Wl;