@firebase/firestore 4.7.1-canary.16d62d4fa → 4.7.1-canary.ca4dbcf3f
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/dist/index.cjs.js +84 -84
- package/dist/index.esm2017.js +84 -84
- package/dist/index.esm5.js +79 -79
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.rn.js +92 -92
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +9 -9
- package/package.json +9 -9
package/dist/index.rn.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Component as s } from "@firebase/component";
|
|
|
4
4
|
|
|
5
5
|
import { Logger as o, LogLevel as _ } from "@firebase/logger";
|
|
6
6
|
|
|
7
|
-
import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as
|
|
7
|
+
import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as E, getDefaultEmulatorHostnameAndPort as d } from "@firebase/util";
|
|
8
8
|
|
|
9
9
|
import { Integer as A, Md5 as R } from "@firebase/webchannel-wrapper/bloom-blob";
|
|
10
10
|
|
|
@@ -72,7 +72,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
72
72
|
* See the License for the specific language governing permissions and
|
|
73
73
|
* limitations under the License.
|
|
74
74
|
*/
|
|
75
|
-
let v = "10.13.1-canary.
|
|
75
|
+
let v = "10.13.1-canary.ca4dbcf3f";
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* @license
|
|
@@ -5824,7 +5824,7 @@ Te[Te.INTERNAL = 13] = "INTERNAL", Te[Te.UNAVAILABLE = 14] = "UNAVAILABLE", Te[T
|
|
|
5824
5824
|
* integration tests that have registered callbacks to be notified of events
|
|
5825
5825
|
* that happen during the test execution.
|
|
5826
5826
|
*/
|
|
5827
|
-
let
|
|
5827
|
+
let Ee = null;
|
|
5828
5828
|
|
|
5829
5829
|
/**
|
|
5830
5830
|
* Sets the value of the `testingHooksSpi` object.
|
|
@@ -5872,7 +5872,7 @@ function __PRIVATE_newTextEncoder() {
|
|
|
5872
5872
|
* See the License for the specific language governing permissions and
|
|
5873
5873
|
* limitations under the License.
|
|
5874
5874
|
*/
|
|
5875
|
-
const
|
|
5875
|
+
const de = new A([ 4294967295, 4294967295 ], 0);
|
|
5876
5876
|
|
|
5877
5877
|
// Hash a string using md5 hashing algorithm.
|
|
5878
5878
|
function __PRIVATE_getMd5HashValue(e) {
|
|
@@ -5903,15 +5903,15 @@ class BloomFilter {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
// Calculate the ith hash value based on the hashed 64bit integers,
|
|
5905
5905
|
// and calculate its corresponding bit index in the bitmap to be checked.
|
|
5906
|
-
|
|
5906
|
+
Ee(e, t, n) {
|
|
5907
5907
|
// Calculate hashed value h(i) = h1 + (i * h2).
|
|
5908
5908
|
let r = e.add(t.multiply(A.fromNumber(n)));
|
|
5909
5909
|
// Wrap if hash value overflow 64bit.
|
|
5910
|
-
return 1 === r.compare(
|
|
5910
|
+
return 1 === r.compare(de) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
|
|
5911
5911
|
r.modulo(this.Te).toNumber();
|
|
5912
5912
|
}
|
|
5913
5913
|
// Return whether the bit on the given index in the bitmap is set to 1.
|
|
5914
|
-
|
|
5914
|
+
de(e) {
|
|
5915
5915
|
return 0 != (this.bitmap[Math.floor(e / 8)] & 1 << e % 8);
|
|
5916
5916
|
}
|
|
5917
5917
|
mightContain(e) {
|
|
@@ -5919,8 +5919,8 @@ class BloomFilter {
|
|
|
5919
5919
|
if (0 === this.Ie) return !1;
|
|
5920
5920
|
const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
|
|
5921
5921
|
for (let e = 0; e < this.hashCount; e++) {
|
|
5922
|
-
const t = this.
|
|
5923
|
-
if (!this.
|
|
5922
|
+
const t = this.Ee(n, r, e);
|
|
5923
|
+
if (!this.de(t)) return !1;
|
|
5924
5924
|
}
|
|
5925
5925
|
return !0;
|
|
5926
5926
|
}
|
|
@@ -5932,7 +5932,7 @@ class BloomFilter {
|
|
|
5932
5932
|
if (0 === this.Ie) return;
|
|
5933
5933
|
const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
|
|
5934
5934
|
for (let e = 0; e < this.hashCount; e++) {
|
|
5935
|
-
const t = this.
|
|
5935
|
+
const t = this.Ee(n, r, e);
|
|
5936
5936
|
this.Ae(t);
|
|
5937
5937
|
}
|
|
5938
5938
|
}
|
|
@@ -6325,7 +6325,7 @@ class __PRIVATE_WatchChangeAggregator {
|
|
|
6325
6325
|
const e = 2 /* BloomFilterApplicationStatus.FalsePositive */ === i ? "TargetPurposeExistenceFilterMismatchBloom" /* TargetPurpose.ExistenceFilterMismatchBloom */ : "TargetPurposeExistenceFilterMismatch" /* TargetPurpose.ExistenceFilterMismatch */;
|
|
6326
6326
|
this.Qe = this.Qe.insert(t, e);
|
|
6327
6327
|
}
|
|
6328
|
-
null ==
|
|
6328
|
+
null == Ee || Ee.et(function __PRIVATE_createExistenceFilterMismatchInfoForTestingHooks(e, t, n, r, i) {
|
|
6329
6329
|
var s, o, _, a, u, c;
|
|
6330
6330
|
const l = {
|
|
6331
6331
|
localCacheCount: e,
|
|
@@ -7722,59 +7722,59 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7722
7722
|
this.Tt(e, t),
|
|
7723
7723
|
// Write separator to split index values
|
|
7724
7724
|
// (see go/firestore-storage-format#encodings).
|
|
7725
|
-
t.
|
|
7725
|
+
t.Et();
|
|
7726
7726
|
}
|
|
7727
7727
|
Tt(e, t) {
|
|
7728
|
-
if ("nullValue" in e) this.
|
|
7729
|
-
t.At(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.
|
|
7728
|
+
if ("nullValue" in e) this.dt(t, 5); else if ("booleanValue" in e) this.dt(t, 10),
|
|
7729
|
+
t.At(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.dt(t, 15), t.At(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
|
|
7730
7730
|
const n = __PRIVATE_normalizeNumber(e.doubleValue);
|
|
7731
|
-
isNaN(n) ? this.
|
|
7731
|
+
isNaN(n) ? this.dt(t, 13) : (this.dt(t, 15), __PRIVATE_isNegativeZero(n) ?
|
|
7732
7732
|
// -0.0, 0 and 0.0 are all considered the same
|
|
7733
7733
|
t.At(0) : t.At(n));
|
|
7734
7734
|
} else if ("timestampValue" in e) {
|
|
7735
7735
|
let n = e.timestampValue;
|
|
7736
|
-
this.
|
|
7736
|
+
this.dt(t, 20), "string" == typeof n && (n = __PRIVATE_normalizeTimestamp(n)), t.Rt(`${n.seconds || ""}`),
|
|
7737
7737
|
t.At(n.nanos || 0);
|
|
7738
|
-
} else if ("stringValue" in e) this.Vt(e.stringValue, t), this.ft(t); else if ("bytesValue" in e) this.
|
|
7738
|
+
} else if ("stringValue" in e) this.Vt(e.stringValue, t), this.ft(t); else if ("bytesValue" in e) this.dt(t, 30),
|
|
7739
7739
|
t.gt(__PRIVATE_normalizeByteString(e.bytesValue)), this.ft(t); else if ("referenceValue" in e) this.yt(e.referenceValue, t); else if ("geoPointValue" in e) {
|
|
7740
7740
|
const n = e.geoPointValue;
|
|
7741
|
-
this.
|
|
7742
|
-
} else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.
|
|
7741
|
+
this.dt(t, 45), t.At(n.latitude || 0), t.At(n.longitude || 0);
|
|
7742
|
+
} else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.dt(t, Number.MAX_SAFE_INTEGER) : __PRIVATE_isVectorValue(e) ? this.wt(e.mapValue, t) : (this.St(e.mapValue, t),
|
|
7743
7743
|
this.ft(t)) : "arrayValue" in e ? (this.bt(e.arrayValue, t), this.ft(t)) : fail();
|
|
7744
7744
|
}
|
|
7745
7745
|
Vt(e, t) {
|
|
7746
|
-
this.
|
|
7746
|
+
this.dt(t, 25), this.Dt(e, t);
|
|
7747
7747
|
}
|
|
7748
7748
|
Dt(e, t) {
|
|
7749
7749
|
t.Rt(e);
|
|
7750
7750
|
}
|
|
7751
7751
|
St(e, t) {
|
|
7752
7752
|
const n = e.fields || {};
|
|
7753
|
-
this.
|
|
7753
|
+
this.dt(t, 55);
|
|
7754
7754
|
for (const e of Object.keys(n)) this.Vt(e, t), this.Tt(n[e], t);
|
|
7755
7755
|
}
|
|
7756
7756
|
wt(e, t) {
|
|
7757
7757
|
var n, r;
|
|
7758
7758
|
const i = e.fields || {};
|
|
7759
|
-
this.
|
|
7759
|
+
this.dt(t, 53);
|
|
7760
7760
|
// Vectors sort first by length
|
|
7761
7761
|
const s = "value", o = (null === (r = null === (n = i[s].arrayValue) || void 0 === n ? void 0 : n.values) || void 0 === r ? void 0 : r.length) || 0;
|
|
7762
|
-
this.
|
|
7762
|
+
this.dt(t, 15), t.At(__PRIVATE_normalizeNumber(o)),
|
|
7763
7763
|
// Vectors then sort by position value
|
|
7764
7764
|
this.Vt(s, t), this.Tt(i[s], t);
|
|
7765
7765
|
}
|
|
7766
7766
|
bt(e, t) {
|
|
7767
7767
|
const n = e.values || [];
|
|
7768
|
-
this.
|
|
7768
|
+
this.dt(t, 50);
|
|
7769
7769
|
for (const e of n) this.Tt(e, t);
|
|
7770
7770
|
}
|
|
7771
7771
|
yt(e, t) {
|
|
7772
|
-
this.
|
|
7772
|
+
this.dt(t, 37);
|
|
7773
7773
|
DocumentKey.fromName(e).path.forEach((e => {
|
|
7774
|
-
this.
|
|
7774
|
+
this.dt(t, 60), this.Dt(e, t);
|
|
7775
7775
|
}));
|
|
7776
7776
|
}
|
|
7777
|
-
|
|
7777
|
+
dt(e, t) {
|
|
7778
7778
|
e.At(t);
|
|
7779
7779
|
}
|
|
7780
7780
|
ft(e) {
|
|
@@ -7974,7 +7974,7 @@ class __PRIVATE_AscendingIndexByteEncoder {
|
|
|
7974
7974
|
At(e) {
|
|
7975
7975
|
this.jt.kt(e);
|
|
7976
7976
|
}
|
|
7977
|
-
|
|
7977
|
+
Et() {
|
|
7978
7978
|
this.jt.$t();
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
@@ -7992,7 +7992,7 @@ class __PRIVATE_DescendingIndexByteEncoder {
|
|
|
7992
7992
|
At(e) {
|
|
7993
7993
|
this.jt.Kt(e);
|
|
7994
7994
|
}
|
|
7995
|
-
|
|
7995
|
+
Et() {
|
|
7996
7996
|
this.jt.Wt();
|
|
7997
7997
|
}
|
|
7998
7998
|
}
|
|
@@ -8690,7 +8690,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8690
8690
|
n.push(t.value), r && (r = t.inclusive);
|
|
8691
8691
|
}
|
|
8692
8692
|
return new Bound(n, r);
|
|
8693
|
-
}(s, i), c = this.In(i, s, a), l = this.In(i, s, u), h = this.Tn(i, s, _), P = this.
|
|
8693
|
+
}(s, i), c = this.In(i, s, a), l = this.In(i, s, u), h = this.Tn(i, s, _), P = this.En(i.indexId, o, c, a.inclusive, l, u.inclusive, h);
|
|
8694
8694
|
return PersistencePromise.forEach(P, (i => n.G(i, t.limit).next((t => {
|
|
8695
8695
|
t.forEach((t => {
|
|
8696
8696
|
const n = DocumentKey.fromSegments(t.documentKey);
|
|
@@ -8713,14 +8713,14 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8713
8713
|
/**
|
|
8714
8714
|
* Constructs a key range query on `DbIndexEntryStore` that unions all
|
|
8715
8715
|
* bounds.
|
|
8716
|
-
*/
|
|
8716
|
+
*/ En(e, t, n, r, i, s, o) {
|
|
8717
8717
|
// The number of total index scans we union together. This is similar to a
|
|
8718
8718
|
// distributed normal form, but adapted for array values. We create a single
|
|
8719
8719
|
// index range per value in an ARRAY_CONTAINS or ARRAY_CONTAINS_ANY filter
|
|
8720
8720
|
// combined with the values from the query bounds.
|
|
8721
8721
|
const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
|
|
8722
8722
|
for (let c = 0; c < _; ++c) {
|
|
8723
|
-
const _ = t ? this.
|
|
8723
|
+
const _ = t ? this.dn(t[c / a]) : me, l = this.An(e, _, n[c % a], r), h = this.Rn(e, _, i[c % a], s), P = o.map((t => this.An(e, _, t,
|
|
8724
8724
|
/* inclusive= */ !0)));
|
|
8725
8725
|
u.push(...this.createRange(l, h, P));
|
|
8726
8726
|
}
|
|
@@ -8788,7 +8788,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8788
8788
|
}
|
|
8789
8789
|
return n.zt();
|
|
8790
8790
|
}
|
|
8791
|
-
/** Encodes a single value to the ascending index format. */
|
|
8791
|
+
/** Encodes a single value to the ascending index format. */ dn(e) {
|
|
8792
8792
|
const t = new __PRIVATE_IndexByteEncoder;
|
|
8793
8793
|
return __PRIVATE_FirestoreIndexValueWriter.vt.It(e, t.Yt(0 /* IndexKind.ASCENDING */)),
|
|
8794
8794
|
t.zt();
|
|
@@ -8916,7 +8916,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8916
8916
|
const i = __PRIVATE_fieldIndexGetArraySegment(t);
|
|
8917
8917
|
if (null != i) {
|
|
8918
8918
|
const s = e.data.field(i.fieldPath);
|
|
8919
|
-
if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.
|
|
8919
|
+
if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.dn(i), r));
|
|
8920
8920
|
} else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, me, r));
|
|
8921
8921
|
return n;
|
|
8922
8922
|
}
|
|
@@ -10862,16 +10862,16 @@ class OverlayedDocument {
|
|
|
10862
10862
|
*/ class __PRIVATE_ReferenceSet {
|
|
10863
10863
|
constructor() {
|
|
10864
10864
|
// A set of outstanding references to a document sorted by key.
|
|
10865
|
-
this.Tr = new SortedSet(__PRIVATE_DocReference.
|
|
10865
|
+
this.Tr = new SortedSet(__PRIVATE_DocReference.Er),
|
|
10866
10866
|
// A set of outstanding references to a document sorted by target id.
|
|
10867
|
-
this.
|
|
10867
|
+
this.dr = new SortedSet(__PRIVATE_DocReference.Ar);
|
|
10868
10868
|
}
|
|
10869
10869
|
/** Returns true if the reference set contains no references. */ isEmpty() {
|
|
10870
10870
|
return this.Tr.isEmpty();
|
|
10871
10871
|
}
|
|
10872
10872
|
/** Adds a reference to the given document key for the given ID. */ addReference(e, t) {
|
|
10873
10873
|
const n = new __PRIVATE_DocReference(e, t);
|
|
10874
|
-
this.Tr = this.Tr.add(n), this.
|
|
10874
|
+
this.Tr = this.Tr.add(n), this.dr = this.dr.add(n);
|
|
10875
10875
|
}
|
|
10876
10876
|
/** Add references to the given document keys for the given ID. */ Rr(e, t) {
|
|
10877
10877
|
e.forEach((e => this.addReference(e, t)));
|
|
@@ -10890,7 +10890,7 @@ class OverlayedDocument {
|
|
|
10890
10890
|
* removed.
|
|
10891
10891
|
*/ gr(e) {
|
|
10892
10892
|
const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
|
|
10893
|
-
return this.
|
|
10893
|
+
return this.dr.forEachInRange([ n, r ], (e => {
|
|
10894
10894
|
this.Vr(e), i.push(e.key);
|
|
10895
10895
|
})), i;
|
|
10896
10896
|
}
|
|
@@ -10898,12 +10898,12 @@ class OverlayedDocument {
|
|
|
10898
10898
|
this.Tr.forEach((e => this.Vr(e)));
|
|
10899
10899
|
}
|
|
10900
10900
|
Vr(e) {
|
|
10901
|
-
this.Tr = this.Tr.delete(e), this.
|
|
10901
|
+
this.Tr = this.Tr.delete(e), this.dr = this.dr.delete(e);
|
|
10902
10902
|
}
|
|
10903
10903
|
yr(e) {
|
|
10904
10904
|
const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1);
|
|
10905
10905
|
let i = __PRIVATE_documentKeySet();
|
|
10906
|
-
return this.
|
|
10906
|
+
return this.dr.forEachInRange([ n, r ], (e => {
|
|
10907
10907
|
i = i.add(e.key);
|
|
10908
10908
|
})), i;
|
|
10909
10909
|
}
|
|
@@ -10917,7 +10917,7 @@ class __PRIVATE_DocReference {
|
|
|
10917
10917
|
constructor(e, t) {
|
|
10918
10918
|
this.key = e, this.wr = t;
|
|
10919
10919
|
}
|
|
10920
|
-
/** Compare by key then by ID */ static
|
|
10920
|
+
/** Compare by key then by ID */ static Er(e, t) {
|
|
10921
10921
|
return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.wr, t.wr);
|
|
10922
10922
|
}
|
|
10923
10923
|
/** Compare by ID then by key */ static Ar(e, t) {
|
|
@@ -10951,7 +10951,7 @@ class __PRIVATE_DocReference {
|
|
|
10951
10951
|
/** Next value to use when assigning sequential IDs to each mutation batch. */
|
|
10952
10952
|
this.Sr = 1,
|
|
10953
10953
|
/** An ordered mapping between documents and the mutations batch IDs. */
|
|
10954
|
-
this.br = new SortedSet(__PRIVATE_DocReference.
|
|
10954
|
+
this.br = new SortedSet(__PRIVATE_DocReference.Er);
|
|
10955
10955
|
}
|
|
10956
10956
|
checkEmpty(e) {
|
|
10957
10957
|
return PersistencePromise.resolve(0 === this.mutationQueue.length);
|
|
@@ -11927,9 +11927,9 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11927
11927
|
/** The client metadata refresh task. */
|
|
11928
11928
|
this.Ti = null,
|
|
11929
11929
|
/** The last time we garbage collected the client metadata object store. */
|
|
11930
|
-
this.
|
|
11930
|
+
this.Ei = Number.NEGATIVE_INFINITY,
|
|
11931
11931
|
/** A listener to notify on primary state changes. */
|
|
11932
|
-
this.
|
|
11932
|
+
this.di = e => Promise.resolve(), !__PRIVATE_IndexedDbPersistence.D()) throw new FirestoreError(F.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
|
|
11933
11933
|
this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.Ai = t + "main",
|
|
11934
11934
|
this.serializer = new __PRIVATE_LocalSerializer(_), this.Ri = new __PRIVATE_SimpleDb(this.Ai, this.hi, new __PRIVATE_SchemaConverter(this.serializer)),
|
|
11935
11935
|
this.$r = new __PRIVATE_IndexedDbGlobalsCache, this.Ur = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
|
|
@@ -11964,7 +11964,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11964
11964
|
*
|
|
11965
11965
|
* PORTING NOTE: This is only used for Web multi-tab.
|
|
11966
11966
|
*/ yi(e) {
|
|
11967
|
-
return this.
|
|
11967
|
+
return this.di = async t => {
|
|
11968
11968
|
if (this.started) return e(t);
|
|
11969
11969
|
}, e(this.isPrimary);
|
|
11970
11970
|
}
|
|
@@ -12005,7 +12005,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12005
12005
|
inForeground: this.inForeground
|
|
12006
12006
|
}).next((() => {
|
|
12007
12007
|
if (this.isPrimary) return this.wi(e).next((e => {
|
|
12008
|
-
e || (this.isPrimary = !1, this.ui.enqueueRetryable((() => this.
|
|
12008
|
+
e || (this.isPrimary = !1, this.ui.enqueueRetryable((() => this.di(!1))));
|
|
12009
12009
|
}));
|
|
12010
12010
|
})).next((() => this.Si(e))).next((t => this.isPrimary && !t ? this.bi(e).next((() => !1)) : !!t && this.Di(e).next((() => !0)))))).catch((e => {
|
|
12011
12011
|
if (__PRIVATE_isIndexedDbTransactionError(e))
|
|
@@ -12017,7 +12017,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12017
12017
|
return __PRIVATE_logDebug("IndexedDbPersistence", "Releasing owner lease after error during lease refresh", e),
|
|
12018
12018
|
/* isPrimary= */ !1;
|
|
12019
12019
|
})).then((e => {
|
|
12020
|
-
this.isPrimary !== e && this.ui.enqueueRetryable((() => this.
|
|
12020
|
+
this.isPrimary !== e && this.ui.enqueueRetryable((() => this.di(e))), this.isPrimary = e;
|
|
12021
12021
|
}));
|
|
12022
12022
|
}
|
|
12023
12023
|
wi(e) {
|
|
@@ -12031,8 +12031,8 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12031
12031
|
* RemoteDocumentChanges and the ClientMetadata store based on the last update
|
|
12032
12032
|
* time of all clients.
|
|
12033
12033
|
*/ async Fi() {
|
|
12034
|
-
if (this.isPrimary && !this.Mi(this.
|
|
12035
|
-
this.
|
|
12034
|
+
if (this.isPrimary && !this.Mi(this.Ei, 18e5)) {
|
|
12035
|
+
this.Ei = Date.now();
|
|
12036
12036
|
const e = await this.runTransaction("maybeGarbageCollectMultiClientState", "readwrite-primary", (e => {
|
|
12037
12037
|
const t = __PRIVATE_getStore(e, "clientMetadata");
|
|
12038
12038
|
return t.U().next((e => {
|
|
@@ -12172,7 +12172,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12172
12172
|
return this.Ri.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.Qr ? this.Qr.next() : __PRIVATE_ListenSequence.oe),
|
|
12173
12173
|
"readwrite-primary" === t ? this.wi(s).next((e => !!e || this.Si(s))).next((t => {
|
|
12174
12174
|
if (!t) throw __PRIVATE_logError(`Failed to obtain primary lease for action '${e}'.`),
|
|
12175
|
-
this.isPrimary = !1, this.ui.enqueueRetryable((() => this.
|
|
12175
|
+
this.isPrimary = !1, this.ui.enqueueRetryable((() => this.di(!1))), new FirestoreError(F.FAILED_PRECONDITION, x);
|
|
12176
12176
|
return n(s);
|
|
12177
12177
|
})).next((e => this.Di(s).next((() => e)))) : this.Ki(s).next((() => n(s)))))).then((e => (s.raiseOnCommittedEvent(),
|
|
12178
12178
|
e)));
|
|
@@ -13014,9 +13014,9 @@ async function __PRIVATE_localStoreApplyBundledDocuments(e, t, n, r) {
|
|
|
13014
13014
|
const i = __PRIVATE_debugCast(e);
|
|
13015
13015
|
let s = __PRIVATE_documentKeySet(), o = __PRIVATE_mutableDocumentMap();
|
|
13016
13016
|
for (const e of n) {
|
|
13017
|
-
const n = t.
|
|
13017
|
+
const n = t.Es(e.metadata.name);
|
|
13018
13018
|
e.document && (s = s.add(n));
|
|
13019
|
-
const r = t.
|
|
13019
|
+
const r = t.ds(e);
|
|
13020
13020
|
r.setReadTime(t.As(e.metadata.readTime)), o = o.insert(n, r);
|
|
13021
13021
|
}
|
|
13022
13022
|
const _ = i.cs.newChangeBuffer({
|
|
@@ -14425,7 +14425,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14425
14425
|
})), this.stream.mo((e => {
|
|
14426
14426
|
n((() => this.I_(e)));
|
|
14427
14427
|
})), this.stream.onMessage((e => {
|
|
14428
|
-
n((() => 1 == ++this.e_ ? this.
|
|
14428
|
+
n((() => 1 == ++this.e_ ? this.E_(e) : this.onNext(e)));
|
|
14429
14429
|
}));
|
|
14430
14430
|
}
|
|
14431
14431
|
i_() {
|
|
@@ -14469,7 +14469,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14469
14469
|
T_(e, t) {
|
|
14470
14470
|
return this.connection.Lo("Listen", e, t);
|
|
14471
14471
|
}
|
|
14472
|
-
|
|
14472
|
+
E_(e) {
|
|
14473
14473
|
return this.onNext(e);
|
|
14474
14474
|
}
|
|
14475
14475
|
onNext(e) {
|
|
@@ -14483,7 +14483,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14483
14483
|
const t = e.targetChange;
|
|
14484
14484
|
return t.targetIds && t.targetIds.length ? SnapshotVersion.min() : t.readTime ? __PRIVATE_fromVersion(t.readTime) : SnapshotVersion.min();
|
|
14485
14485
|
}(e);
|
|
14486
|
-
return this.listener.
|
|
14486
|
+
return this.listener.d_(t, n);
|
|
14487
14487
|
}
|
|
14488
14488
|
/**
|
|
14489
14489
|
* Registers interest in the results of the given target. If the target
|
|
@@ -14563,7 +14563,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14563
14563
|
T_(e, t) {
|
|
14564
14564
|
return this.connection.Lo("Write", e, t);
|
|
14565
14565
|
}
|
|
14566
|
-
|
|
14566
|
+
E_(e) {
|
|
14567
14567
|
// Always capture the last stream token.
|
|
14568
14568
|
return __PRIVATE_hardAssert(!!e.streamToken), this.lastStreamToken = e.streamToken,
|
|
14569
14569
|
// The first response is always the handshake response
|
|
@@ -15158,7 +15158,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
|
|
|
15158
15158
|
Eo: __PRIVATE_onWatchStreamConnected.bind(null, e),
|
|
15159
15159
|
Ro: __PRIVATE_onWatchStreamOpen.bind(null, e),
|
|
15160
15160
|
mo: __PRIVATE_onWatchStreamClose.bind(null, e),
|
|
15161
|
-
|
|
15161
|
+
d_: __PRIVATE_onWatchStreamChange.bind(null, e)
|
|
15162
15162
|
}), e.L_.push((async t => {
|
|
15163
15163
|
t ? (e.K_.s_(), __PRIVATE_shouldStartWatchStream(e) ? __PRIVATE_startWatchStream(e) : e.q_.set("Unknown" /* OnlineState.Unknown */)) : (await e.K_.stop(),
|
|
15164
15164
|
__PRIVATE_cleanUpWatchStreamState(e));
|
|
@@ -15746,13 +15746,13 @@ class __PRIVATE_QueryListener {
|
|
|
15746
15746
|
constructor(e) {
|
|
15747
15747
|
this.serializer = e;
|
|
15748
15748
|
}
|
|
15749
|
-
|
|
15749
|
+
Es(e) {
|
|
15750
15750
|
return fromName(this.serializer, e);
|
|
15751
15751
|
}
|
|
15752
15752
|
/**
|
|
15753
15753
|
* Converts a BundleDocument to a MutableDocument.
|
|
15754
|
-
*/
|
|
15755
|
-
return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.
|
|
15754
|
+
*/ ds(e) {
|
|
15755
|
+
return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.Es(e.metadata.name), this.As(e.metadata.readTime));
|
|
15756
15756
|
}
|
|
15757
15757
|
As(e) {
|
|
15758
15758
|
return __PRIVATE_fromVersion(e);
|
|
@@ -15794,7 +15794,7 @@ class __PRIVATE_QueryListener {
|
|
|
15794
15794
|
ha(e) {
|
|
15795
15795
|
const t = new Map, n = new __PRIVATE_BundleConverterImpl(this.serializer);
|
|
15796
15796
|
for (const r of e) if (r.metadata.queries) {
|
|
15797
|
-
const e = n.
|
|
15797
|
+
const e = n.Es(r.metadata.name);
|
|
15798
15798
|
for (const n of r.metadata.queries) {
|
|
15799
15799
|
const r = (t.get(n) || __PRIVATE_documentKeySet()).add(e);
|
|
15800
15800
|
t.set(n, r);
|
|
@@ -15868,7 +15868,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
15868
15868
|
constructor(e,
|
|
15869
15869
|
/** Documents included in the remote target */
|
|
15870
15870
|
t) {
|
|
15871
|
-
this.query = e, this.Ta = t, this.
|
|
15871
|
+
this.query = e, this.Ta = t, this.Ea = null, this.hasCachedResults = !1,
|
|
15872
15872
|
/**
|
|
15873
15873
|
* A flag whether the view is current with the backend. A view is considered
|
|
15874
15874
|
* current after it has seen the current flag from the backend and did not
|
|
@@ -15877,7 +15877,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
15877
15877
|
*/
|
|
15878
15878
|
this.current = !1,
|
|
15879
15879
|
/** Documents in the view but not in the remote target */
|
|
15880
|
-
this.
|
|
15880
|
+
this.da = __PRIVATE_documentKeySet(),
|
|
15881
15881
|
/** Document Keys that have local changes */
|
|
15882
15882
|
this.mutatedKeys = __PRIVATE_documentKeySet(), this.Aa = __PRIVATE_newQueryComparator(e),
|
|
15883
15883
|
this.Ra = new DocumentSet(this.Aa);
|
|
@@ -16022,10 +16022,10 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16022
16022
|
* See the License for the specific language governing permissions and
|
|
16023
16023
|
* limitations under the License.
|
|
16024
16024
|
*/ (e.type, t.type) || this.Aa(e.doc, t.doc))), this.pa(n), r = null != r && r;
|
|
16025
|
-
const o = t && !r ? this.ya() : [], _ = 0 === this.
|
|
16025
|
+
const o = t && !r ? this.ya() : [], _ = 0 === this.da.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , a = _ !== this.Ea;
|
|
16026
16026
|
// We are at synced state if there is no limbo docs are waiting to be resolved, view is current
|
|
16027
16027
|
// with the backend, and the query is not pending to reset due to existence filter mismatch.
|
|
16028
|
-
if (this.
|
|
16028
|
+
if (this.Ea = _, 0 !== s.length || a) {
|
|
16029
16029
|
return {
|
|
16030
16030
|
snapshot: new ViewSnapshot(this.query, e.Ra, i, s, e.mutatedKeys, 0 /* SyncState.Local */ === _, a,
|
|
16031
16031
|
/* excludesMetadataChanges= */ !1, !!n && n.resumeToken.approximateByteSize() > 0),
|
|
@@ -16076,15 +16076,15 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16076
16076
|
if (!this.current) return [];
|
|
16077
16077
|
// TODO(klimt): Do this incrementally so that it's not quadratic when
|
|
16078
16078
|
// updating many documents.
|
|
16079
|
-
const e = this.
|
|
16080
|
-
this.
|
|
16081
|
-
this.Sa(e.key) && (this.
|
|
16079
|
+
const e = this.da;
|
|
16080
|
+
this.da = __PRIVATE_documentKeySet(), this.Ra.forEach((e => {
|
|
16081
|
+
this.Sa(e.key) && (this.da = this.da.add(e.key));
|
|
16082
16082
|
}));
|
|
16083
16083
|
// Diff the new limbo docs with the old limbo docs.
|
|
16084
16084
|
const t = [];
|
|
16085
16085
|
return e.forEach((e => {
|
|
16086
|
-
this.
|
|
16087
|
-
})), this.
|
|
16086
|
+
this.da.has(e) || t.push(new __PRIVATE_RemovedLimboDocument(e));
|
|
16087
|
+
})), this.da.forEach((n => {
|
|
16088
16088
|
e.has(n) || t.push(new __PRIVATE_AddedLimboDocument(n));
|
|
16089
16089
|
})), t;
|
|
16090
16090
|
}
|
|
@@ -16109,7 +16109,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16109
16109
|
*/
|
|
16110
16110
|
// PORTING NOTE: Multi-tab only.
|
|
16111
16111
|
ba(e) {
|
|
16112
|
-
this.Ta = e.Ts, this.
|
|
16112
|
+
this.Ta = e.Ts, this.da = __PRIVATE_documentKeySet();
|
|
16113
16113
|
const t = this.ma(e.documents);
|
|
16114
16114
|
return this.applyChanges(t, /* limboResolutionEnabled= */ !0);
|
|
16115
16115
|
}
|
|
@@ -16120,7 +16120,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16120
16120
|
*/
|
|
16121
16121
|
// PORTING NOTE: Multi-tab only.
|
|
16122
16122
|
Da() {
|
|
16123
|
-
return ViewSnapshot.fromInitialDocuments(this.query, this.Ra, this.mutatedKeys, 0 /* SyncState.Local */ === this.
|
|
16123
|
+
return ViewSnapshot.fromInitialDocuments(this.query, this.Ra, this.mutatedKeys, 0 /* SyncState.Local */ === this.Ea, this.hasCachedResults);
|
|
16124
16124
|
}
|
|
16125
16125
|
}
|
|
16126
16126
|
|
|
@@ -16421,7 +16421,7 @@ async function __PRIVATE_allocateTargetAndMaybeListen(e, t, n, r) {
|
|
|
16421
16421
|
// Run global snapshot listeners if a consistent snapshot has been emitted.
|
|
16422
16422
|
e.Z_(t) && (r = !0);
|
|
16423
16423
|
})), r && __PRIVATE_raiseSnapshotsInSyncEvent(n);
|
|
16424
|
-
}(r.eventManager, t), e.length && r.Ca.
|
|
16424
|
+
}(r.eventManager, t), e.length && r.Ca.d_(e), r.onlineState = t, r.isPrimaryClient && r.sharedClientState.setOnlineState(t);
|
|
16425
16425
|
}
|
|
16426
16426
|
}
|
|
16427
16427
|
|
|
@@ -16625,7 +16625,7 @@ async function __PRIVATE_syncEngineEmitNewSnapsAndNotifyLocalStore(e, t, n) {
|
|
|
16625
16625
|
s.push(t);
|
|
16626
16626
|
}
|
|
16627
16627
|
})));
|
|
16628
|
-
})), await Promise.all(o), r.Ca.
|
|
16628
|
+
})), await Promise.all(o), r.Ca.d_(i), await async function __PRIVATE_localStoreNotifyLocalViewChanges(e, t) {
|
|
16629
16629
|
const n = __PRIVATE_debugCast(e);
|
|
16630
16630
|
try {
|
|
16631
16631
|
await n.persistence.runTransaction("notifyLocalViewChanges", "readwrite", (e => PersistencePromise.forEach(t, (t => PersistencePromise.forEach(t.$i, (r => n.persistence.referenceDelegate.addReference(e, t.targetId, r))).next((() => PersistencePromise.forEach(t.Ui, (r => n.persistence.referenceDelegate.removeReference(e, t.targetId, r)))))))));
|
|
@@ -16803,7 +16803,7 @@ async function __PRIVATE_synchronizeQueryViewsAndRaiseSnapshots(e, t, n) {
|
|
|
16803
16803
|
}
|
|
16804
16804
|
i.push(t);
|
|
16805
16805
|
}
|
|
16806
|
-
return r.Ca.
|
|
16806
|
+
return r.Ca.d_(s), i;
|
|
16807
16807
|
}
|
|
16808
16808
|
|
|
16809
16809
|
/**
|
|
@@ -16886,7 +16886,7 @@ function __PRIVATE_ensureWatchCallbacks(e) {
|
|
|
16886
16886
|
return t.remoteStore.remoteSyncer.applyRemoteEvent = __PRIVATE_syncEngineApplyRemoteEvent.bind(null, t),
|
|
16887
16887
|
t.remoteStore.remoteSyncer.getRemoteKeysForTarget = __PRIVATE_syncEngineGetRemoteKeysForTarget.bind(null, t),
|
|
16888
16888
|
t.remoteStore.remoteSyncer.rejectListen = __PRIVATE_syncEngineRejectListen.bind(null, t),
|
|
16889
|
-
t.Ca.
|
|
16889
|
+
t.Ca.d_ = __PRIVATE_eventManagerOnWatchChange.bind(null, t.eventManager), t.Ca.$a = __PRIVATE_eventManagerOnWatchError.bind(null, t.eventManager),
|
|
16890
16890
|
t;
|
|
16891
16891
|
}
|
|
16892
16892
|
|
|
@@ -18611,13 +18611,13 @@ function doc(e, t, ...n) {
|
|
|
18611
18611
|
// Visibility handler that triggers an immediate retry of all retryable
|
|
18612
18612
|
// operations. Meant to speed up recovery when we regain file system access
|
|
18613
18613
|
// after page comes into foreground.
|
|
18614
|
-
this.
|
|
18614
|
+
this.Eu = () => {
|
|
18615
18615
|
const e = getDocument();
|
|
18616
18616
|
e && __PRIVATE_logDebug("AsyncQueue", "Visibility state changed to " + e.visibilityState),
|
|
18617
18617
|
this.t_.jo();
|
|
18618
18618
|
};
|
|
18619
18619
|
const e = getDocument();
|
|
18620
|
-
e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.
|
|
18620
|
+
e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.Eu);
|
|
18621
18621
|
}
|
|
18622
18622
|
get isShuttingDown() {
|
|
18623
18623
|
return this.cu;
|
|
@@ -18630,7 +18630,7 @@ function doc(e, t, ...n) {
|
|
|
18630
18630
|
this.enqueue(e);
|
|
18631
18631
|
}
|
|
18632
18632
|
enqueueAndForgetEvenWhileRestricted(e) {
|
|
18633
|
-
this.
|
|
18633
|
+
this.du(),
|
|
18634
18634
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
18635
18635
|
this.Au(e);
|
|
18636
18636
|
}
|
|
@@ -18638,11 +18638,11 @@ function doc(e, t, ...n) {
|
|
|
18638
18638
|
if (!this.cu) {
|
|
18639
18639
|
this.cu = !0, this.Iu = e || !1;
|
|
18640
18640
|
const t = getDocument();
|
|
18641
|
-
t && "function" == typeof t.removeEventListener && t.removeEventListener("visibilitychange", this.
|
|
18641
|
+
t && "function" == typeof t.removeEventListener && t.removeEventListener("visibilitychange", this.Eu);
|
|
18642
18642
|
}
|
|
18643
18643
|
}
|
|
18644
18644
|
enqueue(e) {
|
|
18645
|
-
if (this.
|
|
18645
|
+
if (this.du(), this.cu)
|
|
18646
18646
|
// Return a Promise which never resolves.
|
|
18647
18647
|
return new Promise((() => {}));
|
|
18648
18648
|
// Create a deferred Promise that we can return to the callee. This
|
|
@@ -18719,13 +18719,13 @@ function doc(e, t, ...n) {
|
|
|
18719
18719
|
return this.au = t, t;
|
|
18720
18720
|
}
|
|
18721
18721
|
enqueueAfterDelay(e, t, n) {
|
|
18722
|
-
this.
|
|
18722
|
+
this.du(),
|
|
18723
18723
|
// Fast-forward delays for timerIds that have been overridden.
|
|
18724
18724
|
this.Tu.indexOf(e) > -1 && (t = 0);
|
|
18725
18725
|
const r = DelayedOperation.createAndSchedule(this, e, t, n, (e => this.Vu(e)));
|
|
18726
18726
|
return this.lu.push(r), r;
|
|
18727
18727
|
}
|
|
18728
|
-
|
|
18728
|
+
du() {
|
|
18729
18729
|
this.hu && fail();
|
|
18730
18730
|
}
|
|
18731
18731
|
verifyOperationInProgress() {}
|
|
@@ -18944,7 +18944,7 @@ class LoadBundleTask {
|
|
|
18944
18944
|
const e = r.getImmediate({
|
|
18945
18945
|
identifier: n
|
|
18946
18946
|
}), i = r.getOptions(n);
|
|
18947
|
-
if (
|
|
18947
|
+
if (E(i, t)) return e;
|
|
18948
18948
|
throw new FirestoreError(F.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
|
|
18949
18949
|
}
|
|
18950
18950
|
if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(F.INVALID_ARGUMENT, "cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");
|
|
@@ -18960,7 +18960,7 @@ function getFirestore(t, n) {
|
|
|
18960
18960
|
identifier: i
|
|
18961
18961
|
});
|
|
18962
18962
|
if (!s._initialized) {
|
|
18963
|
-
const e =
|
|
18963
|
+
const e = d("firestore");
|
|
18964
18964
|
e && connectFirestoreEmulator(s, ...e);
|
|
18965
18965
|
}
|
|
18966
18966
|
return s;
|
|
@@ -19781,7 +19781,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
|
|
|
19781
19781
|
return new FieldTransform(e.path, r);
|
|
19782
19782
|
}
|
|
19783
19783
|
isEqual(e) {
|
|
19784
|
-
return e instanceof __PRIVATE_ArrayUnionFieldValueImpl &&
|
|
19784
|
+
return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && E(this.Bu, e.Bu);
|
|
19785
19785
|
}
|
|
19786
19786
|
}
|
|
19787
19787
|
|
|
@@ -19795,7 +19795,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
|
|
|
19795
19795
|
return new FieldTransform(e.path, r);
|
|
19796
19796
|
}
|
|
19797
19797
|
isEqual(e) {
|
|
19798
|
-
return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl &&
|
|
19798
|
+
return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && E(this.Bu, e.Bu);
|
|
19799
19799
|
}
|
|
19800
19800
|
}
|
|
19801
19801
|
|
|
@@ -20899,7 +20899,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
|
|
|
20899
20899
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
20900
20900
|
* otherwise.
|
|
20901
20901
|
*/ function aggregateQuerySnapshotEqual(e, t) {
|
|
20902
|
-
return queryEqual(e.query, t.query) &&
|
|
20902
|
+
return queryEqual(e.query, t.query) && E(e.data(), t.data());
|
|
20903
20903
|
}
|
|
20904
20904
|
|
|
20905
20905
|
/**
|
|
@@ -22211,8 +22211,8 @@ function _internalQueryToProtoQueryTarget(e) {
|
|
|
22211
22211
|
}
|
|
22212
22212
|
static get instance() {
|
|
22213
22213
|
return Oe || (Oe = new __PRIVATE_TestingHooksSpiImpl, function __PRIVATE_setTestingHooksSpi(e) {
|
|
22214
|
-
if (
|
|
22215
|
-
|
|
22214
|
+
if (Ee) throw new Error("a TestingHooksSpi instance is already set");
|
|
22215
|
+
Ee = e;
|
|
22216
22216
|
}(Oe)), Oe;
|
|
22217
22217
|
}
|
|
22218
22218
|
et(e) {
|
|
@@ -22252,9 +22252,9 @@ let Oe = null;
|
|
|
22252
22252
|
return r = Object.assign({
|
|
22253
22253
|
useFetchStreams: t
|
|
22254
22254
|
}, r), s._setSettings(r), s;
|
|
22255
|
-
}), "PUBLIC").setMultipleInstances(!0)), r(D, "4.7.1-canary.
|
|
22255
|
+
}), "PUBLIC").setMultipleInstances(!0)), r(D, "4.7.1-canary.ca4dbcf3f", e),
|
|
22256
22256
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
22257
|
-
r(D, "4.7.1-canary.
|
|
22257
|
+
r(D, "4.7.1-canary.ca4dbcf3f", "esm2017");
|
|
22258
22258
|
}("rn", /* useFetchStreams= */ !1);
|
|
22259
22259
|
|
|
22260
22260
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, ve as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, VectorValue, WriteBatch, __PRIVATE_AutoId as _AutoId, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, _internalAggregationQueryToProtoRunAggregationQueryRequest, _internalQueryToProtoQueryTarget, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, vector, waitForPendingWrites, where, writeBatch };
|