@firebase/firestore 3.4.2-canary.044a8d7f9 → 3.4.2-canary.88d43ec00
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/api/snapshot.d.ts +6 -6
- package/dist/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/firestore/test/util/helpers.d.ts +4 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.esm2017.js +869 -869
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1257 -1257
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +2674 -24
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +2675 -25
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1068 -1068
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +8 -8
- package/dist/lite/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/lite/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/lite/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/lite/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/lite/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/lite/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/firestore/test/util/helpers.d.ts +4 -6
- package/dist/lite/index.browser.esm2017.js +124 -124
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +99 -99
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +2 -2
- package/dist/lite/index.node.cjs.js +11 -12
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +11 -12
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +148 -148
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +2 -2
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +16 -16
- package/dist/lite/packages/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/lite/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/lite/packages/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/lite/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/lite/packages/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/lite/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +4 -6
- package/dist/lite/private.d.ts +2 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +105 -105
- package/dist/packages/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/packages/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/packages/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/packages/firestore/test/util/helpers.d.ts +4 -6
- package/dist/private.d.ts +8 -8
- package/package.json +10 -13
- package/dist/firestore/compat/api/blob.d.ts +0 -29
- package/dist/firestore/compat/api/database.d.ts +0 -228
- package/dist/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/firestore/compat/api/observer.d.ts +0 -29
- package/dist/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/firestore/compat/config.d.ts +0 -28
- package/dist/firestore/compat/index.console.d.ts +0 -42
- package/dist/firestore/compat/index.d.ts +0 -49
- package/dist/firestore/compat/index.node.d.ts +0 -22
- package/dist/firestore/compat/index.rn.d.ts +0 -22
- package/dist/firestore/compat/register-module.d.ts +0 -42
- package/dist/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/lite/firestore/compat/api/blob.d.ts +0 -29
- package/dist/lite/firestore/compat/api/database.d.ts +0 -228
- package/dist/lite/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/lite/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/lite/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/lite/firestore/compat/api/observer.d.ts +0 -29
- package/dist/lite/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/lite/firestore/compat/config.d.ts +0 -28
- package/dist/lite/firestore/compat/index.console.d.ts +0 -42
- package/dist/lite/firestore/compat/index.d.ts +0 -49
- package/dist/lite/firestore/compat/index.node.d.ts +0 -22
- package/dist/lite/firestore/compat/index.rn.d.ts +0 -22
- package/dist/lite/firestore/compat/register-module.d.ts +0 -42
- package/dist/lite/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/lite/packages/firestore/compat/api/blob.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/database.d.ts +0 -228
- package/dist/lite/packages/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/lite/packages/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/lite/packages/firestore/compat/api/observer.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/lite/packages/firestore/compat/config.d.ts +0 -28
- package/dist/lite/packages/firestore/compat/index.console.d.ts +0 -42
- package/dist/lite/packages/firestore/compat/index.d.ts +0 -49
- package/dist/lite/packages/firestore/compat/index.node.d.ts +0 -22
- package/dist/lite/packages/firestore/compat/index.rn.d.ts +0 -22
- package/dist/lite/packages/firestore/compat/register-module.d.ts +0 -42
- package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/lite/src/protos/README.md +0 -2
- package/dist/lite/src/protos/firestore/bundle.proto +0 -121
- package/dist/lite/src/protos/firestore_bundle_proto.ts +0 -93
- package/dist/lite/src/protos/firestore_proto_api.ts +0 -1259
- package/dist/lite/src/protos/google/api/annotations.proto +0 -31
- package/dist/lite/src/protos/google/api/http.proto +0 -370
- package/dist/lite/src/protos/google/firestore/v1/common.proto +0 -84
- package/dist/lite/src/protos/google/firestore/v1/document.proto +0 -151
- package/dist/lite/src/protos/google/firestore/v1/firestore.proto +0 -761
- package/dist/lite/src/protos/google/firestore/v1/query.proto +0 -302
- package/dist/lite/src/protos/google/firestore/v1/write.proto +0 -264
- package/dist/lite/src/protos/google/protobuf/any.proto +0 -155
- package/dist/lite/src/protos/google/protobuf/descriptor.proto +0 -882
- package/dist/lite/src/protos/google/protobuf/empty.proto +0 -52
- package/dist/lite/src/protos/google/protobuf/struct.proto +0 -96
- package/dist/lite/src/protos/google/protobuf/timestamp.proto +0 -137
- package/dist/lite/src/protos/google/protobuf/wrappers.proto +0 -123
- package/dist/lite/src/protos/google/rpc/status.proto +0 -92
- package/dist/lite/src/protos/google/type/latlng.proto +0 -71
- package/dist/lite/src/protos/update.sh +0 -61
- package/dist/packages/firestore/compat/api/blob.d.ts +0 -29
- package/dist/packages/firestore/compat/api/database.d.ts +0 -228
- package/dist/packages/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/packages/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/packages/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/packages/firestore/compat/api/observer.d.ts +0 -29
- package/dist/packages/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/packages/firestore/compat/config.d.ts +0 -28
- package/dist/packages/firestore/compat/index.console.d.ts +0 -42
- package/dist/packages/firestore/compat/index.d.ts +0 -49
- package/dist/packages/firestore/compat/index.node.d.ts +0 -22
- package/dist/packages/firestore/compat/index.rn.d.ts +0 -22
- package/dist/packages/firestore/compat/register-module.d.ts +0 -42
- package/dist/packages/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/src/protos/README.md +0 -2
- package/dist/src/protos/firestore/bundle.proto +0 -121
- package/dist/src/protos/firestore_bundle_proto.ts +0 -93
- package/dist/src/protos/firestore_proto_api.ts +0 -1259
- package/dist/src/protos/google/api/annotations.proto +0 -31
- package/dist/src/protos/google/api/http.proto +0 -370
- package/dist/src/protos/google/firestore/v1/common.proto +0 -84
- package/dist/src/protos/google/firestore/v1/document.proto +0 -151
- package/dist/src/protos/google/firestore/v1/firestore.proto +0 -761
- package/dist/src/protos/google/firestore/v1/query.proto +0 -302
- package/dist/src/protos/google/firestore/v1/write.proto +0 -264
- package/dist/src/protos/google/protobuf/any.proto +0 -155
- package/dist/src/protos/google/protobuf/descriptor.proto +0 -882
- package/dist/src/protos/google/protobuf/empty.proto +0 -52
- package/dist/src/protos/google/protobuf/struct.proto +0 -96
- package/dist/src/protos/google/protobuf/timestamp.proto +0 -137
- package/dist/src/protos/google/protobuf/wrappers.proto +0 -123
- package/dist/src/protos/google/rpc/status.proto +0 -92
- package/dist/src/protos/google/type/latlng.proto +0 -71
- package/dist/src/protos/update.sh +0 -61
|
@@ -63,7 +63,7 @@ l.MOCK_USER = new l("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let f = "9.6.2-canary.
|
|
66
|
+
let f = "9.6.2-canary.88d43ec00";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -218,7 +218,7 @@ n) {
|
|
|
218
218
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
219
219
|
* See the License for the specific language governing permissions and
|
|
220
220
|
* limitations under the License.
|
|
221
|
-
*/ const E = "ok", T = "cancelled", I = "unknown", A = "invalid-argument",
|
|
221
|
+
*/ const E = "ok", T = "cancelled", I = "unknown", A = "invalid-argument", R = "deadline-exceeded", P = "not-found", V = "already-exists", D = "permission-denied", N = "unauthenticated", $ = "resource-exhausted", S = "failed-precondition", F = "aborted", x = "out-of-range", q = "unimplemented", O = "internal", C = "unavailable", L = "data-loss";
|
|
222
222
|
|
|
223
223
|
/** An error returned by a Firestore operation. */ class U extends FirebaseError {
|
|
224
224
|
/** @hideconstructor */
|
|
@@ -898,7 +898,7 @@ function dt(t) {
|
|
|
898
898
|
|
|
899
899
|
case 400:
|
|
900
900
|
// Bad Request
|
|
901
|
-
return
|
|
901
|
+
return S;
|
|
902
902
|
|
|
903
903
|
// Other possibilities based on the forward mapping
|
|
904
904
|
// return Code.INVALID_ARGUMENT;
|
|
@@ -913,11 +913,11 @@ function dt(t) {
|
|
|
913
913
|
|
|
914
914
|
case 404:
|
|
915
915
|
// Not Found
|
|
916
|
-
return
|
|
916
|
+
return P;
|
|
917
917
|
|
|
918
918
|
case 409:
|
|
919
919
|
// Conflict
|
|
920
|
-
return
|
|
920
|
+
return F;
|
|
921
921
|
|
|
922
922
|
// Other possibilities:
|
|
923
923
|
// return Code.ALREADY_EXISTS;
|
|
@@ -950,10 +950,10 @@ function dt(t) {
|
|
|
950
950
|
|
|
951
951
|
case 504:
|
|
952
952
|
// Gateway Timeout
|
|
953
|
-
return
|
|
953
|
+
return R;
|
|
954
954
|
|
|
955
955
|
default:
|
|
956
|
-
return t >= 200 && t < 300 ? E : t >= 400 && t < 500 ?
|
|
956
|
+
return t >= 200 && t < 300 ? E : t >= 400 && t < 500 ? S : t >= 500 && t < 600 ? O : I;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
|
|
@@ -1120,7 +1120,7 @@ function mt(t) {
|
|
|
1120
1120
|
* See the License for the specific language governing permissions and
|
|
1121
1121
|
* limitations under the License.
|
|
1122
1122
|
*/ class pt {
|
|
1123
|
-
static
|
|
1123
|
+
static R() {
|
|
1124
1124
|
// Alphanumeric characters
|
|
1125
1125
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = Math.floor(256 / t.length) * t.length;
|
|
1126
1126
|
// The largest byte value that is a multiple of `char.length`.
|
|
@@ -1530,7 +1530,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Converts the possible Proto values for a timestamp value into a "seconds and
|
|
1532
1532
|
* nanos" representation.
|
|
1533
|
-
*/ function
|
|
1533
|
+
*/ function Rt(t) {
|
|
1534
1534
|
// The json interface (for the browser) will return an iso timestamp string,
|
|
1535
1535
|
// while the proto js library (for node) will return a
|
|
1536
1536
|
// google.protobuf.Timestamp instance.
|
|
@@ -1553,15 +1553,15 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
return {
|
|
1556
|
-
seconds:
|
|
1557
|
-
nanos:
|
|
1556
|
+
seconds: Pt(t.seconds),
|
|
1557
|
+
nanos: Pt(t.nanos)
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Converts the possible Proto types for numbers into a JavaScript number.
|
|
1563
1563
|
* Returns 0 if the value is not numeric.
|
|
1564
|
-
*/ function
|
|
1564
|
+
*/ function Pt(t) {
|
|
1565
1565
|
// TODO(bjornick): Handle int64 greater than 53 bits.
|
|
1566
1566
|
return "number" == typeof t ? t : "string" == typeof t ? Number(t) : 0;
|
|
1567
1567
|
}
|
|
@@ -1621,7 +1621,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Returns the local time at which this timestamp was first set.
|
|
1623
1623
|
*/ function $t(t) {
|
|
1624
|
-
const n =
|
|
1624
|
+
const n = Rt(t.mapValue.fields.__local_write_time__.timestampValue);
|
|
1625
1625
|
return new gt(n.seconds, n.nanos);
|
|
1626
1626
|
}
|
|
1627
1627
|
|
|
@@ -1641,14 +1641,14 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1641
1641
|
* See the License for the specific language governing permissions and
|
|
1642
1642
|
* limitations under the License.
|
|
1643
1643
|
*/
|
|
1644
|
-
/** Extracts the backend's type order for the provided value. */ function
|
|
1644
|
+
/** Extracts the backend's type order for the provided value. */ function St(t) {
|
|
1645
1645
|
return "nullValue" in t ? 0 /* NullValue */ : "booleanValue" in t ? 1 /* BooleanValue */ : "integerValue" in t || "doubleValue" in t ? 2 /* NumberValue */ : "timestampValue" in t ? 3 /* TimestampValue */ : "stringValue" in t ? 5 /* StringValue */ : "bytesValue" in t ? 6 /* BlobValue */ : "referenceValue" in t ? 7 /* RefValue */ : "geoPointValue" in t ? 8 /* GeoPointValue */ : "arrayValue" in t ? 9 /* ArrayValue */ : "mapValue" in t ? Dt(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : g();
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
|
-
/** Tests `left` and `right` for equality based on the backend semantics. */ function
|
|
1648
|
+
/** Tests `left` and `right` for equality based on the backend semantics. */ function Ft(t, n) {
|
|
1649
1649
|
if (t === n) return !0;
|
|
1650
|
-
const e =
|
|
1651
|
-
if (e !==
|
|
1650
|
+
const e = St(t);
|
|
1651
|
+
if (e !== St(n)) return !1;
|
|
1652
1652
|
switch (e) {
|
|
1653
1653
|
case 0 /* NullValue */ :
|
|
1654
1654
|
return !0;
|
|
@@ -1664,7 +1664,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1664
1664
|
if ("string" == typeof t.timestampValue && "string" == typeof n.timestampValue && t.timestampValue.length === n.timestampValue.length)
|
|
1665
1665
|
// Use string equality for ISO 8601 timestamps
|
|
1666
1666
|
return t.timestampValue === n.timestampValue;
|
|
1667
|
-
const e =
|
|
1667
|
+
const e = Rt(t.timestampValue), r = Rt(n.timestampValue);
|
|
1668
1668
|
return e.seconds === r.seconds && e.nanos === r.nanos;
|
|
1669
1669
|
}(t, n);
|
|
1670
1670
|
|
|
@@ -1681,27 +1681,27 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1681
1681
|
|
|
1682
1682
|
case 8 /* GeoPointValue */ :
|
|
1683
1683
|
return function(t, n) {
|
|
1684
|
-
return
|
|
1684
|
+
return Pt(t.geoPointValue.latitude) === Pt(n.geoPointValue.latitude) && Pt(t.geoPointValue.longitude) === Pt(n.geoPointValue.longitude);
|
|
1685
1685
|
}(t, n);
|
|
1686
1686
|
|
|
1687
1687
|
case 2 /* NumberValue */ :
|
|
1688
1688
|
return function(t, n) {
|
|
1689
|
-
if ("integerValue" in t && "integerValue" in n) return
|
|
1689
|
+
if ("integerValue" in t && "integerValue" in n) return Pt(t.integerValue) === Pt(n.integerValue);
|
|
1690
1690
|
if ("doubleValue" in t && "doubleValue" in n) {
|
|
1691
|
-
const e =
|
|
1691
|
+
const e = Pt(t.doubleValue), r = Pt(n.doubleValue);
|
|
1692
1692
|
return e === r ? at(e) === at(r) : isNaN(e) && isNaN(r);
|
|
1693
1693
|
}
|
|
1694
1694
|
return !1;
|
|
1695
1695
|
}(t, n);
|
|
1696
1696
|
|
|
1697
1697
|
case 9 /* ArrayValue */ :
|
|
1698
|
-
return _t(t.arrayValue.values || [], n.arrayValue.values || [],
|
|
1698
|
+
return _t(t.arrayValue.values || [], n.arrayValue.values || [], Ft);
|
|
1699
1699
|
|
|
1700
1700
|
case 10 /* ObjectValue */ :
|
|
1701
1701
|
return function(t, n) {
|
|
1702
1702
|
const e = t.mapValue.fields || {}, r = n.mapValue.fields || {};
|
|
1703
1703
|
if (bt(e) !== bt(r)) return !1;
|
|
1704
|
-
for (const t in e) if (e.hasOwnProperty(t) && (void 0 === r[t] || !
|
|
1704
|
+
for (const t in e) if (e.hasOwnProperty(t) && (void 0 === r[t] || !Ft(e[t], r[t]))) return !1;
|
|
1705
1705
|
return !0;
|
|
1706
1706
|
}
|
|
1707
1707
|
/** Returns true if the ArrayValue contains the specified element. */ (t, n);
|
|
@@ -1712,12 +1712,12 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
function xt(t, n) {
|
|
1715
|
-
return void 0 !== (t.values || []).find((t =>
|
|
1715
|
+
return void 0 !== (t.values || []).find((t => Ft(t, n)));
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
1718
|
function qt(t, n) {
|
|
1719
1719
|
if (t === n) return 0;
|
|
1720
|
-
const e =
|
|
1720
|
+
const e = St(t), r = St(n);
|
|
1721
1721
|
if (e !== r) return yt(e, r);
|
|
1722
1722
|
switch (e) {
|
|
1723
1723
|
case 0 /* NullValue */ :
|
|
@@ -1728,7 +1728,7 @@ function qt(t, n) {
|
|
|
1728
1728
|
|
|
1729
1729
|
case 2 /* NumberValue */ :
|
|
1730
1730
|
return function(t, n) {
|
|
1731
|
-
const e =
|
|
1731
|
+
const e = Pt(t.integerValue || t.doubleValue), r = Pt(n.integerValue || n.doubleValue);
|
|
1732
1732
|
return e < r ? -1 : e > r ? 1 : e === r ? 0 :
|
|
1733
1733
|
// one or both are NaN.
|
|
1734
1734
|
isNaN(e) ? isNaN(r) ? 0 : -1 : 1;
|
|
@@ -1761,9 +1761,9 @@ function qt(t, n) {
|
|
|
1761
1761
|
|
|
1762
1762
|
case 8 /* GeoPointValue */ :
|
|
1763
1763
|
return function(t, n) {
|
|
1764
|
-
const e = yt(
|
|
1764
|
+
const e = yt(Pt(t.latitude), Pt(n.latitude));
|
|
1765
1765
|
if (0 !== e) return e;
|
|
1766
|
-
return yt(
|
|
1766
|
+
return yt(Pt(t.longitude), Pt(n.longitude));
|
|
1767
1767
|
}(t.geoPointValue, n.geoPointValue);
|
|
1768
1768
|
|
|
1769
1769
|
case 9 /* ArrayValue */ :
|
|
@@ -1801,7 +1801,7 @@ function qt(t, n) {
|
|
|
1801
1801
|
|
|
1802
1802
|
function Ot(t, n) {
|
|
1803
1803
|
if ("string" == typeof t && "string" == typeof n && t.length === n.length) return yt(t, n);
|
|
1804
|
-
const e =
|
|
1804
|
+
const e = Rt(t), r = Rt(n), s = yt(e.seconds, r.seconds);
|
|
1805
1805
|
return 0 !== s ? s : yt(e.nanos, r.nanos);
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
@@ -1931,7 +1931,7 @@ function Ct(t, n) {
|
|
|
1931
1931
|
jt(n) && n.mapValue.fields && delete n.mapValue.fields[t.lastSegment()];
|
|
1932
1932
|
}
|
|
1933
1933
|
isEqual(t) {
|
|
1934
|
-
return
|
|
1934
|
+
return Ft(this.value, t.value);
|
|
1935
1935
|
}
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Returns the map that contains the leaf element of `path`. If the parent
|
|
@@ -2094,7 +2094,7 @@ function Ct(t, n) {
|
|
|
2094
2094
|
class Gt {
|
|
2095
2095
|
constructor(t, n = null, e = [], r = [], s = null, i = null, o = null) {
|
|
2096
2096
|
this.path = t, this.collectionGroup = n, this.orderBy = e, this.filters = r, this.limit = s,
|
|
2097
|
-
this.startAt = i, this.endAt = o, this.
|
|
2097
|
+
this.startAt = i, this.endAt = o, this.P = null;
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
@@ -2124,7 +2124,7 @@ class Wt extends class {} {
|
|
|
2124
2124
|
matches(t) {
|
|
2125
2125
|
const n = t.data.field(this.field);
|
|
2126
2126
|
// Types do not have to match in NOT_EQUAL filters.
|
|
2127
|
-
return "!=" /* NOT_EQUAL */ === this.op ? null !== n && this.D(qt(n, this.value)) : null !== n &&
|
|
2127
|
+
return "!=" /* NOT_EQUAL */ === this.op ? null !== n && this.D(qt(n, this.value)) : null !== n && St(this.value) === St(n) && this.D(qt(n, this.value));
|
|
2128
2128
|
// Only compare types with matching backend order (such as double and int).
|
|
2129
2129
|
}
|
|
2130
2130
|
D(t) {
|
|
@@ -2269,7 +2269,7 @@ function on(t, n) {
|
|
|
2269
2269
|
if (null === n) return !1;
|
|
2270
2270
|
if (t.before !== n.before || t.position.length !== n.position.length) return !1;
|
|
2271
2271
|
for (let e = 0; e < t.position.length; e++) {
|
|
2272
|
-
if (!
|
|
2272
|
+
if (!Ft(t.position[e], n.position[e])) return !1;
|
|
2273
2273
|
}
|
|
2274
2274
|
return !0;
|
|
2275
2275
|
}
|
|
@@ -2305,7 +2305,7 @@ function on(t, n) {
|
|
|
2305
2305
|
this.path = t, this.collectionGroup = n, this.explicitOrderBy = e, this.filters = r,
|
|
2306
2306
|
this.limit = s, this.limitType = i, this.startAt = o, this.endAt = u, this.$ = null,
|
|
2307
2307
|
// The corresponding `Target` of this `Query` instance.
|
|
2308
|
-
this.
|
|
2308
|
+
this.S = null, this.startAt, this.endAt;
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
|
|
@@ -2365,7 +2365,7 @@ function ln(t) {
|
|
|
2365
2365
|
* Converts this `Query` instance to it's corresponding `Target` representation.
|
|
2366
2366
|
*/ function dn(t) {
|
|
2367
2367
|
const n = b(t);
|
|
2368
|
-
if (!n.
|
|
2368
|
+
if (!n.S) if ("F" /* First */ === n.limitType) n.S = Qt(n.path, n.collectionGroup, fn(n), n.filters, n.limit, n.startAt, n.endAt); else {
|
|
2369
2369
|
// Flip the orderBy directions since we want the last results
|
|
2370
2370
|
const t = [];
|
|
2371
2371
|
for (const e of fn(n)) {
|
|
@@ -2375,9 +2375,9 @@ function ln(t) {
|
|
|
2375
2375
|
// We need to swap the cursors to match the now-flipped query ordering.
|
|
2376
2376
|
const e = n.endAt ? new en(n.endAt.position, !n.endAt.before) : null, r = n.startAt ? new en(n.startAt.position, !n.startAt.before) : null;
|
|
2377
2377
|
// Now return as a LimitType.First query.
|
|
2378
|
-
n.
|
|
2378
|
+
n.S = Qt(n.path, n.collectionGroup, t, n.filters, n.limit, e, r);
|
|
2379
2379
|
}
|
|
2380
|
-
return n.
|
|
2380
|
+
return n.S;
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
function wn(t, n) {
|
|
@@ -2387,7 +2387,7 @@ function wn(t, n) {
|
|
|
2387
2387
|
for (let e = 0; e < t.orderBy.length; e++) if (!sn(t.orderBy[e], n.orderBy[e])) return !1;
|
|
2388
2388
|
if (t.filters.length !== n.filters.length) return !1;
|
|
2389
2389
|
for (let s = 0; s < t.filters.length; s++) if (e = t.filters[s], r = n.filters[s],
|
|
2390
|
-
e.op !== r.op || !e.field.isEqual(r.field) || !
|
|
2390
|
+
e.op !== r.op || !e.field.isEqual(r.field) || !Ft(e.value, r.value)) return !1;
|
|
2391
2391
|
var e, r;
|
|
2392
2392
|
return t.collectionGroup === n.collectionGroup && !!t.path.isEqual(n.path) && !!on(t.startAt, n.startAt) && on(t.endAt, n.endAt);
|
|
2393
2393
|
}(dn(t), dn(n)) && t.limitType === n.limitType;
|
|
@@ -2430,7 +2430,7 @@ function mn(t, n) {
|
|
|
2430
2430
|
integerValue: "" + t
|
|
2431
2431
|
};
|
|
2432
2432
|
}(n) : function(t, n) {
|
|
2433
|
-
if (t.
|
|
2433
|
+
if (t.F) {
|
|
2434
2434
|
if (isNaN(n)) return {
|
|
2435
2435
|
doubleValue: "NaN"
|
|
2436
2436
|
};
|
|
@@ -2617,7 +2617,7 @@ function mn(t, n) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
|
-
/** A mutation that deletes the document at the given key. */ class
|
|
2620
|
+
/** A mutation that deletes the document at the given key. */ class Rn extends Tn {
|
|
2621
2621
|
constructor(t, n) {
|
|
2622
2622
|
super(), this.key = t, this.precondition = n, this.type = 2 /* Delete */ , this.fieldTransforms = [];
|
|
2623
2623
|
}
|
|
@@ -2629,7 +2629,7 @@ function mn(t, n) {
|
|
|
2629
2629
|
*
|
|
2630
2630
|
* The `verify` operation is only used in Transactions, and this class serves
|
|
2631
2631
|
* primarily to facilitate serialization into protos.
|
|
2632
|
-
*/ class
|
|
2632
|
+
*/ class Pn extends Tn {
|
|
2633
2633
|
constructor(t, n) {
|
|
2634
2634
|
super(), this.key = t, this.precondition = n, this.type = 3 /* Verify */ , this.fieldTransforms = [];
|
|
2635
2635
|
}
|
|
@@ -2688,7 +2688,7 @@ function mn(t, n) {
|
|
|
2688
2688
|
*/
|
|
2689
2689
|
class Nn {
|
|
2690
2690
|
constructor(t, n) {
|
|
2691
|
-
this.databaseId = t, this.
|
|
2691
|
+
this.databaseId = t, this.F = n;
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
|
|
@@ -2704,7 +2704,7 @@ class Nn {
|
|
|
2704
2704
|
* Returns a value for a Date that's appropriate to put into a proto.
|
|
2705
2705
|
*/
|
|
2706
2706
|
function $n(t, n) {
|
|
2707
|
-
if (t.
|
|
2707
|
+
if (t.F) {
|
|
2708
2708
|
return `${new Date(1e3 * n.seconds).toISOString().replace(/\.\d*/, "").replace("Z", "")}.${("000000000" + n.nanoseconds).slice(-9)}Z`;
|
|
2709
2709
|
}
|
|
2710
2710
|
return {
|
|
@@ -2718,17 +2718,17 @@ function $n(t, n) {
|
|
|
2718
2718
|
*
|
|
2719
2719
|
* Visible for testing.
|
|
2720
2720
|
*/
|
|
2721
|
-
function
|
|
2722
|
-
return t.
|
|
2721
|
+
function Sn(t, n) {
|
|
2722
|
+
return t.F ? n.toBase64() : n.toUint8Array();
|
|
2723
2723
|
}
|
|
2724
2724
|
|
|
2725
|
-
function
|
|
2725
|
+
function Fn(t, n) {
|
|
2726
2726
|
return $n(t, n.toTimestamp());
|
|
2727
2727
|
}
|
|
2728
2728
|
|
|
2729
2729
|
function xn(t) {
|
|
2730
2730
|
return v(!!t), vt.fromTimestamp(function(t) {
|
|
2731
|
-
const n =
|
|
2731
|
+
const n = Rt(t);
|
|
2732
2732
|
return new gt(n.seconds, n.nanos);
|
|
2733
2733
|
}(t));
|
|
2734
2734
|
}
|
|
@@ -2789,13 +2789,13 @@ function Mn(t, n) {
|
|
|
2789
2789
|
let e;
|
|
2790
2790
|
if (n instanceof In) e = {
|
|
2791
2791
|
update: kn(t, n.key, n.value)
|
|
2792
|
-
}; else if (n instanceof
|
|
2792
|
+
}; else if (n instanceof Rn) e = {
|
|
2793
2793
|
delete: On(t, n.key)
|
|
2794
2794
|
}; else if (n instanceof An) e = {
|
|
2795
2795
|
update: kn(t, n.key, n.data),
|
|
2796
2796
|
updateMask: Yn(n.fieldMask)
|
|
2797
2797
|
}; else {
|
|
2798
|
-
if (!(n instanceof
|
|
2798
|
+
if (!(n instanceof Pn)) return g();
|
|
2799
2799
|
e = {
|
|
2800
2800
|
verify: On(t, n.key)
|
|
2801
2801
|
};
|
|
@@ -2825,7 +2825,7 @@ function Mn(t, n) {
|
|
|
2825
2825
|
throw g();
|
|
2826
2826
|
}(0, t)))), n.precondition.isNone || (e.currentDocument = function(t, n) {
|
|
2827
2827
|
return void 0 !== n.updateTime ? {
|
|
2828
|
-
updateTime:
|
|
2828
|
+
updateTime: Fn(t, n.updateTime)
|
|
2829
2829
|
} : void 0 !== n.exists ? {
|
|
2830
2830
|
exists: n.exists
|
|
2831
2831
|
} : g();
|
|
@@ -2905,7 +2905,7 @@ function Bn(t, n) {
|
|
|
2905
2905
|
}(n.orderBy);
|
|
2906
2906
|
i && (e.structuredQuery.orderBy = i);
|
|
2907
2907
|
const o = function(t, n) {
|
|
2908
|
-
return t.
|
|
2908
|
+
return t.F || ct(n) ? n : {
|
|
2909
2909
|
value: n
|
|
2910
2910
|
};
|
|
2911
2911
|
}(t, n.limit);
|
|
@@ -3096,7 +3096,7 @@ class Xn extends class {} {
|
|
|
3096
3096
|
this.J = !1;
|
|
3097
3097
|
}
|
|
3098
3098
|
X() {
|
|
3099
|
-
if (this.J) throw new U(
|
|
3099
|
+
if (this.J) throw new U(S, "The client has already been terminated.");
|
|
3100
3100
|
}
|
|
3101
3101
|
/** Invokes the provided RPC with auth and AppCheck tokens. */ m(t, n, e) {
|
|
3102
3102
|
return this.X(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, s]) => this.K.m(t, n, e, r, s))).catch((t => {
|
|
@@ -3180,7 +3180,7 @@ async function ne(t, n) {
|
|
|
3180
3180
|
* instance is terminated.
|
|
3181
3181
|
*/
|
|
3182
3182
|
function re(t) {
|
|
3183
|
-
if (t._terminated) throw new U(
|
|
3183
|
+
if (t._terminated) throw new U(S, "The client has already been terminated.");
|
|
3184
3184
|
if (!ee.has(t)) {
|
|
3185
3185
|
m("ComponentProvider", "Initializing Datastore");
|
|
3186
3186
|
const i = function(t) {
|
|
@@ -3290,7 +3290,7 @@ class se {
|
|
|
3290
3290
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
3291
3291
|
* instance.
|
|
3292
3292
|
*/ get app() {
|
|
3293
|
-
if (!this._app) throw new U(
|
|
3293
|
+
if (!this._app) throw new U(S, "Firestore was not initialized using the Firebase SDK. 'app' is not available");
|
|
3294
3294
|
return this._app;
|
|
3295
3295
|
}
|
|
3296
3296
|
get _initialized() {
|
|
@@ -3300,7 +3300,7 @@ class se {
|
|
|
3300
3300
|
return void 0 !== this._terminateTask;
|
|
3301
3301
|
}
|
|
3302
3302
|
_setSettings(t) {
|
|
3303
|
-
if (this._settingsFrozen) throw new U(
|
|
3303
|
+
if (this._settingsFrozen) throw new U(S, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
|
|
3304
3304
|
this._settings = new se(t), void 0 !== t.credentials && (this._authCredentials = function(t) {
|
|
3305
3305
|
if (!t) return new M;
|
|
3306
3306
|
switch (t.type) {
|
|
@@ -3350,7 +3350,7 @@ class se {
|
|
|
3350
3350
|
|
|
3351
3351
|
function oe(t, n) {
|
|
3352
3352
|
const e = _getProvider(t, "firestore/lite");
|
|
3353
|
-
if (e.isInitialized()) throw new U(
|
|
3353
|
+
if (e.isInitialized()) throw new U(S, "Firestore can only be initialized once per app.");
|
|
3354
3354
|
return e.initialize({
|
|
3355
3355
|
options: n
|
|
3356
3356
|
});
|
|
@@ -3590,7 +3590,7 @@ function me(t, n, ...e) {
|
|
|
3590
3590
|
if (t = getModularInstance(t),
|
|
3591
3591
|
// We allow omission of 'pathString' but explicitly prohibit passing in both
|
|
3592
3592
|
// 'undefined' and 'null'.
|
|
3593
|
-
1 === arguments.length && (n = pt.
|
|
3593
|
+
1 === arguments.length && (n = pt.R()), et("doc", "path", n), t instanceof ie) {
|
|
3594
3594
|
const r = X.fromString(n, ...e);
|
|
3595
3595
|
return rt(r), new he(t,
|
|
3596
3596
|
/* converter= */ null, new nt(r));
|
|
@@ -3881,7 +3881,7 @@ function me(t, n, ...e) {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
}
|
|
3883
3883
|
|
|
3884
|
-
function
|
|
3884
|
+
function Re(t) {
|
|
3885
3885
|
switch (t) {
|
|
3886
3886
|
case 0 /* Set */ :
|
|
3887
3887
|
// fall through
|
|
@@ -3899,7 +3899,7 @@ function Pe(t) {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
3901
|
|
|
3902
|
-
/** A "context" object passed around while parsing user data. */ class
|
|
3902
|
+
/** A "context" object passed around while parsing user data. */ class Pe {
|
|
3903
3903
|
/**
|
|
3904
3904
|
* Initializes a ParseContext with the given source and path.
|
|
3905
3905
|
*
|
|
@@ -3931,7 +3931,7 @@ function Pe(t) {
|
|
|
3931
3931
|
return this.settings.tt;
|
|
3932
3932
|
}
|
|
3933
3933
|
/** Returns a new context with the specified settings overwritten. */ nt(t) {
|
|
3934
|
-
return new
|
|
3934
|
+
return new Pe(Object.assign(Object.assign({}, this.settings), t), this.databaseId, this.q, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
|
|
3935
3935
|
}
|
|
3936
3936
|
et(t) {
|
|
3937
3937
|
var n;
|
|
@@ -3970,7 +3970,7 @@ function Pe(t) {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
st(t) {
|
|
3972
3972
|
if (0 === t.length) throw this.ut("Document fields must not be empty");
|
|
3973
|
-
if (
|
|
3973
|
+
if (Re(this.tt) && Te.test(t)) throw this.ut('Document fields cannot begin and end with "__"');
|
|
3974
3974
|
}
|
|
3975
3975
|
}
|
|
3976
3976
|
|
|
@@ -3982,7 +3982,7 @@ function Pe(t) {
|
|
|
3982
3982
|
this.databaseId = t, this.ignoreUndefinedProperties = n, this.q = e || Kn(t);
|
|
3983
3983
|
}
|
|
3984
3984
|
/** Creates a new top-level parse context. */ ht(t, n, e, r = !1) {
|
|
3985
|
-
return new
|
|
3985
|
+
return new Pe({
|
|
3986
3986
|
tt: t,
|
|
3987
3987
|
methodName: n,
|
|
3988
3988
|
at: e,
|
|
@@ -4042,8 +4042,8 @@ class $e extends be {
|
|
|
4042
4042
|
* context.
|
|
4043
4043
|
* @param context - The parent context.
|
|
4044
4044
|
* @param arrayElement - Whether or not the FieldValue has an array.
|
|
4045
|
-
*/ function
|
|
4046
|
-
return new
|
|
4045
|
+
*/ function Se(t, n, e) {
|
|
4046
|
+
return new Pe({
|
|
4047
4047
|
tt: 3 /* Argument */ ,
|
|
4048
4048
|
at: n.settings.at,
|
|
4049
4049
|
methodName: t._methodName,
|
|
@@ -4051,12 +4051,12 @@ class $e extends be {
|
|
|
4051
4051
|
}, n.databaseId, n.q, n.ignoreUndefinedProperties);
|
|
4052
4052
|
}
|
|
4053
4053
|
|
|
4054
|
-
class
|
|
4054
|
+
class Fe extends be {
|
|
4055
4055
|
_toFieldTransform(t) {
|
|
4056
4056
|
return new bn(t.path, new yn);
|
|
4057
4057
|
}
|
|
4058
4058
|
isEqual(t) {
|
|
4059
|
-
return t instanceof
|
|
4059
|
+
return t instanceof Fe;
|
|
4060
4060
|
}
|
|
4061
4061
|
}
|
|
4062
4062
|
|
|
@@ -4065,7 +4065,7 @@ class xe extends be {
|
|
|
4065
4065
|
super(t), this.lt = n;
|
|
4066
4066
|
}
|
|
4067
4067
|
_toFieldTransform(t) {
|
|
4068
|
-
const n =
|
|
4068
|
+
const n = Se(this, t,
|
|
4069
4069
|
/*array=*/ !0), e = this.lt.map((t => ke(t, n))), r = new _n(e);
|
|
4070
4070
|
return new bn(t.path, r);
|
|
4071
4071
|
}
|
|
@@ -4080,7 +4080,7 @@ class qe extends be {
|
|
|
4080
4080
|
super(t), this.lt = n;
|
|
4081
4081
|
}
|
|
4082
4082
|
_toFieldTransform(t) {
|
|
4083
|
-
const n =
|
|
4083
|
+
const n = Se(this, t,
|
|
4084
4084
|
/*array=*/ !0), e = this.lt.map((t => ke(t, n))), r = new gn(e);
|
|
4085
4085
|
return new bn(t.path, r);
|
|
4086
4086
|
}
|
|
@@ -4174,7 +4174,7 @@ class Oe extends be {
|
|
|
4174
4174
|
// from firestore-exp.
|
|
4175
4175
|
t = getModularInstance(t))) return Be("Unsupported field value:", n, t), je(t, n);
|
|
4176
4176
|
if (t instanceof be)
|
|
4177
|
-
// FieldValues usually parse into transforms (except
|
|
4177
|
+
// FieldValues usually parse into transforms (except deleteField())
|
|
4178
4178
|
// in which case we do not want to include this field in our parsed data
|
|
4179
4179
|
// (as doing so will overwrite the field directly prior to the transform
|
|
4180
4180
|
// trying to transform it). So we don't add this location to
|
|
@@ -4185,7 +4185,7 @@ class Oe extends be {
|
|
|
4185
4185
|
*/
|
|
4186
4186
|
return function(t, n) {
|
|
4187
4187
|
// Sentinels are only supported with writes, and not within arrays.
|
|
4188
|
-
if (!
|
|
4188
|
+
if (!Re(n.tt)) throw n.ut(`${t._methodName}() can only be used with update() and set()`);
|
|
4189
4189
|
if (!n.path) throw n.ut(`${t._methodName}() is not currently supported inside arrays`);
|
|
4190
4190
|
const e = t._toFieldTransform(n);
|
|
4191
4191
|
e && n.fieldTransforms.push(e);
|
|
@@ -4263,7 +4263,7 @@ class Oe extends be {
|
|
|
4263
4263
|
}
|
|
4264
4264
|
};
|
|
4265
4265
|
if (t instanceof ve) return {
|
|
4266
|
-
bytesValue:
|
|
4266
|
+
bytesValue: Sn(n.q, t._byteString)
|
|
4267
4267
|
};
|
|
4268
4268
|
if (t instanceof he) {
|
|
4269
4269
|
const e = n.databaseId, r = t.firestore._databaseId;
|
|
@@ -4322,7 +4322,7 @@ function Be(t, n, e) {
|
|
|
4322
4322
|
// FieldPath.
|
|
4323
4323
|
n = getModularInstance(n)) instanceof _e) return n._internalPath;
|
|
4324
4324
|
if ("string" == typeof n) return Qe(t, n);
|
|
4325
|
-
throw We("Field path arguments must be of type string or
|
|
4325
|
+
throw We("Field path arguments must be of type string or ", t,
|
|
4326
4326
|
/* hasConverter= */ !1,
|
|
4327
4327
|
/* path= */ void 0, e);
|
|
4328
4328
|
}
|
|
@@ -4567,7 +4567,7 @@ class er extends tr {
|
|
|
4567
4567
|
const n = De(t.firestore), e = function(t, n, e, r, s, i, o) {
|
|
4568
4568
|
let u;
|
|
4569
4569
|
if (s.isKeyField()) {
|
|
4570
|
-
if ("array-contains" /* ARRAY_CONTAINS */ === i || "array-contains-any" /* ARRAY_CONTAINS_ANY */ === i) throw new U(A, `Invalid Query. You can't perform '${i}' queries on
|
|
4570
|
+
if ("array-contains" /* ARRAY_CONTAINS */ === i || "array-contains-any" /* ARRAY_CONTAINS_ANY */ === i) throw new U(A, `Invalid Query. You can't perform '${i}' queries on documentId().`);
|
|
4571
4571
|
if ("in" /* IN */ === i || "not-in" /* NOT_IN */ === i) {
|
|
4572
4572
|
yr(o, i);
|
|
4573
4573
|
const n = [];
|
|
@@ -4777,7 +4777,7 @@ function wr(...t) {
|
|
|
4777
4777
|
|
|
4778
4778
|
/** Helper function to create a bound from a document or fields */ function mr(t, n, e, r) {
|
|
4779
4779
|
if (e[0] = getModularInstance(e[0]), e[0] instanceof He) return function(t, n, e, r, s) {
|
|
4780
|
-
if (!r) throw new U(
|
|
4780
|
+
if (!r) throw new U(P, `Can't use a DocumentSnapshot that doesn't exist for ${e}().`);
|
|
4781
4781
|
const i = [];
|
|
4782
4782
|
// Because people expect to continue/end a query at the exact document
|
|
4783
4783
|
// provided, we need to use the implicit sort order rather than the explicit
|
|
@@ -4811,9 +4811,9 @@ function wr(...t) {
|
|
|
4811
4811
|
const c = s[i];
|
|
4812
4812
|
if (o[i].field.isKeyField()) {
|
|
4813
4813
|
if ("string" != typeof c) throw new U(A, `Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof c}`);
|
|
4814
|
-
if (!ln(t) && -1 !== c.indexOf("/")) throw new U(A, `Invalid query. When querying a collection and ordering by
|
|
4814
|
+
if (!ln(t) && -1 !== c.indexOf("/")) throw new U(A, `Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${c}' contains a slash.`);
|
|
4815
4815
|
const e = t.path.child(X.fromString(c));
|
|
4816
|
-
if (!nt.isDocumentKey(e)) throw new U(A, `Invalid query. When querying a collection group and ordering by
|
|
4816
|
+
if (!nt.isDocumentKey(e)) throw new U(A, `Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${e}' is not because it contains an odd number of segments.`);
|
|
4817
4817
|
const s = new nt(e);
|
|
4818
4818
|
u.push(Ct(n, s));
|
|
4819
4819
|
} else {
|
|
@@ -4833,14 +4833,14 @@ function wr(...t) {
|
|
|
4833
4833
|
|
|
4834
4834
|
function pr(t, n, e) {
|
|
4835
4835
|
if ("string" == typeof (e = getModularInstance(e))) {
|
|
4836
|
-
if ("" === e) throw new U(A, "Invalid query. When querying with
|
|
4837
|
-
if (!ln(n) && -1 !== e.indexOf("/")) throw new U(A, `Invalid query. When querying a collection by
|
|
4836
|
+
if ("" === e) throw new U(A, "Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");
|
|
4837
|
+
if (!ln(n) && -1 !== e.indexOf("/")) throw new U(A, `Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);
|
|
4838
4838
|
const r = n.path.child(X.fromString(e));
|
|
4839
|
-
if (!nt.isDocumentKey(r)) throw new U(A, `Invalid query. When querying a collection group by
|
|
4839
|
+
if (!nt.isDocumentKey(r)) throw new U(A, `Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);
|
|
4840
4840
|
return Ct(t, new nt(r));
|
|
4841
4841
|
}
|
|
4842
4842
|
if (e instanceof he) return Ct(t, e._key);
|
|
4843
|
-
throw new U(A, `Invalid query. When querying with
|
|
4843
|
+
throw new U(A, `Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${it(e)}.`);
|
|
4844
4844
|
}
|
|
4845
4845
|
|
|
4846
4846
|
/**
|
|
@@ -4913,7 +4913,7 @@ function gr(t, n, e) {
|
|
|
4913
4913
|
|
|
4914
4914
|
class vr extends class {
|
|
4915
4915
|
convertValue(t, n = "none") {
|
|
4916
|
-
switch (
|
|
4916
|
+
switch (St(t)) {
|
|
4917
4917
|
case 0 /* NullValue */ :
|
|
4918
4918
|
return null;
|
|
4919
4919
|
|
|
@@ -4921,7 +4921,7 @@ class vr extends class {
|
|
|
4921
4921
|
return t.booleanValue;
|
|
4922
4922
|
|
|
4923
4923
|
case 2 /* NumberValue */ :
|
|
4924
|
-
return
|
|
4924
|
+
return Pt(t.integerValue || t.doubleValue);
|
|
4925
4925
|
|
|
4926
4926
|
case 3 /* TimestampValue */ :
|
|
4927
4927
|
return this.convertTimestamp(t.timestampValue);
|
|
@@ -4958,7 +4958,7 @@ class vr extends class {
|
|
|
4958
4958
|
})), e;
|
|
4959
4959
|
}
|
|
4960
4960
|
convertGeoPoint(t) {
|
|
4961
|
-
return new Ee(
|
|
4961
|
+
return new Ee(Pt(t.latitude), Pt(t.longitude));
|
|
4962
4962
|
}
|
|
4963
4963
|
convertArray(t, n) {
|
|
4964
4964
|
return (t.values || []).map((t => this.convertValue(t, n)));
|
|
@@ -4977,7 +4977,7 @@ class vr extends class {
|
|
|
4977
4977
|
}
|
|
4978
4978
|
}
|
|
4979
4979
|
convertTimestamp(t) {
|
|
4980
|
-
const n =
|
|
4980
|
+
const n = Rt(t);
|
|
4981
4981
|
return new gt(n.seconds, n.nanos);
|
|
4982
4982
|
}
|
|
4983
4983
|
convertDocumentKey(t, n) {
|
|
@@ -5075,7 +5075,7 @@ function Ir(t, n, e, ...r) {
|
|
|
5075
5075
|
* @returns A `Promise` resolved once the document has been successfully
|
|
5076
5076
|
* deleted from the backend.
|
|
5077
5077
|
*/ function Ar(t) {
|
|
5078
|
-
return Zn(re((t = ot(t, he)).firestore), [ new
|
|
5078
|
+
return Zn(re((t = ot(t, he)).firestore), [ new Rn(t._key, En.none()) ]);
|
|
5079
5079
|
}
|
|
5080
5080
|
|
|
5081
5081
|
/**
|
|
@@ -5092,7 +5092,7 @@ function Ir(t, n, e, ...r) {
|
|
|
5092
5092
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
5093
5093
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
5094
5094
|
* newly created document after it has been written to the backend.
|
|
5095
|
-
*/ function
|
|
5095
|
+
*/ function Rr(t, n) {
|
|
5096
5096
|
const e = me(t = ot(t, fe)), r = gr(t.converter, n), s = Ne(De(t.firestore), "addDoc", e._key, r, null !== e.converter, {});
|
|
5097
5097
|
return Zn(re(t.firestore), [ s.toMutation(e._key, En.exists(!1)) ]).then((() => e));
|
|
5098
5098
|
}
|
|
@@ -5116,7 +5116,7 @@ function Ir(t, n, e, ...r) {
|
|
|
5116
5116
|
/**
|
|
5117
5117
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
5118
5118
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
5119
|
-
*/ function
|
|
5119
|
+
*/ function Pr() {
|
|
5120
5120
|
return new $e("deleteField");
|
|
5121
5121
|
}
|
|
5122
5122
|
|
|
@@ -5124,7 +5124,7 @@ function Ir(t, n, e, ...r) {
|
|
|
5124
5124
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
5125
5125
|
* include a server-generated timestamp in the written data.
|
|
5126
5126
|
*/ function Vr() {
|
|
5127
|
-
return new
|
|
5127
|
+
return new Fe("serverTimestamp");
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
5130
5130
|
/**
|
|
@@ -5205,7 +5205,7 @@ function Ir(t, n, e, ...r) {
|
|
|
5205
5205
|
* provides methods for adding writes to the write batch. None of the writes
|
|
5206
5206
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
5207
5207
|
* called.
|
|
5208
|
-
*/ class
|
|
5208
|
+
*/ class Sr {
|
|
5209
5209
|
/** @hideconstructor */
|
|
5210
5210
|
constructor(t, n) {
|
|
5211
5211
|
this._firestore = t, this._commitHandler = n, this._mutations = [], this._committed = !1,
|
|
@@ -5213,12 +5213,12 @@ function Ir(t, n, e, ...r) {
|
|
|
5213
5213
|
}
|
|
5214
5214
|
set(t, n, e) {
|
|
5215
5215
|
this._verifyNotCommitted();
|
|
5216
|
-
const r =
|
|
5216
|
+
const r = Fr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
|
|
5217
5217
|
return this._mutations.push(i.toMutation(r._key, En.none())), this;
|
|
5218
5218
|
}
|
|
5219
5219
|
update(t, n, e, ...r) {
|
|
5220
5220
|
this._verifyNotCommitted();
|
|
5221
|
-
const s =
|
|
5221
|
+
const s = Fr(t, this._firestore);
|
|
5222
5222
|
// For Compat types, we have to "extract" the underlying types before
|
|
5223
5223
|
// performing validation.
|
|
5224
5224
|
let i;
|
|
@@ -5232,8 +5232,8 @@ function Ir(t, n, e, ...r) {
|
|
|
5232
5232
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
5233
5233
|
*/ delete(t) {
|
|
5234
5234
|
this._verifyNotCommitted();
|
|
5235
|
-
const n =
|
|
5236
|
-
return this._mutations = this._mutations.concat(new
|
|
5235
|
+
const n = Fr(t, this._firestore);
|
|
5236
|
+
return this._mutations = this._mutations.concat(new Rn(n._key, En.none())), this;
|
|
5237
5237
|
}
|
|
5238
5238
|
/**
|
|
5239
5239
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
@@ -5250,11 +5250,11 @@ function Ir(t, n, e, ...r) {
|
|
|
5250
5250
|
return this._verifyNotCommitted(), this._committed = !0, this._mutations.length > 0 ? this._commitHandler(this._mutations) : Promise.resolve();
|
|
5251
5251
|
}
|
|
5252
5252
|
_verifyNotCommitted() {
|
|
5253
|
-
if (this._committed) throw new U(
|
|
5253
|
+
if (this._committed) throw new U(S, "A write batch can no longer be used after commit() has been called.");
|
|
5254
5254
|
}
|
|
5255
5255
|
}
|
|
5256
5256
|
|
|
5257
|
-
function
|
|
5257
|
+
function Fr(t, n) {
|
|
5258
5258
|
if ((t = getModularInstance(t)).firestore !== n) throw new U(A, "Provided document reference is from a different Firestore instance.");
|
|
5259
5259
|
return t;
|
|
5260
5260
|
}
|
|
@@ -5273,7 +5273,7 @@ function Sr(t, n) {
|
|
|
5273
5273
|
* writes.
|
|
5274
5274
|
*/ function xr(t) {
|
|
5275
5275
|
const n = re(t = ot(t, ie));
|
|
5276
|
-
return new
|
|
5276
|
+
return new Sr(t, (t => Zn(n, t)));
|
|
5277
5277
|
}
|
|
5278
5278
|
|
|
5279
5279
|
/**
|
|
@@ -5330,7 +5330,7 @@ function Sr(t, n) {
|
|
|
5330
5330
|
this.writtenDocs.add(t.toString());
|
|
5331
5331
|
}
|
|
5332
5332
|
delete(t) {
|
|
5333
|
-
this.write(new
|
|
5333
|
+
this.write(new Rn(t, this.precondition(t))), this.writtenDocs.add(t.toString());
|
|
5334
5334
|
}
|
|
5335
5335
|
async commit() {
|
|
5336
5336
|
if (this.ensureCommitNotCalled(), this.lastWriteError) throw this.lastWriteError;
|
|
@@ -5343,7 +5343,7 @@ function Sr(t, n) {
|
|
|
5343
5343
|
// a `verify` operation.
|
|
5344
5344
|
t.forEach(((t, n) => {
|
|
5345
5345
|
const e = nt.fromPath(n);
|
|
5346
|
-
this.mutations.push(new
|
|
5346
|
+
this.mutations.push(new Pn(e, this.precondition(e)));
|
|
5347
5347
|
})), await Zn(this.datastore, this.mutations), this.committed = !0;
|
|
5348
5348
|
}
|
|
5349
5349
|
recordVersion(t) {
|
|
@@ -5357,7 +5357,7 @@ function Sr(t, n) {
|
|
|
5357
5357
|
if (e) {
|
|
5358
5358
|
if (!n.isEqual(e))
|
|
5359
5359
|
// This transaction will fail no matter what.
|
|
5360
|
-
throw new U(
|
|
5360
|
+
throw new U(F, "Document version changed between two reads.");
|
|
5361
5361
|
} else this.readVersions.set(t.key.toString(), n);
|
|
5362
5362
|
}
|
|
5363
5363
|
/**
|
|
@@ -5428,19 +5428,19 @@ class Or {
|
|
|
5428
5428
|
}
|
|
5429
5429
|
At() {
|
|
5430
5430
|
this.It.W((async () => {
|
|
5431
|
-
const t = new qr(this.datastore), n = this.
|
|
5431
|
+
const t = new qr(this.datastore), n = this.Rt(t);
|
|
5432
5432
|
n && n.then((n => {
|
|
5433
5433
|
this.asyncQueue.enqueueAndForget((() => t.commit().then((() => {
|
|
5434
5434
|
this.deferred.resolve(n);
|
|
5435
5435
|
})).catch((t => {
|
|
5436
|
-
this.
|
|
5436
|
+
this.Pt(t);
|
|
5437
5437
|
}))));
|
|
5438
5438
|
})).catch((t => {
|
|
5439
|
-
this.
|
|
5439
|
+
this.Pt(t);
|
|
5440
5440
|
}));
|
|
5441
5441
|
}));
|
|
5442
5442
|
}
|
|
5443
|
-
|
|
5443
|
+
Rt(t) {
|
|
5444
5444
|
try {
|
|
5445
5445
|
const n = this.updateFunction(t);
|
|
5446
5446
|
return !ct(n) && n.catch && n.then ? n : (this.deferred.reject(Error("Transaction callback must return a Promise")),
|
|
@@ -5450,7 +5450,7 @@ class Or {
|
|
|
5450
5450
|
return this.deferred.reject(t), null;
|
|
5451
5451
|
}
|
|
5452
5452
|
}
|
|
5453
|
-
|
|
5453
|
+
Pt(t) {
|
|
5454
5454
|
this.Tt > 0 && this.Vt(t) ? (this.Tt -= 1, this.asyncQueue.enqueueAndForget((() => (this.At(),
|
|
5455
5455
|
Promise.resolve())))) : this.deferred.reject(t);
|
|
5456
5456
|
}
|
|
@@ -5473,7 +5473,7 @@ class Or {
|
|
|
5473
5473
|
|
|
5474
5474
|
case T:
|
|
5475
5475
|
case I:
|
|
5476
|
-
case
|
|
5476
|
+
case R:
|
|
5477
5477
|
case $:
|
|
5478
5478
|
case O:
|
|
5479
5479
|
case C:
|
|
@@ -5483,14 +5483,14 @@ class Or {
|
|
|
5483
5483
|
return !1;
|
|
5484
5484
|
|
|
5485
5485
|
case A:
|
|
5486
|
-
case
|
|
5486
|
+
case P:
|
|
5487
5487
|
case V:
|
|
5488
5488
|
case D:
|
|
5489
|
-
case
|
|
5489
|
+
case S:
|
|
5490
5490
|
// Aborted might be retried in some scenarios, but that is dependant on
|
|
5491
5491
|
// the context and should handled individually by the calling code.
|
|
5492
5492
|
// See https://cloud.google.com/apis/design/errors.
|
|
5493
|
-
case
|
|
5493
|
+
case F:
|
|
5494
5494
|
case x:
|
|
5495
5495
|
case q:
|
|
5496
5496
|
case L:
|
|
@@ -5634,9 +5634,9 @@ class Or {
|
|
|
5634
5634
|
this.$t = !1,
|
|
5635
5635
|
// Operations scheduled to be queued in the future. Operations are
|
|
5636
5636
|
// automatically removed after they are run or canceled.
|
|
5637
|
-
this.
|
|
5637
|
+
this.St = [],
|
|
5638
5638
|
// visible for testing
|
|
5639
|
-
this.
|
|
5639
|
+
this.Ft = null,
|
|
5640
5640
|
// Flag set while there's an outstanding AsyncQueue operation, used for
|
|
5641
5641
|
// assertion sanity-checks.
|
|
5642
5642
|
this.xt = !1,
|
|
@@ -5758,7 +5758,7 @@ class Or {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
Ut(t) {
|
|
5760
5760
|
const n = this.Dt.then((() => (this.xt = !0, t().catch((t => {
|
|
5761
|
-
this.
|
|
5761
|
+
this.Ft = t, this.xt = !1;
|
|
5762
5762
|
const n =
|
|
5763
5763
|
/**
|
|
5764
5764
|
* Chrome includes Error.message in Error.stack. Other browsers do not.
|
|
@@ -5807,10 +5807,10 @@ class Or {
|
|
|
5807
5807
|
// Fast-forward delays for timerIds that have been overriden.
|
|
5808
5808
|
this.Ot.indexOf(t) > -1 && (n = 0);
|
|
5809
5809
|
const r = Lr.createAndSchedule(this, t, n, e, (t => this.jt(t)));
|
|
5810
|
-
return this.
|
|
5810
|
+
return this.St.push(r), r;
|
|
5811
5811
|
}
|
|
5812
5812
|
Lt() {
|
|
5813
|
-
this.
|
|
5813
|
+
this.Ft && g();
|
|
5814
5814
|
}
|
|
5815
5815
|
verifyOperationInProgress() {}
|
|
5816
5816
|
/**
|
|
@@ -5830,7 +5830,7 @@ class Or {
|
|
|
5830
5830
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
5831
5831
|
* exists.
|
|
5832
5832
|
*/ Bt(t) {
|
|
5833
|
-
for (const n of this.
|
|
5833
|
+
for (const n of this.St) if (n.timerId === t) return !0;
|
|
5834
5834
|
return !1;
|
|
5835
5835
|
}
|
|
5836
5836
|
/**
|
|
@@ -5843,8 +5843,8 @@ class Or {
|
|
|
5843
5843
|
// Note that draining may generate more delayed ops, so we do that first.
|
|
5844
5844
|
return this.Mt().then((() => {
|
|
5845
5845
|
// Run ops in the same order they'd run if they ran naturally.
|
|
5846
|
-
this.
|
|
5847
|
-
for (const n of this.
|
|
5846
|
+
this.St.sort(((t, n) => t.targetTimeMs - n.targetTimeMs));
|
|
5847
|
+
for (const n of this.St) if (n.skipDelay(), "all" /* All */ !== t && n.timerId === t) break;
|
|
5848
5848
|
return this.Mt();
|
|
5849
5849
|
}));
|
|
5850
5850
|
}
|
|
@@ -5855,8 +5855,8 @@ class Or {
|
|
|
5855
5855
|
}
|
|
5856
5856
|
/** Called once a DelayedOperation is run or canceled. */ jt(t) {
|
|
5857
5857
|
// NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.
|
|
5858
|
-
const n = this.
|
|
5859
|
-
this.
|
|
5858
|
+
const n = this.St.indexOf(t);
|
|
5859
|
+
this.St.splice(n, 1);
|
|
5860
5860
|
}
|
|
5861
5861
|
}
|
|
5862
5862
|
|
|
@@ -5871,7 +5871,7 @@ class kr {
|
|
|
5871
5871
|
* @param documentRef - A reference to the document to be read.
|
|
5872
5872
|
* @returns A `DocumentSnapshot` with the read data.
|
|
5873
5873
|
*/ get(t) {
|
|
5874
|
-
const n =
|
|
5874
|
+
const n = Fr(t, this._firestore), e = new vr(this._firestore);
|
|
5875
5875
|
return this._transaction.lookup([ n._key ]).then((t => {
|
|
5876
5876
|
if (!t || 1 !== t.length) return g();
|
|
5877
5877
|
const r = t[0];
|
|
@@ -5881,11 +5881,11 @@ class kr {
|
|
|
5881
5881
|
}));
|
|
5882
5882
|
}
|
|
5883
5883
|
set(t, n, e) {
|
|
5884
|
-
const r =
|
|
5884
|
+
const r = Fr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "Transaction.set", r._key, s, null !== r.converter, e);
|
|
5885
5885
|
return this._transaction.set(r._key, i), this;
|
|
5886
5886
|
}
|
|
5887
5887
|
update(t, n, e, ...r) {
|
|
5888
|
-
const s =
|
|
5888
|
+
const s = Fr(t, this._firestore);
|
|
5889
5889
|
// For Compat types, we have to "extract" the underlying types before
|
|
5890
5890
|
// performing validation.
|
|
5891
5891
|
let i;
|
|
@@ -5898,7 +5898,7 @@ class kr {
|
|
|
5898
5898
|
* @param documentRef - A reference to the document to be deleted.
|
|
5899
5899
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
5900
5900
|
*/ delete(t) {
|
|
5901
|
-
const n =
|
|
5901
|
+
const n = Fr(t, this._firestore);
|
|
5902
5902
|
return this._transaction.delete(n._key), this;
|
|
5903
5903
|
}
|
|
5904
5904
|
}
|
|
@@ -5938,7 +5938,7 @@ class kr {
|
|
|
5938
5938
|
return n && r._setSettings(n), r;
|
|
5939
5939
|
}), "PUBLIC")),
|
|
5940
5940
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
5941
|
-
registerVersion("firestore-lite", "3.4.2-canary.
|
|
5941
|
+
registerVersion("firestore-lite", "3.4.2-canary.88d43ec00", ""), registerVersion("firestore-lite", "3.4.2-canary.88d43ec00", "esm2017");
|
|
5942
5942
|
|
|
5943
|
-
export { ve as Bytes, fe as CollectionReference, he as DocumentReference, He as DocumentSnapshot, _e as FieldPath, be as FieldValue, ie as Firestore, U as FirestoreError, Ee as GeoPoint, le as Query, tr as QueryConstraint, Ke as QueryDocumentSnapshot, Je as QuerySnapshot, gt as Timestamp, kr as Transaction,
|
|
5943
|
+
export { ve as Bytes, fe as CollectionReference, he as DocumentReference, He as DocumentSnapshot, _e as FieldPath, be as FieldValue, ie as Firestore, U as FirestoreError, Ee as GeoPoint, le as Query, tr as QueryConstraint, Ke as QueryDocumentSnapshot, Je as QuerySnapshot, gt as Timestamp, kr as Transaction, Sr as WriteBatch, Rr as addDoc, Nr as arrayRemove, Dr as arrayUnion, de as collection, we as collectionGroup, ce as connectFirestoreEmulator, Ar as deleteDoc, Pr as deleteField, me as doc, ge as documentId, wr as endAt, dr as endBefore, br as getDoc, Er as getDocs, ue as getFirestore, $r as increment, oe as initializeFirestore, ur as limit, cr as limitToLast, ir as orderBy, nr as query, ye as queryEqual, pe as refEqual, jr as runTransaction, Vr as serverTimestamp, Tr as setDoc, w as setLogLevel, Xe as snapshotEqual, lr as startAfter, hr as startAt, ae as terminate, Ir as updateDoc, rr as where, xr as writeBatch };
|
|
5944
5944
|
//# sourceMappingURL=index.browser.esm2017.js.map
|