@firebase/firestore 3.7.2 → 3.7.3-20221109210852
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/index.esm2017.js +18 -15
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +18 -15
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +4 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +18 -15
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +62 -56
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +111 -105
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +10 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +10 -3
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +64 -58
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +9 -9
- package/package.json +1 -1
package/dist/index.esm5.js
CHANGED
|
@@ -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.
|
|
73
|
+
var k = "9.14.0-20221109210852", O = new l("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -11993,11 +11993,12 @@ var Mu = /** @class */ function() {
|
|
|
11993
11993
|
return new Promise((function(i, o) {
|
|
11994
11994
|
var u = new b;
|
|
11995
11995
|
u.setWithCredentials(!0), u.listenOnce(I.COMPLETE, (function() {
|
|
11996
|
+
var e;
|
|
11996
11997
|
try {
|
|
11997
11998
|
switch (u.getLastErrorCode()) {
|
|
11998
11999
|
case T.NO_ERROR:
|
|
11999
|
-
var
|
|
12000
|
-
L("Connection", "XHR received:", JSON.stringify(
|
|
12000
|
+
var n = u.getResponseJson();
|
|
12001
|
+
L("Connection", "XHR received:", JSON.stringify(n)), i(n);
|
|
12001
12002
|
break;
|
|
12002
12003
|
|
|
12003
12004
|
case T.TIMEOUT:
|
|
@@ -12005,16 +12006,18 @@ var Mu = /** @class */ function() {
|
|
|
12005
12006
|
break;
|
|
12006
12007
|
|
|
12007
12008
|
case T.HTTP_ERROR:
|
|
12008
|
-
var
|
|
12009
|
-
if (L("Connection", 'RPC "' + t + '" failed with status:',
|
|
12010
|
-
|
|
12011
|
-
var
|
|
12012
|
-
|
|
12013
|
-
|
|
12009
|
+
var r = u.getStatus();
|
|
12010
|
+
if (L("Connection", 'RPC "' + t + '" failed with status:', r, "response text:", u.getResponseText()),
|
|
12011
|
+
r > 0) {
|
|
12012
|
+
var s = u.getResponseJson();
|
|
12013
|
+
Array.isArray(s) && (s = s[0]);
|
|
12014
|
+
var a = null === (e = s) || void 0 === e ? void 0 : e.error;
|
|
12015
|
+
if (a && a.status && a.message) {
|
|
12016
|
+
var c = function(t) {
|
|
12014
12017
|
var e = t.toLowerCase().replace(/_/g, "-");
|
|
12015
12018
|
return Object.values(K).indexOf(e) >= 0 ? e : K.UNKNOWN;
|
|
12016
|
-
}(
|
|
12017
|
-
o(new j(
|
|
12019
|
+
}(a.status);
|
|
12020
|
+
o(new j(c, a.message));
|
|
12018
12021
|
} else o(new j(K.UNKNOWN, "Server responded with status " + u.getStatus()));
|
|
12019
12022
|
} else
|
|
12020
12023
|
// If we received an HTTP_ERROR but there's no status code,
|
|
@@ -16462,7 +16465,7 @@ function tc(t, r) {
|
|
|
16462
16465
|
return t.prototype.next = function(t) {
|
|
16463
16466
|
this.observer.next && this.Rc(this.observer.next, t);
|
|
16464
16467
|
}, t.prototype.error = function(t) {
|
|
16465
|
-
this.observer.error ? this.Rc(this.observer.error, t) : M("Uncaught Error in snapshot listener:", t);
|
|
16468
|
+
this.observer.error ? this.Rc(this.observer.error, t) : M("Uncaught Error in snapshot listener:", t.toString());
|
|
16466
16469
|
}, t.prototype.bc = function() {
|
|
16467
16470
|
this.muted = !0;
|
|
16468
16471
|
}, t.prototype.Rc = function(t, e) {
|
|
@@ -16928,7 +16931,7 @@ function tc(t, r) {
|
|
|
16928
16931
|
// In transactions, the backend will fail outdated reads with FAILED_PRECONDITION and
|
|
16929
16932
|
// non-matching document versions with ABORTED. These errors should be retried.
|
|
16930
16933
|
var e = t.code;
|
|
16931
|
-
return "aborted" === e || "failed-precondition" === e || !er(e);
|
|
16934
|
+
return "aborted" === e || "failed-precondition" === e || "already-exists" === e || !er(e);
|
|
16932
16935
|
}
|
|
16933
16936
|
return !1;
|
|
16934
16937
|
}, t;
|
|
@@ -20600,9 +20603,9 @@ function xh(t, e) {
|
|
|
20600
20603
|
return r = Object.assign({
|
|
20601
20604
|
useFetchStreams: yh
|
|
20602
20605
|
}, r), o._setSettings(r), o;
|
|
20603
|
-
}), "PUBLIC").setMultipleInstances(!0)), u(N, "3.7.
|
|
20606
|
+
}), "PUBLIC").setMultipleInstances(!0)), u(N, "3.7.3-20221109210852", void 0),
|
|
20604
20607
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20605
|
-
u(N, "3.7.
|
|
20608
|
+
u(N, "3.7.3-20221109210852", "esm5");
|
|
20606
20609
|
|
|
20607
20610
|
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, Ec as LoadBundleTask, Wa as Query, Tl 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, Th 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, Ac 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, _c as getFirestore, Eh as increment, xc as initializeFirestore, Nl as limit, Cl as limitToLast, Fc as loadBundle, qc as namedQuery, sh as onSnapshot, ah as onSnapshotsInSync, _l as orderBy, El 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 };
|
|
20608
20611
|
//# sourceMappingURL=index.esm5.js.map
|