@firebase/firestore 3.7.0 → 3.7.1-canary.2012b6b67

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.
@@ -6,7 +6,7 @@ import { Component as c } from "@firebase/component";
6
6
 
7
7
  import { Logger as l, LogLevel as h } from "@firebase/logger";
8
8
 
9
- import { FirebaseError as f, getUA as d, isSafari as p, getModularInstance as v, createMockUserToken as y, deepEqual as m, getDefaultEmulatorHostnameAndPort as g, isIndexedDBAvailable as w } from "@firebase/util";
9
+ import { FirebaseError as f, getUA as d, isSafari as p, getModularInstance as v, isIndexedDBAvailable as y, createMockUserToken as m, deepEqual as g, getDefaultEmulatorHostnameAndPort as w } from "@firebase/util";
10
10
 
11
11
  import { XhrIo as b, EventType as I, ErrorCode as E, createWebChannelTransport as T, getStatEventTarget as S, FetchXmlHttpFactory as D, WebChannel as _, Event as x, Stat as N } from "@firebase/webchannel-wrapper";
12
12
 
@@ -70,7 +70,7 @@ C.MOCK_USER = new C("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- var k = "9.12.0", O = new l("@firebase/firestore");
73
+ var k = "9.12.1-canary.2012b6b67", O = new l("@firebase/firestore");
74
74
 
75
75
  /**
76
76
  * @license
@@ -1482,7 +1482,7 @@ function _t(t) {
1482
1482
  return L("SimpleDb", "Removing database:", t), Vt(window.indexedDB.deleteDatabase(t)).toPromise();
1483
1483
  },
1484
1484
  /** Returns true if IndexedDB is available in the current environment. */ t.C = function() {
1485
- if (!w()) return !1;
1485
+ if (!y()) return !1;
1486
1486
  if (t.N()) return !0;
1487
1487
  // We extensively use indexed array values and compound keys,
1488
1488
  // which IE and Edge do not support. However, they still have indexedDB
@@ -16138,7 +16138,7 @@ function Qa(t, e, n, r) {
16138
16138
  if ("string" == typeof r.mockUserToken) u = r.mockUserToken, s = C.MOCK_USER; else {
16139
16139
  // Let createMockUserToken validate first (catches common mistakes like
16140
16140
  // invalid field "uid" and missing field "sub" / "user_id".)
16141
- u = y(r.mockUserToken, null === (i = t._app) || void 0 === i ? void 0 : i.options.projectId);
16141
+ u = m(r.mockUserToken, null === (i = t._app) || void 0 === i ? void 0 : i.options.projectId);
16142
16142
  var a = r.mockUserToken.sub || r.mockUserToken.user_id;
16143
16143
  if (!a) throw new j(K.INVALID_ARGUMENT, "mockUserToken must contain 'sub' or 'user_id' field!");
16144
16144
  s = new C(a);
@@ -17657,7 +17657,7 @@ function _c(t, e, n) {
17657
17657
  var i = r.getImmediate({
17658
17658
  identifier: n
17659
17659
  }), o = r.getOptions(n);
17660
- if (m(o, e)) return i;
17660
+ if (g(o, e)) return i;
17661
17661
  throw new j(K.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
17662
17662
  }
17663
17663
  if (void 0 !== e.cacheSizeBytes && -1 !== e.cacheSizeBytes && e.cacheSizeBytes < 1048576) throw new j(K.INVALID_ARGUMENT, "cacheSizeBytes must be at least 1048576");
@@ -17672,7 +17672,7 @@ function xc(t, e) {
17672
17672
  identifier: i
17673
17673
  });
17674
17674
  if (!o._initialized) {
17675
- var u = g("firestore");
17675
+ var u = w("firestore");
17676
17676
  u && Qa.apply(void 0, r([ o ], u));
17677
17677
  }
17678
17678
  return o;
@@ -19570,9 +19570,10 @@ var Kl = /** @class */ function(e) {
19570
19570
  if (t._snapshot.oldDocs.isEmpty()) {
19571
19571
  var n = 0;
19572
19572
  return t._snapshot.docChanges.map((function(e) {
19573
- return {
19573
+ var r = new zl(t._firestore, t._userDataWriter, e.doc.key, e.doc, new jl(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter);
19574
+ return e.doc, {
19574
19575
  type: "added",
19575
- doc: new zl(t._firestore, t._userDataWriter, e.doc.key, e.doc, new jl(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter),
19576
+ doc: r,
19576
19577
  oldIndex: -1,
19577
19578
  newIndex: n++
19578
19579
  };
@@ -20061,7 +20062,7 @@ function ah(t, r) {
20061
20062
  * @returns `true` if the objects are "equal", as defined above, or `false`
20062
20063
  * otherwise.
20063
20064
  */ function hh(t, e) {
20064
- return $a(t.query, e.query) && m(t.data(), e.data());
20065
+ return $a(t.query, e.query) && g(t.data(), e.data());
20065
20066
  }
20066
20067
 
20067
20068
  /**
@@ -20599,9 +20600,9 @@ function _h(t, e) {
20599
20600
  return r = Object.assign({
20600
20601
  useFetchStreams: yh
20601
20602
  }, r), o._setSettings(r), o;
20602
- }), "PUBLIC").setMultipleInstances(!0)), u(A, "3.7.0", void 0),
20603
+ }), "PUBLIC").setMultipleInstances(!0)), u(A, "3.7.1-canary.2012b6b67", void 0),
20603
20604
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20604
- u(A, "3.7.0", "esm5");
20605
+ u(A, "3.7.1-canary.2012b6b67", "esm5");
20605
20606
 
20606
20607
  export { Bl as AbstractUserDataWriter, rc as AggregateField, ic as AggregateQuerySnapshot, Bc as Bytes, Sc as CACHE_SIZE_UNLIMITED, Ha as CollectionReference, za as DocumentReference, Ql as DocumentSnapshot, Gc as FieldPath, jc as FieldValue, Dc as Firestore, j as FirestoreError, Qc as GeoPoint, Tc as LoadBundleTask, Wa as Query, El as QueryConstraint, zl as QueryDocumentSnapshot, Wl as QuerySnapshot, jl as SnapshotMetadata, ut as Timestamp, mh as Transaction, ph as WriteBatch, ue as _DatabaseId, ft as _DocumentKey, tt as _EmptyAppCheckTokenProvider, W as _EmptyAuthCredentialsProvider, ht as _FieldPath, Ua as _cast, B as _debugAssert, Xt as _isBase64Available, P as _logWarn, Ma as _validateIsNotUsedTogether, uh as addDoc, hh as aggregateQuerySnapshotEqual, Eh as arrayRemove, Ih as arrayUnion, Rc as clearIndexedDbPersistence, Ya as collection, Xa as collectionGroup, Qa as connectFirestoreEmulator, oh as deleteDoc, wh as deleteField, Mc as disableNetwork, Za as doc, Kc as documentId, Cc as enableIndexedDbPersistence, kc as enableMultiTabIndexedDbPersistence, Lc as enableNetwork, Ml as endAt, Ll as endBefore, Nc as ensureFirestoreConfigured, ch as executeWrite, fh as getCountFromServer, Xl as getDoc, Jl as getDocFromCache, $l as getDocFromServer, th as getDocs, eh as getDocsFromCache, nh as getDocsFromServer, xc as getFirestore, Th as increment, _c as initializeFirestore, Al as limit, Cl as limitToLast, Fc as loadBundle, qc as namedQuery, sh as onSnapshot, ah as onSnapshotsInSync, xl as orderBy, Tl as query, $a as queryEqual, Ja as refEqual, gh as runTransaction, bh as serverTimestamp, rh as setDoc, Dh as setIndexConfiguration, V as setLogLevel, Yl as snapshotEqual, Rl as startAfter, Ol as startAt, Pc as terminate, ih as updateDoc, Vc as waitForPendingWrites, Dl as where, Sh as writeBatch };
20607
20608
  //# sourceMappingURL=index.esm5.js.map