@firebase/firestore 3.8.3-canary.c8a6e08b0 → 3.8.3-canary.d5d78cbcf
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/core/query.d.ts +0 -1
- package/dist/index.cjs.js +12 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +12 -20
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +117 -125
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +46 -65
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +46 -65
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +12 -20
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/src/core/query.d.ts +0 -1
- package/dist/lite/index.browser.esm2017.js +1301 -1309
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +16 -24
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +1301 -1309
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +9 -28
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +9 -28
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1309 -1317
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +130 -130
- package/dist/lite/packages/firestore/src/core/query.d.ts +0 -1
- package/dist/packages/firestore/src/core/query.d.ts +0 -1
- package/package.json +9 -9
|
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
|
|
15
15
|
var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
|
|
16
16
|
|
|
17
|
-
const version$1 = "3.8.3-canary.
|
|
17
|
+
const version$1 = "3.8.3-canary.d5d78cbcf";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
67
67
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
68
68
|
User.MOCK_USER = new User('mock-user');
|
|
69
69
|
|
|
70
|
-
const version = "9.17.1-canary.
|
|
70
|
+
const version = "9.17.1-canary.d5d78cbcf";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -7668,45 +7668,26 @@ function validateDisjunctiveFilterElements(value, operator) {
|
|
|
7668
7668
|
throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid Query. A non-empty array is required for ' +
|
|
7669
7669
|
`'${operator.toString()}' filters.`);
|
|
7670
7670
|
}
|
|
7671
|
-
if (value.length > 10) {
|
|
7672
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. '${operator.toString()}' filters support a ` +
|
|
7673
|
-
'maximum of 10 elements in the value array.');
|
|
7674
|
-
}
|
|
7675
7671
|
}
|
|
7676
7672
|
/**
|
|
7677
7673
|
* Given an operator, returns the set of operators that cannot be used with it.
|
|
7678
7674
|
*
|
|
7679
|
-
*
|
|
7680
|
-
*
|
|
7681
|
-
* 2. Only one disjunctive operator is allowed.
|
|
7682
|
-
* 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.
|
|
7683
|
-
* 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
7675
|
+
* This is not a comprehensive check, and this function should be removed in the
|
|
7676
|
+
* long term. Validations should occur in the Firestore backend.
|
|
7684
7677
|
*
|
|
7685
|
-
*
|
|
7686
|
-
*
|
|
7678
|
+
* Operators in a query must adhere to the following set of rules:
|
|
7679
|
+
* 1. Only one inequality per query.
|
|
7680
|
+
* 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
7687
7681
|
*/
|
|
7688
7682
|
function conflictingOps(op) {
|
|
7689
7683
|
switch (op) {
|
|
7690
7684
|
case "!=" /* Operator.NOT_EQUAL */:
|
|
7691
7685
|
return ["!=" /* Operator.NOT_EQUAL */, "not-in" /* Operator.NOT_IN */];
|
|
7692
|
-
case "array-contains" /* Operator.ARRAY_CONTAINS */:
|
|
7693
|
-
return [
|
|
7694
|
-
"array-contains" /* Operator.ARRAY_CONTAINS */,
|
|
7695
|
-
"array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */,
|
|
7696
|
-
"not-in" /* Operator.NOT_IN */
|
|
7697
|
-
];
|
|
7698
|
-
case "in" /* Operator.IN */:
|
|
7699
|
-
return ["array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */, "in" /* Operator.IN */, "not-in" /* Operator.NOT_IN */];
|
|
7700
7686
|
case "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */:
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
"array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */,
|
|
7704
|
-
"in" /* Operator.IN */,
|
|
7705
|
-
"not-in" /* Operator.NOT_IN */
|
|
7706
|
-
];
|
|
7687
|
+
case "in" /* Operator.IN */:
|
|
7688
|
+
return ["not-in" /* Operator.NOT_IN */];
|
|
7707
7689
|
case "not-in" /* Operator.NOT_IN */:
|
|
7708
7690
|
return [
|
|
7709
|
-
"array-contains" /* Operator.ARRAY_CONTAINS */,
|
|
7710
7691
|
"array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */,
|
|
7711
7692
|
"in" /* Operator.IN */,
|
|
7712
7693
|
"not-in" /* Operator.NOT_IN */,
|