@firebase/firestore 3.4.4-canary.05a6aff7e → 3.4.4-canary.307d019c7

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.
@@ -4,11 +4,11 @@ import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { inspect, TextEncoder, TextDecoder } from 'util';
5
5
  import { FirebaseError, createMockUserToken, getModularInstance, deepEqual, getUA, isIndexedDBAvailable, isSafari } from '@firebase/util';
6
6
  import { randomBytes as randomBytes$1 } from 'crypto';
7
- import { credentials, loadPackageDefinition, Metadata } from '@grpc/grpc-js';
8
- import { fromJSON } from '@grpc/proto-loader';
7
+ import * as grpc from '@grpc/grpc-js';
8
+ import * as protoLoader from '@grpc/proto-loader';
9
9
 
10
10
  const name = "@firebase/firestore";
11
- const version$1 = "3.4.4-canary.05a6aff7e";
11
+ const version$1 = "3.4.4-canary.307d019c7";
12
12
 
13
13
  /**
14
14
  * @license
@@ -61,7 +61,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
61
61
  User.FIRST_PARTY = new User('first-party-uid');
62
62
  User.MOCK_USER = new User('mock-user');
63
63
 
64
- const version = "9.6.6-canary.05a6aff7e";
64
+ const version = "9.6.6-canary.307d019c7";
65
65
 
66
66
  /**
67
67
  * @license
@@ -15962,7 +15962,7 @@ const LOG_TAG$9 = 'Connection';
15962
15962
  const X_GOOG_API_CLIENT_VALUE = `gl-node/${process.versions.node} fire/${SDK_VERSION} grpc/${grpcVersion}`;
15963
15963
  function createMetadata(databasePath, authToken, appCheckToken, appId) {
15964
15964
  hardAssert(authToken === null || authToken.type === 'OAuth');
15965
- const metadata = new Metadata();
15965
+ const metadata = new grpc.Metadata();
15966
15966
  if (authToken) {
15967
15967
  authToken.headers.forEach((value, key) => metadata.set(key, value));
15968
15968
  }
@@ -15993,10 +15993,10 @@ class GrpcConnection {
15993
15993
  ensureActiveStub() {
15994
15994
  if (!this.cachedStub) {
15995
15995
  logDebug(LOG_TAG$9, 'Creating Firestore stub.');
15996
- const credentials$1 = this.databaseInfo.ssl
15997
- ? credentials.createSsl()
15998
- : credentials.createInsecure();
15999
- this.cachedStub = new this.firestore.Firestore(this.databaseInfo.host, credentials$1);
15996
+ const credentials = this.databaseInfo.ssl
15997
+ ? grpc.credentials.createSsl()
15998
+ : grpc.credentials.createInsecure();
15999
+ this.cachedStub = new this.firestore.Firestore(this.databaseInfo.host, credentials);
16000
16000
  }
16001
16001
  return this.cachedStub;
16002
16002
  }
@@ -18828,8 +18828,8 @@ const protoLoaderOptions = {
18828
18828
  * @returns The GrpcObject representing our protos.
18829
18829
  */
18830
18830
  function loadProtos() {
18831
- const packageDefinition = fromJSON(protos$1, protoLoaderOptions);
18832
- return loadPackageDefinition(packageDefinition);
18831
+ const packageDefinition = protoLoader.fromJSON(protos$1, protoLoaderOptions);
18832
+ return grpc.loadPackageDefinition(packageDefinition);
18833
18833
  }
18834
18834
 
18835
18835
  /**