@firebase/firestore 3.10.0 → 3.10.1-20230413163153
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 +6 -0
- package/dist/firestore/src/api/cache_config.d.ts +3 -3
- package/dist/firestore/src/api/settings.d.ts +1 -1
- package/dist/index.cjs.js +6 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm2017.js +6 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +114 -124
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +5 -10
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +5 -10
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +6 -7
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/lite/firestore/src/api/cache_config.d.ts +3 -3
- package/dist/lite/firestore/src/api/settings.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/api/cache_config.d.ts +3 -3
- package/dist/lite/packages/firestore/src/api/settings.d.ts +1 -1
- package/dist/packages/firestore/src/api/cache_config.d.ts +3 -3
- package/dist/packages/firestore/src/api/settings.d.ts +1 -1
- package/dist/private.d.ts +4 -4
- package/package.json +6 -4
package/dist/index.esm5.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Logger as l, LogLevel as h } from "@firebase/logger";
|
|
|
8
8
|
|
|
9
9
|
import { FirebaseError as f, getUA as d, isSafari as p, getModularInstance as v, isIndexedDBAvailable as m, createMockUserToken as y, deepEqual as g, getDefaultEmulatorHostnameAndPort as w } from "@firebase/util";
|
|
10
10
|
|
|
11
|
-
import { XhrIo as b, EventType as I, ErrorCode as
|
|
11
|
+
import { XhrIo as b, EventType as I, ErrorCode as T, createWebChannelTransport as E, getStatEventTarget as S, FetchXmlHttpFactory as _, WebChannel as D, Event as x, Stat as N } from "@firebase/webchannel-wrapper";
|
|
12
12
|
|
|
13
13
|
var C = "@firebase/firestore", A = /** @class */ function() {
|
|
14
14
|
function t(t) {
|
|
@@ -70,7 +70,7 @@ A.MOCK_USER = new A("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.20.0-20230413163153", O = new l("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -1128,7 +1128,7 @@ function gt(t, e) {
|
|
|
1128
1128
|
/** The state of an index that has not yet been backfilled. */;
|
|
1129
1129
|
}
|
|
1130
1130
|
return t.empty = function() {
|
|
1131
|
-
return new t(0,
|
|
1131
|
+
return new t(0, Tt.min());
|
|
1132
1132
|
}, t;
|
|
1133
1133
|
}();
|
|
1134
1134
|
|
|
@@ -1143,17 +1143,17 @@ function gt(t, e) {
|
|
|
1143
1143
|
// `(readTime + 1, DocumentKey.empty())` since `> DocumentKey.empty()` matches
|
|
1144
1144
|
// all valid document IDs.
|
|
1145
1145
|
var n = t.toTimestamp().seconds, r = t.toTimestamp().nanoseconds + 1, i = at.fromTimestamp(1e9 === r ? new ut(n + 1, 0) : new ut(n, r));
|
|
1146
|
-
return new
|
|
1146
|
+
return new Tt(i, ft.empty(), e);
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
/** Creates a new offset based on the provided document. */ function It(t) {
|
|
1150
|
-
return new
|
|
1150
|
+
return new Tt(t.readTime, t.key, -1);
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Stores the latest read time, document and batch ID that were processed for an
|
|
1155
1155
|
* index.
|
|
1156
|
-
*/ var
|
|
1156
|
+
*/ var Tt = /** @class */ function() {
|
|
1157
1157
|
function t(
|
|
1158
1158
|
/**
|
|
1159
1159
|
* The latest read time version that has been indexed by Firestore for this
|
|
@@ -1180,7 +1180,7 @@ function gt(t, e) {
|
|
|
1180
1180
|
}, t;
|
|
1181
1181
|
}();
|
|
1182
1182
|
|
|
1183
|
-
function
|
|
1183
|
+
function Et(t, e) {
|
|
1184
1184
|
var n = t.readTime.compareTo(e.readTime);
|
|
1185
1185
|
return 0 !== n ? n : 0 !== (n = ft.comparator(t.documentKey, e.documentKey)) ? n : rt(t.largestBatchId, e.largestBatchId);
|
|
1186
1186
|
}
|
|
@@ -2035,8 +2035,8 @@ function Mt(t) {
|
|
|
2035
2035
|
var n = t;
|
|
2036
2036
|
return e.changes.forEach((function(t, e) {
|
|
2037
2037
|
var r = It(e);
|
|
2038
|
-
|
|
2039
|
-
})), new
|
|
2038
|
+
Et(r, n) > 0 && (n = r);
|
|
2039
|
+
})), new Tt(n.readTime, n.documentKey, Math.max(e.batchId, t.largestBatchId));
|
|
2040
2040
|
}, t;
|
|
2041
2041
|
}(), qt = /** @class */ function() {
|
|
2042
2042
|
function t(t, e) {
|
|
@@ -2303,15 +2303,15 @@ function be(t) {
|
|
|
2303
2303
|
// tree.
|
|
2304
2304
|
var Ie = /** @class */ function() {
|
|
2305
2305
|
function t(t, e) {
|
|
2306
|
-
this.comparator = t, this.root = e ||
|
|
2306
|
+
this.comparator = t, this.root = e || Ee.EMPTY;
|
|
2307
2307
|
}
|
|
2308
2308
|
// Returns a copy of the map, with the specified key/value added or replaced.
|
|
2309
2309
|
return t.prototype.insert = function(e, n) {
|
|
2310
|
-
return new t(this.comparator, this.root.insert(e, n, this.comparator).copy(null, null,
|
|
2310
|
+
return new t(this.comparator, this.root.insert(e, n, this.comparator).copy(null, null, Ee.BLACK, null, null));
|
|
2311
2311
|
},
|
|
2312
2312
|
// Returns a copy of the map, with the specified key removed.
|
|
2313
2313
|
t.prototype.remove = function(e) {
|
|
2314
|
-
return new t(this.comparator, this.root.remove(e, this.comparator).copy(null, null,
|
|
2314
|
+
return new t(this.comparator, this.root.remove(e, this.comparator).copy(null, null, Ee.BLACK, null, null));
|
|
2315
2315
|
},
|
|
2316
2316
|
// Returns the value of the node with the given key, or null.
|
|
2317
2317
|
t.prototype.get = function(t) {
|
|
@@ -2380,15 +2380,15 @@ var Ie = /** @class */ function() {
|
|
|
2380
2380
|
},
|
|
2381
2381
|
// Returns an iterator over the SortedMap.
|
|
2382
2382
|
t.prototype.getIterator = function() {
|
|
2383
|
-
return new
|
|
2383
|
+
return new Te(this.root, null, this.comparator, !1);
|
|
2384
2384
|
}, t.prototype.getIteratorFrom = function(t) {
|
|
2385
|
-
return new
|
|
2385
|
+
return new Te(this.root, t, this.comparator, !1);
|
|
2386
2386
|
}, t.prototype.getReverseIterator = function() {
|
|
2387
|
-
return new
|
|
2387
|
+
return new Te(this.root, null, this.comparator, !0);
|
|
2388
2388
|
}, t.prototype.getReverseIteratorFrom = function(t) {
|
|
2389
|
-
return new
|
|
2389
|
+
return new Te(this.root, t, this.comparator, !0);
|
|
2390
2390
|
}, t;
|
|
2391
|
-
}(),
|
|
2391
|
+
}(), Te = /** @class */ function() {
|
|
2392
2392
|
function t(t, e, n, r) {
|
|
2393
2393
|
this.isReverse = r, this.nodeStack = [];
|
|
2394
2394
|
for (var i = 1; !t.isEmpty(); ) if (i = e ? n(t.key, e) : 1,
|
|
@@ -2425,7 +2425,7 @@ var Ie = /** @class */ function() {
|
|
|
2425
2425
|
value: t.value
|
|
2426
2426
|
};
|
|
2427
2427
|
}, t;
|
|
2428
|
-
}(),
|
|
2428
|
+
}(), Ee = /** @class */ function() {
|
|
2429
2429
|
function t(e, n, r, i, o) {
|
|
2430
2430
|
this.key = e, this.value = n, this.color = null != r ? r : t.RED, this.left = null != i ? i : t.EMPTY,
|
|
2431
2431
|
this.right = null != o ? o : t.EMPTY, this.size = this.left.size + 1 + this.right.size;
|
|
@@ -2530,9 +2530,9 @@ var Ie = /** @class */ function() {
|
|
|
2530
2530
|
// end LLRBNode
|
|
2531
2531
|
// Empty node is shared between all LLRB trees.
|
|
2532
2532
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2533
|
-
|
|
2533
|
+
Ee.EMPTY = null, Ee.RED = !0, Ee.BLACK = !1,
|
|
2534
2534
|
// end LLRBEmptyNode
|
|
2535
|
-
|
|
2535
|
+
Ee.EMPTY = new (/** @class */ function() {
|
|
2536
2536
|
function t() {
|
|
2537
2537
|
this.size = 0;
|
|
2538
2538
|
}
|
|
@@ -2573,7 +2573,7 @@ Te.EMPTY = new (/** @class */ function() {
|
|
|
2573
2573
|
},
|
|
2574
2574
|
// Returns a copy of the tree, with the specified key/value added.
|
|
2575
2575
|
t.prototype.insert = function(t, e, n) {
|
|
2576
|
-
return new
|
|
2576
|
+
return new Ee(t, e);
|
|
2577
2577
|
},
|
|
2578
2578
|
// Returns a copy of the tree, with the specified key removed.
|
|
2579
2579
|
t.prototype.remove = function(t, e) {
|
|
@@ -3895,19 +3895,19 @@ function bn(t) {
|
|
|
3895
3895
|
/**
|
|
3896
3896
|
* Returns true if this filter is a conjunction of field filters only. Returns false otherwise.
|
|
3897
3897
|
*/ function In(t) {
|
|
3898
|
-
return
|
|
3898
|
+
return Tn(t) && wn(t);
|
|
3899
3899
|
}
|
|
3900
3900
|
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Returns true if this filter does not contain any composite filters. Returns false otherwise.
|
|
3903
|
-
*/ function
|
|
3903
|
+
*/ function Tn(t) {
|
|
3904
3904
|
for (var e = 0, n = t.filters; e < n.length; e++) {
|
|
3905
3905
|
if (n[e] instanceof gn) return !1;
|
|
3906
3906
|
}
|
|
3907
3907
|
return !0;
|
|
3908
3908
|
}
|
|
3909
3909
|
|
|
3910
|
-
function
|
|
3910
|
+
function En(t) {
|
|
3911
3911
|
if (t instanceof yn)
|
|
3912
3912
|
// TODO(b/29183165): Technically, this won't be unique if two values have
|
|
3913
3913
|
// the same description, such as the int 3 and the string "3". So we should
|
|
@@ -3921,11 +3921,11 @@ function Tn(t) {
|
|
|
3921
3921
|
// `col.whereEquals("a", 1).whereEquals("b", 2)` should have the same
|
|
3922
3922
|
// canonical ID as `col.where(and(equals("a",1), equals("b",2)))`.
|
|
3923
3923
|
return t.filters.map((function(t) {
|
|
3924
|
-
return
|
|
3924
|
+
return En(t);
|
|
3925
3925
|
})).join(",");
|
|
3926
3926
|
// filter instanceof CompositeFilter
|
|
3927
3927
|
var e = t.filters.map((function(t) {
|
|
3928
|
-
return
|
|
3928
|
+
return En(t);
|
|
3929
3929
|
})).join(",");
|
|
3930
3930
|
return "".concat(t.op, "(").concat(e, ")");
|
|
3931
3931
|
}
|
|
@@ -4058,7 +4058,7 @@ function Ln(t) {
|
|
|
4058
4058
|
if (null === e.ft) {
|
|
4059
4059
|
var n = e.path.canonicalString();
|
|
4060
4060
|
null !== e.collectionGroup && (n += "|cg:" + e.collectionGroup), n += "|f:", n += e.filters.map((function(t) {
|
|
4061
|
-
return
|
|
4061
|
+
return En(t);
|
|
4062
4062
|
})).join(","), n += "|ob:", n += e.orderBy.map((function(t) {
|
|
4063
4063
|
return function(t) {
|
|
4064
4064
|
// TODO(b/29183165): Make this collision robust.
|
|
@@ -4634,7 +4634,7 @@ function br() {
|
|
|
4634
4634
|
|
|
4635
4635
|
/**
|
|
4636
4636
|
* Returns an IntegerValue for `value`.
|
|
4637
|
-
*/ function
|
|
4637
|
+
*/ function Tr(t) {
|
|
4638
4638
|
return {
|
|
4639
4639
|
integerValue: "" + t
|
|
4640
4640
|
};
|
|
@@ -4644,8 +4644,8 @@ function br() {
|
|
|
4644
4644
|
* Returns a value for a number that's appropriate to put into a proto.
|
|
4645
4645
|
* The return value is an IntegerValue if it can safely represent the value,
|
|
4646
4646
|
* otherwise a DoubleValue is returned.
|
|
4647
|
-
*/ function
|
|
4648
|
-
return zt(e) ?
|
|
4647
|
+
*/ function Er(t, e) {
|
|
4648
|
+
return zt(e) ? Tr(e) : Ir(t, e);
|
|
4649
4649
|
}
|
|
4650
4650
|
|
|
4651
4651
|
/**
|
|
@@ -4696,7 +4696,7 @@ function br() {
|
|
|
4696
4696
|
// precision and resolves overflows by reducing precision, we do not
|
|
4697
4697
|
// manually cap overflows at 2^63.
|
|
4698
4698
|
var n = xr(t, e), r = Pr(n) + Pr(t._t);
|
|
4699
|
-
return Je(n) && Je(t._t) ?
|
|
4699
|
+
return Je(n) && Je(t._t) ? Tr(r) : Ir(t.serializer, r);
|
|
4700
4700
|
}(t, e);
|
|
4701
4701
|
}
|
|
4702
4702
|
|
|
@@ -5989,7 +5989,7 @@ function bi() {
|
|
|
5989
5989
|
*/ var Ii = {
|
|
5990
5990
|
asc: "ASCENDING",
|
|
5991
5991
|
desc: "DESCENDING"
|
|
5992
|
-
},
|
|
5992
|
+
}, Ti = {
|
|
5993
5993
|
"<": "LESS_THAN",
|
|
5994
5994
|
"<=": "LESS_THAN_OR_EQUAL",
|
|
5995
5995
|
">": "GREATER_THAN",
|
|
@@ -6000,7 +6000,7 @@ function bi() {
|
|
|
6000
6000
|
in: "IN",
|
|
6001
6001
|
"not-in": "NOT_IN",
|
|
6002
6002
|
"array-contains-any": "ARRAY_CONTAINS_ANY"
|
|
6003
|
-
},
|
|
6003
|
+
}, Ei = {
|
|
6004
6004
|
and: "AND",
|
|
6005
6005
|
or: "OR"
|
|
6006
6006
|
}, Si = function(t, e) {
|
|
@@ -6394,11 +6394,11 @@ function ji(t) {
|
|
|
6394
6394
|
}
|
|
6395
6395
|
|
|
6396
6396
|
function Qi(t) {
|
|
6397
|
-
return
|
|
6397
|
+
return Ti[t];
|
|
6398
6398
|
}
|
|
6399
6399
|
|
|
6400
6400
|
function Wi(t) {
|
|
6401
|
-
return
|
|
6401
|
+
return Ei[t];
|
|
6402
6402
|
}
|
|
6403
6403
|
|
|
6404
6404
|
function Hi(t) {
|
|
@@ -7118,7 +7118,7 @@ var Io = /** @class */ function() {
|
|
|
7118
7118
|
this.buffer = r;
|
|
7119
7119
|
}
|
|
7120
7120
|
}, t;
|
|
7121
|
-
}(),
|
|
7121
|
+
}(), To = /** @class */ function() {
|
|
7122
7122
|
function t(t) {
|
|
7123
7123
|
this.Me = t;
|
|
7124
7124
|
}
|
|
@@ -7131,7 +7131,7 @@ var Io = /** @class */ function() {
|
|
|
7131
7131
|
}, t.prototype.ce = function() {
|
|
7132
7132
|
this.Me.xe();
|
|
7133
7133
|
}, t;
|
|
7134
|
-
}(),
|
|
7134
|
+
}(), Eo = /** @class */ function() {
|
|
7135
7135
|
function t(t) {
|
|
7136
7136
|
this.Me = t;
|
|
7137
7137
|
}
|
|
@@ -7146,7 +7146,7 @@ var Io = /** @class */ function() {
|
|
|
7146
7146
|
}, t;
|
|
7147
7147
|
}(), So = /** @class */ function() {
|
|
7148
7148
|
function t() {
|
|
7149
|
-
this.Me = new Io, this.Fe = new
|
|
7149
|
+
this.Me = new Io, this.Fe = new To(this.Me), this.Be = new Eo(this.Me);
|
|
7150
7150
|
}
|
|
7151
7151
|
return t.prototype.seed = function(t) {
|
|
7152
7152
|
this.Me.seed(t);
|
|
@@ -7452,7 +7452,7 @@ function Mo(t, e) {
|
|
|
7452
7452
|
// If the composite filter only contains 1 filter, apply associativity to it.
|
|
7453
7453
|
if (1 === e.length) return Lo(e[0]);
|
|
7454
7454
|
// Associativity applied to a flat composite filter results is itself.
|
|
7455
|
-
if (
|
|
7455
|
+
if (Tn(t)) return t;
|
|
7456
7456
|
// First apply associativity to all subfilters. This will in turn recursively apply
|
|
7457
7457
|
// associativity to all nested composite filters and field filters.
|
|
7458
7458
|
var n = e.map((function(t) {
|
|
@@ -7528,9 +7528,9 @@ var Vo = /** @class */ function() {
|
|
|
7528
7528
|
// Field indices are not supported with memory persistence.
|
|
7529
7529
|
return xt.resolve(null);
|
|
7530
7530
|
}, t.prototype.getMinOffset = function(t, e) {
|
|
7531
|
-
return xt.resolve(
|
|
7531
|
+
return xt.resolve(Tt.min());
|
|
7532
7532
|
}, t.prototype.getMinOffsetFromCollectionGroup = function(t, e) {
|
|
7533
|
-
return xt.resolve(
|
|
7533
|
+
return xt.resolve(Tt.min());
|
|
7534
7534
|
}, t.prototype.updateCollectionGroup = function(t, e, n) {
|
|
7535
7535
|
// Field indices are not supported with memory persistence.
|
|
7536
7536
|
return xt.resolve();
|
|
@@ -7884,7 +7884,7 @@ var Vo = /** @class */ function() {
|
|
|
7884
7884
|
return xt.forEach(t, (function(t) {
|
|
7885
7885
|
return i.get([ t.indexId, n.uid ]).next((function(n) {
|
|
7886
7886
|
e.push(function(t, e) {
|
|
7887
|
-
var n = e ? new wt(e.sequenceNumber, new
|
|
7887
|
+
var n = e ? new wt(e.sequenceNumber, new Tt(io(e.readTime), new ft(Qt(e.documentKey)), e.largestBatchId)) : wt.empty(), r = t.fields.map((function(t) {
|
|
7888
7888
|
var e = t[0], n = t[1];
|
|
7889
7889
|
return new yt(ht.fromServerFormat(e), n);
|
|
7890
7890
|
}));
|
|
@@ -8095,9 +8095,9 @@ function Qo(t) {
|
|
|
8095
8095
|
U(0 !== t.length);
|
|
8096
8096
|
for (var e = t[0].indexState.offset, n = e.largestBatchId, r = 1; r < t.length; r++) {
|
|
8097
8097
|
var i = t[r].indexState.offset;
|
|
8098
|
-
|
|
8098
|
+
Et(i, e) < 0 && (e = i), n < i.largestBatchId && (n = i.largestBatchId);
|
|
8099
8099
|
}
|
|
8100
|
-
return new
|
|
8100
|
+
return new Tt(e.readTime, e.documentKey, n);
|
|
8101
8101
|
}
|
|
8102
8102
|
|
|
8103
8103
|
/**
|
|
@@ -9297,7 +9297,7 @@ function iu(t) {
|
|
|
9297
9297
|
return n;
|
|
9298
9298
|
}));
|
|
9299
9299
|
}, t.prototype.getAllFromCollectionGroup = function(t, e, n, r) {
|
|
9300
|
-
var i = this, o = cr(), u = bu(e, n), a = bu(e,
|
|
9300
|
+
var i = this, o = cr(), u = bu(e, n), a = bu(e, Tt.max());
|
|
9301
9301
|
return gu(t).Z({
|
|
9302
9302
|
index: "collectionGroupIndex",
|
|
9303
9303
|
range: IDBKeyRange.bound(u, a, !0)
|
|
@@ -9548,7 +9548,7 @@ function bu(t, e) {
|
|
|
9548
9548
|
/**
|
|
9549
9549
|
* Represents a local view (overlay) of a document, and the fields that are
|
|
9550
9550
|
* locally mutated.
|
|
9551
|
-
*/ var
|
|
9551
|
+
*/ var Tu = function(t,
|
|
9552
9552
|
/**
|
|
9553
9553
|
* The fields that are locally mutated by patch mutations.
|
|
9554
9554
|
*
|
|
@@ -9557,7 +9557,7 @@ function bu(t, e) {
|
|
|
9557
9557
|
*/
|
|
9558
9558
|
e) {
|
|
9559
9559
|
this.overlayedDocument = t, this.mutatedFields = e;
|
|
9560
|
-
},
|
|
9560
|
+
}, Eu = /** @class */ function() {
|
|
9561
9561
|
function t(t, e, n, r) {
|
|
9562
9562
|
this.remoteDocumentCache = t, this.mutationQueue = e, this.documentOverlayCache = n,
|
|
9563
9563
|
this.indexManager = r
|
|
@@ -9671,7 +9671,7 @@ e) {
|
|
|
9671
9671
|
return o.set(t, e);
|
|
9672
9672
|
})), e.forEach((function(t, e) {
|
|
9673
9673
|
var n;
|
|
9674
|
-
return u.set(t, new
|
|
9674
|
+
return u.set(t, new Tu(e, null !== (n = o.get(t)) && void 0 !== n ? n : null));
|
|
9675
9675
|
})), u;
|
|
9676
9676
|
}));
|
|
9677
9677
|
}, t.prototype.recalculateAndSaveOverlays = function(t, e) {
|
|
@@ -10163,7 +10163,7 @@ e) {
|
|
|
10163
10163
|
; a.hasNext(); ) {
|
|
10164
10164
|
var s = a.getNext(), c = s.key, l = s.value.document;
|
|
10165
10165
|
if (!o.isPrefixOf(c.path)) break;
|
|
10166
|
-
c.path.length > o.length + 1 ||
|
|
10166
|
+
c.path.length > o.length + 1 || Et(It(l), n) <= 0 || (r.has(l.key) || rr(e, l)) && (i = i.insert(l.key, l.mutableCopy()));
|
|
10167
10167
|
}
|
|
10168
10168
|
return xt.resolve(i);
|
|
10169
10169
|
}, t.prototype.getAllFromCollectionGroup = function(t, e, n, r) {
|
|
@@ -10673,7 +10673,7 @@ e) {
|
|
|
10673
10673
|
})), r.set(t.userId, i);
|
|
10674
10674
|
})), xt.forEach(r, (function(t, r) {
|
|
10675
10675
|
var u = new A(r), a = mo.ie(n.serializer, u), s = o.getIndexManager(u), c = Zo.ie(u, n.serializer, s, o.referenceDelegate);
|
|
10676
|
-
return new
|
|
10676
|
+
return new Eu(i, c, a, s).recalculateAndSaveOverlaysForDocumentKeys(new me(e, qt.ct), t).next();
|
|
10677
10677
|
}));
|
|
10678
10678
|
}));
|
|
10679
10679
|
}, t;
|
|
@@ -11437,7 +11437,7 @@ var zu = /** @class */ function() {
|
|
|
11437
11437
|
return !!i && (i.hasPendingWrites || i.version.compareTo(r) > 0);
|
|
11438
11438
|
}, t.prototype.Oi = function(t, e) {
|
|
11439
11439
|
return R() <= h.DEBUG && F("QueryEngine", "Using full collection scan to execute query:", nr(e)),
|
|
11440
|
-
this.xi.getDocumentsMatchingQuery(t, e,
|
|
11440
|
+
this.xi.getDocumentsMatchingQuery(t, e, Tt.min());
|
|
11441
11441
|
},
|
|
11442
11442
|
/**
|
|
11443
11443
|
* Combines the results from an indexed execution with the remaining documents
|
|
@@ -11482,7 +11482,7 @@ var zu = /** @class */ function() {
|
|
|
11482
11482
|
// TODO(indexing): Add spec tests that test these components change after a
|
|
11483
11483
|
// user change
|
|
11484
11484
|
this.documentOverlayCache = this.persistence.getDocumentOverlayCache(t), this.indexManager = this.persistence.getIndexManager(t),
|
|
11485
|
-
this.mutationQueue = this.persistence.getMutationQueue(t, this.indexManager), this.localDocuments = new
|
|
11485
|
+
this.mutationQueue = this.persistence.getMutationQueue(t, this.indexManager), this.localDocuments = new Eu(this.Ki, this.mutationQueue, this.documentOverlayCache, this.indexManager),
|
|
11486
11486
|
this.Ki.setIndexManager(this.indexManager), this.Bi.initialize(this.localDocuments, this.indexManager);
|
|
11487
11487
|
}, t.prototype.collectGarbage = function(t) {
|
|
11488
11488
|
var e = this;
|
|
@@ -12582,7 +12582,7 @@ var ba = {
|
|
|
12582
12582
|
}, t.prototype.io = function(t) {
|
|
12583
12583
|
this.eo(t);
|
|
12584
12584
|
}, t;
|
|
12585
|
-
}(),
|
|
12585
|
+
}(), Ta = "WebChannelConnection", Ea = /** @class */ function(e) {
|
|
12586
12586
|
function n(t) {
|
|
12587
12587
|
var n = this;
|
|
12588
12588
|
return (n = e.call(this, t) || this).forceLongPolling = t.forceLongPolling, n.autoDetectLongPolling = t.autoDetectLongPolling,
|
|
@@ -12599,19 +12599,19 @@ var ba = {
|
|
|
12599
12599
|
a.setWithCredentials(!0), a.listenOnce(I.COMPLETE, (function() {
|
|
12600
12600
|
try {
|
|
12601
12601
|
switch (a.getLastErrorCode()) {
|
|
12602
|
-
case
|
|
12602
|
+
case T.NO_ERROR:
|
|
12603
12603
|
var e = a.getResponseJson();
|
|
12604
|
-
F(
|
|
12604
|
+
F(Ta, "XHR for RPC '".concat(t, "' ").concat(i, " received:"), JSON.stringify(e)),
|
|
12605
12605
|
o(e);
|
|
12606
12606
|
break;
|
|
12607
12607
|
|
|
12608
|
-
case
|
|
12609
|
-
F(
|
|
12608
|
+
case T.TIMEOUT:
|
|
12609
|
+
F(Ta, "RPC '".concat(t, "' ").concat(i, " timed out")), u(new K(G.DEADLINE_EXCEEDED, "Request time out"));
|
|
12610
12610
|
break;
|
|
12611
12611
|
|
|
12612
|
-
case
|
|
12612
|
+
case T.HTTP_ERROR:
|
|
12613
12613
|
var n = a.getStatus();
|
|
12614
|
-
if (F(
|
|
12614
|
+
if (F(Ta, "RPC '".concat(t, "' ").concat(i, " failed with status:"), n, "response text:", a.getResponseText()),
|
|
12615
12615
|
n > 0) {
|
|
12616
12616
|
var r = a.getResponseJson();
|
|
12617
12617
|
Array.isArray(r) && (r = r[0]);
|
|
@@ -12633,14 +12633,14 @@ var ba = {
|
|
|
12633
12633
|
q();
|
|
12634
12634
|
}
|
|
12635
12635
|
} finally {
|
|
12636
|
-
F(
|
|
12636
|
+
F(Ta, "RPC '".concat(t, "' ").concat(i, " completed."));
|
|
12637
12637
|
}
|
|
12638
12638
|
}));
|
|
12639
12639
|
var s = JSON.stringify(r);
|
|
12640
|
-
F(
|
|
12640
|
+
F(Ta, "RPC '".concat(t, "' ").concat(i, " sending request:"), r), a.send(e, "POST", s, n, 15);
|
|
12641
12641
|
}));
|
|
12642
12642
|
}, n.prototype.wo = function(t, e, n) {
|
|
12643
|
-
var r = wa(), i = [ this.ro, "/", "google.firestore.v1.Firestore", "/", t, "/channel" ], o =
|
|
12643
|
+
var r = wa(), i = [ this.ro, "/", "google.firestore.v1.Firestore", "/", t, "/channel" ], o = E(), u = S(), a = {
|
|
12644
12644
|
// Required for backend stickiness, routing behavior is based on this
|
|
12645
12645
|
// parameter.
|
|
12646
12646
|
httpSessionIdParam: "gsessionid",
|
|
@@ -12676,11 +12676,11 @@ var ba = {
|
|
|
12676
12676
|
// which is recognized by the webchannel backend.
|
|
12677
12677
|
a.encodeInitMessageHeaders = !0;
|
|
12678
12678
|
var s = i.join("");
|
|
12679
|
-
F(
|
|
12679
|
+
F(Ta, "Creating RPC '".concat(t, "' stream ").concat(r, ": ").concat(s), a);
|
|
12680
12680
|
var c = o.createWebChannel(s, a), l = !1, h = !1, f = new Ia({
|
|
12681
12681
|
Wr: function(e) {
|
|
12682
|
-
h ? F(
|
|
12683
|
-
c.open(), l = !0), F(
|
|
12682
|
+
h ? F(Ta, "Not sending because RPC '".concat(t, "' stream ").concat(r, " is closed:"), e) : (l || (F(Ta, "Opening RPC '".concat(t, "' stream ").concat(r, " transport.")),
|
|
12683
|
+
c.open(), l = !0), F(Ta, "RPC '".concat(t, "' stream ").concat(r, " sending:"), e),
|
|
12684
12684
|
c.send(e));
|
|
12685
12685
|
},
|
|
12686
12686
|
Hr: function() {
|
|
@@ -12709,12 +12709,12 @@ var ba = {
|
|
|
12709
12709
|
// Note that eventually this function could go away if we are confident
|
|
12710
12710
|
// enough the code is exception free.
|
|
12711
12711
|
return d(c, D.EventType.OPEN, (function() {
|
|
12712
|
-
h || F(
|
|
12712
|
+
h || F(Ta, "RPC '".concat(t, "' stream ").concat(r, " transport opened."));
|
|
12713
12713
|
})), d(c, D.EventType.CLOSE, (function() {
|
|
12714
|
-
h || (h = !0, F(
|
|
12714
|
+
h || (h = !0, F(Ta, "RPC '".concat(t, "' stream ").concat(r, " transport closed")),
|
|
12715
12715
|
f.so());
|
|
12716
12716
|
})), d(c, D.EventType.ERROR, (function(e) {
|
|
12717
|
-
h || (h = !0, L(
|
|
12717
|
+
h || (h = !0, L(Ta, "RPC '".concat(t, "' stream ").concat(r, " transport errored:"), e),
|
|
12718
12718
|
f.so(new K(G.UNAVAILABLE, "The operation could not be completed")));
|
|
12719
12719
|
})), d(c, D.EventType.MESSAGE, (function(e) {
|
|
12720
12720
|
var n;
|
|
@@ -12728,7 +12728,7 @@ var ba = {
|
|
|
12728
12728
|
// Use any because msgData.error is not typed.
|
|
12729
12729
|
var o = i, u = o.error || (null === (n = o[0]) || void 0 === n ? void 0 : n.error);
|
|
12730
12730
|
if (u) {
|
|
12731
|
-
F(
|
|
12731
|
+
F(Ta, "RPC '".concat(t, "' stream ").concat(r, " received error:"), u);
|
|
12732
12732
|
// error.status will be a string like 'OK' or 'NOT_FOUND'.
|
|
12733
12733
|
var a = u.status, s =
|
|
12734
12734
|
/**
|
|
@@ -12746,10 +12746,10 @@ var ba = {
|
|
|
12746
12746
|
void 0 === s && (s = G.INTERNAL, l = "Unknown error status: " + a + " with message " + u.message),
|
|
12747
12747
|
// Mark closed so no further events are propagated
|
|
12748
12748
|
h = !0, f.so(new K(s, l)), c.close();
|
|
12749
|
-
} else F(
|
|
12749
|
+
} else F(Ta, "RPC '".concat(t, "' stream ").concat(r, " received:"), i), f.io(i);
|
|
12750
12750
|
}
|
|
12751
12751
|
})), d(u, x.STAT_EVENT, (function(e) {
|
|
12752
|
-
e.stat === N.PROXY ? F(
|
|
12752
|
+
e.stat === N.PROXY ? F(Ta, "RPC '".concat(t, "' stream ").concat(r, " detected buffering proxy")) : e.stat === N.NOPROXY && F(Ta, "RPC '".concat(t, "' stream ").concat(r, " detected no buffering proxy"));
|
|
12753
12753
|
})), setTimeout((function() {
|
|
12754
12754
|
// Technically we could/should wait for the WebChannel opened event,
|
|
12755
12755
|
// but because we want to send the first message with the WebChannel
|
|
@@ -13279,8 +13279,8 @@ function Sa() {
|
|
|
13279
13279
|
e.documentRemove;
|
|
13280
13280
|
var I = e.documentRemove;
|
|
13281
13281
|
I.document;
|
|
13282
|
-
var
|
|
13283
|
-
n = new pi([],
|
|
13282
|
+
var T = Oi(t, I.document), E = I.removedTargetIds || [];
|
|
13283
|
+
n = new pi([], E, T, null);
|
|
13284
13284
|
} else {
|
|
13285
13285
|
if (!("filter" in e)) return q();
|
|
13286
13286
|
e.filter;
|
|
@@ -14771,7 +14771,7 @@ function ys(t) {
|
|
|
14771
14771
|
/** Batched documents to be saved into storage */
|
|
14772
14772
|
this.documents = [],
|
|
14773
14773
|
/** The collection groups affected by this bundle. */
|
|
14774
|
-
this.collectionGroups = new Set, this.progress =
|
|
14774
|
+
this.collectionGroups = new Set, this.progress = Ts(t)
|
|
14775
14775
|
/**
|
|
14776
14776
|
* Adds an element from the bundle to the loader.
|
|
14777
14777
|
*
|
|
@@ -14861,7 +14861,7 @@ function ys(t) {
|
|
|
14861
14861
|
* Returns a `LoadBundleTaskProgress` representing the initial progress of
|
|
14862
14862
|
* loading a bundle.
|
|
14863
14863
|
*/
|
|
14864
|
-
function
|
|
14864
|
+
function Ts(t) {
|
|
14865
14865
|
return {
|
|
14866
14866
|
taskState: "Running",
|
|
14867
14867
|
documentsLoaded: 0,
|
|
@@ -14890,7 +14890,7 @@ function Es(t) {
|
|
|
14890
14890
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14891
14891
|
* See the License for the specific language governing permissions and
|
|
14892
14892
|
* limitations under the License.
|
|
14893
|
-
*/ var
|
|
14893
|
+
*/ var Es = function(t) {
|
|
14894
14894
|
this.key = t;
|
|
14895
14895
|
}, Ss = function(t) {
|
|
14896
14896
|
this.key = t;
|
|
@@ -15091,7 +15091,7 @@ function Es(t) {
|
|
|
15091
15091
|
return e.forEach((function(e) {
|
|
15092
15092
|
t.Uu.has(e) || n.push(new Ss(e));
|
|
15093
15093
|
})), this.Uu.forEach((function(t) {
|
|
15094
|
-
e.has(t) || n.push(new
|
|
15094
|
+
e.has(t) || n.push(new Es(t));
|
|
15095
15095
|
})), n;
|
|
15096
15096
|
},
|
|
15097
15097
|
/**
|
|
@@ -15716,7 +15716,7 @@ function zs(t, e) {
|
|
|
15716
15716
|
function Gs(t, e, n) {
|
|
15717
15717
|
for (var r = 0, i = n; r < i.length; r++) {
|
|
15718
15718
|
var o = i[r];
|
|
15719
|
-
o instanceof
|
|
15719
|
+
o instanceof Es ? (t.cc.addReference(o.key, e), Ks(t, o)) : o instanceof Ss ? (F("SyncEngine", "Document no longer in limbo: " + o.key),
|
|
15720
15720
|
t.cc.removeReference(o.key, e), t.cc.containsKey(o.key) ||
|
|
15721
15721
|
// We removed the last reference for this key
|
|
15722
15722
|
zs(t, o.key)) : q();
|
|
@@ -16258,7 +16258,7 @@ function uc(t, r, i) {
|
|
|
16258
16258
|
}(e)), Promise.resolve(new Set)) ];
|
|
16259
16259
|
|
|
16260
16260
|
case 4:
|
|
16261
|
-
return i._updateProgress(
|
|
16261
|
+
return i._updateProgress(Ts(e)), o = new Is(e, t.localStore, r.serializer), [ 4 /*yield*/ , r._c() ];
|
|
16262
16262
|
|
|
16263
16263
|
case 5:
|
|
16264
16264
|
u = n.sent(), n.label = 6;
|
|
@@ -16515,7 +16515,7 @@ var ac = /** @class */ function() {
|
|
|
16515
16515
|
}, t.prototype.createEventManager = function(t) {
|
|
16516
16516
|
return new fs;
|
|
16517
16517
|
}, t.prototype.createDatastore = function(t) {
|
|
16518
|
-
var e, n = Da(t.databaseInfo.databaseId), r = (e = t.databaseInfo, new
|
|
16518
|
+
var e, n = Da(t.databaseInfo.databaseId), r = (e = t.databaseInfo, new Ea(e));
|
|
16519
16519
|
/** Return the Platform-specific connectivity monitor. */ return function(t, e, n, r) {
|
|
16520
16520
|
return new ka(t, e, n, r);
|
|
16521
16521
|
}(t.authCredentials, t.appCheckCredentials, r, n);
|
|
@@ -17331,13 +17331,13 @@ function Ic(t) {
|
|
|
17331
17331
|
}));
|
|
17332
17332
|
}
|
|
17333
17333
|
|
|
17334
|
-
function
|
|
17334
|
+
function Tc(t) {
|
|
17335
17335
|
return bc(t).then((function(t) {
|
|
17336
17336
|
return t.persistence;
|
|
17337
17337
|
}));
|
|
17338
17338
|
}
|
|
17339
17339
|
|
|
17340
|
-
function
|
|
17340
|
+
function Ec(t) {
|
|
17341
17341
|
return bc(t).then((function(t) {
|
|
17342
17342
|
return t.localStore;
|
|
17343
17343
|
}));
|
|
@@ -18584,7 +18584,7 @@ function sl(t) {
|
|
|
18584
18584
|
return n(this, (function(n) {
|
|
18585
18585
|
switch (n.label) {
|
|
18586
18586
|
case 0:
|
|
18587
|
-
return [ 4 /*yield*/ ,
|
|
18587
|
+
return [ 4 /*yield*/ , Tc(t) ];
|
|
18588
18588
|
|
|
18589
18589
|
case 1:
|
|
18590
18590
|
return e = n.sent(), [ 4 /*yield*/ , Sc(t) ];
|
|
@@ -18618,7 +18618,7 @@ function sl(t) {
|
|
|
18618
18618
|
return n(this, (function(o) {
|
|
18619
18619
|
switch (o.label) {
|
|
18620
18620
|
case 0:
|
|
18621
|
-
return [ 4 /*yield*/ ,
|
|
18621
|
+
return [ 4 /*yield*/ , Tc(t) ];
|
|
18622
18622
|
|
|
18623
18623
|
case 1:
|
|
18624
18624
|
return r = o.sent(), [ 4 /*yield*/ , Sc(t) ];
|
|
@@ -18759,7 +18759,7 @@ function dl(t, r) {
|
|
|
18759
18759
|
return n.persistence.runTransaction("Get named query", "readonly", (function(t) {
|
|
18760
18760
|
return n.xs.getNamedQuery(t, e);
|
|
18761
18761
|
}));
|
|
18762
|
-
}, [ 4 /*yield*/ ,
|
|
18762
|
+
}, [ 4 /*yield*/ , Ec(t) ];
|
|
18763
18763
|
|
|
18764
18764
|
case 1:
|
|
18765
18765
|
return [ 2 /*return*/ , e.apply(void 0, [ n.sent(), r ]) ];
|
|
@@ -19016,7 +19016,7 @@ function(t) {
|
|
|
19016
19016
|
t.prototype._compareTo = function(t) {
|
|
19017
19017
|
return rt(this._lat, t._lat) || rt(this._long, t._long);
|
|
19018
19018
|
}, t;
|
|
19019
|
-
}(),
|
|
19019
|
+
}(), Tl = /^__.*__$/, El = /** @class */ function() {
|
|
19020
19020
|
function t(t, e, n) {
|
|
19021
19021
|
this.data = t, this.fieldMask = e, this.fieldTransforms = n;
|
|
19022
19022
|
}
|
|
@@ -19148,7 +19148,7 @@ function(t) {
|
|
|
19148
19148
|
if (this.path) for (var t = 0; t < this.path.length; t++) this.ea(this.path.get(t));
|
|
19149
19149
|
}, t.prototype.ea = function(t) {
|
|
19150
19150
|
if (0 === t.length) throw this.ia("Document fields must not be empty");
|
|
19151
|
-
if (_l(this.Yc) &&
|
|
19151
|
+
if (_l(this.Yc) && Tl.test(t)) throw this.ia('Document fields cannot begin and end with "__"');
|
|
19152
19152
|
}, t;
|
|
19153
19153
|
}(), xl = /** @class */ function() {
|
|
19154
19154
|
function t(t, e, n) {
|
|
@@ -19190,7 +19190,7 @@ function(t) {
|
|
|
19190
19190
|
return a.covers(t.field);
|
|
19191
19191
|
}));
|
|
19192
19192
|
} else a = null, s = u.fieldTransforms;
|
|
19193
|
-
return new
|
|
19193
|
+
return new El(new sn(c), a, s);
|
|
19194
19194
|
}
|
|
19195
19195
|
|
|
19196
19196
|
var Al = /** @class */ function(e) {
|
|
@@ -19276,7 +19276,7 @@ var Ol = /** @class */ function(e) {
|
|
|
19276
19276
|
return (r = e.call(this, t) || this).aa = n, r;
|
|
19277
19277
|
}
|
|
19278
19278
|
return t(n, e), n.prototype._toFieldTransform = function(t) {
|
|
19279
|
-
var e = new Rr(t.serializer,
|
|
19279
|
+
var e = new Rr(t.serializer, Er(t.serializer, this.aa));
|
|
19280
19280
|
return new Mr(t.path, e);
|
|
19281
19281
|
}, n.prototype.isEqual = function(t) {
|
|
19282
19282
|
// TODO(mrschmidt): Implement isEquals
|
|
@@ -19405,7 +19405,7 @@ var Ol = /** @class */ function(e) {
|
|
|
19405
19405
|
if (null === (t = v(t))) return {
|
|
19406
19406
|
nullValue: "NULL_VALUE"
|
|
19407
19407
|
};
|
|
19408
|
-
if ("number" == typeof t) return
|
|
19408
|
+
if ("number" == typeof t) return Er(e.serializer, t);
|
|
19409
19409
|
if ("boolean" == typeof t) return {
|
|
19410
19410
|
booleanValue: t
|
|
19411
19411
|
};
|
|
@@ -19824,7 +19824,7 @@ function Jl(t, e) {
|
|
|
19824
19824
|
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
|
|
19825
19825
|
// Only support QueryFilterConstraints
|
|
19826
19826
|
return t.forEach((function(t) {
|
|
19827
|
-
return
|
|
19827
|
+
return Th("or", t);
|
|
19828
19828
|
})), rh._create("or" /* CompositeOperator.OR */ , t)
|
|
19829
19829
|
/**
|
|
19830
19830
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
@@ -19842,7 +19842,7 @@ function oh() {
|
|
|
19842
19842
|
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
|
|
19843
19843
|
// Only support QueryFilterConstraints
|
|
19844
19844
|
return t.forEach((function(t) {
|
|
19845
|
-
return
|
|
19845
|
+
return Th("and", t);
|
|
19846
19846
|
})), rh._create("and" /* CompositeOperator.AND */ , t)
|
|
19847
19847
|
/**
|
|
19848
19848
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
@@ -20144,11 +20144,11 @@ function Ih(t, e, n) {
|
|
|
20144
20144
|
if (!n.isEqual(e)) throw new K(G.INVALID_ARGUMENT, "Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '".concat(e.toString(), "' and so you must also use '").concat(e.toString(), "' as your first argument to orderBy(), but your first orderBy() is on field '").concat(n.toString(), "' instead."));
|
|
20145
20145
|
}
|
|
20146
20146
|
|
|
20147
|
-
function
|
|
20147
|
+
function Th(t, e) {
|
|
20148
20148
|
if (!(e instanceof eh || e instanceof rh)) throw new K(G.INVALID_ARGUMENT, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
|
|
20149
20149
|
}
|
|
20150
20150
|
|
|
20151
|
-
var
|
|
20151
|
+
var Eh = /** @class */ function() {
|
|
20152
20152
|
function t() {}
|
|
20153
20153
|
return t.prototype.convertValue = function(t, e) {
|
|
20154
20154
|
switch (void 0 === e && (e = "none"), ze(t)) {
|
|
@@ -20268,7 +20268,7 @@ var _h = /** @class */ function(e) {
|
|
|
20268
20268
|
var e = this.convertDocumentKey(t, this.firestore._databaseId);
|
|
20269
20269
|
return new Bc(this.firestore, /* converter= */ null, e);
|
|
20270
20270
|
}, n;
|
|
20271
|
-
}(
|
|
20271
|
+
}(Eh);
|
|
20272
20272
|
|
|
20273
20273
|
/**
|
|
20274
20274
|
* @license
|
|
@@ -20623,7 +20623,7 @@ var Vh = /** @class */ function(e) {
|
|
|
20623
20623
|
var e = this.convertDocumentKey(t, this.firestore._databaseId);
|
|
20624
20624
|
return new Bc(this.firestore, /* converter= */ null, e);
|
|
20625
20625
|
}, n;
|
|
20626
|
-
}(
|
|
20626
|
+
}(Eh);
|
|
20627
20627
|
|
|
20628
20628
|
/**
|
|
20629
20629
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
@@ -20668,7 +20668,7 @@ var Vh = /** @class */ function(e) {
|
|
|
20668
20668
|
}
|
|
20669
20669
|
}));
|
|
20670
20670
|
}));
|
|
20671
|
-
}, [ 4 /*yield*/ ,
|
|
20671
|
+
}, [ 4 /*yield*/ , Ec(t) ];
|
|
20672
20672
|
|
|
20673
20673
|
case 1:
|
|
20674
20674
|
return [ 2 /*return*/ , i.apply(void 0, [ u.sent(), r, o ]) ];
|
|
@@ -20755,7 +20755,7 @@ function zh(t) {
|
|
|
20755
20755
|
}
|
|
20756
20756
|
}));
|
|
20757
20757
|
}));
|
|
20758
|
-
}, [ 4 /*yield*/ ,
|
|
20758
|
+
}, [ 4 /*yield*/ , Ec(t) ];
|
|
20759
20759
|
|
|
20760
20760
|
case 1:
|
|
20761
20761
|
return [ 2 /*return*/ , i.apply(void 0, [ u.sent(), r, o ]) ];
|
|
@@ -21055,17 +21055,14 @@ function Yh(t, r) {
|
|
|
21055
21055
|
var o = this, u = new j;
|
|
21056
21056
|
return t.asyncQueue.enqueueAndForget((function() {
|
|
21057
21057
|
return e(o, void 0, void 0, (function() {
|
|
21058
|
-
var o, a
|
|
21059
|
-
return n(this, (function(
|
|
21060
|
-
switch (
|
|
21058
|
+
var o, a;
|
|
21059
|
+
return n(this, (function(s) {
|
|
21060
|
+
switch (s.label) {
|
|
21061
21061
|
case 0:
|
|
21062
|
-
return
|
|
21062
|
+
return s.trys.push([ 0, 2, , 3 ]), [ 4 /*yield*/ , Dc(t) ];
|
|
21063
21063
|
|
|
21064
21064
|
case 1:
|
|
21065
|
-
return o
|
|
21066
|
-
|
|
21067
|
-
case 2:
|
|
21068
|
-
return a = c.sent(), u.resolve(
|
|
21065
|
+
return o = s.sent(), u.resolve(
|
|
21069
21066
|
// TODO(firestorexp): Make sure there is only one Datastore instance per
|
|
21070
21067
|
// firestore-exp client.
|
|
21071
21068
|
function(t, r, i) {
|
|
@@ -21113,19 +21110,12 @@ function Yh(t, r) {
|
|
|
21113
21110
|
}
|
|
21114
21111
|
}));
|
|
21115
21112
|
}));
|
|
21116
|
-
}(
|
|
21113
|
+
}(o, r, i)), [ 3 /*break*/ , 3 ];
|
|
21117
21114
|
|
|
21118
|
-
case
|
|
21119
|
-
u.reject(
|
|
21120
|
-
c.label = 4;
|
|
21121
|
-
|
|
21122
|
-
case 4:
|
|
21123
|
-
return [ 3 /*break*/ , 6 ];
|
|
21124
|
-
|
|
21125
|
-
case 5:
|
|
21126
|
-
return s = c.sent(), u.reject(s), [ 3 /*break*/ , 6 ];
|
|
21115
|
+
case 2:
|
|
21116
|
+
return a = s.sent(), u.reject(a), [ 3 /*break*/ , 3 ];
|
|
21127
21117
|
|
|
21128
|
-
case
|
|
21118
|
+
case 3:
|
|
21129
21119
|
return [ 2 /*return*/ ];
|
|
21130
21120
|
}
|
|
21131
21121
|
}));
|
|
@@ -21630,9 +21620,9 @@ function If(t, i) {
|
|
|
21630
21620
|
}
|
|
21631
21621
|
}(t) : t, n = [];
|
|
21632
21622
|
if (Array.isArray(e.indexes)) for (var r = 0, i = e.indexes; r < i.length; r++) {
|
|
21633
|
-
var o = i[r], u =
|
|
21623
|
+
var o = i[r], u = Tf(o, "collectionGroup"), a = [];
|
|
21634
21624
|
if (Array.isArray(o.fields)) for (var s = 0, c = o.fields; s < c.length; s++) {
|
|
21635
|
-
var l = c[s], h = jl("setIndexConfiguration",
|
|
21625
|
+
var l = c[s], h = jl("setIndexConfiguration", Tf(l, "fieldPath"));
|
|
21636
21626
|
"CONTAINS" === l.arrayConfig ? a.push(new yt(h, 2 /* IndexKind.CONTAINS */)) : "ASCENDING" === l.order ? a.push(new yt(h, 0 /* IndexKind.ASCENDING */)) : "DESCENDING" === l.order && a.push(new yt(h, 1 /* IndexKind.DESCENDING */));
|
|
21637
21627
|
}
|
|
21638
21628
|
n.push(new dt(dt.UNKNOWN_ID, u, a, wt.empty()));
|
|
@@ -21711,7 +21701,7 @@ function If(t, i) {
|
|
|
21711
21701
|
})) ];
|
|
21712
21702
|
}));
|
|
21713
21703
|
}));
|
|
21714
|
-
}, [ 4 /*yield*/ ,
|
|
21704
|
+
}, [ 4 /*yield*/ , Ec(t) ];
|
|
21715
21705
|
|
|
21716
21706
|
case 1:
|
|
21717
21707
|
return [ 2 /*return*/ , o.apply(void 0, [ u.sent(), i ]) ];
|
|
@@ -21722,7 +21712,7 @@ function If(t, i) {
|
|
|
21722
21712
|
}(u, a);
|
|
21723
21713
|
}
|
|
21724
21714
|
|
|
21725
|
-
function
|
|
21715
|
+
function Tf(t, e) {
|
|
21726
21716
|
if ("string" != typeof t[e]) throw new K(G.INVALID_ARGUMENT, "Missing string value for: " + e);
|
|
21727
21717
|
return t[e];
|
|
21728
21718
|
}
|
|
@@ -21739,9 +21729,9 @@ function Ef(t, e) {
|
|
|
21739
21729
|
return r = Object.assign({
|
|
21740
21730
|
useFetchStreams: ff
|
|
21741
21731
|
}, r), o._setSettings(r), o;
|
|
21742
|
-
}), "PUBLIC").setMultipleInstances(!0)), u(C, "3.10.
|
|
21732
|
+
}), "PUBLIC").setMultipleInstances(!0)), u(C, "3.10.1-20230413163153", void 0),
|
|
21743
21733
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21744
|
-
u(C, "3.10.
|
|
21734
|
+
u(C, "3.10.1-20230413163153", "esm5");
|
|
21745
21735
|
|
|
21746
|
-
export {
|
|
21736
|
+
export { Eh as AbstractUserDataWriter, vl as AggregateField, ml as AggregateQuerySnapshot, yl as Bytes, Xc as CACHE_SIZE_UNLIMITED, Gc as CollectionReference, Bc as DocumentReference, Oh as DocumentSnapshot, gl as FieldPath, bl as FieldValue, $c as Firestore, K as FirestoreError, Il as GeoPoint, Zc as LoadBundleTask, zc as Query, rh as QueryCompositeFilterConstraint, $l as QueryConstraint, Rh as QueryDocumentSnapshot, ph as QueryEndAtConstraint, eh as QueryFieldFilterConstraint, sh as QueryLimitConstraint, uh as QueryOrderByConstraint, Ph as QuerySnapshot, hh as QueryStartAtConstraint, kh as SnapshotMetadata, ut as Timestamp, df as Transaction, lf as WriteBatch, qe as _DatabaseId, ft as _DocumentKey, tt as _EmptyAppCheckTokenProvider, W as _EmptyAuthCredentialsProvider, ht as _FieldPath, li as _TestingHooks, Mc as _cast, B as _debugAssert, Ce as _isBase64Available, L as _logWarn, Oc as _validateIsNotUsedTogether, Wh as addDoc, Ch as aggregateFieldEqual, Ah as aggregateQuerySnapshotEqual, oh as and, gf as arrayRemove, yf as arrayUnion, xh as average, al as clearIndexedDbPersistence, Kc as collection, jc as collectionGroup, Uc as connectFirestoreEmulator, Nh as count, Qh as deleteDoc, vf as deleteField, ll as disableNetwork, Qc as doc, wl as documentId, il as enableIndexedDbPersistence, ol as enableMultiTabIndexedDbPersistence, cl as enableNetwork, mh as endAt, vh as endBefore, nl as ensureFirestoreConfigured, Jh as executeWrite, $h as getAggregateFromServer, Xh as getCountFromServer, Lh as getDoc, qh as getDocFromCache, Uh as getDocFromServer, Bh as getDocs, zh as getDocsFromCache, Gh as getDocsFromServer, el as getFirestore, wf as increment, tl as initializeFirestore, ch as limit, lh as limitToLast, fl as loadBundle, nf as memoryLocalCache, dl as namedQuery, Hh as onSnapshot, Yh as onSnapshotsInSync, ih as or, ah as orderBy, rf as persistentLocalCache, sf as persistentMultipleTabManager, af as persistentSingleTabManager, th as query, Hc as queryEqual, Wc as refEqual, pf as runTransaction, mf as serverTimestamp, Kh as setDoc, If as setIndexConfiguration, P as setLogLevel, Mh as snapshotEqual, dh as startAfter, fh as startAt, Dh as sum, hl as terminate, jh as updateDoc, sl as waitForPendingWrites, nh as where, bf as writeBatch };
|
|
21747
21737
|
//# sourceMappingURL=index.esm5.js.map
|