@firebase/firestore 3.4.10 → 3.4.11-canary.b60cf76e1
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/CHANGELOG.md +8 -0
- package/dist/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/firestore/src/remote/connection.d.ts +1 -1
- package/dist/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/index.esm2017.js +16 -14
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +28 -22
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +25 -13
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +25 -13
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +16 -14
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/lite/firestore/src/remote/connection.d.ts +1 -1
- package/dist/lite/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +6 -6
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +11 -11
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +6 -6
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +6 -6
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +6 -6
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/connection.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/packages/firestore/src/remote/connection.d.ts +1 -1
- package/dist/packages/firestore/src/remote/rest_connection.d.ts +1 -1
- package/package.json +9 -9
package/dist/index.rn.js
CHANGED
|
@@ -70,7 +70,7 @@ x.MOCK_USER = new x("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
let N = "9.8.
|
|
73
|
+
let N = "9.8.4-canary.b60cf76e1";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -1711,14 +1711,14 @@ class Vt {
|
|
|
1711
1711
|
// caller.
|
|
1712
1712
|
await e.A, r;
|
|
1713
1713
|
} catch (t) {
|
|
1714
|
+
const e = t, n = "FirebaseError" !== e.name && r < 3;
|
|
1714
1715
|
// TODO(schmidt-sebastian): We could probably be smarter about this and
|
|
1715
1716
|
// not retry exceptions that are likely unrecoverable (such as quota
|
|
1716
1717
|
// exceeded errors).
|
|
1717
1718
|
// Note: We cannot use an instanceof check for FirestoreException, since the
|
|
1718
1719
|
// exception is wrapped in a generic error by our async/await handling.
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
this.close(), !e) return Promise.reject(t);
|
|
1720
|
+
if (F("SimpleDb", "Transaction failed with error:", e.message, "Retrying:", n),
|
|
1721
|
+
this.close(), !n) return Promise.reject(e);
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
@@ -12449,7 +12449,7 @@ class {
|
|
|
12449
12449
|
e;
|
|
12450
12450
|
}));
|
|
12451
12451
|
}
|
|
12452
|
-
ao(t, e, n, s, i) {
|
|
12452
|
+
ao(t, e, n, s, i, r) {
|
|
12453
12453
|
// The REST API automatically aggregates all of the streamed results, so we
|
|
12454
12454
|
// can just use the normal invoke() method.
|
|
12455
12455
|
return this.ro(t, e, n, s, i);
|
|
@@ -13196,8 +13196,8 @@ class au extends class {} {
|
|
|
13196
13196
|
this.appCheckCredentials.invalidateToken()), t) : new j(Q.UNKNOWN, t.toString());
|
|
13197
13197
|
}));
|
|
13198
13198
|
}
|
|
13199
|
-
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ ao(t, e, n) {
|
|
13200
|
-
return this.tu(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([
|
|
13199
|
+
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ ao(t, e, n, s) {
|
|
13200
|
+
return this.tu(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([i, r]) => this.bo.ao(t, e, n, i, r, s))).catch((t => {
|
|
13201
13201
|
throw "FirebaseError" === t.name ? (t.code === Q.UNAUTHENTICATED && (this.authCredentials.invalidateToken(),
|
|
13202
13202
|
this.appCheckCredentials.invalidateToken()), t) : new j(Q.UNKNOWN, t.toString());
|
|
13203
13203
|
}));
|
|
@@ -15830,7 +15830,7 @@ class zc {
|
|
|
15830
15830
|
const e = await async function(t, e) {
|
|
15831
15831
|
const n = G(t), s = qs(n.wt) + "/documents", i = {
|
|
15832
15832
|
documents: e.map((t => $s(n.wt, t)))
|
|
15833
|
-
}, r = await n.ao("BatchGetDocuments", s, i), o = new Map;
|
|
15833
|
+
}, r = await n.ao("BatchGetDocuments", s, i, e.length), o = new Map;
|
|
15834
15834
|
r.forEach((t => {
|
|
15835
15835
|
const e = js(n.wt, t);
|
|
15836
15836
|
o.set(e.key.toString(), e);
|
|
@@ -17247,6 +17247,7 @@ function Ka(t) {
|
|
|
17247
17247
|
try {
|
|
17248
17248
|
await Yc(t, n), await Xc(t, e), s.resolve();
|
|
17249
17249
|
} catch (t) {
|
|
17250
|
+
const e = t;
|
|
17250
17251
|
if (!
|
|
17251
17252
|
/**
|
|
17252
17253
|
* Decides whether the provided error allows us to gracefully disable
|
|
@@ -17292,9 +17293,9 @@ function Ka(t) {
|
|
|
17292
17293
|
* @param firestore - The {@link Firestore} instance to clear persistence for.
|
|
17293
17294
|
* @returns A `Promise` that is resolved when the persistent storage is
|
|
17294
17295
|
* cleared. Otherwise, the promise is rejected with an error.
|
|
17295
|
-
*/ (
|
|
17296
|
-
console.warn("Error enabling offline persistence. Falling back to persistence disabled: " +
|
|
17297
|
-
s.reject(
|
|
17296
|
+
*/ (e)) throw e;
|
|
17297
|
+
console.warn("Error enabling offline persistence. Falling back to persistence disabled: " + e),
|
|
17298
|
+
s.reject(e);
|
|
17298
17299
|
}
|
|
17299
17300
|
})).then((() => s.promise));
|
|
17300
17301
|
}
|
|
@@ -19589,10 +19590,11 @@ function bl(t, e) {
|
|
|
19589
19590
|
*/ function Ml(t, e) {
|
|
19590
19591
|
qa(t = Ea(t, Ba));
|
|
19591
19592
|
const n = "string" == typeof e ? function(t) {
|
|
19593
|
+
var e;
|
|
19592
19594
|
try {
|
|
19593
19595
|
return JSON.parse(t);
|
|
19594
19596
|
} catch (t) {
|
|
19595
|
-
throw new j(Q.INVALID_ARGUMENT, "Failed to parse JSON:" + t.message);
|
|
19597
|
+
throw new j(Q.INVALID_ARGUMENT, "Failed to parse JSON:" + (null === (e = t) || void 0 === e ? void 0 : e.message));
|
|
19596
19598
|
}
|
|
19597
19599
|
}(e) : e, s = [];
|
|
19598
19600
|
// PORTING NOTE: We don't return an error if the user has not enabled
|
|
@@ -19637,9 +19639,9 @@ function Fl(t, e) {
|
|
|
19637
19639
|
return n = Object.assign({
|
|
19638
19640
|
useFetchStreams: e
|
|
19639
19641
|
}, n), i._setSettings(n), i;
|
|
19640
|
-
}), "PUBLIC")), s(C, "3.4.
|
|
19642
|
+
}), "PUBLIC")), s(C, "3.4.11-canary.b60cf76e1", t),
|
|
19641
19643
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
19642
|
-
s(C, "3.4.
|
|
19644
|
+
s(C, "3.4.11-canary.b60cf76e1", "esm2017");
|
|
19643
19645
|
}("rn", /* useFetchStreams= */ !1);
|
|
19644
19646
|
|
|
19645
19647
|
export { cl as AbstractUserDataWriter, sh as Bytes, $a as CACHE_SIZE_UNLIMITED, Sa as CollectionReference, va as DocumentReference, Mh as DocumentSnapshot, eh as FieldPath, ih as FieldValue, Ba as Firestore, j as FirestoreError, rh as GeoPoint, Fa as LoadBundleTask, Va as Query, qh as QueryConstraint, Fh as QueryDocumentSnapshot, $h as QuerySnapshot, Oh as SnapshotMetadata, ct as Timestamp, Vl as Transaction, ll as WriteBatch, ue as _DatabaseId, _t as _DocumentKey, nt as _EmptyAppCheckTokenProvider, H as _EmptyAuthCredentialsProvider, dt as _FieldPath, Ea as _cast, K as _debugAssert, Yt as _isBase64Available, B as _logWarn, Ml as _setIndexConfiguration, ya as _validateIsNotUsedTogether, Al as addDoc, Nl as arrayRemove, xl as arrayUnion, Wa as clearIndexedDbPersistence, Da as collection, Ca as collectionGroup, Pa as connectFirestoreEmulator, El as deleteDoc, Dl as deleteField, Ja as disableNetwork, xa as doc, nh as documentId, Ga as enableIndexedDbPersistence, Qa as enableMultiTabIndexedDbPersistence, Ha as enableNetwork, nl as endAt, el as endBefore, qa as ensureFirestoreConfigured, Pl as executeWrite, dl as getDoc, wl as getDocFromCache, ml as getDocFromServer, gl as getDocs, yl as getDocsFromCache, pl as getDocsFromServer, Ua as getFirestore, kl as increment, La as initializeFirestore, Hh as limit, Jh as limitToLast, Xa as loadBundle, Za as namedQuery, Rl as onSnapshot, bl as onSnapshotsInSync, Wh as orderBy, Kh as query, ka as queryEqual, Na as refEqual, Sl as runTransaction, Cl as serverTimestamp, Il as setDoc, M as setLogLevel, Lh as snapshotEqual, Zh as startAfter, Xh as startAt, Ya as terminate, Tl as updateDoc, za as waitForPendingWrites, Qh as where, Ol as writeBatch };
|