@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.esm5.js
CHANGED
|
@@ -70,7 +70,7 @@ L.MOCK_USER = new L("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
var M = "9.6.6-canary.
|
|
73
|
+
var M = "9.6.6-canary.307d019c7", V = new h("@firebase/firestore");
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -19460,9 +19460,9 @@ function Xh(t, e) {
|
|
|
19460
19460
|
return n = Object.assign({
|
|
19461
19461
|
useFetchStreams: Bh
|
|
19462
19462
|
}, n), i._setSettings(n), i;
|
|
19463
|
-
}), "PUBLIC")), s(R, "3.4.4-canary.
|
|
19463
|
+
}), "PUBLIC")), s(R, "3.4.4-canary.307d019c7", void 0),
|
|
19464
19464
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
19465
|
-
s(R, "3.4.4-canary.
|
|
19465
|
+
s(R, "3.4.4-canary.307d019c7", "esm5");
|
|
19466
19466
|
|
|
19467
19467
|
export { Ih as AbstractUserDataWriter, mc as Bytes, $a as CACHE_SIZE_UNLIMITED, ja as CollectionReference, Ba as DocumentReference, Jc as DocumentSnapshot, yc as FieldPath, gc as FieldValue, Za as Firestore, Y as FirestoreError, wc as GeoPoint, Xa as LoadBundleTask, Ka as Query, nh as QueryConstraint, Xc as QueryDocumentSnapshot, $c as QuerySnapshot, Yc as SnapshotMetadata, ft as Timestamp, Kh as Transaction, Sh as WriteBatch, Ot as _DatabaseId, Mt as _DocumentKey, ot as _EmptyAppCheckTokenProvider, $ as _EmptyAuthCredentialsProvider, bt as _FieldPath, Ma as _cast, z as _debugAssert, Tt as _isBase64Available, K as _logWarn, Jh as _setIndexConfiguration, Oa as _validateIsNotUsedTogether, Mh as addDoc, Wh as arrayRemove, zh as arrayUnion, uc as clearIndexedDbPersistence, Ga as collection, Qa as collectionGroup, Ua as connectFirestoreEmulator, Lh as deleteDoc, Gh as deleteField, hc as disableNetwork, za as doc, vc as documentId, ic as enableIndexedDbPersistence, oc as enableMultiTabIndexedDbPersistence, cc as enableNetwork, vh as endAt, yh as endBefore, nc as ensureFirestoreConfigured, qh as executeWrite, _h as getDoc, kh as getDocFromCache, Dh as getDocFromServer, xh as getDocs, Ch as getDocsFromCache, Oh as getDocsFromServer, ec as getFirestore, Hh as increment, tc as initializeFirestore, ch as limit, hh as limitToLast, fc as loadBundle, dc as namedQuery, Vh as onSnapshot, Fh as onSnapshotsInSync, uh as orderBy, rh as query, Ha as queryEqual, Wa as refEqual, jh as runTransaction, Qh as serverTimestamp, Ph as setDoc, q as setLogLevel, th as snapshotEqual, dh as startAfter, fh as startAt, lc as terminate, Rh as updateDoc, ac as waitForPendingWrites, oh as where, Yh as writeBatch };
|
|
19468
19468
|
//# sourceMappingURL=index.esm5.js.map
|
package/dist/index.node.cjs.js
CHANGED
|
@@ -8,11 +8,32 @@ var logger = require('@firebase/logger');
|
|
|
8
8
|
var util = require('util');
|
|
9
9
|
var util$1 = require('@firebase/util');
|
|
10
10
|
var crypto = require('crypto');
|
|
11
|
-
var
|
|
11
|
+
var grpc = require('@grpc/grpc-js');
|
|
12
12
|
var protoLoader = require('@grpc/proto-loader');
|
|
13
13
|
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
|
|
33
|
+
var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
|
|
34
|
+
|
|
14
35
|
const name = "@firebase/firestore";
|
|
15
|
-
const version$1 = "3.4.4-canary.
|
|
36
|
+
const version$1 = "3.4.4-canary.307d019c7";
|
|
16
37
|
|
|
17
38
|
/**
|
|
18
39
|
* @license
|
|
@@ -65,7 +86,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
65
86
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
66
87
|
User.MOCK_USER = new User('mock-user');
|
|
67
88
|
|
|
68
|
-
const version = "9.6.6-canary.
|
|
89
|
+
const version = "9.6.6-canary.307d019c7";
|
|
69
90
|
|
|
70
91
|
/**
|
|
71
92
|
* @license
|
|
@@ -15966,7 +15987,7 @@ const LOG_TAG$9 = 'Connection';
|
|
|
15966
15987
|
const X_GOOG_API_CLIENT_VALUE = `gl-node/${process.versions.node} fire/${SDK_VERSION} grpc/${grpcVersion}`;
|
|
15967
15988
|
function createMetadata(databasePath, authToken, appCheckToken, appId) {
|
|
15968
15989
|
hardAssert(authToken === null || authToken.type === 'OAuth');
|
|
15969
|
-
const metadata = new
|
|
15990
|
+
const metadata = new grpc__namespace.Metadata();
|
|
15970
15991
|
if (authToken) {
|
|
15971
15992
|
authToken.headers.forEach((value, key) => metadata.set(key, value));
|
|
15972
15993
|
}
|
|
@@ -15997,10 +16018,10 @@ class GrpcConnection {
|
|
|
15997
16018
|
ensureActiveStub() {
|
|
15998
16019
|
if (!this.cachedStub) {
|
|
15999
16020
|
logDebug(LOG_TAG$9, 'Creating Firestore stub.');
|
|
16000
|
-
const credentials
|
|
16001
|
-
?
|
|
16002
|
-
:
|
|
16003
|
-
this.cachedStub = new this.firestore.Firestore(this.databaseInfo.host, credentials
|
|
16021
|
+
const credentials = this.databaseInfo.ssl
|
|
16022
|
+
? grpc__namespace.credentials.createSsl()
|
|
16023
|
+
: grpc__namespace.credentials.createInsecure();
|
|
16024
|
+
this.cachedStub = new this.firestore.Firestore(this.databaseInfo.host, credentials);
|
|
16004
16025
|
}
|
|
16005
16026
|
return this.cachedStub;
|
|
16006
16027
|
}
|
|
@@ -18832,8 +18853,8 @@ const protoLoaderOptions = {
|
|
|
18832
18853
|
* @returns The GrpcObject representing our protos.
|
|
18833
18854
|
*/
|
|
18834
18855
|
function loadProtos() {
|
|
18835
|
-
const packageDefinition =
|
|
18836
|
-
return
|
|
18856
|
+
const packageDefinition = protoLoader__namespace.fromJSON(protos$1, protoLoaderOptions);
|
|
18857
|
+
return grpc__namespace.loadPackageDefinition(packageDefinition);
|
|
18837
18858
|
}
|
|
18838
18859
|
|
|
18839
18860
|
/**
|