@budibase/server 2.7.9 → 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.358319af.js → index.80994fa2.js} +119 -119
- package/builder/index.html +1 -1
- package/dist/automation.js +12 -3
- package/dist/automation.js.map +2 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +2 -2
- package/dist/query.js +3 -0
- 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/builder/index.html
CHANGED
|
@@ -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.
|
|
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
|
|
package/dist/automation.js
CHANGED
|
@@ -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(",");
|
|
@@ -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
|
-
|
|
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
|
};
|