@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.
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.4ca5529d.js"></script>
11
+ <script type="module" crossorigin src="/builder/assets/index.80994fa2.js"></script>
12
12
  <link rel="stylesheet" href="/builder/assets/index.a86e2071.css">
13
13
  </head>
14
14
 
@@ -4911,6 +4911,9 @@ var init_lucene = __esm({
4911
4911
  return contains(key, value, "OR");
4912
4912
  };
4913
4913
  const oneOf = (key, value) => {
4914
+ if (!value) {
4915
+ return `*:*`;
4916
+ }
4914
4917
  if (!Array.isArray(value)) {
4915
4918
  if (typeof value === "string") {
4916
4919
  value = value.split(",");
@@ -25300,7 +25303,7 @@ function mergeConfigs(update7, old) {
25300
25303
  }
25301
25304
  if (hasAuthConfigs(update7)) {
25302
25305
  const configs = update7.config.authConfigs;
25303
- const oldConfigs = (_a = old.config) == null ? void 0 : _a.authConfigs;
25306
+ const oldConfigs = ((_a = old.config) == null ? void 0 : _a.authConfigs) || [];
25304
25307
  for (let config of configs) {
25305
25308
  if (config.type !== "basic" /* BASIC */) {
25306
25309
  continue;
@@ -30021,9 +30024,15 @@ async function exportRows2(ctx) {
30021
30024
  ctx.request.body = {
30022
30025
  query: {
30023
30026
  oneOf: {
30024
- _id: ctx.request.body.rows.map(
30025
- (row) => JSON.parse(decodeURI(row))[0]
30026
- )
30027
+ _id: ctx.request.body.rows.map((row) => {
30028
+ const ids = JSON.parse(
30029
+ decodeURI(row).replace(/'/g, `"`).replace(/%2C/g, ",")
30030
+ );
30031
+ if (ids.length > 1) {
30032
+ ctx.throw(400, "Export data does not support composite keys.");
30033
+ }
30034
+ return ids[0];
30035
+ })
30027
30036
  }
30028
30037
  }
30029
30038
  };