@firebase/firestore 4.7.5-canary.cb4309f13 → 4.7.5-canary.cbec4b985
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 +77 -77
- package/dist/index.esm2017.js +77 -77
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.rn.js +3 -3
- package/dist/lite/index.browser.esm2017.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/package.json +9 -9
package/dist/index.esm2017.js
CHANGED
|
@@ -67,7 +67,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
67
67
|
* See the License for the specific language governing permissions and
|
|
68
68
|
* limitations under the License.
|
|
69
69
|
*/
|
|
70
|
-
let
|
|
70
|
+
let b = "11.0.2-canary.cbec4b985";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -85,11 +85,11 @@ let S = "11.0.2-canary.cb4309f13";
|
|
|
85
85
|
* See the License for the specific language governing permissions and
|
|
86
86
|
* limitations under the License.
|
|
87
87
|
*/
|
|
88
|
-
const
|
|
88
|
+
const S = new Logger("@firebase/firestore");
|
|
89
89
|
|
|
90
90
|
// Helper methods are needed because variables can't be exported as read/write
|
|
91
91
|
function __PRIVATE_getLogLevel() {
|
|
92
|
-
return
|
|
92
|
+
return S.logLevel;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -105,29 +105,29 @@ function __PRIVATE_getLogLevel() {
|
|
|
105
105
|
* <li><code>`silent` to turn off logging.</li>
|
|
106
106
|
* </ul>
|
|
107
107
|
*/ function setLogLevel(e) {
|
|
108
|
-
|
|
108
|
+
S.setLogLevel(e);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
function __PRIVATE_logDebug(e, ...t) {
|
|
112
|
-
if (
|
|
112
|
+
if (S.logLevel <= LogLevel.DEBUG) {
|
|
113
113
|
const n = t.map(__PRIVATE_argToString);
|
|
114
|
-
|
|
114
|
+
S.debug(`Firestore (${b}): ${e}`, ...n);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
function __PRIVATE_logError(e, ...t) {
|
|
119
|
-
if (
|
|
119
|
+
if (S.logLevel <= LogLevel.ERROR) {
|
|
120
120
|
const n = t.map(__PRIVATE_argToString);
|
|
121
|
-
|
|
121
|
+
S.error(`Firestore (${b}): ${e}`, ...n);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @internal
|
|
127
127
|
*/ function __PRIVATE_logWarn(e, ...t) {
|
|
128
|
-
if (
|
|
128
|
+
if (S.logLevel <= LogLevel.WARN) {
|
|
129
129
|
const n = t.map(__PRIVATE_argToString);
|
|
130
|
-
|
|
130
|
+
S.warn(`Firestore (${b}): ${e}`, ...n);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -188,7 +188,7 @@ function __PRIVATE_logError(e, ...t) {
|
|
|
188
188
|
*/ function fail(e = "Unexpected state") {
|
|
189
189
|
// Log the failure in addition to throw an exception, just in case the
|
|
190
190
|
// exception is swallowed.
|
|
191
|
-
const t = `FIRESTORE (${
|
|
191
|
+
const t = `FIRESTORE (${b}) INTERNAL ASSERTION FAILED: ` + e;
|
|
192
192
|
// NOTE: We don't use FirestoreError here because these are internal failures
|
|
193
193
|
// that cannot be handled by the user. (Also it would create a circular
|
|
194
194
|
// dependency between the error and assert modules which doesn't work.)
|
|
@@ -6147,10 +6147,10 @@ class __PRIVATE_WatchTargetChange {
|
|
|
6147
6147
|
/** The last resume token sent to us for this target. */ get resumeToken() {
|
|
6148
6148
|
return this.pe;
|
|
6149
6149
|
}
|
|
6150
|
-
/** Whether this target has pending target adds or target removes. */ get
|
|
6150
|
+
/** Whether this target has pending target adds or target removes. */ get be() {
|
|
6151
6151
|
return 0 !== this.fe;
|
|
6152
6152
|
}
|
|
6153
|
-
/** Whether we have modified any state that should trigger a snapshot. */ get
|
|
6153
|
+
/** Whether we have modified any state that should trigger a snapshot. */ get Se() {
|
|
6154
6154
|
return this.we;
|
|
6155
6155
|
}
|
|
6156
6156
|
/**
|
|
@@ -6243,7 +6243,7 @@ class __PRIVATE_WatchChangeAggregator {
|
|
|
6243
6243
|
case 1 /* WatchTargetChangeState.Added */ :
|
|
6244
6244
|
// We need to decrement the number of pending acks needed from watch
|
|
6245
6245
|
// for this targetId.
|
|
6246
|
-
n.Oe(), n.
|
|
6246
|
+
n.Oe(), n.be ||
|
|
6247
6247
|
// We have a freshly added target, so we need to reset any state
|
|
6248
6248
|
// that we had previously. This can happen e.g. when remove and add
|
|
6249
6249
|
// back a target for existence filter mismatches.
|
|
@@ -6255,7 +6255,7 @@ class __PRIVATE_WatchChangeAggregator {
|
|
|
6255
6255
|
// remove any target changes.
|
|
6256
6256
|
// We need to decrement the number of pending acks needed from watch
|
|
6257
6257
|
// for this targetId.
|
|
6258
|
-
n.Oe(), n.
|
|
6258
|
+
n.Oe(), n.be || this.removeTarget(t);
|
|
6259
6259
|
break;
|
|
6260
6260
|
|
|
6261
6261
|
case 3 /* WatchTargetChangeState.Current */ :
|
|
@@ -6416,7 +6416,7 @@ class __PRIVATE_WatchChangeAggregator {
|
|
|
6416
6416
|
const t = new DocumentKey(i.target.path);
|
|
6417
6417
|
this.st(t).has(r) || this.ot(r, t) || this.We(r, t, MutableDocument.newNoDocument(t, e));
|
|
6418
6418
|
}
|
|
6419
|
-
n.
|
|
6419
|
+
n.Se && (t.set(r, n.ve()), n.Ce());
|
|
6420
6420
|
}
|
|
6421
6421
|
}));
|
|
6422
6422
|
let n = __PRIVATE_documentKeySet();
|
|
@@ -6511,7 +6511,7 @@ class __PRIVATE_WatchChangeAggregator {
|
|
|
6511
6511
|
* is still interested in that has no outstanding target change requests).
|
|
6512
6512
|
*/ Ye(e) {
|
|
6513
6513
|
const t = this.Be.get(e);
|
|
6514
|
-
return t && t.
|
|
6514
|
+
return t && t.be ? null : this.Le.ut(e);
|
|
6515
6515
|
}
|
|
6516
6516
|
/**
|
|
6517
6517
|
* Resets the state of a Watch target to its initial state (e.g. sets
|
|
@@ -7734,10 +7734,10 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7734
7734
|
this.Rt(t, 20), "string" == typeof n && (n = __PRIVATE_normalizeTimestamp(n)), t.ft(`${n.seconds || ""}`),
|
|
7735
7735
|
t.Vt(n.nanos || 0);
|
|
7736
7736
|
} else if ("stringValue" in e) this.gt(e.stringValue, t), this.yt(t); else if ("bytesValue" in e) this.Rt(t, 30),
|
|
7737
|
-
t.wt(__PRIVATE_normalizeByteString(e.bytesValue)), this.yt(t); else if ("referenceValue" in e) this.
|
|
7737
|
+
t.wt(__PRIVATE_normalizeByteString(e.bytesValue)), this.yt(t); else if ("referenceValue" in e) this.bt(e.referenceValue, t); else if ("geoPointValue" in e) {
|
|
7738
7738
|
const n = e.geoPointValue;
|
|
7739
7739
|
this.Rt(t, 45), t.Vt(n.latitude || 0), t.Vt(n.longitude || 0);
|
|
7740
|
-
} else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Rt(t, Number.MAX_SAFE_INTEGER) : __PRIVATE_isVectorValue(e) ? this.
|
|
7740
|
+
} else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Rt(t, Number.MAX_SAFE_INTEGER) : __PRIVATE_isVectorValue(e) ? this.St(e.mapValue, t) : (this.Dt(e.mapValue, t),
|
|
7741
7741
|
this.yt(t)) : "arrayValue" in e ? (this.vt(e.arrayValue, t), this.yt(t)) : fail();
|
|
7742
7742
|
}
|
|
7743
7743
|
gt(e, t) {
|
|
@@ -7751,7 +7751,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7751
7751
|
this.Rt(t, 55);
|
|
7752
7752
|
for (const e of Object.keys(n)) this.gt(e, t), this.dt(n[e], t);
|
|
7753
7753
|
}
|
|
7754
|
-
|
|
7754
|
+
St(e, t) {
|
|
7755
7755
|
var n, r;
|
|
7756
7756
|
const i = e.fields || {};
|
|
7757
7757
|
this.Rt(t, 53);
|
|
@@ -7766,7 +7766,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7766
7766
|
this.Rt(t, 50);
|
|
7767
7767
|
for (const e of n) this.dt(e, t);
|
|
7768
7768
|
}
|
|
7769
|
-
|
|
7769
|
+
bt(e, t) {
|
|
7770
7770
|
this.Rt(t, 37);
|
|
7771
7771
|
DocumentKey.fromName(e).path.forEach((e => {
|
|
7772
7772
|
this.Rt(t, 60), this.Ct(e, t);
|
|
@@ -8866,7 +8866,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8866
8866
|
}
|
|
8867
8867
|
updateCollectionGroup(e, t, n) {
|
|
8868
8868
|
const r = __PRIVATE_indexConfigurationStore(e), i = __PRIVATE_indexStateStore(e);
|
|
8869
|
-
return this.
|
|
8869
|
+
return this.bn(e).next((e => r.U("collectionGroupIndex", IDBKeyRange.bound(t, t)).next((t => PersistencePromise.forEach(t, (t => i.put(__PRIVATE_toDbIndexState(t.indexId, this.uid, e, n))))))));
|
|
8870
8870
|
}
|
|
8871
8871
|
updateIndexEntries(e, t) {
|
|
8872
8872
|
// Porting Note: `getFieldIndexes()` on Web does not cache index lookups as
|
|
@@ -8878,7 +8878,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8878
8878
|
return PersistencePromise.forEach(t, ((t, r) => {
|
|
8879
8879
|
const i = n.get(t.collectionGroup);
|
|
8880
8880
|
return (i ? PersistencePromise.resolve(i) : this.getFieldIndexes(e, t.collectionGroup)).next((i => (n.set(t.collectionGroup, i),
|
|
8881
|
-
PersistencePromise.forEach(i, (n => this.
|
|
8881
|
+
PersistencePromise.forEach(i, (n => this.Sn(e, t, n).next((t => {
|
|
8882
8882
|
const i = this.Dn(r, n);
|
|
8883
8883
|
return t.isEqual(i) ? PersistencePromise.resolve() : this.vn(e, r, n, t, i);
|
|
8884
8884
|
})))))));
|
|
@@ -8897,7 +8897,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8897
8897
|
Fn(e, t, n, r) {
|
|
8898
8898
|
return __PRIVATE_indexEntriesStore(e).delete([ r.indexId, this.uid, r.arrayValue, r.directionalValue, this.gn(n, t.key), t.key.path.toArray() ]);
|
|
8899
8899
|
}
|
|
8900
|
-
|
|
8900
|
+
Sn(e, t, n) {
|
|
8901
8901
|
const r = __PRIVATE_indexEntriesStore(e);
|
|
8902
8902
|
let i = new SortedSet(__PRIVATE_indexEntryComparator);
|
|
8903
8903
|
return r.J({
|
|
@@ -8953,7 +8953,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8953
8953
|
s.push(this.Fn(e, t, n, r));
|
|
8954
8954
|
})), PersistencePromise.waitFor(s);
|
|
8955
8955
|
}
|
|
8956
|
-
|
|
8956
|
+
bn(e) {
|
|
8957
8957
|
let t = 1;
|
|
8958
8958
|
return __PRIVATE_indexStateStore(e).J({
|
|
8959
8959
|
index: "sequenceNumberIndex",
|
|
@@ -10898,7 +10898,7 @@ class OverlayedDocument {
|
|
|
10898
10898
|
gr(e) {
|
|
10899
10899
|
this.dr = this.dr.delete(e), this.Rr = this.Rr.delete(e);
|
|
10900
10900
|
}
|
|
10901
|
-
|
|
10901
|
+
br(e) {
|
|
10902
10902
|
const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1);
|
|
10903
10903
|
let i = __PRIVATE_documentKeySet();
|
|
10904
10904
|
return this.Rr.forEachInRange([ n, r ], (e => {
|
|
@@ -10913,13 +10913,13 @@ class OverlayedDocument {
|
|
|
10913
10913
|
|
|
10914
10914
|
class __PRIVATE_DocReference {
|
|
10915
10915
|
constructor(e, t) {
|
|
10916
|
-
this.key = e, this.
|
|
10916
|
+
this.key = e, this.Sr = t;
|
|
10917
10917
|
}
|
|
10918
10918
|
/** Compare by key then by ID */ static Ar(e, t) {
|
|
10919
|
-
return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.
|
|
10919
|
+
return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.Sr, t.Sr);
|
|
10920
10920
|
}
|
|
10921
10921
|
/** Compare by ID then by key */ static Vr(e, t) {
|
|
10922
|
-
return __PRIVATE_primitiveComparator(e.
|
|
10922
|
+
return __PRIVATE_primitiveComparator(e.Sr, t.Sr) || DocumentKey.comparator(e.key, t.key);
|
|
10923
10923
|
}
|
|
10924
10924
|
}
|
|
10925
10925
|
|
|
@@ -10982,7 +10982,7 @@ class __PRIVATE_DocReference {
|
|
|
10982
10982
|
getAllMutationBatchesAffectingDocumentKey(e, t) {
|
|
10983
10983
|
const n = new __PRIVATE_DocReference(t, 0), r = new __PRIVATE_DocReference(t, Number.POSITIVE_INFINITY), i = [];
|
|
10984
10984
|
return this.vr.forEachInRange([ n, r ], (e => {
|
|
10985
|
-
const t = this.Cr(e.
|
|
10985
|
+
const t = this.Cr(e.Sr);
|
|
10986
10986
|
i.push(t);
|
|
10987
10987
|
})), PersistencePromise.resolve(i);
|
|
10988
10988
|
}
|
|
@@ -10991,7 +10991,7 @@ class __PRIVATE_DocReference {
|
|
|
10991
10991
|
return t.forEach((e => {
|
|
10992
10992
|
const t = new __PRIVATE_DocReference(e, 0), r = new __PRIVATE_DocReference(e, Number.POSITIVE_INFINITY);
|
|
10993
10993
|
this.vr.forEachInRange([ t, r ], (e => {
|
|
10994
|
-
n = n.add(e.
|
|
10994
|
+
n = n.add(e.Sr);
|
|
10995
10995
|
}));
|
|
10996
10996
|
})), PersistencePromise.resolve(this.Mr(n));
|
|
10997
10997
|
}
|
|
@@ -11017,7 +11017,7 @@ class __PRIVATE_DocReference {
|
|
|
11017
11017
|
// the document /rooms/abc/messages/xyx.
|
|
11018
11018
|
// TODO(mcg): we'll need a different scanner when we implement
|
|
11019
11019
|
// ancestor queries.
|
|
11020
|
-
t.length === r && (o = o.add(e.
|
|
11020
|
+
t.length === r && (o = o.add(e.Sr)), !0);
|
|
11021
11021
|
}), s), PersistencePromise.resolve(this.Mr(o));
|
|
11022
11022
|
}
|
|
11023
11023
|
Mr(e) {
|
|
@@ -11310,7 +11310,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
|
|
|
11310
11310
|
return this.qr.yr(t), PersistencePromise.resolve();
|
|
11311
11311
|
}
|
|
11312
11312
|
getMatchingKeysForTargetId(e, t) {
|
|
11313
|
-
const n = this.qr.
|
|
11313
|
+
const n = this.qr.br(t);
|
|
11314
11314
|
return PersistencePromise.resolve(n);
|
|
11315
11315
|
}
|
|
11316
11316
|
containsKey(e, t) {
|
|
@@ -11961,7 +11961,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11961
11961
|
* with the current primary state.
|
|
11962
11962
|
*
|
|
11963
11963
|
* PORTING NOTE: This is only used for Web multi-tab.
|
|
11964
|
-
*/
|
|
11964
|
+
*/ bi(e) {
|
|
11965
11965
|
return this.Ri = async t => {
|
|
11966
11966
|
if (this.started) return e(t);
|
|
11967
11967
|
}, e(this.isPrimary);
|
|
@@ -12002,7 +12002,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12002
12002
|
networkEnabled: this.networkEnabled,
|
|
12003
12003
|
inForeground: this.inForeground
|
|
12004
12004
|
}).next((() => {
|
|
12005
|
-
if (this.isPrimary) return this.
|
|
12005
|
+
if (this.isPrimary) return this.Si(e).next((e => {
|
|
12006
12006
|
e || (this.isPrimary = !1, this.li.enqueueRetryable((() => this.Ri(!1))));
|
|
12007
12007
|
}));
|
|
12008
12008
|
})).next((() => this.Di(e))).next((t => this.isPrimary && !t ? this.vi(e).next((() => !1)) : !!t && this.Ci(e).next((() => !0)))))).catch((e => {
|
|
@@ -12018,7 +12018,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12018
12018
|
this.isPrimary !== e && this.li.enqueueRetryable((() => this.Ri(e))), this.isPrimary = e;
|
|
12019
12019
|
}));
|
|
12020
12020
|
}
|
|
12021
|
-
|
|
12021
|
+
Si(e) {
|
|
12022
12022
|
return __PRIVATE_primaryClientStore(e).get("owner").next((e => PersistencePromise.resolve(this.Fi(e))));
|
|
12023
12023
|
}
|
|
12024
12024
|
Mi(e) {
|
|
@@ -12168,7 +12168,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
12168
12168
|
// Do all transactions as readwrite against all object stores, since we
|
|
12169
12169
|
// are the only reader/writer.
|
|
12170
12170
|
return this.mi.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.$r ? this.$r.next() : __PRIVATE_ListenSequence.oe),
|
|
12171
|
-
"readwrite-primary" === t ? this.
|
|
12171
|
+
"readwrite-primary" === t ? this.Si(s).next((e => !!e || this.Di(s))).next((t => {
|
|
12172
12172
|
if (!t) throw __PRIVATE_logError(`Failed to obtain primary lease for action '${e}'.`),
|
|
12173
12173
|
this.isPrimary = !1, this.li.enqueueRetryable((() => this.Ri(!1))), new FirestoreError(D.FAILED_PRECONDITION, C);
|
|
12174
12174
|
return n(s);
|
|
@@ -13223,7 +13223,7 @@ class __PRIVATE_LocalClientState {
|
|
|
13223
13223
|
*/ class __PRIVATE_WebStorageSharedClientState {
|
|
13224
13224
|
constructor(e, t, n, r, i) {
|
|
13225
13225
|
this.window = e, this.li = t, this.persistenceKey = n, this.ws = r, this.syncEngine = null,
|
|
13226
|
-
this.onlineStateHandler = null, this.sequenceNumberHandler = null, this.
|
|
13226
|
+
this.onlineStateHandler = null, this.sequenceNumberHandler = null, this.bs = this.Ss.bind(this),
|
|
13227
13227
|
this.Ds = new SortedMap(__PRIVATE_primitiveComparator), this.started = !1,
|
|
13228
13228
|
/**
|
|
13229
13229
|
* Captures WebStorage events that occur before `start()` is called. These
|
|
@@ -13278,7 +13278,7 @@ class __PRIVATE_LocalClientState {
|
|
|
13278
13278
|
// respective start() calls). Otherwise, we might for example miss a
|
|
13279
13279
|
// mutation that is added after LocalStore's start() processed the existing
|
|
13280
13280
|
// mutations but before we observe WebStorage events.
|
|
13281
|
-
this.window.addEventListener("storage", this.
|
|
13281
|
+
this.window.addEventListener("storage", this.bs);
|
|
13282
13282
|
}
|
|
13283
13283
|
/** Returns 'true' if WebStorage is available in the current environment. */ static p(e) {
|
|
13284
13284
|
return !(!e || !e.localStorage);
|
|
@@ -13303,7 +13303,7 @@ class __PRIVATE_LocalClientState {
|
|
|
13303
13303
|
const e = this.ks(t);
|
|
13304
13304
|
e && this.qs(e);
|
|
13305
13305
|
}
|
|
13306
|
-
for (const e of this.vs) this.
|
|
13306
|
+
for (const e of this.vs) this.Ss(e);
|
|
13307
13307
|
this.vs = [],
|
|
13308
13308
|
// Register a window unload hook to remove the client metadata entry from
|
|
13309
13309
|
// WebStorage even if `shutdown()` was not called.
|
|
@@ -13372,7 +13372,7 @@ class __PRIVATE_LocalClientState {
|
|
|
13372
13372
|
this.zs(e);
|
|
13373
13373
|
}
|
|
13374
13374
|
shutdown() {
|
|
13375
|
-
this.started && (this.window.removeEventListener("storage", this.
|
|
13375
|
+
this.started && (this.window.removeEventListener("storage", this.bs), this.removeItem(this.Cs),
|
|
13376
13376
|
this.started = !1);
|
|
13377
13377
|
}
|
|
13378
13378
|
getItem(e) {
|
|
@@ -13385,7 +13385,7 @@ class __PRIVATE_LocalClientState {
|
|
|
13385
13385
|
removeItem(e) {
|
|
13386
13386
|
__PRIVATE_logDebug("SharedClientState", "REMOVE", e), this.storage.removeItem(e);
|
|
13387
13387
|
}
|
|
13388
|
-
|
|
13388
|
+
Ss(e) {
|
|
13389
13389
|
// Note: The function is typed to take Event to be interface-compatible with
|
|
13390
13390
|
// `Window.addEventListener`.
|
|
13391
13391
|
const t = e;
|
|
@@ -13782,10 +13782,10 @@ class __PRIVATE_StreamBridge {
|
|
|
13782
13782
|
send(e) {
|
|
13783
13783
|
this.Eo(e);
|
|
13784
13784
|
}
|
|
13785
|
-
|
|
13785
|
+
bo() {
|
|
13786
13786
|
this.Vo();
|
|
13787
13787
|
}
|
|
13788
|
-
|
|
13788
|
+
So() {
|
|
13789
13789
|
this.fo();
|
|
13790
13790
|
}
|
|
13791
13791
|
Do(e) {
|
|
@@ -13855,7 +13855,7 @@ class __PRIVATE_RestConnection {
|
|
|
13855
13855
|
// SDK_VERSION is updated to different value at runtime depending on the entry point,
|
|
13856
13856
|
// so we need to get its value when we need it in a function.
|
|
13857
13857
|
function __PRIVATE_getGoogApiClientValue() {
|
|
13858
|
-
return "gl-js/ fire/" +
|
|
13858
|
+
return "gl-js/ fire/" + b;
|
|
13859
13859
|
}(),
|
|
13860
13860
|
// Content-Type: text/plain will avoid preflight requests which might
|
|
13861
13861
|
// mess with CORS and redirects by proxies. If we add custom headers
|
|
@@ -14002,7 +14002,7 @@ class __PRIVATE_RestConnection {
|
|
|
14002
14002
|
// Note that eventually this function could go away if we are confident
|
|
14003
14003
|
// enough the code is exception free.
|
|
14004
14004
|
return __PRIVATE_unguardedEventListen(c, WebChannel.EventType.OPEN, (() => {
|
|
14005
|
-
h || (__PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} transport opened.`), P.
|
|
14005
|
+
h || (__PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} transport opened.`), P.bo());
|
|
14006
14006
|
})), __PRIVATE_unguardedEventListen(c, WebChannel.EventType.CLOSE, (() => {
|
|
14007
14007
|
h || (h = !0, __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} transport closed`),
|
|
14008
14008
|
P.Do());
|
|
@@ -14049,7 +14049,7 @@ class __PRIVATE_RestConnection {
|
|
|
14049
14049
|
// but because we want to send the first message with the WebChannel
|
|
14050
14050
|
// handshake we pretend the channel opened here (asynchronously), and
|
|
14051
14051
|
// then delay the actual open until the first message is sent.
|
|
14052
|
-
P.
|
|
14052
|
+
P.So();
|
|
14053
14053
|
}), 0), P;
|
|
14054
14054
|
}
|
|
14055
14055
|
}
|
|
@@ -14626,25 +14626,25 @@ class __PRIVATE_PersistentStream {
|
|
|
14626
14626
|
class __PRIVATE_DatastoreImpl extends class Datastore {} {
|
|
14627
14627
|
constructor(e, t, n, r) {
|
|
14628
14628
|
super(), this.authCredentials = e, this.appCheckCredentials = t, this.connection = n,
|
|
14629
|
-
this.serializer = r, this.
|
|
14629
|
+
this.serializer = r, this.b_ = !1;
|
|
14630
14630
|
}
|
|
14631
|
-
|
|
14632
|
-
if (this.
|
|
14631
|
+
S_() {
|
|
14632
|
+
if (this.b_) throw new FirestoreError(D.FAILED_PRECONDITION, "The client has already been terminated.");
|
|
14633
14633
|
}
|
|
14634
14634
|
/** Invokes the provided RPC with auth and AppCheck tokens. */ Oo(e, t, n, r) {
|
|
14635
|
-
return this.
|
|
14635
|
+
return this.S_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([i, s]) => this.connection.Oo(e, __PRIVATE_toResourcePath(t, n), r, i, s))).catch((e => {
|
|
14636
14636
|
throw "FirebaseError" === e.name ? (e.code === D.UNAUTHENTICATED && (this.authCredentials.invalidateToken(),
|
|
14637
14637
|
this.appCheckCredentials.invalidateToken()), e) : new FirestoreError(D.UNKNOWN, e.toString());
|
|
14638
14638
|
}));
|
|
14639
14639
|
}
|
|
14640
14640
|
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ ko(e, t, n, r, i) {
|
|
14641
|
-
return this.
|
|
14641
|
+
return this.S_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([s, o]) => this.connection.ko(e, __PRIVATE_toResourcePath(t, n), r, s, o, i))).catch((e => {
|
|
14642
14642
|
throw "FirebaseError" === e.name ? (e.code === D.UNAUTHENTICATED && (this.authCredentials.invalidateToken(),
|
|
14643
14643
|
this.appCheckCredentials.invalidateToken()), e) : new FirestoreError(D.UNKNOWN, e.toString());
|
|
14644
14644
|
}));
|
|
14645
14645
|
}
|
|
14646
14646
|
terminate() {
|
|
14647
|
-
this.
|
|
14647
|
+
this.b_ = !0, this.connection.terminate();
|
|
14648
14648
|
}
|
|
14649
14649
|
}
|
|
14650
14650
|
|
|
@@ -15137,7 +15137,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
|
|
|
15137
15137
|
// Create stream (but note that it is not started yet).
|
|
15138
15138
|
e.W_ = function __PRIVATE_newPersistentWatchStream(e, t, n) {
|
|
15139
15139
|
const r = __PRIVATE_debugCast(e);
|
|
15140
|
-
return r.
|
|
15140
|
+
return r.S_(), new __PRIVATE_PersistentListenStream(t, r.connection, r.authCredentials, r.appCheckCredentials, r.serializer, n);
|
|
15141
15141
|
}
|
|
15142
15142
|
/**
|
|
15143
15143
|
* @license
|
|
@@ -15177,7 +15177,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
|
|
|
15177
15177
|
// Create stream (but note that it is not started yet).
|
|
15178
15178
|
e.G_ = function __PRIVATE_newPersistentWriteStream(e, t, n) {
|
|
15179
15179
|
const r = __PRIVATE_debugCast(e);
|
|
15180
|
-
return r.
|
|
15180
|
+
return r.S_(), new __PRIVATE_PersistentWriteStream(t, r.connection, r.authCredentials, r.appCheckCredentials, r.serializer, n);
|
|
15181
15181
|
}(e.datastore, e.asyncQueue, {
|
|
15182
15182
|
Ro: () => Promise.resolve(),
|
|
15183
15183
|
mo: __PRIVATE_onWriteStreamOpen.bind(null, e),
|
|
@@ -16022,19 +16022,19 @@ 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.Va(e.doc, t.doc))), this.wa(n), r = null != r && r;
|
|
16025
|
-
const o = t && !r ? this.
|
|
16025
|
+
const o = t && !r ? this.ba() : [], _ = 0 === this.Ra.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , a = _ !== this.Aa;
|
|
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
16028
|
if (this.Aa = _, 0 !== s.length || a) {
|
|
16029
16029
|
return {
|
|
16030
16030
|
snapshot: new ViewSnapshot(this.query, e.ma, i, s, e.mutatedKeys, 0 /* SyncState.Local */ === _, a,
|
|
16031
16031
|
/* excludesMetadataChanges= */ !1, !!n && n.resumeToken.approximateByteSize() > 0),
|
|
16032
|
-
|
|
16032
|
+
Sa: o
|
|
16033
16033
|
};
|
|
16034
16034
|
}
|
|
16035
16035
|
// no changes
|
|
16036
16036
|
return {
|
|
16037
|
-
|
|
16037
|
+
Sa: o
|
|
16038
16038
|
};
|
|
16039
16039
|
}
|
|
16040
16040
|
/**
|
|
@@ -16053,7 +16053,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16053
16053
|
ss: !1
|
|
16054
16054
|
},
|
|
16055
16055
|
/* limboResolutionEnabled= */ !1)) : {
|
|
16056
|
-
|
|
16056
|
+
Sa: []
|
|
16057
16057
|
};
|
|
16058
16058
|
}
|
|
16059
16059
|
/**
|
|
@@ -16071,7 +16071,7 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
16071
16071
|
e && (e.addedDocuments.forEach((e => this.da = this.da.add(e))), e.modifiedDocuments.forEach((e => {})),
|
|
16072
16072
|
e.removedDocuments.forEach((e => this.da = this.da.delete(e))), this.current = e.current);
|
|
16073
16073
|
}
|
|
16074
|
-
|
|
16074
|
+
ba() {
|
|
16075
16075
|
// We can only determine limbo documents when we're in-sync with the server.
|
|
16076
16076
|
if (!this.current) return [];
|
|
16077
16077
|
// TODO(klimt): Do this incrementally so that it's not quadratic when
|
|
@@ -16267,12 +16267,12 @@ async function __PRIVATE_allocateTargetAndMaybeListen(e, t, n, r) {
|
|
|
16267
16267
|
/* usePreviousResults= */ !1).then((({documents: e}) => t.view.ga(e, i))));
|
|
16268
16268
|
const s = r && r.targetChanges.get(t.targetId), o = r && null != r.targetMismatches.get(t.targetId), _ = t.view.applyChanges(i,
|
|
16269
16269
|
/* limboResolutionEnabled= */ e.isPrimaryClient, s, o);
|
|
16270
|
-
return __PRIVATE_updateTrackedLimbos(e, t.targetId, _.
|
|
16270
|
+
return __PRIVATE_updateTrackedLimbos(e, t.targetId, _.Sa), _.snapshot;
|
|
16271
16271
|
}(e, t, n, r);
|
|
16272
16272
|
const s = await __PRIVATE_localStoreExecuteQuery(e.localStore, t,
|
|
16273
16273
|
/* usePreviousResults= */ !0), o = new __PRIVATE_View(t, s.ds), _ = o.ga(s.documents), a = TargetChange.createSynthesizedTargetChangeForCurrentChange(n, r && "Offline" /* OnlineState.Offline */ !== e.onlineState, i), u = o.applyChanges(_,
|
|
16274
16274
|
/* limboResolutionEnabled= */ e.isPrimaryClient, a);
|
|
16275
|
-
__PRIVATE_updateTrackedLimbos(e, n, u.
|
|
16275
|
+
__PRIVATE_updateTrackedLimbos(e, n, u.Sa);
|
|
16276
16276
|
const c = new __PRIVATE_QueryView(t, n, o);
|
|
16277
16277
|
return e.xa.set(t, c), e.Oa.has(n) ? e.Oa.get(n).push(t) : e.Oa.set(n, [ t ]), u.snapshot;
|
|
16278
16278
|
}
|
|
@@ -16688,7 +16688,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
|
|
|
16688
16688
|
*/ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
|
|
16689
16689
|
const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
|
|
16690
16690
|
/* usePreviousResults= */ !0), i = t.view.va(r);
|
|
16691
|
-
return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.
|
|
16691
|
+
return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Sa),
|
|
16692
16692
|
i;
|
|
16693
16693
|
}
|
|
16694
16694
|
|
|
@@ -17038,7 +17038,7 @@ class __PRIVATE_LruGcMemoryOfflineComponentProvider extends __PRIVATE_MemoryOffl
|
|
|
17038
17038
|
await __PRIVATE_syncEngineEnsureWriteCallbacks(this.Za.syncEngine), await __PRIVATE_fillWritePipeline(this.Za.remoteStore),
|
|
17039
17039
|
// NOTE: This will immediately call the listener, so we make sure to
|
|
17040
17040
|
// set it after localStore / remoteStore are started.
|
|
17041
|
-
await this.persistence.
|
|
17041
|
+
await this.persistence.bi((() => (this.gcScheduler && !this.gcScheduler.started && this.gcScheduler.start(),
|
|
17042
17042
|
this.indexBackfillerScheduler && !this.indexBackfillerScheduler.started && this.indexBackfillerScheduler.start(),
|
|
17043
17043
|
Promise.resolve())));
|
|
17044
17044
|
}
|
|
@@ -17085,7 +17085,7 @@ class __PRIVATE_LruGcMemoryOfflineComponentProvider extends __PRIVATE_MemoryOffl
|
|
|
17085
17085
|
}, await this.sharedClientState.start()),
|
|
17086
17086
|
// NOTE: This will immediately call the listener, so we make sure to
|
|
17087
17087
|
// set it after localStore / remoteStore are started.
|
|
17088
|
-
await this.persistence.
|
|
17088
|
+
await this.persistence.bi((async e => {
|
|
17089
17089
|
await __PRIVATE_syncEngineApplyPrimaryState(this.Za.syncEngine, e), this.gcScheduler && (e && !this.gcScheduler.started ? this.gcScheduler.start() : e || this.gcScheduler.stop()),
|
|
17090
17090
|
this.indexBackfillerScheduler && (e && !this.indexBackfillerScheduler.started ? this.indexBackfillerScheduler.start() : e || this.indexBackfillerScheduler.stop());
|
|
17091
17091
|
}));
|
|
@@ -18715,7 +18715,7 @@ function doc(e, t, ...n) {
|
|
|
18715
18715
|
this.pu(),
|
|
18716
18716
|
// Fast-forward delays for timerIds that have been overridden.
|
|
18717
18717
|
this.mu.indexOf(e) > -1 && (t = 0);
|
|
18718
|
-
const r = DelayedOperation.createAndSchedule(this, e, t, n, (e => this.
|
|
18718
|
+
const r = DelayedOperation.createAndSchedule(this, e, t, n, (e => this.bu(e)));
|
|
18719
18719
|
return this.du.push(r), r;
|
|
18720
18720
|
}
|
|
18721
18721
|
pu() {
|
|
@@ -18725,7 +18725,7 @@ function doc(e, t, ...n) {
|
|
|
18725
18725
|
/**
|
|
18726
18726
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
18727
18727
|
* operations are not run.
|
|
18728
|
-
*/ async
|
|
18728
|
+
*/ async Su() {
|
|
18729
18729
|
// Operations in the queue prior to draining may have enqueued additional
|
|
18730
18730
|
// operations. Keep draining the queue until the tail is no longer advanced,
|
|
18731
18731
|
// which indicates that no more new operations were enqueued and that all
|
|
@@ -18750,12 +18750,12 @@ function doc(e, t, ...n) {
|
|
|
18750
18750
|
* @returns a Promise that resolves once all operations have been run.
|
|
18751
18751
|
*/ vu(e) {
|
|
18752
18752
|
// Note that draining may generate more delayed ops, so we do that first.
|
|
18753
|
-
return this.
|
|
18753
|
+
return this.Su().then((() => {
|
|
18754
18754
|
// Run ops in the same order they'd run if they ran naturally.
|
|
18755
18755
|
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
|
|
18756
18756
|
this.du.sort(((e, t) => e.targetTimeMs - t.targetTimeMs));
|
|
18757
18757
|
for (const t of this.du) if (t.skipDelay(), "all" /* TimerId.All */ !== e && t.timerId === e) break;
|
|
18758
|
-
return this.
|
|
18758
|
+
return this.Su();
|
|
18759
18759
|
}));
|
|
18760
18760
|
}
|
|
18761
18761
|
/**
|
|
@@ -18763,7 +18763,7 @@ function doc(e, t, ...n) {
|
|
|
18763
18763
|
*/ Cu(e) {
|
|
18764
18764
|
this.mu.push(e);
|
|
18765
18765
|
}
|
|
18766
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
18766
|
+
/** Called once a DelayedOperation is run or canceled. */ bu(e) {
|
|
18767
18767
|
// NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.
|
|
18768
18768
|
const t = this.du.indexOf(e);
|
|
18769
18769
|
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */ this.du.splice(t, 1);
|
|
@@ -18894,7 +18894,7 @@ class LoadBundleTask {
|
|
|
18894
18894
|
* Constant used to indicate the LRU garbage collection should be disabled.
|
|
18895
18895
|
* Set this value as the `cacheSizeBytes` on the settings passed to the
|
|
18896
18896
|
* {@link Firestore} instance.
|
|
18897
|
-
*/ const
|
|
18897
|
+
*/ const be = -1;
|
|
18898
18898
|
|
|
18899
18899
|
/**
|
|
18900
18900
|
* The Cloud Firestore service interface.
|
|
@@ -19554,7 +19554,7 @@ class AggregateField {
|
|
|
19554
19554
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19555
19555
|
* See the License for the specific language governing permissions and
|
|
19556
19556
|
* limitations under the License.
|
|
19557
|
-
*/ const
|
|
19557
|
+
*/ const Se = /^__.*__$/;
|
|
19558
19558
|
|
|
19559
19559
|
/** The result of parsing document data (e.g. for a setData call). */ class ParsedSetData {
|
|
19560
19560
|
constructor(e, t, n) {
|
|
@@ -19665,7 +19665,7 @@ function __PRIVATE_isWrite(e) {
|
|
|
19665
19665
|
}
|
|
19666
19666
|
Lu(e) {
|
|
19667
19667
|
if (0 === e.length) throw this.qu("Document fields must not be empty");
|
|
19668
|
-
if (__PRIVATE_isWrite(this.Mu) &&
|
|
19668
|
+
if (__PRIVATE_isWrite(this.Mu) && Se.test(e)) throw this.qu('Document fields cannot begin and end with "__"');
|
|
19669
19669
|
}
|
|
19670
19670
|
}
|
|
19671
19671
|
|
|
@@ -22220,7 +22220,7 @@ let Fe = null;
|
|
|
22220
22220
|
* @packageDocumentation
|
|
22221
22221
|
*/ !function __PRIVATE_registerFirestore(e, t = !0) {
|
|
22222
22222
|
!function __PRIVATE_setSDKVersion(e) {
|
|
22223
|
-
|
|
22223
|
+
b = e;
|
|
22224
22224
|
}(SDK_VERSION), _registerComponent(new Component("firestore", ((e, {instanceIdentifier: n, options: r}) => {
|
|
22225
22225
|
const i = e.getProvider("app").getImmediate(), s = new Firestore(new __PRIVATE_FirebaseAuthCredentialsProvider(e.getProvider("auth-internal")), new __PRIVATE_FirebaseAppCheckTokenProvider(e.getProvider("app-check-internal")), function __PRIVATE_databaseIdFromApp(e, t) {
|
|
22226
22226
|
if (!Object.prototype.hasOwnProperty.apply(e.options, [ "projectId" ])) throw new FirestoreError(D.INVALID_ARGUMENT, '"projectId" not provided in firebase.initializeApp.');
|
|
@@ -22229,10 +22229,10 @@ let Fe = null;
|
|
|
22229
22229
|
return r = Object.assign({
|
|
22230
22230
|
useFetchStreams: t
|
|
22231
22231
|
}, r), s._setSettings(r), s;
|
|
22232
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.7.5-canary.
|
|
22232
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.7.5-canary.cbec4b985", e),
|
|
22233
22233
|
// BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
|
|
22234
|
-
registerVersion(w, "4.7.5-canary.
|
|
22234
|
+
registerVersion(w, "4.7.5-canary.cbec4b985", "esm2017");
|
|
22235
22235
|
}();
|
|
22236
22236
|
|
|
22237
|
-
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes,
|
|
22237
|
+
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, be 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 };
|
|
22238
22238
|
//# sourceMappingURL=index.esm2017.js.map
|
package/dist/index.node.cjs.js
CHANGED
|
@@ -34,7 +34,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
|
|
|
34
34
|
var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
|
|
35
35
|
|
|
36
36
|
const name = "@firebase/firestore";
|
|
37
|
-
const version$1 = "4.7.5-canary.
|
|
37
|
+
const version$1 = "4.7.5-canary.cbec4b985";
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
@@ -87,7 +87,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
87
87
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
88
88
|
User.MOCK_USER = new User('mock-user');
|
|
89
89
|
|
|
90
|
-
const version = "11.0.2-canary.
|
|
90
|
+
const version = "11.0.2-canary.cbec4b985";
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
package/dist/index.node.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as grpc from '@grpc/grpc-js';
|
|
|
9
9
|
import * as protoLoader from '@grpc/proto-loader';
|
|
10
10
|
|
|
11
11
|
const name = "@firebase/firestore";
|
|
12
|
-
const version$1 = "4.7.5-canary.
|
|
12
|
+
const version$1 = "4.7.5-canary.cbec4b985";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
@@ -62,7 +62,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
62
62
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
63
63
|
User.MOCK_USER = new User('mock-user');
|
|
64
64
|
|
|
65
|
-
const version = "11.0.2-canary.
|
|
65
|
+
const version = "11.0.2-canary.cbec4b985";
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
package/dist/index.rn.js
CHANGED
|
@@ -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 D = "11.0.2-canary.
|
|
75
|
+
let D = "11.0.2-canary.cbec4b985";
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* @license
|
|
@@ -22252,9 +22252,9 @@ let xe = null;
|
|
|
22252
22252
|
return r = Object.assign({
|
|
22253
22253
|
useFetchStreams: t
|
|
22254
22254
|
}, r), s._setSettings(r), s;
|
|
22255
|
-
}), "PUBLIC").setMultipleInstances(!0)), r(b, "4.7.5-canary.
|
|
22255
|
+
}), "PUBLIC").setMultipleInstances(!0)), r(b, "4.7.5-canary.cbec4b985", e),
|
|
22256
22256
|
// BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
|
|
22257
|
-
r(b, "4.7.5-canary.
|
|
22257
|
+
r(b, "4.7.5-canary.cbec4b985", "esm2017");
|
|
22258
22258
|
}("rn", /* useFetchStreams= */ !1);
|
|
22259
22259
|
|
|
22260
22260
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, De 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 };
|