@budibase/server 2.7.7 → 2.7.11
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/builder/assets/{index.4ca5529d.js → index.80994fa2.js} +208 -208
- package/builder/index.html +1 -1
- package/dist/automation.js +13 -4
- package/dist/automation.js.map +2 -2
- package/dist/index.js +13 -4
- package/dist/index.js.map +2 -2
- package/dist/query.js +4 -1
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
- package/src/api/controllers/row/external.ts +9 -3
- package/src/api/controllers/tests/row.spec.ts +120 -0
- package/src/sdk/app/datasources/datasources.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -4951,6 +4951,9 @@ var init_lucene = __esm({
|
|
|
4951
4951
|
return contains(key, value, "OR");
|
|
4952
4952
|
};
|
|
4953
4953
|
const oneOf = (key, value) => {
|
|
4954
|
+
if (!value) {
|
|
4955
|
+
return `*:*`;
|
|
4956
|
+
}
|
|
4954
4957
|
if (!Array.isArray(value)) {
|
|
4955
4958
|
if (typeof value === "string") {
|
|
4956
4959
|
value = value.split(",");
|
|
@@ -30527,7 +30530,7 @@ function mergeConfigs(update15, old) {
|
|
|
30527
30530
|
}
|
|
30528
30531
|
if (hasAuthConfigs(update15)) {
|
|
30529
30532
|
const configs = update15.config.authConfigs;
|
|
30530
|
-
const oldConfigs = (_a2 = old.config) == null ? void 0 : _a2.authConfigs;
|
|
30533
|
+
const oldConfigs = ((_a2 = old.config) == null ? void 0 : _a2.authConfigs) || [];
|
|
30531
30534
|
for (let config of configs) {
|
|
30532
30535
|
if (config.type !== "basic" /* BASIC */) {
|
|
30533
30536
|
continue;
|
|
@@ -33564,9 +33567,15 @@ async function exportRows2(ctx) {
|
|
|
33564
33567
|
ctx.request.body = {
|
|
33565
33568
|
query: {
|
|
33566
33569
|
oneOf: {
|
|
33567
|
-
_id: ctx.request.body.rows.map(
|
|
33568
|
-
|
|
33569
|
-
|
|
33570
|
+
_id: ctx.request.body.rows.map((row2) => {
|
|
33571
|
+
const ids = JSON.parse(
|
|
33572
|
+
decodeURI(row2).replace(/'/g, `"`).replace(/%2C/g, ",")
|
|
33573
|
+
);
|
|
33574
|
+
if (ids.length > 1) {
|
|
33575
|
+
ctx.throw(400, "Export data does not support composite keys.");
|
|
33576
|
+
}
|
|
33577
|
+
return ids[0];
|
|
33578
|
+
})
|
|
33570
33579
|
}
|
|
33571
33580
|
}
|
|
33572
33581
|
};
|