@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.
- package/dist/firestore/src/platform/node/grpc_connection.d.ts +2 -2
- package/dist/firestore/src/platform/node/load_protos.d.ts +2 -2
- package/dist/index.esm2017.js +3 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3 -3
- package/dist/index.node.cjs.js +31 -10
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +11 -11
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +3 -3
- package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +2 -2
- package/dist/lite/firestore/src/platform/node/load_protos.d.ts +2 -2
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
- package/dist/lite/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
- package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
- package/dist/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
- package/package.json +9 -9
package/dist/index.node.mjs
CHANGED
|
@@ -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
|
|
8
|
-
import
|
|
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.
|
|
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.
|
|
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
|
|
15997
|
-
? credentials.createSsl()
|
|
15998
|
-
: credentials.createInsecure();
|
|
15999
|
-
this.cachedStub = new this.firestore.Firestore(this.databaseInfo.host, credentials
|
|
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
|
/**
|