@firebase/firestore 4.1.3-canary.2d0a9f5fd → 4.1.3-canary.74fc4cf9c
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 +3 -3
- package/dist/index.esm2017.js +3 -3
- package/dist/index.esm5.js +3 -3
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.rn.js +90 -90
- 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/package.json +9 -9
package/dist/index.cjs.js
CHANGED
|
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
let S = "10.3.1-canary.
|
|
73
|
+
let S = "10.3.1-canary.74fc4cf9c";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -21826,9 +21826,9 @@ let Se = null;
|
|
|
21826
21826
|
return r = Object.assign({
|
|
21827
21827
|
useFetchStreams: t
|
|
21828
21828
|
}, r), s._setSettings(r), s;
|
|
21829
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.1.3-canary.
|
|
21829
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.1.3-canary.74fc4cf9c", e),
|
|
21830
21830
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21831
|
-
app.registerVersion(w, "4.1.3-canary.
|
|
21831
|
+
app.registerVersion(w, "4.1.3-canary.74fc4cf9c", "cjs2017");
|
|
21832
21832
|
}();
|
|
21833
21833
|
|
|
21834
21834
|
exports.AbstractUserDataWriter = AbstractUserDataWriter;
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let S = "10.3.1-canary.
|
|
69
|
+
let S = "10.3.1-canary.74fc4cf9c";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -21822,9 +21822,9 @@ let Se = null;
|
|
|
21822
21822
|
return r = Object.assign({
|
|
21823
21823
|
useFetchStreams: t
|
|
21824
21824
|
}, r), s._setSettings(r), s;
|
|
21825
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.3-canary.
|
|
21825
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.3-canary.74fc4cf9c", e),
|
|
21826
21826
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21827
|
-
registerVersion(w, "4.1.3-canary.
|
|
21827
|
+
registerVersion(w, "4.1.3-canary.74fc4cf9c", "esm2017");
|
|
21828
21828
|
}();
|
|
21829
21829
|
|
|
21830
21830
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, fe 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, WriteBatch, 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, __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, waitForPendingWrites, where, writeBatch };
|
package/dist/index.esm5.js
CHANGED
|
@@ -70,7 +70,7 @@ k.MOCK_USER = new k("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
var P = "10.3.1-canary.
|
|
73
|
+
var P = "10.3.1-canary.74fc4cf9c", O = new l("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -22457,9 +22457,9 @@ function Gf(t, r) {
|
|
|
22457
22457
|
return r = Object.assign({
|
|
22458
22458
|
useFetchStreams: jf
|
|
22459
22459
|
}, r), o._setSettings(r), o;
|
|
22460
|
-
}), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.3-canary.
|
|
22460
|
+
}), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.3-canary.74fc4cf9c", Kf),
|
|
22461
22461
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
22462
|
-
a(A, "4.1.3-canary.
|
|
22462
|
+
a(A, "4.1.3-canary.74fc4cf9c", "esm5");
|
|
22463
22463
|
|
|
22464
22464
|
export { Fh as AbstractUserDataWriter, Cl as AggregateField, Dl as AggregateQuerySnapshot, Nl as Bytes, ll as CACHE_SIZE_UNLIMITED, el as CollectionReference, tl as DocumentReference, Kh as DocumentSnapshot, Al as FieldPath, Pl as FieldValue, hl as Firestore, j as FirestoreError, Ol as GeoPoint, cl as LoadBundleTask, Lf as PersistentCacheIndexManager, $c as Query, vh as QueryCompositeFilterConstraint, hh as QueryConstraint, jh as QueryDocumentSnapshot, xh as QueryEndAtConstraint, dh as QueryFieldFilterConstraint, bh as QueryLimitConstraint, gh as QueryOrderByConstraint, Qh as QuerySnapshot, Eh as QueryStartAtConstraint, Gh as SnapshotMetadata, ut as Timestamp, Df as Transaction, xf as WriteBatch, ke as _ByteString, Ue as _DatabaseId, dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, H as _EmptyAuthCredentialsProvider, ft as _FieldPath, Wf as _TestingHooks, Hc as _cast, z as _debugAssert, Ae as _isBase64Available, L as _logWarn, Kc as _validateIsNotUsedTogether, af as addDoc, Bh as aggregateFieldEqual, zh as aggregateQuerySnapshotEqual, yh as and, Of as arrayRemove, Pf as arrayUnion, qh as average, wl as clearIndexedDbPersistence, nl as collection, rl as collectionGroup, Zc as connectFirestoreEmulator, Uh as count, zf as deleteAllPersistentCacheIndexes, of as deleteDoc, Af as deleteField, _l as disableNetwork, Bf as disablePersistentCacheIndexAutoCreation, il as doc, kl as documentId, ml as enableIndexedDbPersistence, yl as enableMultiTabIndexedDbPersistence, Il as enableNetwork, Uf as enablePersistentCacheIndexAutoCreation, Dh as endAt, Ch as endBefore, pl as ensureFirestoreConfigured, cf as executeWrite, ff as getAggregateFromServer, hf as getCountFromServer, Yh as getDoc, Jh as getDocFromCache, Zh as getDocFromServer, $h as getDocs, tf as getDocsFromCache, ef as getDocsFromServer, dl as getFirestore, qf as getPersistentCacheIndexManager, Rf as increment, fl as initializeFirestore, Ih as limit, _h as limitToLast, Tl as loadBundle, yf as memoryEagerGarbageCollector, wf as memoryLocalCache, gf as memoryLruGarbageCollector, Sl as namedQuery, uf as onSnapshot, sf as onSnapshotsInSync, mh as or, wh as orderBy, bf as persistentLocalCache, Tf as persistentMultipleTabManager, Ef as persistentSingleTabManager, fh as query, al as queryEqual, ol as refEqual, Nf as runTransaction, kf as serverTimestamp, nf as setDoc, Mf as setIndexConfiguration, F as setLogLevel, Hh as snapshotEqual, Sh as startAfter, Th as startAt, Lh as sum, El as terminate, rf as updateDoc, bl as waitForPendingWrites, ph as where, Ff as writeBatch };
|
|
22465
22465
|
//# sourceMappingURL=index.esm5.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.1.3-canary.
|
|
37
|
+
const version$1 = "4.1.3-canary.74fc4cf9c";
|
|
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 = "10.3.1-canary.
|
|
90
|
+
const version = "10.3.1-canary.74fc4cf9c";
|
|
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.1.3-canary.
|
|
12
|
+
const version$1 = "4.1.3-canary.74fc4cf9c";
|
|
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 = "10.3.1-canary.
|
|
65
|
+
const version = "10.3.1-canary.74fc4cf9c";
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
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
|
|
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 d, getDefaultEmulatorHostnameAndPort as E } from "@firebase/util";
|
|
8
8
|
|
|
9
9
|
import { Integer as A, Md5 as R, XhrIo as V, EventType as m, ErrorCode as f, createWebChannelTransport as g, getStatEventTarget as p, WebChannel as y, Event as w, Stat as S } from "@firebase/webchannel-wrapper";
|
|
10
10
|
|
|
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
let D = "10.3.1-canary.
|
|
73
|
+
let D = "10.3.1-canary.74fc4cf9c";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -4466,7 +4466,7 @@ class __PRIVATE_QueryImpl {
|
|
|
4466
4466
|
// aggregate queries. Unlike targets for non-aggregate queries,
|
|
4467
4467
|
// aggregate query targets do not contain normalized order-bys, they only
|
|
4468
4468
|
// contain explicit order-bys.
|
|
4469
|
-
this.
|
|
4469
|
+
this.Te = null, this.startAt, this.endAt;
|
|
4470
4470
|
}
|
|
4471
4471
|
}
|
|
4472
4472
|
|
|
@@ -4934,8 +4934,8 @@ function __PRIVATE_targetIdSet() {
|
|
|
4934
4934
|
// PORTING NOTE: Since JavaScript's integer arithmetic is limited to 53 bit
|
|
4935
4935
|
// precision and resolves overflows by reducing precision, we do not
|
|
4936
4936
|
// manually cap overflows at 2^63.
|
|
4937
|
-
const n = __PRIVATE_computeTransformOperationBaseValue(e, t), r = asNumber(n) + asNumber(e.
|
|
4938
|
-
return isInteger(n) && isInteger(e.
|
|
4937
|
+
const n = __PRIVATE_computeTransformOperationBaseValue(e, t), r = asNumber(n) + asNumber(e.de);
|
|
4938
|
+
return isInteger(n) && isInteger(e.de) ? __PRIVATE_toInteger(r) : __PRIVATE_toDouble(e.serializer, r);
|
|
4939
4939
|
}(e, t);
|
|
4940
4940
|
}
|
|
4941
4941
|
|
|
@@ -5017,7 +5017,7 @@ function __PRIVATE_applyArrayRemoveTransformOperation(e, t) {
|
|
|
5017
5017
|
* arithmetic is used and precision loss can occur for values greater than 2^53.
|
|
5018
5018
|
*/ class __PRIVATE_NumericIncrementTransformOperation extends TransformOperation {
|
|
5019
5019
|
constructor(e, t) {
|
|
5020
|
-
super(), this.serializer = e, this.
|
|
5020
|
+
super(), this.serializer = e, this.de = t;
|
|
5021
5021
|
}
|
|
5022
5022
|
}
|
|
5023
5023
|
|
|
@@ -5053,7 +5053,7 @@ function __PRIVATE_coercedFieldValuesArray(e) {
|
|
|
5053
5053
|
|
|
5054
5054
|
function __PRIVATE_fieldTransformEquals(e, t) {
|
|
5055
5055
|
return e.field.isEqual(t.field) && function __PRIVATE_transformOperationEquals(e, t) {
|
|
5056
|
-
return e instanceof __PRIVATE_ArrayUnionTransformOperation && t instanceof __PRIVATE_ArrayUnionTransformOperation || e instanceof __PRIVATE_ArrayRemoveTransformOperation && t instanceof __PRIVATE_ArrayRemoveTransformOperation ? __PRIVATE_arrayEquals(e.elements, t.elements, __PRIVATE_valueEquals) : e instanceof __PRIVATE_NumericIncrementTransformOperation && t instanceof __PRIVATE_NumericIncrementTransformOperation ? __PRIVATE_valueEquals(e.
|
|
5056
|
+
return e instanceof __PRIVATE_ArrayUnionTransformOperation && t instanceof __PRIVATE_ArrayUnionTransformOperation || e instanceof __PRIVATE_ArrayRemoveTransformOperation && t instanceof __PRIVATE_ArrayRemoveTransformOperation ? __PRIVATE_arrayEquals(e.elements, t.elements, __PRIVATE_valueEquals) : e instanceof __PRIVATE_NumericIncrementTransformOperation && t instanceof __PRIVATE_NumericIncrementTransformOperation ? __PRIVATE_valueEquals(e.de, t.de) : e instanceof __PRIVATE_ServerTimestampTransform && t instanceof __PRIVATE_ServerTimestampTransform;
|
|
5057
5057
|
}(e.transform, t.transform);
|
|
5058
5058
|
}
|
|
5059
5059
|
|
|
@@ -6509,7 +6509,7 @@ const Ie = (() => {
|
|
|
6509
6509
|
desc: "DESCENDING"
|
|
6510
6510
|
};
|
|
6511
6511
|
return e;
|
|
6512
|
-
})(),
|
|
6512
|
+
})(), Te = (() => {
|
|
6513
6513
|
const e = {
|
|
6514
6514
|
"<": "LESS_THAN",
|
|
6515
6515
|
"<=": "LESS_THAN_OR_EQUAL",
|
|
@@ -6523,7 +6523,7 @@ const Ie = (() => {
|
|
|
6523
6523
|
"array-contains-any": "ARRAY_CONTAINS_ANY"
|
|
6524
6524
|
};
|
|
6525
6525
|
return e;
|
|
6526
|
-
})(),
|
|
6526
|
+
})(), de = (() => {
|
|
6527
6527
|
const e = {
|
|
6528
6528
|
and: "AND",
|
|
6529
6529
|
or: "OR"
|
|
@@ -6765,7 +6765,7 @@ function toMutation(e, t) {
|
|
|
6765
6765
|
};
|
|
6766
6766
|
if (n instanceof __PRIVATE_NumericIncrementTransformOperation) return {
|
|
6767
6767
|
fieldPath: t.field.canonicalString(),
|
|
6768
|
-
increment: n.
|
|
6768
|
+
increment: n.de
|
|
6769
6769
|
};
|
|
6770
6770
|
throw fail();
|
|
6771
6771
|
}(0, e)))), t.precondition.isNone || (n.currentDocument = function __PRIVATE_toPrecondition(e, t) {
|
|
@@ -7051,11 +7051,11 @@ function __PRIVATE_toDirection(e) {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
|
|
7053
7053
|
function __PRIVATE_toOperatorName(e) {
|
|
7054
|
-
return
|
|
7054
|
+
return Te[e];
|
|
7055
7055
|
}
|
|
7056
7056
|
|
|
7057
7057
|
function __PRIVATE_toCompositeOperatorName(e) {
|
|
7058
|
-
return
|
|
7058
|
+
return de[e];
|
|
7059
7059
|
}
|
|
7060
7060
|
|
|
7061
7061
|
function __PRIVATE_toFieldPathReference(e) {
|
|
@@ -7599,13 +7599,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7599
7599
|
// ["bar", [2, truncated("foo")]] -> (STRING, "bar", TERM, ARRAY, NUMBER, 2, STRING, "foo", TRUNC)
|
|
7600
7600
|
// ["bar", truncated(["foo"])] -> (STRING, "bar", TERM, ARRAY. STRING, "foo", TERM, TRUNC)
|
|
7601
7601
|
/** Writes an index value. */
|
|
7602
|
-
|
|
7603
|
-
this.
|
|
7602
|
+
Tt(e, t) {
|
|
7603
|
+
this.dt(e, t),
|
|
7604
7604
|
// Write separator to split index values
|
|
7605
7605
|
// (see go/firestore-storage-format#encodings).
|
|
7606
7606
|
t.Et();
|
|
7607
7607
|
}
|
|
7608
|
-
|
|
7608
|
+
dt(e, t) {
|
|
7609
7609
|
if ("nullValue" in e) this.At(t, 5); else if ("booleanValue" in e) this.At(t, 10),
|
|
7610
7610
|
t.Rt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.At(t, 15), t.Rt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
|
|
7611
7611
|
const n = __PRIVATE_normalizeNumber(e.doubleValue);
|
|
@@ -7631,12 +7631,12 @@ class __PRIVATE_FirestoreIndexValueWriter {
|
|
|
7631
7631
|
St(e, t) {
|
|
7632
7632
|
const n = e.fields || {};
|
|
7633
7633
|
this.At(t, 55);
|
|
7634
|
-
for (const e of Object.keys(n)) this.ft(e, t), this.
|
|
7634
|
+
for (const e of Object.keys(n)) this.ft(e, t), this.dt(n[e], t);
|
|
7635
7635
|
}
|
|
7636
7636
|
bt(e, t) {
|
|
7637
7637
|
const n = e.values || [];
|
|
7638
7638
|
this.At(t, 50);
|
|
7639
|
-
for (const e of n) this.
|
|
7639
|
+
for (const e of n) this.dt(e, t);
|
|
7640
7640
|
}
|
|
7641
7641
|
wt(e, t) {
|
|
7642
7642
|
this.At(t, 37);
|
|
@@ -8545,7 +8545,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8545
8545
|
n.push(t.value), r && (r = t.inclusive);
|
|
8546
8546
|
}
|
|
8547
8547
|
return new Bound(n, r);
|
|
8548
|
-
}(s, i), c = this.Pn(i, s, a), l = this.Pn(i, s, u), h = this.In(i, s, _), P = this.
|
|
8548
|
+
}(s, i), c = this.Pn(i, s, a), l = this.Pn(i, s, u), h = this.In(i, s, _), P = this.Tn(i.indexId, o, c, a.inclusive, l, u.inclusive, h);
|
|
8549
8549
|
return PersistencePromise.forEach(P, (i => n.H(i, t.limit).next((t => {
|
|
8550
8550
|
t.forEach((t => {
|
|
8551
8551
|
const n = DocumentKey.fromSegments(t.documentKey);
|
|
@@ -8568,14 +8568,14 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8568
8568
|
/**
|
|
8569
8569
|
* Constructs a key range query on `DbIndexEntryStore` that unions all
|
|
8570
8570
|
* bounds.
|
|
8571
|
-
*/
|
|
8571
|
+
*/ Tn(e, t, n, r, i, s, o) {
|
|
8572
8572
|
// The number of total index scans we union together. This is similar to a
|
|
8573
8573
|
// distributed normal form, but adapted for array values. We create a single
|
|
8574
8574
|
// index range per value in an ARRAY_CONTAINS or ARRAY_CONTAINS_ANY filter
|
|
8575
8575
|
// combined with the values from the query bounds.
|
|
8576
8576
|
const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
|
|
8577
8577
|
for (let c = 0; c < _; ++c) {
|
|
8578
|
-
const _ = t ? this.
|
|
8578
|
+
const _ = t ? this.dn(t[c / a]) : Ee, l = this.En(e, _, n[c % a], r), h = this.An(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
|
|
8579
8579
|
/* inclusive= */ !0)));
|
|
8580
8580
|
u.push(...this.createRange(l, h, P));
|
|
8581
8581
|
}
|
|
@@ -8639,13 +8639,13 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8639
8639
|
const e = t.data.field(r.fieldPath);
|
|
8640
8640
|
if (null == e) return null;
|
|
8641
8641
|
const i = n.Yt(r.kind);
|
|
8642
|
-
__PRIVATE_FirestoreIndexValueWriter.Ct.
|
|
8642
|
+
__PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, i);
|
|
8643
8643
|
}
|
|
8644
8644
|
return n.zt();
|
|
8645
8645
|
}
|
|
8646
|
-
/** Encodes a single value to the ascending index format. */
|
|
8646
|
+
/** Encodes a single value to the ascending index format. */ dn(e) {
|
|
8647
8647
|
const t = new __PRIVATE_IndexByteEncoder;
|
|
8648
|
-
return __PRIVATE_FirestoreIndexValueWriter.Ct.
|
|
8648
|
+
return __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, t.Yt(0 /* IndexKind.ASCENDING */)),
|
|
8649
8649
|
t.zt();
|
|
8650
8650
|
}
|
|
8651
8651
|
/**
|
|
@@ -8653,7 +8653,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8653
8653
|
* ordering of the field index.
|
|
8654
8654
|
*/ Vn(e, t) {
|
|
8655
8655
|
const n = new __PRIVATE_IndexByteEncoder;
|
|
8656
|
-
return __PRIVATE_FirestoreIndexValueWriter.Ct.
|
|
8656
|
+
return __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(__PRIVATE_refValue(this.databaseId, t), n.Yt(function __PRIVATE_fieldIndexGetKeyOrder(e) {
|
|
8657
8657
|
const t = __PRIVATE_fieldIndexGetDirectionalSegments(e);
|
|
8658
8658
|
return 0 === t.length ? 0 /* IndexKind.ASCENDING */ : t[t.length - 1].kind;
|
|
8659
8659
|
}(e))), n.zt();
|
|
@@ -8670,7 +8670,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8670
8670
|
const e = n[i++];
|
|
8671
8671
|
for (const n of r) if (this.mn(t, s.fieldPath) && isArray(e)) r = this.fn(r, s, e); else {
|
|
8672
8672
|
const t = n.Yt(s.kind);
|
|
8673
|
-
__PRIVATE_FirestoreIndexValueWriter.Ct.
|
|
8673
|
+
__PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, t);
|
|
8674
8674
|
}
|
|
8675
8675
|
}
|
|
8676
8676
|
return this.gn(r);
|
|
@@ -8696,7 +8696,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8696
8696
|
const r = [ ...e ], i = [];
|
|
8697
8697
|
for (const e of n.arrayValue.values || []) for (const n of r) {
|
|
8698
8698
|
const r = new __PRIVATE_IndexByteEncoder;
|
|
8699
|
-
r.seed(n.zt()), __PRIVATE_FirestoreIndexValueWriter.Ct.
|
|
8699
|
+
r.seed(n.zt()), __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, r.Yt(t.kind)), i.push(r);
|
|
8700
8700
|
}
|
|
8701
8701
|
return i;
|
|
8702
8702
|
}
|
|
@@ -8771,7 +8771,7 @@ class __PRIVATE_IndexedDbIndexManager {
|
|
|
8771
8771
|
const i = __PRIVATE_fieldIndexGetArraySegment(t);
|
|
8772
8772
|
if (null != i) {
|
|
8773
8773
|
const s = e.data.field(i.fieldPath);
|
|
8774
|
-
if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.
|
|
8774
|
+
if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.dn(i), r));
|
|
8775
8775
|
} else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ee, r));
|
|
8776
8776
|
return n;
|
|
8777
8777
|
}
|
|
@@ -10689,16 +10689,16 @@ class OverlayedDocument {
|
|
|
10689
10689
|
*/ class __PRIVATE_ReferenceSet {
|
|
10690
10690
|
constructor() {
|
|
10691
10691
|
// A set of outstanding references to a document sorted by key.
|
|
10692
|
-
this.Ir = new SortedSet(__PRIVATE_DocReference.
|
|
10692
|
+
this.Ir = new SortedSet(__PRIVATE_DocReference.Tr),
|
|
10693
10693
|
// A set of outstanding references to a document sorted by target id.
|
|
10694
|
-
this.
|
|
10694
|
+
this.dr = new SortedSet(__PRIVATE_DocReference.Er);
|
|
10695
10695
|
}
|
|
10696
10696
|
/** Returns true if the reference set contains no references. */ isEmpty() {
|
|
10697
10697
|
return this.Ir.isEmpty();
|
|
10698
10698
|
}
|
|
10699
10699
|
/** Adds a reference to the given document key for the given ID. */ addReference(e, t) {
|
|
10700
10700
|
const n = new __PRIVATE_DocReference(e, t);
|
|
10701
|
-
this.Ir = this.Ir.add(n), this.
|
|
10701
|
+
this.Ir = this.Ir.add(n), this.dr = this.dr.add(n);
|
|
10702
10702
|
}
|
|
10703
10703
|
/** Add references to the given document keys for the given ID. */ Ar(e, t) {
|
|
10704
10704
|
e.forEach((e => this.addReference(e, t)));
|
|
@@ -10717,7 +10717,7 @@ class OverlayedDocument {
|
|
|
10717
10717
|
* removed.
|
|
10718
10718
|
*/ mr(e) {
|
|
10719
10719
|
const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
|
|
10720
|
-
return this.
|
|
10720
|
+
return this.dr.forEachInRange([ n, r ], (e => {
|
|
10721
10721
|
this.Rr(e), i.push(e.key);
|
|
10722
10722
|
})), i;
|
|
10723
10723
|
}
|
|
@@ -10725,12 +10725,12 @@ class OverlayedDocument {
|
|
|
10725
10725
|
this.Ir.forEach((e => this.Rr(e)));
|
|
10726
10726
|
}
|
|
10727
10727
|
Rr(e) {
|
|
10728
|
-
this.Ir = this.Ir.delete(e), this.
|
|
10728
|
+
this.Ir = this.Ir.delete(e), this.dr = this.dr.delete(e);
|
|
10729
10729
|
}
|
|
10730
10730
|
pr(e) {
|
|
10731
10731
|
const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1);
|
|
10732
10732
|
let i = __PRIVATE_documentKeySet();
|
|
10733
|
-
return this.
|
|
10733
|
+
return this.dr.forEachInRange([ n, r ], (e => {
|
|
10734
10734
|
i = i.add(e.key);
|
|
10735
10735
|
})), i;
|
|
10736
10736
|
}
|
|
@@ -10744,7 +10744,7 @@ class __PRIVATE_DocReference {
|
|
|
10744
10744
|
constructor(e, t) {
|
|
10745
10745
|
this.key = e, this.yr = t;
|
|
10746
10746
|
}
|
|
10747
|
-
/** Compare by key then by ID */ static
|
|
10747
|
+
/** Compare by key then by ID */ static Tr(e, t) {
|
|
10748
10748
|
return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.yr, t.yr);
|
|
10749
10749
|
}
|
|
10750
10750
|
/** Compare by ID then by key */ static Er(e, t) {
|
|
@@ -10778,7 +10778,7 @@ class __PRIVATE_DocReference {
|
|
|
10778
10778
|
/** Next value to use when assigning sequential IDs to each mutation batch. */
|
|
10779
10779
|
this.wr = 1,
|
|
10780
10780
|
/** An ordered mapping between documents and the mutations batch IDs. */
|
|
10781
|
-
this.Sr = new SortedSet(__PRIVATE_DocReference.
|
|
10781
|
+
this.Sr = new SortedSet(__PRIVATE_DocReference.Tr);
|
|
10782
10782
|
}
|
|
10783
10783
|
checkEmpty(e) {
|
|
10784
10784
|
return PersistencePromise.resolve(0 === this.mutationQueue.length);
|
|
@@ -11740,9 +11740,9 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11740
11740
|
/** The last time we garbage collected the client metadata object store. */
|
|
11741
11741
|
this.Ii = Number.NEGATIVE_INFINITY,
|
|
11742
11742
|
/** A listener to notify on primary state changes. */
|
|
11743
|
-
this.
|
|
11744
|
-
this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.
|
|
11745
|
-
this.serializer = new __PRIVATE_LocalSerializer(_), this.Ei = new __PRIVATE_SimpleDb(this.
|
|
11743
|
+
this.Ti = e => Promise.resolve(), !__PRIVATE_IndexedDbPersistence.C()) throw new FirestoreError(v.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
|
|
11744
|
+
this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.di = t + "main",
|
|
11745
|
+
this.serializer = new __PRIVATE_LocalSerializer(_), this.Ei = new __PRIVATE_SimpleDb(this.di, this.ci, new __PRIVATE_SchemaConverter(this.serializer)),
|
|
11746
11746
|
this.Kr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
|
|
11747
11747
|
this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
|
|
11748
11748
|
this.Ur = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ai = this.window.localStorage : (this.Ai = null,
|
|
@@ -11775,7 +11775,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11775
11775
|
*
|
|
11776
11776
|
* PORTING NOTE: This is only used for Web multi-tab.
|
|
11777
11777
|
*/ gi(e) {
|
|
11778
|
-
return this.
|
|
11778
|
+
return this.Ti = async t => {
|
|
11779
11779
|
if (this.started) return e(t);
|
|
11780
11780
|
}, e(this.isPrimary);
|
|
11781
11781
|
}
|
|
@@ -11816,7 +11816,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11816
11816
|
inForeground: this.inForeground
|
|
11817
11817
|
}).next((() => {
|
|
11818
11818
|
if (this.isPrimary) return this.pi(e).next((e => {
|
|
11819
|
-
e || (this.isPrimary = !1, this._i.enqueueRetryable((() => this.
|
|
11819
|
+
e || (this.isPrimary = !1, this._i.enqueueRetryable((() => this.Ti(!1))));
|
|
11820
11820
|
}));
|
|
11821
11821
|
})).next((() => this.yi(e))).next((t => this.isPrimary && !t ? this.wi(e).next((() => !1)) : !!t && this.Si(e).next((() => !0)))))).catch((e => {
|
|
11822
11822
|
if (__PRIVATE_isIndexedDbTransactionError(e))
|
|
@@ -11828,7 +11828,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11828
11828
|
return __PRIVATE_logDebug("IndexedDbPersistence", "Releasing owner lease after error during lease refresh", e),
|
|
11829
11829
|
/* isPrimary= */ !1;
|
|
11830
11830
|
})).then((e => {
|
|
11831
|
-
this.isPrimary !== e && this._i.enqueueRetryable((() => this.
|
|
11831
|
+
this.isPrimary !== e && this._i.enqueueRetryable((() => this.Ti(e))), this.isPrimary = e;
|
|
11832
11832
|
}));
|
|
11833
11833
|
}
|
|
11834
11834
|
pi(e) {
|
|
@@ -11980,7 +11980,7 @@ class __PRIVATE_IndexedDbPersistence {
|
|
|
11980
11980
|
return this.Ei.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.qr ? this.qr.next() : __PRIVATE_ListenSequence.ae),
|
|
11981
11981
|
"readwrite-primary" === t ? this.pi(s).next((e => !!e || this.yi(s))).next((t => {
|
|
11982
11982
|
if (!t) throw __PRIVATE_logError(`Failed to obtain primary lease for action '${e}'.`),
|
|
11983
|
-
this.isPrimary = !1, this._i.enqueueRetryable((() => this.
|
|
11983
|
+
this.isPrimary = !1, this._i.enqueueRetryable((() => this.Ti(!1))), new FirestoreError(v.FAILED_PRECONDITION, M);
|
|
11984
11984
|
return n(s);
|
|
11985
11985
|
})).next((e => this.Si(s).next((() => e)))) : this.qi(s).next((() => n(s)))))).then((e => (s.raiseOnCommittedEvent(),
|
|
11986
11986
|
e)));
|
|
@@ -12812,8 +12812,8 @@ async function __PRIVATE_localStoreApplyBundledDocuments(e, t, n, r) {
|
|
|
12812
12812
|
for (const e of n) {
|
|
12813
12813
|
const n = t.Is(e.metadata.name);
|
|
12814
12814
|
e.document && (s = s.add(n));
|
|
12815
|
-
const r = t.
|
|
12816
|
-
r.setReadTime(t.
|
|
12815
|
+
const r = t.Ts(e);
|
|
12816
|
+
r.setReadTime(t.ds(e.metadata.readTime)), o = o.insert(n, r);
|
|
12817
12817
|
}
|
|
12818
12818
|
const _ = i._s.newChangeBuffer({
|
|
12819
12819
|
trackRemovals: !0
|
|
@@ -14332,7 +14332,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14332
14332
|
this.P_ = !1, this.lastStreamToken = void 0, super.start();
|
|
14333
14333
|
}
|
|
14334
14334
|
s_() {
|
|
14335
|
-
this.P_ && this.
|
|
14335
|
+
this.P_ && this.T_([]);
|
|
14336
14336
|
}
|
|
14337
14337
|
u_(e, t) {
|
|
14338
14338
|
return this.connection.Mo("Write", e, t);
|
|
@@ -14346,7 +14346,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14346
14346
|
// the write itself might be causing an error we want to back off from.
|
|
14347
14347
|
this.Ho.reset();
|
|
14348
14348
|
const t = __PRIVATE_fromWriteResults(e.writeResults, e.commitTime), n = __PRIVATE_fromVersion(e.commitTime);
|
|
14349
|
-
return this.listener.
|
|
14349
|
+
return this.listener.d_(n, t);
|
|
14350
14350
|
}
|
|
14351
14351
|
// The first response is always the handshake response
|
|
14352
14352
|
return __PRIVATE_hardAssert(!e.writeResults || 0 === e.writeResults.length), this.P_ = !0,
|
|
@@ -14362,7 +14362,7 @@ class __PRIVATE_PersistentStream {
|
|
|
14362
14362
|
const e = {};
|
|
14363
14363
|
e.database = __PRIVATE_getEncodedDatabaseId(this.serializer), this.n_(e);
|
|
14364
14364
|
}
|
|
14365
|
-
/** Sends a group of mutations to the Firestore backend to apply. */
|
|
14365
|
+
/** Sends a group of mutations to the Firestore backend to apply. */ T_(e) {
|
|
14366
14366
|
const t = {
|
|
14367
14367
|
streamToken: this.lastStreamToken,
|
|
14368
14368
|
writes: e.map((e => toMutation(this.serializer, e)))
|
|
@@ -14459,9 +14459,9 @@ async function __PRIVATE_invokeRunAggregationQueryRpc(e, t, n) {
|
|
|
14459
14459
|
};
|
|
14460
14460
|
}(i.serializer, function __PRIVATE_queryToAggregateTarget(e) {
|
|
14461
14461
|
const t = __PRIVATE_debugCast(e);
|
|
14462
|
-
return t.
|
|
14462
|
+
return t.Te || (
|
|
14463
14463
|
// Do not include implicit order-bys for aggregate queries.
|
|
14464
|
-
t.
|
|
14464
|
+
t.Te = __PRIVATE__queryToTarget(t, e.explicitOrderBy)), t.Te;
|
|
14465
14465
|
}(t), n), _ = s.parent;
|
|
14466
14466
|
i.connection.So || delete s.parent;
|
|
14467
14467
|
const a = (await i.Fo("RunAggregationQuery", _, s, /*expectedResponseCount=*/ 1)).filter((e => !!e.result));
|
|
@@ -14865,7 +14865,7 @@ async function __PRIVATE_fillWritePipeline(e) {
|
|
|
14865
14865
|
*/ function __PRIVATE_addToWritePipeline(e, t) {
|
|
14866
14866
|
e.C_.push(t);
|
|
14867
14867
|
const n = __PRIVATE_ensureWriteStream(e);
|
|
14868
|
-
n.Yo() && n.I_ && n.
|
|
14868
|
+
n.Yo() && n.I_ && n.T_(t.mutations);
|
|
14869
14869
|
}
|
|
14870
14870
|
|
|
14871
14871
|
function __PRIVATE_shouldStartWriteStream(e) {
|
|
@@ -14883,7 +14883,7 @@ async function __PRIVATE_onWriteStreamOpen(e) {
|
|
|
14883
14883
|
async function __PRIVATE_onWriteHandshakeComplete(e) {
|
|
14884
14884
|
const t = __PRIVATE_ensureWriteStream(e);
|
|
14885
14885
|
// Send the write pipeline now that the stream is established.
|
|
14886
|
-
for (const n of e.C_) t.
|
|
14886
|
+
for (const n of e.C_) t.T_(n.mutations);
|
|
14887
14887
|
}
|
|
14888
14888
|
|
|
14889
14889
|
async function __PRIVATE_onMutationResult(e, t, n) {
|
|
@@ -15000,7 +15000,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
|
|
|
15000
15000
|
Io: __PRIVATE_onWriteStreamOpen.bind(null, e),
|
|
15001
15001
|
Eo: __PRIVATE_onWriteStreamClose.bind(null, e),
|
|
15002
15002
|
E_: __PRIVATE_onWriteHandshakeComplete.bind(null, e),
|
|
15003
|
-
|
|
15003
|
+
d_: __PRIVATE_onMutationResult.bind(null, e)
|
|
15004
15004
|
}), e.M_.push((async t => {
|
|
15005
15005
|
t ? (e.L_.Xo(),
|
|
15006
15006
|
// This will start the write stream if necessary.
|
|
@@ -15502,10 +15502,10 @@ function __PRIVATE_raiseSnapshotsInSyncEvent(e) {
|
|
|
15502
15502
|
}
|
|
15503
15503
|
/**
|
|
15504
15504
|
* Converts a BundleDocument to a MutableDocument.
|
|
15505
|
-
*/
|
|
15506
|
-
return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.Is(e.metadata.name), this.
|
|
15505
|
+
*/ Ts(e) {
|
|
15506
|
+
return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.Is(e.metadata.name), this.ds(e.metadata.readTime));
|
|
15507
15507
|
}
|
|
15508
|
-
|
|
15508
|
+
ds(e) {
|
|
15509
15509
|
return __PRIVATE_fromVersion(e);
|
|
15510
15510
|
}
|
|
15511
15511
|
}
|
|
@@ -15769,8 +15769,8 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
15769
15769
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15770
15770
|
* See the License for the specific language governing permissions and
|
|
15771
15771
|
* limitations under the License.
|
|
15772
|
-
*/ (e.type, t.type) || this.ua(e.doc, t.doc))), this.
|
|
15773
|
-
const s = t ? this.
|
|
15772
|
+
*/ (e.type, t.type) || this.ua(e.doc, t.doc))), this.Ta(n);
|
|
15773
|
+
const s = t ? this.da() : [], o = 0 === this.aa.size && this.current ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , _ = o !== this._a;
|
|
15774
15774
|
if (this._a = o, 0 !== i.length || _) {
|
|
15775
15775
|
return {
|
|
15776
15776
|
snapshot: new ViewSnapshot(this.query, e.ca, r, i, e.mutatedKeys, 0 /* SyncState.Local */ === o, _,
|
|
@@ -15813,11 +15813,11 @@ class __PRIVATE_RemovedLimboDocument {
|
|
|
15813
15813
|
/**
|
|
15814
15814
|
* Updates syncedDocuments, current, and limbo docs based on the given change.
|
|
15815
15815
|
* Returns the list of changes to which docs are in limbo.
|
|
15816
|
-
*/
|
|
15816
|
+
*/ Ta(e) {
|
|
15817
15817
|
e && (e.addedDocuments.forEach((e => this.oa = this.oa.add(e))), e.modifiedDocuments.forEach((e => {})),
|
|
15818
15818
|
e.removedDocuments.forEach((e => this.oa = this.oa.delete(e))), this.current = e.current);
|
|
15819
15819
|
}
|
|
15820
|
-
|
|
15820
|
+
da() {
|
|
15821
15821
|
// We can only determine limbo documents when we're in-sync with the server.
|
|
15822
15822
|
if (!this.current) return [];
|
|
15823
15823
|
// TODO(klimt): Do this incrementally so that it's not quadratic when
|
|
@@ -18177,7 +18177,7 @@ class Firestore$1 {
|
|
|
18177
18177
|
}
|
|
18178
18178
|
|
|
18179
18179
|
function collection(e, t, ...n) {
|
|
18180
|
-
if (e =
|
|
18180
|
+
if (e = T(e), __PRIVATE_validateNonEmptyArgument("collection", "path", t), e instanceof Firestore$1) {
|
|
18181
18181
|
const r = ResourcePath.fromString(t, ...n);
|
|
18182
18182
|
return __PRIVATE_validateCollectionPath(r), new CollectionReference(e, /* converter= */ null, r);
|
|
18183
18183
|
}
|
|
@@ -18211,7 +18211,7 @@ function collection(e, t, ...n) {
|
|
|
18211
18211
|
}
|
|
18212
18212
|
|
|
18213
18213
|
function doc(e, t, ...n) {
|
|
18214
|
-
if (e =
|
|
18214
|
+
if (e = T(e),
|
|
18215
18215
|
// We allow omission of 'pathString' but explicitly prohibit passing in both
|
|
18216
18216
|
// 'undefined' and 'null'.
|
|
18217
18217
|
1 === arguments.length && (t = __PRIVATE_AutoId.V()), __PRIVATE_validateNonEmptyArgument("doc", "path", t),
|
|
@@ -18235,7 +18235,7 @@ function doc(e, t, ...n) {
|
|
|
18235
18235
|
* @returns true if the references point to the same location in the same
|
|
18236
18236
|
* Firestore database.
|
|
18237
18237
|
*/ function refEqual(e, t) {
|
|
18238
|
-
return e =
|
|
18238
|
+
return e = T(e), t = T(t), (e instanceof DocumentReference || e instanceof CollectionReference) && (t instanceof DocumentReference || t instanceof CollectionReference) && (e.firestore === t.firestore && e.path === t.path && e.converter === t.converter);
|
|
18239
18239
|
}
|
|
18240
18240
|
|
|
18241
18241
|
/**
|
|
@@ -18247,7 +18247,7 @@ function doc(e, t, ...n) {
|
|
|
18247
18247
|
* @returns true if the references point to the same location in the same
|
|
18248
18248
|
* Firestore database.
|
|
18249
18249
|
*/ function queryEqual(e, t) {
|
|
18250
|
-
return e =
|
|
18250
|
+
return e = T(e), t = T(t), e instanceof Query && t instanceof Query && (e.firestore === t.firestore && __PRIVATE_queryEquals(e._query, t._query) && e.converter === t.converter);
|
|
18251
18251
|
}
|
|
18252
18252
|
|
|
18253
18253
|
/**
|
|
@@ -18624,7 +18624,7 @@ class LoadBundleTask {
|
|
|
18624
18624
|
const e = r.getImmediate({
|
|
18625
18625
|
identifier: n
|
|
18626
18626
|
}), i = r.getOptions(n);
|
|
18627
|
-
if (
|
|
18627
|
+
if (d(i, t)) return e;
|
|
18628
18628
|
throw new FirestoreError(v.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.");
|
|
18629
18629
|
}
|
|
18630
18630
|
if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(v.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");
|
|
@@ -19269,13 +19269,13 @@ function __PRIVATE_isWrite(e) {
|
|
|
19269
19269
|
this.settings = e, this.databaseId = t, this.serializer = n, this.ignoreUndefinedProperties = r,
|
|
19270
19270
|
// Minor hack: If fieldTransforms is undefined, we assume this is an
|
|
19271
19271
|
// external call and we need to validate the entire path.
|
|
19272
|
-
void 0 === i && this.
|
|
19272
|
+
void 0 === i && this.Tu(), this.fieldTransforms = i || [], this.fieldMask = s || [];
|
|
19273
19273
|
}
|
|
19274
19274
|
get path() {
|
|
19275
19275
|
return this.settings.path;
|
|
19276
19276
|
}
|
|
19277
|
-
get
|
|
19278
|
-
return this.settings.
|
|
19277
|
+
get du() {
|
|
19278
|
+
return this.settings.du;
|
|
19279
19279
|
}
|
|
19280
19280
|
/** Returns a new context with the specified settings overwritten. */ Eu(e) {
|
|
19281
19281
|
return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
|
|
@@ -19294,7 +19294,7 @@ function __PRIVATE_isWrite(e) {
|
|
|
19294
19294
|
path: n,
|
|
19295
19295
|
Ru: !1
|
|
19296
19296
|
});
|
|
19297
|
-
return r.
|
|
19297
|
+
return r.Tu(), r;
|
|
19298
19298
|
}
|
|
19299
19299
|
fu(e) {
|
|
19300
19300
|
// TODO(b/34871131): We don't support array paths right now; so make path
|
|
@@ -19310,14 +19310,14 @@ function __PRIVATE_isWrite(e) {
|
|
|
19310
19310
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(e) {
|
|
19311
19311
|
return void 0 !== this.fieldMask.find((t => e.isPrefixOf(t))) || void 0 !== this.fieldTransforms.find((t => e.isPrefixOf(t.field)));
|
|
19312
19312
|
}
|
|
19313
|
-
|
|
19313
|
+
Tu() {
|
|
19314
19314
|
// TODO(b/34871131): Remove null check once we have proper paths for fields
|
|
19315
19315
|
// within arrays.
|
|
19316
19316
|
if (this.path) for (let e = 0; e < this.path.length; e++) this.Vu(this.path.get(e));
|
|
19317
19317
|
}
|
|
19318
19318
|
Vu(e) {
|
|
19319
19319
|
if (0 === e.length) throw this.gu("Document fields must not be empty");
|
|
19320
|
-
if (__PRIVATE_isWrite(this.
|
|
19320
|
+
if (__PRIVATE_isWrite(this.du) && ye.test(e)) throw this.gu('Document fields cannot begin and end with "__"');
|
|
19321
19321
|
}
|
|
19322
19322
|
}
|
|
19323
19323
|
|
|
@@ -19330,7 +19330,7 @@ function __PRIVATE_isWrite(e) {
|
|
|
19330
19330
|
}
|
|
19331
19331
|
/** Creates a new top-level parse context. */ wu(e, t, n, r = !1) {
|
|
19332
19332
|
return new __PRIVATE_ParseContextImpl({
|
|
19333
|
-
|
|
19333
|
+
du: e,
|
|
19334
19334
|
methodName: t,
|
|
19335
19335
|
yu: n,
|
|
19336
19336
|
path: FieldPath$1.emptyPath(),
|
|
@@ -19364,7 +19364,7 @@ function __PRIVATE_newUserDataReader(e) {
|
|
|
19364
19364
|
|
|
19365
19365
|
class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
|
|
19366
19366
|
_toFieldTransform(e) {
|
|
19367
|
-
if (2 /* UserDataSource.MergeSet */ !== e.
|
|
19367
|
+
if (2 /* UserDataSource.MergeSet */ !== e.du) throw 1 /* UserDataSource.Update */ === e.du ? e.gu(`${this._methodName}() can only appear at the top level of your update data`) : e.gu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
|
|
19368
19368
|
// No transform to add for a delete, but we need to add it to our
|
|
19369
19369
|
// fieldMask so it gets deleted.
|
|
19370
19370
|
return e.fieldMask.push(e.path), null;
|
|
@@ -19391,7 +19391,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
|
|
|
19391
19391
|
* @param arrayElement - Whether or not the FieldValue has an array.
|
|
19392
19392
|
*/ function __PRIVATE_createSentinelChildContext(e, t, n) {
|
|
19393
19393
|
return new __PRIVATE_ParseContextImpl({
|
|
19394
|
-
|
|
19394
|
+
du: 3 /* UserDataSource.Argument */ ,
|
|
19395
19395
|
yu: t.settings.yu,
|
|
19396
19396
|
methodName: e._methodName,
|
|
19397
19397
|
Ru: n
|
|
@@ -19459,7 +19459,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19459
19459
|
const _ = __PRIVATE_fieldPathFromDotSeparatedString(t, e, n);
|
|
19460
19460
|
// For Compat types, we have to "extract" the underlying types before
|
|
19461
19461
|
// performing validation.
|
|
19462
|
-
r =
|
|
19462
|
+
r = T(r);
|
|
19463
19463
|
const a = i.mu(_);
|
|
19464
19464
|
if (r instanceof __PRIVATE_DeleteFieldValueImpl)
|
|
19465
19465
|
// Add it to the field mask, but don't add anything to updateData.
|
|
@@ -19485,7 +19485,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19485
19485
|
let n = a[e];
|
|
19486
19486
|
// For Compat types, we have to "extract" the underlying types before
|
|
19487
19487
|
// performing validation.
|
|
19488
|
-
n =
|
|
19488
|
+
n = T(n);
|
|
19489
19489
|
const r = o.mu(t);
|
|
19490
19490
|
if (n instanceof __PRIVATE_DeleteFieldValueImpl)
|
|
19491
19491
|
// Add it to the field mask, but don't add anything to updateData.
|
|
@@ -19520,7 +19520,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19520
19520
|
if (__PRIVATE_looksLikeJsonObject(
|
|
19521
19521
|
// Unwrap the API type from the Compat SDK. This will return the API type
|
|
19522
19522
|
// from firestore-exp.
|
|
19523
|
-
e =
|
|
19523
|
+
e = T(e))) return __PRIVATE_validatePlainObject("Unsupported field value:", t, e),
|
|
19524
19524
|
__PRIVATE_parseObject(e, t);
|
|
19525
19525
|
if (e instanceof FieldValue)
|
|
19526
19526
|
// FieldValues usually parse into transforms (except deleteField())
|
|
@@ -19534,7 +19534,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19534
19534
|
*/
|
|
19535
19535
|
return function __PRIVATE_parseSentinelFieldValue(e, t) {
|
|
19536
19536
|
// Sentinels are only supported with writes, and not within arrays.
|
|
19537
|
-
if (!__PRIVATE_isWrite(t.
|
|
19537
|
+
if (!__PRIVATE_isWrite(t.du)) throw t.gu(`${e._methodName}() can only be used with update() and set()`);
|
|
19538
19538
|
if (!t.path) throw t.gu(`${e._methodName}() is not currently supported inside arrays`);
|
|
19539
19539
|
const n = e._toFieldTransform(t);
|
|
19540
19540
|
n && t.fieldTransforms.push(n);
|
|
@@ -19559,7 +19559,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19559
19559
|
// the set of values to be included for the IN query) that may directly
|
|
19560
19560
|
// contain additional arrays (each representing an individual field
|
|
19561
19561
|
// value), so we disable this validation.
|
|
19562
|
-
if (t.settings.Ru && 4 /* UserDataSource.ArrayArgument */ !== t.
|
|
19562
|
+
if (t.settings.Ru && 4 /* UserDataSource.ArrayArgument */ !== t.du) throw t.gu("Nested arrays are not supported");
|
|
19563
19563
|
return function __PRIVATE_parseArray(e, t) {
|
|
19564
19564
|
const n = [];
|
|
19565
19565
|
let r = 0;
|
|
@@ -19580,7 +19580,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
|
19580
19580
|
}(e, t);
|
|
19581
19581
|
}
|
|
19582
19582
|
return function __PRIVATE_parseScalarValue(e, t) {
|
|
19583
|
-
if (null === (e =
|
|
19583
|
+
if (null === (e = T(e))) return {
|
|
19584
19584
|
nullValue: "NULL_VALUE"
|
|
19585
19585
|
};
|
|
19586
19586
|
if ("number" == typeof e) return toNumber(t.serializer, e);
|
|
@@ -19666,7 +19666,7 @@ function __PRIVATE_validatePlainObject(e, t, n) {
|
|
|
19666
19666
|
if ((
|
|
19667
19667
|
// If required, replace the FieldPath Compat class with with the firestore-exp
|
|
19668
19668
|
// FieldPath.
|
|
19669
|
-
t =
|
|
19669
|
+
t = T(t)) instanceof FieldPath) return t._internalPath;
|
|
19670
19670
|
if ("string" == typeof t) return __PRIVATE_fieldPathFromDotSeparatedString(e, t);
|
|
19671
19671
|
throw __PRIVATE_createError("Field path arguments must be of type string or ", e,
|
|
19672
19672
|
/* hasConverter= */ !1,
|
|
@@ -20208,7 +20208,7 @@ function endAt(...e) {
|
|
|
20208
20208
|
}
|
|
20209
20209
|
|
|
20210
20210
|
/** Helper function to create a bound from a document or fields */ function __PRIVATE_newQueryBoundFromDocOrFields(e, t, n, r) {
|
|
20211
|
-
if (n[0] =
|
|
20211
|
+
if (n[0] = T(n[0]), n[0] instanceof DocumentSnapshot$1) return function __PRIVATE_newQueryBoundFromDocument(e, t, n, r, i) {
|
|
20212
20212
|
if (!r) throw new FirestoreError(v.NOT_FOUND, `Can't use a DocumentSnapshot that doesn't exist for ${n}().`);
|
|
20213
20213
|
const s = [];
|
|
20214
20214
|
// Because people expect to continue/end a query at the exact document
|
|
@@ -20264,7 +20264,7 @@ function endAt(...e) {
|
|
|
20264
20264
|
}
|
|
20265
20265
|
|
|
20266
20266
|
function __PRIVATE_parseDocumentIdValue(e, t, n) {
|
|
20267
|
-
if ("string" == typeof (n =
|
|
20267
|
+
if ("string" == typeof (n = T(n))) {
|
|
20268
20268
|
if ("" === n) throw new FirestoreError(v.INVALID_ARGUMENT, "Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");
|
|
20269
20269
|
if (!__PRIVATE_isCollectionGroupQuery(t) && -1 !== n.indexOf("/")) throw new FirestoreError(v.INVALID_ARGUMENT, `Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);
|
|
20270
20270
|
const r = t.path.child(ResourcePath.fromString(n));
|
|
@@ -20526,7 +20526,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
|
|
|
20526
20526
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
20527
20527
|
* otherwise.
|
|
20528
20528
|
*/ function aggregateQuerySnapshotEqual(e, t) {
|
|
20529
|
-
return queryEqual(e.query, t.query) &&
|
|
20529
|
+
return queryEqual(e.query, t.query) && d(e.data(), t.data());
|
|
20530
20530
|
}
|
|
20531
20531
|
|
|
20532
20532
|
/**
|
|
@@ -20895,7 +20895,7 @@ function updateDoc(e, t, n, ...r) {
|
|
|
20895
20895
|
o = "string" == typeof (
|
|
20896
20896
|
// For Compat types, we have to "extract" the underlying types before
|
|
20897
20897
|
// performing validation.
|
|
20898
|
-
t =
|
|
20898
|
+
t = T(t)) || t instanceof FieldPath ? __PRIVATE_parseUpdateVarargs(s, "updateDoc", e._key, t, n, r) : __PRIVATE_parseUpdateData(s, "updateDoc", e._key, t);
|
|
20899
20899
|
return executeWrite(i, [ o.toMutation(e._key, Precondition.exists(!0)) ]);
|
|
20900
20900
|
}
|
|
20901
20901
|
|
|
@@ -20925,7 +20925,7 @@ function updateDoc(e, t, n, ...r) {
|
|
|
20925
20925
|
|
|
20926
20926
|
function onSnapshot(e, ...t) {
|
|
20927
20927
|
var n, r, i;
|
|
20928
|
-
e =
|
|
20928
|
+
e = T(e);
|
|
20929
20929
|
let s = {
|
|
20930
20930
|
includeMetadataChanges: !1
|
|
20931
20931
|
}, o = 0;
|
|
@@ -21306,7 +21306,7 @@ class WriteBatch {
|
|
|
21306
21306
|
// For Compat types, we have to "extract" the underlying types before
|
|
21307
21307
|
// performing validation.
|
|
21308
21308
|
let s;
|
|
21309
|
-
return s = "string" == typeof (t =
|
|
21309
|
+
return s = "string" == typeof (t = T(t)) || t instanceof FieldPath ? __PRIVATE_parseUpdateVarargs(this._dataReader, "WriteBatch.update", i._key, t, n, r) : __PRIVATE_parseUpdateData(this._dataReader, "WriteBatch.update", i._key, t),
|
|
21310
21310
|
this._mutations.push(s.toMutation(i._key, Precondition.exists(!0))), this;
|
|
21311
21311
|
}
|
|
21312
21312
|
/**
|
|
@@ -21340,7 +21340,7 @@ class WriteBatch {
|
|
|
21340
21340
|
}
|
|
21341
21341
|
|
|
21342
21342
|
function __PRIVATE_validateReference(e, t) {
|
|
21343
|
-
if ((e =
|
|
21343
|
+
if ((e = T(e)).firestore !== t) throw new FirestoreError(v.INVALID_ARGUMENT, "Provided document reference is from a different Firestore instance.");
|
|
21344
21344
|
return e;
|
|
21345
21345
|
}
|
|
21346
21346
|
|
|
@@ -21421,7 +21421,7 @@ class Transaction extends class Transaction$1 {
|
|
|
21421
21421
|
// For Compat types, we have to "extract" the underlying types before
|
|
21422
21422
|
// performing validation.
|
|
21423
21423
|
let s;
|
|
21424
|
-
return s = "string" == typeof (t =
|
|
21424
|
+
return s = "string" == typeof (t = T(t)) || t instanceof FieldPath ? __PRIVATE_parseUpdateVarargs(this._dataReader, "Transaction.update", i._key, t, n, r) : __PRIVATE_parseUpdateData(this._dataReader, "Transaction.update", i._key, t),
|
|
21425
21425
|
this._transaction.update(i._key, s), this;
|
|
21426
21426
|
}
|
|
21427
21427
|
/**
|
|
@@ -21844,9 +21844,9 @@ let De = null;
|
|
|
21844
21844
|
return r = Object.assign({
|
|
21845
21845
|
useFetchStreams: t
|
|
21846
21846
|
}, r), s._setSettings(r), s;
|
|
21847
|
-
}), "PUBLIC").setMultipleInstances(!0)), r(b, "4.1.3-canary.
|
|
21847
|
+
}), "PUBLIC").setMultipleInstances(!0)), r(b, "4.1.3-canary.74fc4cf9c", e),
|
|
21848
21848
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21849
|
-
r(b, "4.1.3-canary.
|
|
21849
|
+
r(b, "4.1.3-canary.74fc4cf9c", "esm2017");
|
|
21850
21850
|
}("rn", /* useFetchStreams= */ !1);
|
|
21851
21851
|
|
|
21852
21852
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, pe 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, WriteBatch, 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, __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, waitForPendingWrites, where, writeBatch };
|
|
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let d = "10.3.1-canary.
|
|
66
|
+
let d = "10.3.1-canary.74fc4cf9c";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -7230,7 +7230,7 @@ class Transaction {
|
|
|
7230
7230
|
return r && i._setSettings(r), i;
|
|
7231
7231
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7232
7232
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7233
|
-
registerVersion("firestore-lite", "4.1.3-canary.
|
|
7233
|
+
registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm2017");
|
|
7234
7234
|
}();
|
|
7235
7235
|
|
|
7236
7236
|
export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
|
|
@@ -67,7 +67,7 @@ v.MOCK_USER = new v("mock-user");
|
|
|
67
67
|
* See the License for the specific language governing permissions and
|
|
68
68
|
* limitations under the License.
|
|
69
69
|
*/
|
|
70
|
-
var g = "10.3.1-canary.
|
|
70
|
+
var g = "10.3.1-canary.74fc4cf9c", w = new l("@firebase/firestore");
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -6730,7 +6730,7 @@ yi = "".concat(i, "_lite"), g = yi, o(new c("firestore/lite", (function(t, e) {
|
|
|
6730
6730
|
return r && o._setSettings(r), o;
|
|
6731
6731
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
6732
6732
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6733
|
-
a("firestore-lite", "4.1.3-canary.
|
|
6733
|
+
a("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), a("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm5");
|
|
6734
6734
|
|
|
6735
6735
|
export { kn as AggregateField, In as AggregateQuerySnapshot, Rn as Bytes, Fn as CollectionReference, Pn as DocumentReference, hr as DocumentSnapshot, xn as FieldPath, Ln as FieldValue, _n as Firestore, B as FirestoreError, jn as GeoPoint, An as Query, Tr as QueryCompositeFilterConstraint, gr as QueryConstraint, pr as QueryDocumentSnapshot, Dr as QueryEndAtConstraint, _r as QueryFieldFilterConstraint, Ar as QueryLimitConstraint, kr as QueryOrderByConstraint, dr as QuerySnapshot, Or as QueryStartAtConstraint, Dt as Timestamp, gi as Transaction, si as WriteBatch, Hr as addDoc, ei as aggregateFieldEqual, ni as aggregateQuerySnapshotEqual, Sr as and, ai as arrayRemove, oi as arrayUnion, Zr as average, On as collection, Vn as collectionGroup, En as connectFirestoreEmulator, ti as count, Yr as deleteDoc, ri as deleteField, Nn as doc, Cn as documentId, Rr as endAt, qr as endBefore, Xr as getAggregate, Jr as getCount, Kr as getDoc, Gr as getDocs, Tn as getFirestore, ui as increment, bn as initializeFirestore, Pr as limit, Fr as limitToLast, Er as or, Ir as orderBy, wr as query, qn as queryEqual, Dn as refEqual, wi as runTransaction, ii as serverTimestamp, Qr as setDoc, _ as setLogLevel, yr as snapshotEqual, Nr as startAfter, Vr as startAt, $r as sum, Sn as terminate, Wr as updateDoc, br as where, li as writeBatch };
|
|
6736
6736
|
//# sourceMappingURL=index.browser.esm5.js.map
|
package/dist/lite/index.cjs.js
CHANGED
|
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let d = "10.3.1-canary.
|
|
66
|
+
let d = "10.3.1-canary.74fc4cf9c";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -7230,7 +7230,7 @@ class Transaction {
|
|
|
7230
7230
|
return r && i._setSettings(r), i;
|
|
7231
7231
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7232
7232
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7233
|
-
registerVersion("firestore-lite", "4.1.3-canary.
|
|
7233
|
+
registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", "cjs2017");
|
|
7234
7234
|
}();
|
|
7235
7235
|
|
|
7236
7236
|
export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
|
|
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
|
|
15
15
|
var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
|
|
16
16
|
|
|
17
|
-
const version$1 = "4.1.3-canary.
|
|
17
|
+
const version$1 = "4.1.3-canary.74fc4cf9c";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
67
67
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
68
68
|
User.MOCK_USER = new User('mock-user');
|
|
69
69
|
|
|
70
|
-
const version = "10.3.1-canary.
|
|
70
|
+
const version = "10.3.1-canary.74fc4cf9c";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
package/dist/lite/index.node.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, createMockUserToken,
|
|
|
6
6
|
import nodeFetch from 'node-fetch';
|
|
7
7
|
import { randomBytes as randomBytes$1 } from 'crypto';
|
|
8
8
|
|
|
9
|
-
const version$1 = "4.1.3-canary.
|
|
9
|
+
const version$1 = "4.1.3-canary.74fc4cf9c";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
59
59
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
60
60
|
User.MOCK_USER = new User('mock-user');
|
|
61
61
|
|
|
62
|
-
const version = "10.3.1-canary.
|
|
62
|
+
const version = "10.3.1-canary.74fc4cf9c";
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let E = "10.3.1-canary.
|
|
69
|
+
let E = "10.3.1-canary.74fc4cf9c";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -7240,7 +7240,7 @@ class Transaction {
|
|
|
7240
7240
|
return r && i._setSettings(r), i;
|
|
7241
7241
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7242
7242
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7243
|
-
n("firestore-lite", "4.1.3-canary.
|
|
7243
|
+
n("firestore-lite", "4.1.3-canary.74fc4cf9c", "rn"), n("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm2017");
|
|
7244
7244
|
}();
|
|
7245
7245
|
|
|
7246
7246
|
export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "4.1.3-canary.
|
|
3
|
+
"version": "4.1.3-canary.74fc4cf9c",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -96,22 +96,22 @@
|
|
|
96
96
|
"lite/package.json"
|
|
97
97
|
],
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@firebase/component": "0.6.4-canary.
|
|
100
|
-
"@firebase/logger": "0.4.0-canary.
|
|
101
|
-
"@firebase/util": "1.9.3-canary.
|
|
102
|
-
"@firebase/webchannel-wrapper": "0.10.2-canary.
|
|
99
|
+
"@firebase/component": "0.6.4-canary.74fc4cf9c",
|
|
100
|
+
"@firebase/logger": "0.4.0-canary.74fc4cf9c",
|
|
101
|
+
"@firebase/util": "1.9.3-canary.74fc4cf9c",
|
|
102
|
+
"@firebase/webchannel-wrapper": "0.10.2-canary.74fc4cf9c",
|
|
103
103
|
"@grpc/grpc-js": "~1.9.0",
|
|
104
104
|
"@grpc/proto-loader": "^0.7.8",
|
|
105
105
|
"node-fetch": "2.6.7",
|
|
106
106
|
"tslib": "^2.1.0"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
|
-
"@firebase/app": "0.9.18-canary.
|
|
109
|
+
"@firebase/app": "0.9.18-canary.74fc4cf9c"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@firebase/app": "0.9.18-canary.
|
|
113
|
-
"@firebase/app-compat": "0.2.18-canary.
|
|
114
|
-
"@firebase/auth": "1.3.0-canary.
|
|
112
|
+
"@firebase/app": "0.9.18-canary.74fc4cf9c",
|
|
113
|
+
"@firebase/app-compat": "0.2.18-canary.74fc4cf9c",
|
|
114
|
+
"@firebase/auth": "1.3.0-canary.74fc4cf9c",
|
|
115
115
|
"@rollup/plugin-alias": "3.1.9",
|
|
116
116
|
"@rollup/plugin-json": "4.1.0",
|
|
117
117
|
"@types/eslint": "7.29.0",
|