@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
|
@@ -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 = "3.4.
|
|
17
|
+
const version$1 = "3.4.11-canary.b60cf76e1";
|
|
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 = "9.8.
|
|
70
|
+
const version = "9.8.4-canary.b60cf76e1";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -1223,7 +1223,7 @@ class RestConnection {
|
|
|
1223
1223
|
throw err;
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
|
-
invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken) {
|
|
1226
|
+
invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount) {
|
|
1227
1227
|
// The REST API automatically aggregates all of the streamed results, so we
|
|
1228
1228
|
// can just use the normal invoke() method.
|
|
1229
1229
|
return this.invokeRPC(rpcName, path, request, authToken, appCheckToken);
|
|
@@ -4880,14 +4880,14 @@ class DatastoreImpl extends Datastore {
|
|
|
4880
4880
|
});
|
|
4881
4881
|
}
|
|
4882
4882
|
/** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */
|
|
4883
|
-
invokeStreamingRPC(rpcName, path, request) {
|
|
4883
|
+
invokeStreamingRPC(rpcName, path, request, expectedResponseCount) {
|
|
4884
4884
|
this.verifyInitialized();
|
|
4885
4885
|
return Promise.all([
|
|
4886
4886
|
this.authCredentials.getToken(),
|
|
4887
4887
|
this.appCheckCredentials.getToken()
|
|
4888
4888
|
])
|
|
4889
4889
|
.then(([authToken, appCheckToken]) => {
|
|
4890
|
-
return this.connection.invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken);
|
|
4890
|
+
return this.connection.invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount);
|
|
4891
4891
|
})
|
|
4892
4892
|
.catch((error) => {
|
|
4893
4893
|
if (error.name === 'FirebaseError') {
|
|
@@ -4925,7 +4925,7 @@ async function invokeBatchGetDocumentsRpc(datastore, keys) {
|
|
|
4925
4925
|
const request = {
|
|
4926
4926
|
documents: keys.map(k => toName(datastoreImpl.serializer, k))
|
|
4927
4927
|
};
|
|
4928
|
-
const response = await datastoreImpl.invokeStreamingRPC('BatchGetDocuments', path, request);
|
|
4928
|
+
const response = await datastoreImpl.invokeStreamingRPC('BatchGetDocuments', path, request, keys.length);
|
|
4929
4929
|
const docs = new Map();
|
|
4930
4930
|
response.forEach(proto => {
|
|
4931
4931
|
const doc = fromBatchGetDocumentsResponse(datastoreImpl.serializer, proto);
|