inibase 1.5.9 → 1.5.10
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/index.js +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1049,6 +1049,18 @@ export default class Inibase {
|
|
|
1049
1049
|
searchLogicalOperator = logic;
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
+
else if (Array.isArray(logicalChild)) {
|
|
1053
|
+
const crit = logicalChild
|
|
1054
|
+
.map((item) => typeof item === "string"
|
|
1055
|
+
? Utils.FormatObjectCriteriaValue(item)
|
|
1056
|
+
: ["=", item])
|
|
1057
|
+
.filter(Boolean);
|
|
1058
|
+
if (crit.length) {
|
|
1059
|
+
searchOperator = crit.map((c) => c[0]);
|
|
1060
|
+
searchComparedAtValue = crit.map((c) => c[1]);
|
|
1061
|
+
searchLogicalOperator = logic;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1052
1064
|
delete value[logic];
|
|
1053
1065
|
}
|
|
1054
1066
|
}
|