@firebase/firestore 3.4.14-canary.fcd4b8ac3 → 3.4.15-canary.666c8ec1f
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 +6 -0
- package/dist/firestore/src/api/database.d.ts +34 -3
- package/dist/firestore/src/core/database_info.d.ts +4 -0
- package/dist/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.esm2017.js +67 -68
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +52 -55
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +47 -42
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +47 -42
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +67 -68
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +40 -6
- package/dist/lite/firestore/src/api/database.d.ts +34 -3
- package/dist/lite/firestore/src/core/database_info.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/lite/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +43 -57
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +26 -29
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +15 -4
- package/dist/lite/index.node.cjs.js +37 -45
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +37 -45
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +43 -57
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +55 -7
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +6 -43
- package/dist/lite/packages/firestore/src/api/database.d.ts +34 -3
- package/dist/lite/packages/firestore/src/core/database_info.d.ts +4 -0
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/lite/packages/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/private.d.ts +22 -7
- package/dist/packages/firestore/dist/index.esm2017.d.ts +20 -15
- package/dist/packages/firestore/src/api/database.d.ts +34 -3
- package/dist/packages/firestore/src/core/database_info.d.ts +4 -0
- package/dist/packages/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/packages/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/private.d.ts +21 -7
- package/package.json +10 -9
|
@@ -67,7 +67,7 @@ y.MOCK_USER = new y("mock-user");
|
|
|
67
67
|
* See the License for the specific language governing permissions and
|
|
68
68
|
* limitations under the License.
|
|
69
69
|
*/
|
|
70
|
-
var m = "9.9.
|
|
70
|
+
var m = "9.9.4-canary.666c8ec1f", v = new l("@firebase/firestore");
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -3344,17 +3344,14 @@ function en(t, r) {
|
|
|
3344
3344
|
}, t;
|
|
3345
3345
|
}(), an = /** @class */ function() {
|
|
3346
3346
|
/** @hideconstructor */
|
|
3347
|
-
function t(t, e, n) {
|
|
3348
|
-
this._authCredentials =
|
|
3347
|
+
function t(t, e, n, r) {
|
|
3348
|
+
this._authCredentials = t, this._appCheckCredentials = e, this._databaseId = n,
|
|
3349
|
+
this._app = r,
|
|
3349
3350
|
/**
|
|
3350
3351
|
* Whether it's a Firestore or Firestore Lite instance.
|
|
3351
3352
|
*/
|
|
3352
3353
|
this.type = "firestore-lite", this._persistenceKey = "(lite)", this._settings = new on({}),
|
|
3353
|
-
this._settingsFrozen = !1
|
|
3354
|
-
this._databaseId = function(t) {
|
|
3355
|
-
if (!Object.prototype.hasOwnProperty.apply(t.options, [ "projectId" ])) throw new M(V, '"projectId" not provided in firebase.initializeApp.');
|
|
3356
|
-
return new J(t.options.projectId);
|
|
3357
|
-
}(t));
|
|
3354
|
+
this._settingsFrozen = !1;
|
|
3358
3355
|
}
|
|
3359
3356
|
return Object.defineProperty(t.prototype, "app", {
|
|
3360
3357
|
/**
|
|
@@ -3443,24 +3440,21 @@ function en(t, r) {
|
|
|
3443
3440
|
* The Cloud Firestore service interface.
|
|
3444
3441
|
*
|
|
3445
3442
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
3446
|
-
*/ function sn(t, e) {
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3443
|
+
*/ function sn(t, e, n) {
|
|
3444
|
+
n || (n = "(default)");
|
|
3445
|
+
var r = _getProvider(t, "firestore/lite");
|
|
3446
|
+
if (r.isInitialized(n)) throw new M(R, "Firestore can only be initialized once per app.");
|
|
3447
|
+
return r.initialize({
|
|
3448
|
+
options: e,
|
|
3449
|
+
instanceIdentifier: n
|
|
3451
3450
|
});
|
|
3452
3451
|
}
|
|
3453
3452
|
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
3460
|
-
* instance is associated with.
|
|
3461
|
-
* @returns The `Firestore` instance of the provided app.
|
|
3462
|
-
*/ function un(t) {
|
|
3463
|
-
return void 0 === t && (t = s()), _getProvider(t, "firestore/lite").getImmediate();
|
|
3453
|
+
function un(t, e) {
|
|
3454
|
+
var n = "object" == typeof t ? t : s(), r = "string" == typeof t ? t : e || "(default)";
|
|
3455
|
+
return _getProvider(n, "firestore/lite").getImmediate({
|
|
3456
|
+
identifier: r
|
|
3457
|
+
});
|
|
3464
3458
|
}
|
|
3465
3459
|
|
|
3466
3460
|
/**
|
|
@@ -5477,7 +5471,7 @@ function Rr(t, e) {
|
|
|
5477
5471
|
var e;
|
|
5478
5472
|
if (t.isFoundDocument()) e = t.version; else {
|
|
5479
5473
|
if (!t.isNoDocument()) throw E();
|
|
5480
|
-
//
|
|
5474
|
+
// Represent a deleted doc using SnapshotVersion.min().
|
|
5481
5475
|
e = _t.min();
|
|
5482
5476
|
}
|
|
5483
5477
|
var n = this.readVersions.get(t.key.toString());
|
|
@@ -5493,7 +5487,7 @@ function Rr(t, e) {
|
|
|
5493
5487
|
*/
|
|
5494
5488
|
t.prototype.precondition = function(t) {
|
|
5495
5489
|
var e = this.readVersions.get(t.toString());
|
|
5496
|
-
return !this.writtenDocs.has(t.toString()) && e ? Ie.updateTime(e) : Ie.none();
|
|
5490
|
+
return !this.writtenDocs.has(t.toString()) && e ? e.isEqual(_t.min()) ? Ie.exists(!1) : Ie.updateTime(e) : Ie.none();
|
|
5497
5491
|
},
|
|
5498
5492
|
/**
|
|
5499
5493
|
* Returns the precondition for a document if the operation is an update.
|
|
@@ -6070,11 +6064,14 @@ function Gr(t, e, n) {
|
|
|
6070
6064
|
}
|
|
6071
6065
|
|
|
6072
6066
|
m = i + "_lite", o(new c("firestore/lite", (function(t, e) {
|
|
6073
|
-
var n = e.
|
|
6074
|
-
|
|
6075
|
-
|
|
6067
|
+
var n = e.instanceIdentifier, r = e.options, i = t.getProvider("app").getImmediate(), o = new an(new K(t.getProvider("auth-internal")), new Y(t.getProvider("app-check-internal")), function(t, e) {
|
|
6068
|
+
if (!Object.prototype.hasOwnProperty.apply(t.options, [ "projectId" ])) throw new M(V, '"projectId" not provided in firebase.initializeApp.');
|
|
6069
|
+
return new J(t.options.projectId, e);
|
|
6070
|
+
}(i, n), i);
|
|
6071
|
+
return r && o._setSettings(r), o;
|
|
6072
|
+
}), "PUBLIC").setMultipleInstances(!0)),
|
|
6076
6073
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6077
|
-
a("firestore-lite", "3.4.
|
|
6074
|
+
a("firestore-lite", "3.4.15-canary.666c8ec1f", ""), a("firestore-lite", "3.4.15-canary.666c8ec1f", "esm5");
|
|
6078
6075
|
|
|
6079
6076
|
export { _n as Bytes, pn as CollectionReference, fn as DocumentReference, Xn as DocumentSnapshot, wn as FieldPath, Tn as FieldValue, an as Firestore, M as FirestoreError, En as GeoPoint, hn as Query, er as QueryConstraint, Jn as QueryDocumentSnapshot, Zn as QuerySnapshot, bt as Timestamp, Br as Transaction, Or as WriteBatch, Ar as addDoc, Nr as arrayRemove, Dr as arrayUnion, dn as collection, yn as collectionGroup, cn as connectFirestoreEmulator, Ir as deleteDoc, Vr as deleteField, mn as doc, bn as documentId, yr as endAt, dr as endBefore, Tr as getDoc, Er as getDocs, un as getFirestore, Fr as increment, sn as initializeFirestore, ur as limit, cr as limitToLast, ar as orderBy, nr as query, gn as queryEqual, vn as refEqual, Gr as runTransaction, Pr as serverTimestamp, kr as setDoc, g as setLogLevel, $n as snapshotEqual, hr as startAfter, fr as startAt, ln as terminate, Sr as updateDoc, ir as where, qr as writeBatch };
|
|
6080
6077
|
//# sourceMappingURL=index.browser.esm5.js.map
|