@firebase/firestore 3.1.0-2021822203916 → 3.1.0

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.
@@ -67,7 +67,7 @@ d.MOCK_USER = new d("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var m = "9.1.0-2021822203916", y = new f("@firebase/firestore");
70
+ var m = "9.1.0", y = new f("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -599,13 +599,9 @@ function et(t, e, n) {
599
599
  if ("object" == typeof t) {
600
600
  if (t instanceof Array) return "an array";
601
601
  var e =
602
- /** Hacky method to try to get the constructor name for an object. */
602
+ /** try to get the constructor name for an object. */
603
603
  function(t) {
604
- if (t.constructor) {
605
- var e = /function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());
606
- if (e && e.length > 1) return e[1];
607
- }
608
- return null;
604
+ return t.constructor ? t.constructor.name : null;
609
605
  }(t);
610
606
  return e ? "a custom " + e + " object" : "an object";
611
607
  }
@@ -3596,16 +3592,16 @@ function(t) {
3596
3592
  }),
3597
3593
  /** Returns a new context with the specified settings overwritten. */ t.prototype.tt = function(e) {
3598
3594
  return new t(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.S, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
3599
- }, t.prototype.nt = function(t) {
3595
+ }, t.prototype.et = function(t) {
3600
3596
  var e, n = null === (e = this.path) || void 0 === e ? void 0 : e.child(t), r = this.tt({
3601
3597
  path: n,
3602
- et: !1
3598
+ nt: !1
3603
3599
  });
3604
3600
  return r.rt(t), r;
3605
3601
  }, t.prototype.st = function(t) {
3606
3602
  var e, n = null === (e = this.path) || void 0 === e ? void 0 : e.child(t), r = this.tt({
3607
3603
  path: n,
3608
- et: !1
3604
+ nt: !1
3609
3605
  });
3610
3606
  return r.Z(), r;
3611
3607
  }, t.prototype.it = function(t) {
@@ -3613,7 +3609,7 @@ function(t) {
3613
3609
  // undefined.
3614
3610
  return this.tt({
3615
3611
  path: void 0,
3616
- et: !0
3612
+ nt: !0
3617
3613
  });
3618
3614
  }, t.prototype.ot = function(t) {
3619
3615
  return Mn(t, this.settings.methodName, this.settings.ut || !1, this.path, this.settings.ct);
@@ -3643,7 +3639,7 @@ function(t) {
3643
3639
  methodName: e,
3644
3640
  ct: n,
3645
3641
  path: Z.emptyPath(),
3646
- et: !1,
3642
+ nt: !1,
3647
3643
  ut: r
3648
3644
  }, this.databaseId, this.S, this.ignoreUndefinedProperties);
3649
3645
  }, t;
@@ -3709,7 +3705,7 @@ var An = /** @class */ function(e) {
3709
3705
  X: 3 /* Argument */ ,
3710
3706
  ct: e.settings.ct,
3711
3707
  methodName: t._methodName,
3712
- et: n
3708
+ nt: n
3713
3709
  }, e.databaseId, e.S, e.ignoreUndefinedProperties);
3714
3710
  }
3715
3711
 
@@ -3865,7 +3861,7 @@ var Dn = /** @class */ function(e) {
3865
3861
  // the set of values to be included for the IN query) that may directly
3866
3862
  // contain additional arrays (each representing an individual field
3867
3863
  // value), so we disable this validation.
3868
- if (e.settings.et && 4 /* ArrayArgument */ !== e.X) throw e.ot("Nested arrays are not supported");
3864
+ if (e.settings.nt && 4 /* ArrayArgument */ !== e.X) throw e.ot("Nested arrays are not supported");
3869
3865
  return function(t, e) {
3870
3866
  for (var n = [], r = 0, i = 0, o = t; i < o.length; i++) {
3871
3867
  var a = jn(o[i], e.it(r));
@@ -3938,7 +3934,7 @@ function Ln(t, e) {
3938
3934
  // If we encounter an empty object, we explicitly add it to the update
3939
3935
  // mask to ensure that the server creates a map entry.
3940
3936
  e.path && e.path.length > 0 && e.fieldMask.push(e.path) : _t(t, (function(t, r) {
3941
- var i = jn(r, e.nt(t));
3937
+ var i = jn(r, e.et(t));
3942
3938
  null != i && (n[t] = i);
3943
3939
  })), {
3944
3940
  mapValue: {
@@ -5627,7 +5623,7 @@ function Lr(t, e) {
5627
5623
  m = i + "_lite", o(new c("firestore/lite", (function(t, e) {
5628
5624
  var n = e.options, r = t.getProvider("app").getImmediate(), i = new Ze(r, new z(t.getProvider("auth-internal")));
5629
5625
  return n && i._setSettings(n), i;
5630
- }), "PUBLIC" /* PUBLIC */)), a("firestore-lite", "3.1.0-2021822203916", "node");
5626
+ }), "PUBLIC" /* PUBLIC */)), a("firestore-lite", "3.1.0", "node");
5631
5627
 
5632
5628
  export { mn as Bytes, sn as CollectionReference, on as DocumentReference, Qn as DocumentSnapshot, pn as FieldPath, yn as FieldValue, Ze as Firestore, B as FirestoreError, vn as GeoPoint, an as Query, Yn as QueryConstraint, zn as QueryDocumentSnapshot, Hn as QuerySnapshot, gt as Timestamp, jr as Transaction, Vr as WriteBatch, _r as addDoc, Ir as arrayRemove, Er as arrayUnion, un as collection, cn as collectionGroup, nn as connectFirestoreEmulator, br as deleteDoc, Sr as deleteField, fn as doc, dn as documentId, cr as endAt, ur as endBefore, yr as getDoc, vr as getDocs, en as getFirestore, Ar as increment, tn as initializeFirestore, nr as limit, rr as limitToLast, tr as orderBy, Xn as query, hn as queryEqual, ln as refEqual, Lr as runTransaction, Tr as serverTimestamp, gr as setDoc, v as setLogLevel, Kn as snapshotEqual, ar as startAfter, or as startAt, rn as terminate, wr as updateDoc, Jn as where, kr as writeBatch };
5633
5629
  //# sourceMappingURL=index.browser.esm5.js.map