@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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/firestore/src/platform/node/grpc_connection.d.ts +1 -1
  3. package/dist/firestore/src/remote/connection.d.ts +1 -1
  4. package/dist/firestore/src/remote/rest_connection.d.ts +1 -1
  5. package/dist/index.esm2017.js +16 -14
  6. package/dist/index.esm2017.js.map +1 -1
  7. package/dist/index.esm5.js +28 -22
  8. package/dist/index.esm5.js.map +1 -1
  9. package/dist/index.node.cjs.js +25 -13
  10. package/dist/index.node.cjs.js.map +1 -1
  11. package/dist/index.node.mjs +25 -13
  12. package/dist/index.node.mjs.map +1 -1
  13. package/dist/index.rn.js +16 -14
  14. package/dist/index.rn.js.map +1 -1
  15. package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +1 -1
  16. package/dist/lite/firestore/src/remote/connection.d.ts +1 -1
  17. package/dist/lite/firestore/src/remote/rest_connection.d.ts +1 -1
  18. package/dist/lite/index.browser.esm2017.js +6 -6
  19. package/dist/lite/index.browser.esm2017.js.map +1 -1
  20. package/dist/lite/index.browser.esm5.js +11 -11
  21. package/dist/lite/index.browser.esm5.js.map +1 -1
  22. package/dist/lite/index.node.cjs.js +6 -6
  23. package/dist/lite/index.node.cjs.js.map +1 -1
  24. package/dist/lite/index.node.mjs +6 -6
  25. package/dist/lite/index.node.mjs.map +1 -1
  26. package/dist/lite/index.rn.esm2017.js +6 -6
  27. package/dist/lite/index.rn.esm2017.js.map +1 -1
  28. package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
  29. package/dist/lite/packages/firestore/src/remote/connection.d.ts +1 -1
  30. package/dist/lite/packages/firestore/src/remote/rest_connection.d.ts +1 -1
  31. package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -1
  32. package/dist/packages/firestore/src/remote/connection.d.ts +1 -1
  33. package/dist/packages/firestore/src/remote/rest_connection.d.ts +1 -1
  34. package/package.json +9 -9
@@ -6,7 +6,7 @@ import { FirebaseError, createMockUserToken, getModularInstance } from '@firebas
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "3.4.10";
9
+ const version$1 = "3.4.11-canary.b60cf76e1";
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 = "9.8.3";
62
+ const version = "9.8.4-canary.b60cf76e1";
63
63
 
64
64
  /**
65
65
  * @license
@@ -1215,7 +1215,7 @@ class RestConnection {
1215
1215
  throw err;
1216
1216
  });
1217
1217
  }
1218
- invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken) {
1218
+ invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount) {
1219
1219
  // The REST API automatically aggregates all of the streamed results, so we
1220
1220
  // can just use the normal invoke() method.
1221
1221
  return this.invokeRPC(rpcName, path, request, authToken, appCheckToken);
@@ -4872,14 +4872,14 @@ class DatastoreImpl extends Datastore {
4872
4872
  });
4873
4873
  }
4874
4874
  /** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */
4875
- invokeStreamingRPC(rpcName, path, request) {
4875
+ invokeStreamingRPC(rpcName, path, request, expectedResponseCount) {
4876
4876
  this.verifyInitialized();
4877
4877
  return Promise.all([
4878
4878
  this.authCredentials.getToken(),
4879
4879
  this.appCheckCredentials.getToken()
4880
4880
  ])
4881
4881
  .then(([authToken, appCheckToken]) => {
4882
- return this.connection.invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken);
4882
+ return this.connection.invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount);
4883
4883
  })
4884
4884
  .catch((error) => {
4885
4885
  if (error.name === 'FirebaseError') {
@@ -4917,7 +4917,7 @@ async function invokeBatchGetDocumentsRpc(datastore, keys) {
4917
4917
  const request = {
4918
4918
  documents: keys.map(k => toName(datastoreImpl.serializer, k))
4919
4919
  };
4920
- const response = await datastoreImpl.invokeStreamingRPC('BatchGetDocuments', path, request);
4920
+ const response = await datastoreImpl.invokeStreamingRPC('BatchGetDocuments', path, request, keys.length);
4921
4921
  const docs = new Map();
4922
4922
  response.forEach(proto => {
4923
4923
  const doc = fromBatchGetDocumentsResponse(datastoreImpl.serializer, proto);