@firebase/firestore 4.1.0-canary.66cebfb6b → 4.1.0-canary.80a7f7cd1
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 +3 -3
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm5.js +29 -29
- 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 b = "10.1.0-canary.
|
|
73
|
+
let b = "10.1.0-canary.80a7f7cd1";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -21551,9 +21551,9 @@ function __PRIVATE_tryGetString(e, t) {
|
|
|
21551
21551
|
return r = Object.assign({
|
|
21552
21552
|
useFetchStreams: t
|
|
21553
21553
|
}, r), s._setSettings(r), s;
|
|
21554
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.1.0-canary.
|
|
21554
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.1.0-canary.80a7f7cd1", e),
|
|
21555
21555
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21556
|
-
app.registerVersion(S, "4.1.0-canary.
|
|
21556
|
+
app.registerVersion(S, "4.1.0-canary.80a7f7cd1", "cjs2017");
|
|
21557
21557
|
}();
|
|
21558
21558
|
|
|
21559
21559
|
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 b = "10.1.0-canary.
|
|
69
|
+
let b = "10.1.0-canary.80a7f7cd1";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -21547,9 +21547,9 @@ function __PRIVATE_tryGetString(e, t) {
|
|
|
21547
21547
|
return r = Object.assign({
|
|
21548
21548
|
useFetchStreams: t
|
|
21549
21549
|
}, r), s._setSettings(r), s;
|
|
21550
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(S, "4.1.0-canary.
|
|
21550
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(S, "4.1.0-canary.80a7f7cd1", e),
|
|
21551
21551
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21552
|
-
registerVersion(S, "4.1.0-canary.
|
|
21552
|
+
registerVersion(S, "4.1.0-canary.80a7f7cd1", "esm2017");
|
|
21553
21553
|
}();
|
|
21554
21554
|
|
|
21555
21555
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, ge as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, 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, __PRIVATE_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, deleteDoc, deleteField, disableNetwork, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, 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 @@ P.MOCK_USER = new P("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
var O = "10.1.0-canary.
|
|
73
|
+
var O = "10.1.0-canary.80a7f7cd1", R = new l("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -22214,9 +22214,9 @@ function qf(t, e) {
|
|
|
22214
22214
|
return r = Object.assign({
|
|
22215
22215
|
useFetchStreams: Nf
|
|
22216
22216
|
}, r), o._setSettings(r), o;
|
|
22217
|
-
}), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.0-canary.
|
|
22217
|
+
}), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.0-canary.80a7f7cd1", Cf),
|
|
22218
22218
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
22219
|
-
a(A, "4.1.0-canary.
|
|
22219
|
+
a(A, "4.1.0-canary.80a7f7cd1", "esm5");
|
|
22220
22220
|
|
|
22221
22221
|
export { Fh as AbstractUserDataWriter, xl as AggregateField, Cl as AggregateQuerySnapshot, Nl as Bytes, ll as CACHE_SIZE_UNLIMITED, el as CollectionReference, tl as DocumentReference, Kh as DocumentSnapshot, kl as FieldPath, Pl as FieldValue, hl as Firestore, Q as FirestoreError, Ol as GeoPoint, cl as LoadBundleTask, $c as Query, vh as QueryCompositeFilterConstraint, hh as QueryConstraint, jh as QueryDocumentSnapshot, Dh as QueryEndAtConstraint, dh as QueryFieldFilterConstraint, bh as QueryLimitConstraint, gh as QueryOrderByConstraint, Qh as QuerySnapshot, Eh as QueryStartAtConstraint, zh as SnapshotMetadata, st as Timestamp, kf as Transaction, Df as WriteBatch, Pe as _ByteString, Be as _DatabaseId, pt as _DocumentKey, nt as _EmptyAppCheckTokenProvider, J as _EmptyAuthCredentialsProvider, dt as _FieldPath, hi as _TestingHooks, Hc as _cast, z as _debugAssert, Ae as _isBase64Available, q as _logWarn, Kc as _validateIsNotUsedTogether, af as addDoc, Bh as aggregateFieldEqual, Gh as aggregateQuerySnapshotEqual, yh as and, Ff as arrayRemove, Rf as arrayUnion, qh as average, wl as clearIndexedDbPersistence, nl as collection, rl as collectionGroup, Zc as connectFirestoreEmulator, Uh as count, of as deleteDoc, Pf as deleteField, _l as disableNetwork, il as doc, Al as documentId, ml as enableIndexedDbPersistence, yl as enableMultiTabIndexedDbPersistence, Il as enableNetwork, Ch as endAt, xh as endBefore, pl as ensureFirestoreConfigured, cf as executeWrite, ff as getAggregateFromServer, hf as getCountFromServer, Jh as getDoc, Xh as getDocFromCache, Zh as getDocFromServer, $h as getDocs, tf as getDocsFromCache, ef as getDocsFromServer, dl as getFirestore, Mf 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, Af as runTransaction, Of as serverTimestamp, nf as setDoc, Lf as setIndexConfiguration, M 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, Vf as writeBatch };
|
|
22222
22222
|
//# 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.0-canary.
|
|
37
|
+
const version$1 = "4.1.0-canary.80a7f7cd1";
|
|
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.1.0-canary.
|
|
90
|
+
const version = "10.1.0-canary.80a7f7cd1";
|
|
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.0-canary.
|
|
12
|
+
const version$1 = "4.1.0-canary.80a7f7cd1";
|
|
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.1.0-canary.
|
|
65
|
+
const version = "10.1.0-canary.80a7f7cd1";
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
package/dist/index.rn.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 v = "10.1.0-canary.
|
|
73
|
+
let v = "10.1.0-canary.80a7f7cd1";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -21569,9 +21569,9 @@ function __PRIVATE_tryGetString(e, t) {
|
|
|
21569
21569
|
return r = Object.assign({
|
|
21570
21570
|
useFetchStreams: t
|
|
21571
21571
|
}, r), s._setSettings(r), s;
|
|
21572
|
-
}), "PUBLIC").setMultipleInstances(!0)), r(D, "4.1.0-canary.
|
|
21572
|
+
}), "PUBLIC").setMultipleInstances(!0)), r(D, "4.1.0-canary.80a7f7cd1", e),
|
|
21573
21573
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21574
|
-
r(D, "4.1.0-canary.
|
|
21574
|
+
r(D, "4.1.0-canary.80a7f7cd1", "esm2017");
|
|
21575
21575
|
}("rn", /* useFetchStreams= */ !1);
|
|
21576
21576
|
|
|
21577
21577
|
export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, ye as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, 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, __PRIVATE_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, deleteDoc, deleteField, disableNetwork, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, 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.1.0-canary.
|
|
66
|
+
let d = "10.1.0-canary.80a7f7cd1";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -7205,7 +7205,7 @@ class Transaction {
|
|
|
7205
7205
|
return r && i._setSettings(r), i;
|
|
7206
7206
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7207
7207
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7208
|
-
registerVersion("firestore-lite", "4.1.0-canary.
|
|
7208
|
+
registerVersion("firestore-lite", "4.1.0-canary.80a7f7cd1", ""), registerVersion("firestore-lite", "4.1.0-canary.80a7f7cd1", "esm2017");
|
|
7209
7209
|
}();
|
|
7210
7210
|
|
|
7211
7211
|
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.1.0-canary.
|
|
70
|
+
var g = "10.1.0-canary.80a7f7cd1", w = new l("@firebase/firestore");
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -98,11 +98,11 @@ var g = "10.1.0-canary.66cebfb6b", w = new l("@firebase/firestore");
|
|
|
98
98
|
* <li><code>`silent` to turn off logging.</li>
|
|
99
99
|
* </ul>
|
|
100
100
|
*/
|
|
101
|
-
function
|
|
101
|
+
function _(t) {
|
|
102
102
|
w.setLogLevel(t);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function
|
|
105
|
+
function b(t) {
|
|
106
106
|
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
107
107
|
if (w.logLevel <= f.DEBUG) {
|
|
108
108
|
var i = e.map(S);
|
|
@@ -995,13 +995,13 @@ var wt = /** @class */ function(r) {
|
|
|
995
995
|
}), t.prototype.R = function(t, e, n, r, i) {
|
|
996
996
|
var o = (null === ht ? ht = 268435456 + Math.round(2147483648 * Math.random()) : ht++,
|
|
997
997
|
"0x" + ht.toString(16)), a = this.I(t, e);
|
|
998
|
-
|
|
998
|
+
b("RestConnection", "Sending RPC '".concat(t, "' ").concat(o, ":"), a, n);
|
|
999
999
|
var u = {
|
|
1000
1000
|
"google-cloud-resource-prefix": this.A,
|
|
1001
1001
|
"x-goog-request-params": this.T
|
|
1002
1002
|
};
|
|
1003
1003
|
return this.V(u, r, i), this.p(t, a, u, n).then((function(e) {
|
|
1004
|
-
return
|
|
1004
|
+
return b("RestConnection", "Received RPC '".concat(t, "' ").concat(o, ": "), e),
|
|
1005
1005
|
e;
|
|
1006
1006
|
}), (function(e) {
|
|
1007
1007
|
throw E("RestConnection", "RPC '".concat(t, "' ").concat(o, " failed with error: "), e, "url: ", a, "request:", n),
|
|
@@ -1032,7 +1032,7 @@ var wt = /** @class */ function(r) {
|
|
|
1032
1032
|
var n = vt[t];
|
|
1033
1033
|
return "".concat(this.m, "/v1/").concat(e, ":").concat(n);
|
|
1034
1034
|
}, t;
|
|
1035
|
-
}()),
|
|
1035
|
+
}()), _t = function(t, e, n) {
|
|
1036
1036
|
this.alias = t, this.D = e, this.fieldPath = n;
|
|
1037
1037
|
};
|
|
1038
1038
|
|
|
@@ -1093,7 +1093,7 @@ var wt = /** @class */ function(r) {
|
|
|
1093
1093
|
*
|
|
1094
1094
|
* If `nBytes < 0` , an error will be thrown.
|
|
1095
1095
|
*/
|
|
1096
|
-
function
|
|
1096
|
+
function bt(t) {
|
|
1097
1097
|
// Polyfills for IE and WebWorker by using `self` and `msCrypto` when `crypto` is not available.
|
|
1098
1098
|
var e =
|
|
1099
1099
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1126,7 +1126,7 @@ function _t(t) {
|
|
|
1126
1126
|
// Alphanumeric characters
|
|
1127
1127
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length, n = ""
|
|
1128
1128
|
// The largest byte value that is a multiple of `char.length`.
|
|
1129
|
-
; n.length < 20; ) for (var r =
|
|
1129
|
+
; n.length < 20; ) for (var r = bt(40), i = 0; i < r.length; ++i)
|
|
1130
1130
|
// Only accept values that are [0, maxMultiple), this ensures they can
|
|
1131
1131
|
// be evenly mapped to indices of `chars` via a modulo operation.
|
|
1132
1132
|
n.length < 20 && r[i] < e && (n += t.charAt(r[i] % t.length));
|
|
@@ -2712,7 +2712,7 @@ var ye = /** @class */ function() {
|
|
|
2712
2712
|
}, t.prototype.toString = function() {
|
|
2713
2713
|
return "Document(".concat(this.key, ", ").concat(this.version, ", ").concat(JSON.stringify(this.data.value), ", {createTime: ").concat(this.createTime, "}), {documentType: ").concat(this.documentType, "}), {documentState: ").concat(this.documentState, "})");
|
|
2714
2714
|
}, t;
|
|
2715
|
-
}(),
|
|
2715
|
+
}(), _e = function(t, e, n, r, i, o, a) {
|
|
2716
2716
|
void 0 === e && (e = null), void 0 === n && (n = []), void 0 === r && (r = []),
|
|
2717
2717
|
void 0 === i && (i = null), void 0 === o && (o = null), void 0 === a && (a = null),
|
|
2718
2718
|
this.path = t, this.collectionGroup = e, this.orderBy = n, this.filters = r, this.limit = i,
|
|
@@ -2727,10 +2727,10 @@ var ye = /** @class */ function() {
|
|
|
2727
2727
|
* using this factory method, because `Query` provides an implicit `orderBy`
|
|
2728
2728
|
* property.
|
|
2729
2729
|
*/
|
|
2730
|
-
function
|
|
2730
|
+
function be(t, e, n, r, i, o, a) {
|
|
2731
2731
|
return void 0 === e && (e = null), void 0 === n && (n = []), void 0 === r && (r = []),
|
|
2732
2732
|
void 0 === i && (i = null), void 0 === o && (o = null), void 0 === a && (a = null),
|
|
2733
|
-
new
|
|
2733
|
+
new _e(t, e, n, r, i, o, a);
|
|
2734
2734
|
}
|
|
2735
2735
|
|
|
2736
2736
|
/**
|
|
@@ -2826,7 +2826,7 @@ function Se(t) {
|
|
|
2826
2826
|
* Converts this `Query` instance to it's corresponding `Target` representation.
|
|
2827
2827
|
*/ function Ae(t) {
|
|
2828
2828
|
var e = A(t);
|
|
2829
|
-
if (!e.B) if ("F" /* LimitType.First */ === e.limitType) e.B =
|
|
2829
|
+
if (!e.B) if ("F" /* LimitType.First */ === e.limitType) e.B = be(e.path, e.collectionGroup, Ie(e), e.filters, e.limit, e.startAt, e.endAt); else {
|
|
2830
2830
|
for (
|
|
2831
2831
|
// Flip the orderBy directions since we want the last results
|
|
2832
2832
|
var n = [], r = 0, i = Ie(e); r < i.length; r++) {
|
|
@@ -2836,7 +2836,7 @@ function Se(t) {
|
|
|
2836
2836
|
// We need to swap the cursors to match the now-flipped query ordering.
|
|
2837
2837
|
var u = e.endAt ? new Yt(e.endAt.position, e.endAt.inclusive) : null, s = e.startAt ? new Yt(e.startAt.position, e.startAt.inclusive) : null;
|
|
2838
2838
|
// Now return as a LimitType.First query.
|
|
2839
|
-
e.B =
|
|
2839
|
+
e.B = be(e.path, e.collectionGroup, n, e.filters, e.limit, u, s);
|
|
2840
2840
|
}
|
|
2841
2841
|
return e.B;
|
|
2842
2842
|
}
|
|
@@ -3331,7 +3331,7 @@ function ln(t) {
|
|
|
3331
3331
|
// honored as such).
|
|
3332
3332
|
var n = Math.floor(this.j + this.J()), r = Math.max(0, Date.now() - this.K), i = Math.max(0, n - r);
|
|
3333
3333
|
// Guard against lastAttemptTime being in the future due to a clock change.
|
|
3334
|
-
i > 0 &&
|
|
3334
|
+
i > 0 && b("ExponentialBackoff", "Backing off for ".concat(i, " ms (base delay: ").concat(this.j, " ms, delay with jitter: ").concat(n, " ms, last attempt: ").concat(r, " ms ago)")),
|
|
3335
3335
|
this.W = this.L.enqueueAfterDelay(this.timerId, i, (function() {
|
|
3336
3336
|
return e.K = Date.now(), t();
|
|
3337
3337
|
})),
|
|
@@ -3540,7 +3540,7 @@ var mn = new Map;
|
|
|
3540
3540
|
*/ function vn(t) {
|
|
3541
3541
|
if (t._terminated) throw new B(x, "The client has already been terminated.");
|
|
3542
3542
|
if (!mn.has(t)) {
|
|
3543
|
-
|
|
3543
|
+
b("ComponentProvider", "Initializing Datastore");
|
|
3544
3544
|
var e = function(t) {
|
|
3545
3545
|
return new wt(t, fetch.bind(null));
|
|
3546
3546
|
}(function(t, e, n, r) {
|
|
@@ -3666,13 +3666,13 @@ var mn = new Map;
|
|
|
3666
3666
|
* Only ever called once.
|
|
3667
3667
|
*/
|
|
3668
3668
|
t.prototype._terminate = function() {
|
|
3669
|
-
return t = this, (e = mn.get(t)) && (
|
|
3669
|
+
return t = this, (e = mn.get(t)) && (b("ComponentProvider", "Removing Datastore"),
|
|
3670
3670
|
mn.delete(t), e.terminate()), Promise.resolve();
|
|
3671
3671
|
var t, e;
|
|
3672
3672
|
}, t;
|
|
3673
3673
|
}();
|
|
3674
3674
|
|
|
3675
|
-
function
|
|
3675
|
+
function _n(t, e, n) {
|
|
3676
3676
|
n || (n = "(default)");
|
|
3677
3677
|
var r = _getProvider(t, "firestore/lite");
|
|
3678
3678
|
if (r.isInitialized(n)) throw new B(x, "Firestore can only be initialized once per app.");
|
|
@@ -3682,7 +3682,7 @@ function bn(t, e, n) {
|
|
|
3682
3682
|
});
|
|
3683
3683
|
}
|
|
3684
3684
|
|
|
3685
|
-
function
|
|
3685
|
+
function bn(t, e) {
|
|
3686
3686
|
var n = "object" == typeof t ? t : u(), i = "string" == typeof t ? t : e || "(default)", o = _getProvider(n, "firestore/lite").getImmediate({
|
|
3687
3687
|
identifier: i
|
|
3688
3688
|
});
|
|
@@ -4942,7 +4942,7 @@ function yr(t, e) {
|
|
|
4942
4942
|
var i = [];
|
|
4943
4943
|
e instanceof mr && i.push(e), function(t) {
|
|
4944
4944
|
var e = t.filter((function(t) {
|
|
4945
|
-
return t instanceof
|
|
4945
|
+
return t instanceof br;
|
|
4946
4946
|
})).length, n = t.filter((function(t) {
|
|
4947
4947
|
return t instanceof wr;
|
|
4948
4948
|
})).length;
|
|
@@ -5012,7 +5012,7 @@ function yr(t, e) {
|
|
|
5012
5012
|
* "<=", "!=").
|
|
5013
5013
|
* @param value - The value for comparison
|
|
5014
5014
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
5015
|
-
*/ function
|
|
5015
|
+
*/ function _r(t, e, n) {
|
|
5016
5016
|
var r = e, i = yr("where", t);
|
|
5017
5017
|
return wr._create(i, r, n);
|
|
5018
5018
|
}
|
|
@@ -5024,7 +5024,7 @@ function yr(t, e) {
|
|
|
5024
5024
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
5025
5025
|
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
5026
5026
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
5027
|
-
*/ var
|
|
5027
|
+
*/ var br = /** @class */ function(e) {
|
|
5028
5028
|
/**
|
|
5029
5029
|
* @internal
|
|
5030
5030
|
*/
|
|
@@ -5072,7 +5072,7 @@ function yr(t, e) {
|
|
|
5072
5072
|
// Only support QueryFilterConstraints
|
|
5073
5073
|
return t.forEach((function(t) {
|
|
5074
5074
|
return Mr("or", t);
|
|
5075
|
-
})),
|
|
5075
|
+
})), br._create("or" /* CompositeOperator.OR */ , t)
|
|
5076
5076
|
/**
|
|
5077
5077
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
5078
5078
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -5090,7 +5090,7 @@ function Er() {
|
|
|
5090
5090
|
// Only support QueryFilterConstraints
|
|
5091
5091
|
return t.forEach((function(t) {
|
|
5092
5092
|
return Mr("and", t);
|
|
5093
|
-
})),
|
|
5093
|
+
})), br._create("and" /* CompositeOperator.AND */ , t)
|
|
5094
5094
|
/**
|
|
5095
5095
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
5096
5096
|
* Firestore query. `QueryOrderByConstraint`s are created by invoking
|
|
@@ -5394,7 +5394,7 @@ function Lr(t, e, n) {
|
|
|
5394
5394
|
}
|
|
5395
5395
|
|
|
5396
5396
|
function Mr(t, e) {
|
|
5397
|
-
if (!(e instanceof wr || e instanceof
|
|
5397
|
+
if (!(e instanceof wr || e instanceof br)) throw new B(V, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
|
|
5398
5398
|
}
|
|
5399
5399
|
|
|
5400
5400
|
/**
|
|
@@ -5717,7 +5717,7 @@ function Qr(t, e, n) {
|
|
|
5717
5717
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.push(e(t[r], r, t));
|
|
5718
5718
|
return n;
|
|
5719
5719
|
}(r, (function(t, e) {
|
|
5720
|
-
return new
|
|
5720
|
+
return new _t(e, t._aggregateType, t._internalFieldPath);
|
|
5721
5721
|
}));
|
|
5722
5722
|
// Run the aggregation and convert the results
|
|
5723
5723
|
return function(t, r, i) {
|
|
@@ -6399,7 +6399,7 @@ function si(t, e) {
|
|
|
6399
6399
|
// after page comes into foreground.
|
|
6400
6400
|
this.St = function() {
|
|
6401
6401
|
var e = pi();
|
|
6402
|
-
e &&
|
|
6402
|
+
e && b("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.Tt.Y();
|
|
6403
6403
|
};
|
|
6404
6404
|
var e = pi();
|
|
6405
6405
|
e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.St);
|
|
@@ -6470,7 +6470,7 @@ function si(t, e) {
|
|
|
6470
6470
|
case 3:
|
|
6471
6471
|
if (t = n.sent(), "IndexedDbTransactionError" !== t.name) throw t;
|
|
6472
6472
|
// Failure will be handled by AsyncQueue
|
|
6473
|
-
return
|
|
6473
|
+
return b("AsyncQueue", "Operation failed with retryable error: " + t),
|
|
6474
6474
|
[ 3 /*break*/ , 4 ];
|
|
6475
6475
|
|
|
6476
6476
|
case 4:
|
|
@@ -6703,7 +6703,7 @@ di = "".concat(i, "_lite"), g = di, o(new c("firestore/lite", (function(t, e) {
|
|
|
6703
6703
|
return r && o._setSettings(r), o;
|
|
6704
6704
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
6705
6705
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6706
|
-
a("firestore-lite", "4.1.0-canary.
|
|
6706
|
+
a("firestore-lite", "4.1.0-canary.80a7f7cd1", ""), a("firestore-lite", "4.1.0-canary.80a7f7cd1", "esm5");
|
|
6707
6707
|
|
|
6708
|
-
export { Sn as AggregateField, kn as AggregateQuerySnapshot, qn as Bytes, Pn as CollectionReference, An as DocumentReference, fr as DocumentSnapshot, Rn as FieldPath, Cn as FieldValue, wn as Firestore, B as FirestoreError, jn as GeoPoint, In as Query,
|
|
6708
|
+
export { Sn as AggregateField, kn as AggregateQuerySnapshot, qn as Bytes, Pn as CollectionReference, An as DocumentReference, fr as DocumentSnapshot, Rn as FieldPath, Cn as FieldValue, wn as Firestore, B as FirestoreError, jn as GeoPoint, In as Query, br as QueryCompositeFilterConstraint, vr as QueryConstraint, hr as QueryDocumentSnapshot, Nr as QueryEndAtConstraint, wr as QueryFieldFilterConstraint, Ir as QueryLimitConstraint, Sr as QueryOrderByConstraint, pr as QuerySnapshot, Fr as QueryStartAtConstraint, Dt as Timestamp, vi as Transaction, ui as WriteBatch, Hr as addDoc, ti as aggregateFieldEqual, ei as aggregateQuerySnapshotEqual, Er as and, oi as arrayRemove, ii as arrayUnion, Zr as average, Fn as collection, Vn as collectionGroup, Tn as connectFirestoreEmulator, $r as count, Wr as deleteDoc, ni as deleteField, On as doc, xn as documentId, qr as endAt, Dr as endBefore, Jr as getAggregate, Yr as getCount, zr as getDoc, Kr as getDocs, bn as getFirestore, ai as increment, _n as initializeFirestore, Ar as limit, Pr as limitToLast, Tr as or, kr as orderBy, gr as query, Dn as queryEqual, Nn as refEqual, gi as runTransaction, ri as serverTimestamp, Gr as setDoc, _ as setLogLevel, dr as snapshotEqual, Or as startAfter, Vr as startAt, Xr as sum, En as terminate, Qr as updateDoc, _r as where, ci as writeBatch };
|
|
6709
6709
|
//# 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.1.0-canary.
|
|
66
|
+
let d = "10.1.0-canary.80a7f7cd1";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -7205,7 +7205,7 @@ class Transaction {
|
|
|
7205
7205
|
return r && i._setSettings(r), i;
|
|
7206
7206
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7207
7207
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7208
|
-
registerVersion("firestore-lite", "4.1.0-canary.
|
|
7208
|
+
registerVersion("firestore-lite", "4.1.0-canary.80a7f7cd1", ""), registerVersion("firestore-lite", "4.1.0-canary.80a7f7cd1", "cjs2017");
|
|
7209
7209
|
}();
|
|
7210
7210
|
|
|
7211
7211
|
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.0-canary.
|
|
17
|
+
const version$1 = "4.1.0-canary.80a7f7cd1";
|
|
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.1.0-canary.
|
|
70
|
+
const version = "10.1.0-canary.80a7f7cd1";
|
|
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.0-canary.
|
|
9
|
+
const version$1 = "4.1.0-canary.80a7f7cd1";
|
|
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.1.0-canary.
|
|
62
|
+
const version = "10.1.0-canary.80a7f7cd1";
|
|
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.1.0-canary.
|
|
69
|
+
let E = "10.1.0-canary.80a7f7cd1";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -7215,7 +7215,7 @@ class Transaction {
|
|
|
7215
7215
|
return r && i._setSettings(r), i;
|
|
7216
7216
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
7217
7217
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
7218
|
-
n("firestore-lite", "4.1.0-canary.
|
|
7218
|
+
n("firestore-lite", "4.1.0-canary.80a7f7cd1", "rn"), n("firestore-lite", "4.1.0-canary.80a7f7cd1", "esm2017");
|
|
7219
7219
|
}();
|
|
7220
7220
|
|
|
7221
7221
|
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.0-canary.
|
|
3
|
+
"version": "4.1.0-canary.80a7f7cd1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -92,22 +92,22 @@
|
|
|
92
92
|
"lite/package.json"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@firebase/component": "0.6.4-canary.
|
|
96
|
-
"@firebase/logger": "0.4.0-canary.
|
|
97
|
-
"@firebase/util": "1.9.3-canary.
|
|
98
|
-
"@firebase/webchannel-wrapper": "0.10.1-canary.
|
|
95
|
+
"@firebase/component": "0.6.4-canary.80a7f7cd1",
|
|
96
|
+
"@firebase/logger": "0.4.0-canary.80a7f7cd1",
|
|
97
|
+
"@firebase/util": "1.9.3-canary.80a7f7cd1",
|
|
98
|
+
"@firebase/webchannel-wrapper": "0.10.1-canary.80a7f7cd1",
|
|
99
99
|
"@grpc/grpc-js": "~1.8.17",
|
|
100
100
|
"@grpc/proto-loader": "^0.6.13",
|
|
101
101
|
"node-fetch": "2.6.7",
|
|
102
102
|
"tslib": "^2.1.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"@firebase/app": "0.9.15-canary.
|
|
105
|
+
"@firebase/app": "0.9.15-canary.80a7f7cd1"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@firebase/app": "0.9.15-canary.
|
|
109
|
-
"@firebase/app-compat": "0.2.15-canary.
|
|
110
|
-
"@firebase/auth": "1.1.0-canary.
|
|
108
|
+
"@firebase/app": "0.9.15-canary.80a7f7cd1",
|
|
109
|
+
"@firebase/app-compat": "0.2.15-canary.80a7f7cd1",
|
|
110
|
+
"@firebase/auth": "1.1.0-canary.80a7f7cd1",
|
|
111
111
|
"@rollup/plugin-alias": "3.1.9",
|
|
112
112
|
"@rollup/plugin-json": "4.1.0",
|
|
113
113
|
"@types/eslint": "7.29.0",
|