@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.esm5.js
CHANGED
|
@@ -70,7 +70,7 @@ R.MOCK_USER = new R("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
var L = "9.8.
|
|
73
|
+
var L = "9.8.4-canary.b60cf76e1", F = new l("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -1548,7 +1548,7 @@ function At(t) {
|
|
|
1548
1548
|
switch (l.label) {
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
e = "readonly" === r, u = 0, s = function() {
|
|
1551
|
-
var r, s, c, l, h;
|
|
1551
|
+
var r, s, c, l, h, f;
|
|
1552
1552
|
return n(this, (function(n) {
|
|
1553
1553
|
switch (n.label) {
|
|
1554
1554
|
case 0:
|
|
@@ -1576,9 +1576,14 @@ function At(t) {
|
|
|
1576
1576
|
n.sent(), s), c) ];
|
|
1577
1577
|
|
|
1578
1578
|
case 4:
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1579
|
+
// TODO(schmidt-sebastian): We could probably be smarter about this and
|
|
1580
|
+
// not retry exceptions that are likely unrecoverable (such as quota
|
|
1581
|
+
// exceeded errors).
|
|
1582
|
+
// Note: We cannot use an instanceof check for FirestoreException, since the
|
|
1583
|
+
// exception is wrapped in a generic error by our async/await handling.
|
|
1584
|
+
return l = n.sent(), f = "FirebaseError" !== (h = l).name && u < 3, U("SimpleDb", "Transaction failed with error:", h.message, "Retrying:", f),
|
|
1585
|
+
a.close(), f ? [ 3 /*break*/ , 5 ] : [ 2 /*return*/ , {
|
|
1586
|
+
value: Promise.reject(h)
|
|
1582
1587
|
} ];
|
|
1583
1588
|
|
|
1584
1589
|
case 5:
|
|
@@ -12099,7 +12104,7 @@ var Pu = /** @class */ function() {
|
|
|
12099
12104
|
throw K("RestConnection", t + " failed with error: ", e, "url: ", o, "request:", n),
|
|
12100
12105
|
e;
|
|
12101
12106
|
}));
|
|
12102
|
-
}, t.prototype.ao = function(t, e, n, r, i) {
|
|
12107
|
+
}, t.prototype.ao = function(t, e, n, r, i, o) {
|
|
12103
12108
|
// The REST API automatically aggregates all of the streamed results, so we
|
|
12104
12109
|
// can just use the normal invoke() method.
|
|
12105
12110
|
return this.ro(t, e, n, r, i);
|
|
@@ -12723,14 +12728,14 @@ function Ju() {
|
|
|
12723
12728
|
r.appCheckCredentials.invalidateToken()), t) : new Y(H.UNKNOWN, t.toString());
|
|
12724
12729
|
}));
|
|
12725
12730
|
},
|
|
12726
|
-
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ n.prototype.ao = function(t, e, n) {
|
|
12727
|
-
var
|
|
12728
|
-
return this.tu(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(
|
|
12729
|
-
var
|
|
12730
|
-
return
|
|
12731
|
+
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ n.prototype.ao = function(t, e, n, r) {
|
|
12732
|
+
var i = this;
|
|
12733
|
+
return this.tu(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(o) {
|
|
12734
|
+
var u = o[0], s = o[1];
|
|
12735
|
+
return i.bo.ao(t, e, n, u, s, r);
|
|
12731
12736
|
})).catch((function(t) {
|
|
12732
|
-
throw "FirebaseError" === t.name ? (t.code === H.UNAUTHENTICATED && (
|
|
12733
|
-
|
|
12737
|
+
throw "FirebaseError" === t.name ? (t.code === H.UNAUTHENTICATED && (i.authCredentials.invalidateToken(),
|
|
12738
|
+
i.appCheckCredentials.invalidateToken()), t) : new Y(H.UNKNOWN, t.toString());
|
|
12734
12739
|
}));
|
|
12735
12740
|
}, n.prototype.terminate = function() {
|
|
12736
12741
|
this.Zo = !0;
|
|
@@ -16115,7 +16120,7 @@ function Fa(t, r) {
|
|
|
16115
16120
|
documents: r.map((function(t) {
|
|
16116
16121
|
return Fr(e.wt, t);
|
|
16117
16122
|
}))
|
|
16118
|
-
}, [ 4 /*yield*/ , e.ao("BatchGetDocuments", i, o) ];
|
|
16123
|
+
}, [ 4 /*yield*/ , e.ao("BatchGetDocuments", i, o, r.length) ];
|
|
16119
16124
|
|
|
16120
16125
|
case 1:
|
|
16121
16126
|
return u = n.sent(), s = new Map, u.forEach((function(t) {
|
|
@@ -17591,7 +17596,7 @@ function xc(t) {
|
|
|
17591
17596
|
var o = this, u = new J;
|
|
17592
17597
|
return t.asyncQueue.enqueue((function() {
|
|
17593
17598
|
return e(o, void 0, void 0, (function() {
|
|
17594
|
-
var e;
|
|
17599
|
+
var e, o;
|
|
17595
17600
|
return n(this, (function(n) {
|
|
17596
17601
|
switch (n.label) {
|
|
17597
17602
|
case 0:
|
|
@@ -17604,7 +17609,7 @@ function xc(t) {
|
|
|
17604
17609
|
return n.sent(), u.resolve(), [ 3 /*break*/ , 4 ];
|
|
17605
17610
|
|
|
17606
17611
|
case 3:
|
|
17607
|
-
if (!
|
|
17612
|
+
if (e = n.sent(), !
|
|
17608
17613
|
/**
|
|
17609
17614
|
* Decides whether the provided error allows us to gracefully disable
|
|
17610
17615
|
* persistence (as opposed to crashing the client).
|
|
@@ -17614,9 +17619,9 @@ function xc(t) {
|
|
|
17614
17619
|
// Firefox Private Browsing mode disables IndexedDb and returns
|
|
17615
17620
|
// INVALID_STATE for any usage.
|
|
17616
17621
|
11 === t.code);
|
|
17617
|
-
}(
|
|
17618
|
-
return console.warn("Error enabling offline persistence. Falling back to persistence disabled: " +
|
|
17619
|
-
u.reject(
|
|
17622
|
+
}(o = e)) throw o;
|
|
17623
|
+
return console.warn("Error enabling offline persistence. Falling back to persistence disabled: " + o),
|
|
17624
|
+
u.reject(o), [ 3 /*break*/ , 4 ];
|
|
17620
17625
|
|
|
17621
17626
|
case 4:
|
|
17622
17627
|
return [ 2 /*return*/ ];
|
|
@@ -20246,10 +20251,11 @@ function ch(t, r) {
|
|
|
20246
20251
|
function Ih(t, e) {
|
|
20247
20252
|
_c(t = uc(t, Tc));
|
|
20248
20253
|
var n = "string" == typeof e ? function(t) {
|
|
20254
|
+
var e;
|
|
20249
20255
|
try {
|
|
20250
20256
|
return JSON.parse(t);
|
|
20251
20257
|
} catch (t) {
|
|
20252
|
-
throw new Y(H.INVALID_ARGUMENT, "Failed to parse JSON:" + t.message);
|
|
20258
|
+
throw new Y(H.INVALID_ARGUMENT, "Failed to parse JSON:" + (null === (e = t) || void 0 === e ? void 0 : e.message));
|
|
20253
20259
|
}
|
|
20254
20260
|
}(e) : e, r = [];
|
|
20255
20261
|
// PORTING NOTE: We don't return an error if the user has not enabled
|
|
@@ -20280,9 +20286,9 @@ function Eh(t, e) {
|
|
|
20280
20286
|
return n = Object.assign({
|
|
20281
20287
|
useFetchStreams: fh
|
|
20282
20288
|
}, n), i._setSettings(n), i;
|
|
20283
|
-
}), "PUBLIC")), u(M, "3.4.
|
|
20289
|
+
}), "PUBLIC")), u(M, "3.4.11-canary.b60cf76e1", void 0),
|
|
20284
20290
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20285
|
-
u(M, "3.4.
|
|
20291
|
+
u(M, "3.4.11-canary.b60cf76e1", "esm5");
|
|
20286
20292
|
|
|
20287
20293
|
export { Ql as AbstractUserDataWriter, Bc as Bytes, Ec as CACHE_SIZE_UNLIMITED, dc as CollectionReference, hc as DocumentReference, bl as DocumentSnapshot, qc as FieldPath, Kc as FieldValue, Tc as Firestore, Y as FirestoreError, Gc as GeoPoint, Ic as LoadBundleTask, fc as Query, _l as QueryConstraint, Il as QueryDocumentSnapshot, El as QuerySnapshot, wl as SnapshotMetadata, ht as Timestamp, dh as Transaction, Yl as WriteBatch, ce as _DatabaseId, mt as _DocumentKey, ot as _EmptyAppCheckTokenProvider, $ as _EmptyAuthCredentialsProvider, yt as _FieldPath, uc as _cast, Q as _debugAssert, Zt as _isBase64Available, K as _logWarn, Ih as _setIndexConfiguration, nc as _validateIsNotUsedTogether, sh as addDoc, gh as arrayRemove, mh as arrayUnion, Cc as clearIndexedDbPersistence, pc as collection, vc as collectionGroup, lc as connectFirestoreEmulator, uh as deleteDoc, vh as deleteField, Mc as disableNetwork, yc as doc, Uc as documentId, Nc as enableIndexedDbPersistence, Ac as enableMultiTabIndexedDbPersistence, Oc as enableNetwork, Ul as endAt, ql as endBefore, _c as ensureFirestoreConfigured, lh as executeWrite, Xl as getDoc, Zl as getDocFromCache, th as getDocFromServer, eh as getDocs, nh as getDocsFromCache, rh as getDocsFromServer, Dc as getFirestore, wh as increment, Sc as initializeFirestore, Ol as limit, Ml as limitToLast, Lc as loadBundle, Fc as namedQuery, ah as onSnapshot, ch as onSnapshotsInSync, Cl as orderBy, xl as query, gc as queryEqual, mc as refEqual, ph as runTransaction, yh as serverTimestamp, ih as setDoc, q as setLogLevel, Sl as snapshotEqual, Fl as startAfter, Ll as startAt, Rc as terminate, oh as updateDoc, Vc as waitForPendingWrites, Al as where, bh as writeBatch };
|
|
20288
20294
|
//# sourceMappingURL=index.esm5.js.map
|