@firebase/firestore 3.4.10 → 3.4.11-canary.b60cf76e1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/firestore/src/remote/connection.d.ts +1 -1
- package/dist/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/index.esm2017.js +16 -14
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +28 -22
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +25 -13
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +25 -13
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +16 -14
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/lite/firestore/src/remote/connection.d.ts +1 -1
- package/dist/lite/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +6 -6
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +11 -11
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +6 -6
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +6 -6
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +6 -6
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/connection.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/rest_connection.d.ts +1 -1
- package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
- package/dist/packages/firestore/src/remote/connection.d.ts +1 -1
- package/dist/packages/firestore/src/remote/rest_connection.d.ts +1 -1
- package/package.json +9 -9
|
@@ -29,6 +29,6 @@ export declare class GrpcConnection implements Connection {
|
|
|
29
29
|
constructor(protos: grpc.GrpcObject, databaseInfo: DatabaseInfo);
|
|
30
30
|
private ensureActiveStub;
|
|
31
31
|
invokeRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null): Promise<Resp>;
|
|
32
|
-
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null): Promise<Resp[]>;
|
|
32
|
+
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null, expectedResponseCount?: number): Promise<Resp[]>;
|
|
33
33
|
openStream<Req, Resp>(rpcName: string, authToken: Token | null, appCheckToken: Token | null): Stream<Req, Resp>;
|
|
34
34
|
}
|
|
@@ -54,7 +54,7 @@ export interface Connection {
|
|
|
54
54
|
* @returns a Promise containing an array with the JSON object encodings of the
|
|
55
55
|
* responses
|
|
56
56
|
*/
|
|
57
|
-
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null): Promise<Resp[]>;
|
|
57
|
+
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null, expectedResponseCount?: number): Promise<Resp[]>;
|
|
58
58
|
/**
|
|
59
59
|
* Opens a stream to the given stream RPC endpoint. Returns a stream which
|
|
60
60
|
* will try to open itself.
|
|
@@ -29,7 +29,7 @@ export declare abstract class RestConnection implements Connection {
|
|
|
29
29
|
private readonly databaseRoot;
|
|
30
30
|
constructor(databaseInfo: DatabaseInfo);
|
|
31
31
|
invokeRPC<Req, Resp>(rpcName: string, path: string, req: Req, authToken: Token | null, appCheckToken: Token | null): Promise<Resp>;
|
|
32
|
-
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null): Promise<Resp[]>;
|
|
32
|
+
invokeStreamingRPC<Req, Resp>(rpcName: string, path: string, request: Req, authToken: Token | null, appCheckToken: Token | null, expectedResponseCount?: number): Promise<Resp[]>;
|
|
33
33
|
abstract openStream<Req, Resp>(rpcName: string, authToken: Token | null, appCheckToken: Token | null): Stream<Req, Resp>;
|
|
34
34
|
/**
|
|
35
35
|
* Modifies the headers for a request, adding any authorization token if
|
|
@@ -63,7 +63,7 @@ l.MOCK_USER = new l("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let f = "9.8.
|
|
66
|
+
let f = "9.8.4-canary.b60cf76e1";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -1021,7 +1021,7 @@ class {
|
|
|
1021
1021
|
e;
|
|
1022
1022
|
}));
|
|
1023
1023
|
}
|
|
1024
|
-
T(t, e, n, r, s) {
|
|
1024
|
+
T(t, e, n, r, s, i) {
|
|
1025
1025
|
// The REST API automatically aggregates all of the streamed results, so we
|
|
1026
1026
|
// can just use the normal invoke() method.
|
|
1027
1027
|
return this.m(t, e, n, r, s);
|
|
@@ -3624,8 +3624,8 @@ class en extends class {} {
|
|
|
3624
3624
|
this.appCheckCredentials.invalidateToken()), t) : new L(I, t.toString());
|
|
3625
3625
|
}));
|
|
3626
3626
|
}
|
|
3627
|
-
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ T(t, e, n) {
|
|
3628
|
-
return this.X(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([
|
|
3627
|
+
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ T(t, e, n, r) {
|
|
3628
|
+
return this.X(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([s, i]) => this.H.T(t, e, n, s, i, r))).catch((t => {
|
|
3629
3629
|
throw "FirebaseError" === t.name ? (t.code === D && (this.authCredentials.invalidateToken(),
|
|
3630
3630
|
this.appCheckCredentials.invalidateToken()), t) : new L(I, t.toString());
|
|
3631
3631
|
}));
|
|
@@ -3647,7 +3647,7 @@ async function nn(t, e) {
|
|
|
3647
3647
|
async function rn(t, e) {
|
|
3648
3648
|
const n = b(t), r = Be(n.q) + "/documents", s = {
|
|
3649
3649
|
documents: e.map((t => Me(n.q, t)))
|
|
3650
|
-
}, i = await n.T("BatchGetDocuments", r, s), o = new Map;
|
|
3650
|
+
}, i = await n.T("BatchGetDocuments", r, s, e.length), o = new Map;
|
|
3651
3651
|
i.forEach((t => {
|
|
3652
3652
|
const e = Ge(n.q, t);
|
|
3653
3653
|
o.set(e.key.toString(), e);
|
|
@@ -6485,7 +6485,7 @@ class Gr {
|
|
|
6485
6485
|
return e && r._setSettings(e), r;
|
|
6486
6486
|
}), "PUBLIC")),
|
|
6487
6487
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6488
|
-
registerVersion("firestore-lite", "3.4.
|
|
6488
|
+
registerVersion("firestore-lite", "3.4.11-canary.b60cf76e1", ""), registerVersion("firestore-lite", "3.4.11-canary.b60cf76e1", "esm2017");
|
|
6489
6489
|
|
|
6490
6490
|
export { In as Bytes, pn as CollectionReference, wn as DocumentReference, Zn as DocumentSnapshot, En as FieldPath, An as FieldValue, an as Firestore, L as FirestoreError, Rn as GeoPoint, mn as Query, sr as QueryConstraint, tr as QueryDocumentSnapshot, er as QuerySnapshot, gt as Timestamp, Gr as Transaction, Or as WriteBatch, Dr as addDoc, Sr as arrayRemove, Fr as arrayUnion, yn as collection, _n as collectionGroup, fn as connectFirestoreEmulator, Nr as deleteDoc, $r as deleteField, gn as doc, Tn as documentId, _r as endAt, yr as endBefore, Ar as getDoc, Rr as getDocs, ln as getFirestore, qr as increment, hn as initializeFirestore, lr as limit, fr as limitToLast, ar as orderBy, ir as query, bn as queryEqual, vn as refEqual, Wr as runTransaction, xr as serverTimestamp, Pr as setDoc, w as setLogLevel, nr as snapshotEqual, mr as startAfter, wr as startAt, dn as terminate, Vr as updateDoc, ur as where, Cr as writeBatch };
|
|
6491
6491
|
//# sourceMappingURL=index.browser.esm2017.js.map
|