@budibase/backend-core 3.0.4 → 3.1.0
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 +6 -14
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/plugins.js.meta.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -61992,7 +61992,6 @@ __export(filters_exports, {
|
|
|
61992
61992
|
hasFilters: () => hasFilters,
|
|
61993
61993
|
limit: () => limit,
|
|
61994
61994
|
recurseLogicalOperators: () => recurseLogicalOperators,
|
|
61995
|
-
recurseSearchFilters: () => recurseSearchFilters,
|
|
61996
61995
|
removeKeyNumbering: () => removeKeyNumbering,
|
|
61997
61996
|
runQuery: () => runQuery,
|
|
61998
61997
|
search: () => search,
|
|
@@ -62023,8 +62022,12 @@ var FILTER_ALLOWED_KEYS = [
|
|
|
62023
62022
|
"noValue",
|
|
62024
62023
|
"formulaType"
|
|
62025
62024
|
];
|
|
62026
|
-
function unreachable(value,
|
|
62027
|
-
|
|
62025
|
+
function unreachable(value, opts) {
|
|
62026
|
+
const message = opts?.message || `No such case in exhaustive switch: ${value}`;
|
|
62027
|
+
const doNotThrow = !!opts?.doNotThrow;
|
|
62028
|
+
if (!doNotThrow) {
|
|
62029
|
+
throw new Error(message);
|
|
62030
|
+
}
|
|
62028
62031
|
}
|
|
62029
62032
|
async function parallelForeach(items, task, maxConcurrency) {
|
|
62030
62033
|
const promises = [];
|
|
@@ -62488,17 +62491,6 @@ function recurseLogicalOperators(filters, fn) {
|
|
|
62488
62491
|
}
|
|
62489
62492
|
return filters;
|
|
62490
62493
|
}
|
|
62491
|
-
function recurseSearchFilters(filters, processFn) {
|
|
62492
|
-
filters = processFn(filters);
|
|
62493
|
-
for (const logical of LOGICAL_OPERATORS) {
|
|
62494
|
-
if (filters[logical]) {
|
|
62495
|
-
filters[logical].conditions = filters[logical].conditions.map(
|
|
62496
|
-
(condition) => recurseSearchFilters(condition, processFn)
|
|
62497
|
-
);
|
|
62498
|
-
}
|
|
62499
|
-
}
|
|
62500
|
-
return filters;
|
|
62501
|
-
}
|
|
62502
62494
|
var cleanupQuery = (query) => {
|
|
62503
62495
|
for (let filterField of NoEmptyFilterStrings) {
|
|
62504
62496
|
if (!query[filterField]) {
|