@firebase/firestore 3.4.10-canary.790b08bf6 → 3.4.10-canary.8e952e2ee

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 @@ C.MOCK_USER = new C("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let x = "9.8.3-canary.790b08bf6";
69
+ let x = "9.8.3-canary.8e952e2ee";
70
70
 
71
71
  /**
72
72
  * @license
@@ -1707,14 +1707,14 @@ class vt {
1707
1707
  // caller.
1708
1708
  await e.A, r;
1709
1709
  } catch (t) {
1710
+ const e = t, n = "FirebaseError" !== e.name && r < 3;
1710
1711
  // TODO(schmidt-sebastian): We could probably be smarter about this and
1711
1712
  // not retry exceptions that are likely unrecoverable (such as quota
1712
1713
  // exceeded errors).
1713
1714
  // Note: We cannot use an instanceof check for FirestoreException, since the
1714
1715
  // exception is wrapped in a generic error by our async/await handling.
1715
- const e = "FirebaseError" !== t.name && r < 3;
1716
- if (M("SimpleDb", "Transaction failed with error:", t.message, "Retrying:", e),
1717
- this.close(), !e) return Promise.reject(t);
1716
+ if (M("SimpleDb", "Transaction failed with error:", e.message, "Retrying:", n),
1717
+ this.close(), !n) return Promise.reject(e);
1718
1718
  }
1719
1719
  }
1720
1720
  }
@@ -17229,6 +17229,7 @@ function Ua(t) {
17229
17229
  try {
17230
17230
  await Hc(t, n), await Jc(t, e), s.resolve();
17231
17231
  } catch (t) {
17232
+ const e = t;
17232
17233
  if (!
17233
17234
  /**
17234
17235
  * Decides whether the provided error allows us to gracefully disable
@@ -17274,9 +17275,9 @@ function Ua(t) {
17274
17275
  * @param firestore - The {@link Firestore} instance to clear persistence for.
17275
17276
  * @returns A `Promise` that is resolved when the persistent storage is
17276
17277
  * cleared. Otherwise, the promise is rejected with an error.
17277
- */ (t)) throw t;
17278
- console.warn("Error enabling offline persistence. Falling back to persistence disabled: " + t),
17279
- s.reject(t);
17278
+ */ (e)) throw e;
17279
+ console.warn("Error enabling offline persistence. Falling back to persistence disabled: " + e),
17280
+ s.reject(e);
17280
17281
  }
17281
17282
  })).then((() => s.promise));
17282
17283
  }
@@ -19571,10 +19572,11 @@ function Al(t, e) {
19571
19572
  */ function kl(t, e) {
19572
19573
  La(t = Ia(t, Fa));
19573
19574
  const n = "string" == typeof e ? function(t) {
19575
+ var e;
19574
19576
  try {
19575
19577
  return JSON.parse(t);
19576
19578
  } catch (t) {
19577
- throw new Q(G.INVALID_ARGUMENT, "Failed to parse JSON:" + t.message);
19579
+ throw new Q(G.INVALID_ARGUMENT, "Failed to parse JSON:" + (null === (e = t) || void 0 === e ? void 0 : e.message));
19578
19580
  }
19579
19581
  }(e) : e, s = [];
19580
19582
  // PORTING NOTE: We don't return an error if the user has not enabled
@@ -19608,9 +19610,9 @@ function Ol(t, e) {
19608
19610
  return n = Object.assign({
19609
19611
  useFetchStreams: e
19610
19612
  }, n), i._setSettings(n), i;
19611
- }), "PUBLIC")), registerVersion(D, "3.4.10-canary.790b08bf6", t),
19613
+ }), "PUBLIC")), registerVersion(D, "3.4.10-canary.8e952e2ee", t),
19612
19614
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
19613
- registerVersion(D, "3.4.10-canary.790b08bf6", "esm2017");
19615
+ registerVersion(D, "3.4.10-canary.8e952e2ee", "esm2017");
19614
19616
  }();
19615
19617
 
19616
19618
  export { ol as AbstractUserDataWriter, eh as Bytes, Ma as CACHE_SIZE_UNLIMITED, va as CollectionReference, ba as DocumentReference, kh as DocumentSnapshot, Za as FieldPath, nh as FieldValue, Fa as Firestore, Q as FirestoreError, sh as GeoPoint, Oa as LoadBundleTask, Pa as Query, Lh as QueryConstraint, Oh as QueryDocumentSnapshot, Mh as QuerySnapshot, Nh as SnapshotMetadata, ut as Timestamp, Pl as Transaction, al as WriteBatch, re as _DatabaseId, dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, ft as _FieldPath, Ia as _cast, q as _debugAssert, Ht as _isBase64Available, $ as _logWarn, kl as _setIndexConfiguration, ma as _validateIsNotUsedTogether, Tl as addDoc, Cl as arrayRemove, Dl as arrayUnion, Qa as clearIndexedDbPersistence, Va as collection, Sa as collectionGroup, Ra as connectFirestoreEmulator, Il as deleteDoc, Vl as deleteField, za as disableNetwork, Da as doc, th as documentId, qa as enableIndexedDbPersistence, Ka as enableMultiTabIndexedDbPersistence, Wa as enableNetwork, tl as endAt, Zh as endBefore, La as ensureFirestoreConfigured, Rl as executeWrite, ll as getDoc, dl as getDocFromCache, _l as getDocFromServer, wl as getDocs, ml as getDocsFromCache, gl as getDocsFromServer, Ba as getFirestore, xl as increment, $a as initializeFirestore, Wh as limit, zh as limitToLast, Ja as loadBundle, Ya as namedQuery, El as onSnapshot, Al as onSnapshotsInSync, Qh as orderBy, Uh as query, xa as queryEqual, Ca as refEqual, vl as runTransaction, Sl as serverTimestamp, yl as setDoc, O as setLogLevel, $h as snapshotEqual, Yh as startAfter, Jh as startAt, Ha as terminate, pl as updateDoc, ja as waitForPendingWrites, Kh as where, Nl as writeBatch };