@budibase/server 1.0.151-alpha.2 → 1.0.151
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.8716cb1f.js → index.e05b34c9.js} +163 -163
- package/builder/index.html +1 -1
- package/coverage/clover.xml +21 -21
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +3 -3
- package/coverage/lcov-report/api/controllers/view/index.html +4 -4
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +2 -5
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +4 -4
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +8 -8
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +32 -34
- package/dist/api/controllers/view/exporters.js +1 -1
- package/dist/automations/steps/queryRows.js +0 -1
- package/dist/integrations/base/sql.js +27 -1
- package/dist/package.json +6 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/src/api/controllers/view/exporters.js +1 -1
- package/src/automations/steps/queryRows.js +0 -1
- package/src/integrations/base/sql.ts +28 -1
package/coverage/lcov.info
CHANGED
|
@@ -3354,10 +3354,8 @@ LF:11
|
|
|
3354
3354
|
LH:11
|
|
3355
3355
|
BRDA:9,0,0,0
|
|
3356
3356
|
BRDA:9,0,1,2
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
BRF:4
|
|
3360
|
-
BRH:2
|
|
3357
|
+
BRF:2
|
|
3358
|
+
BRH:1
|
|
3361
3359
|
end_of_record
|
|
3362
3360
|
TN:
|
|
3363
3361
|
SF:src/api/controllers/view/index.js
|
|
@@ -4754,8 +4752,8 @@ BRH:12
|
|
|
4754
4752
|
end_of_record
|
|
4755
4753
|
TN:
|
|
4756
4754
|
SF:src/automations/steps/queryRows.js
|
|
4757
|
-
FN:
|
|
4758
|
-
FN:
|
|
4755
|
+
FN:74,getTable
|
|
4756
|
+
FN:84,(anonymous_1)
|
|
4759
4757
|
FNF:2
|
|
4760
4758
|
FNH:2
|
|
4761
4759
|
FNDA:1,getTable
|
|
@@ -4768,35 +4766,35 @@ DA:5,41
|
|
|
4768
4766
|
DA:7,41
|
|
4769
4767
|
DA:12,41
|
|
4770
4768
|
DA:17,41
|
|
4771
|
-
DA:
|
|
4769
|
+
DA:75,1
|
|
4770
|
+
DA:80,1
|
|
4772
4771
|
DA:81,1
|
|
4773
|
-
DA:
|
|
4774
|
-
DA:85,
|
|
4772
|
+
DA:84,41
|
|
4773
|
+
DA:85,1
|
|
4775
4774
|
DA:86,1
|
|
4776
4775
|
DA:87,1
|
|
4777
4776
|
DA:88,1
|
|
4778
4777
|
DA:89,1
|
|
4779
4778
|
DA:90,1
|
|
4780
|
-
DA:
|
|
4781
|
-
DA:
|
|
4779
|
+
DA:93,1
|
|
4780
|
+
DA:105,1
|
|
4782
4781
|
DA:106,1
|
|
4783
4782
|
DA:107,1
|
|
4784
|
-
DA:
|
|
4785
|
-
DA:113,0
|
|
4783
|
+
DA:112,0
|
|
4786
4784
|
LF:23
|
|
4787
4785
|
LH:22
|
|
4788
|
-
BRDA:
|
|
4789
|
-
BRDA:
|
|
4790
|
-
BRDA:
|
|
4791
|
-
BRDA:
|
|
4792
|
-
BRDA:
|
|
4793
|
-
BRDA:
|
|
4794
|
-
BRDA:
|
|
4795
|
-
BRDA:
|
|
4796
|
-
BRDA:
|
|
4797
|
-
BRDA:
|
|
4798
|
-
BRDA:
|
|
4799
|
-
BRDA:
|
|
4786
|
+
BRDA:88,0,0,1
|
|
4787
|
+
BRDA:88,0,1,0
|
|
4788
|
+
BRDA:88,1,0,1
|
|
4789
|
+
BRDA:88,1,1,1
|
|
4790
|
+
BRDA:88,1,2,1
|
|
4791
|
+
BRDA:88,1,3,1
|
|
4792
|
+
BRDA:91,2,0,0
|
|
4793
|
+
BRDA:91,2,1,1
|
|
4794
|
+
BRDA:101,3,0,1
|
|
4795
|
+
BRDA:101,3,1,0
|
|
4796
|
+
BRDA:108,4,0,1
|
|
4797
|
+
BRDA:108,4,1,0
|
|
4800
4798
|
BRF:12
|
|
4801
4799
|
BRH:8
|
|
4802
4800
|
end_of_record
|
|
@@ -8147,25 +8145,25 @@ FN:38,(anonymous_4)
|
|
|
8147
8145
|
FN:54,(anonymous_5)
|
|
8148
8146
|
FNF:6
|
|
8149
8147
|
FNH:6
|
|
8150
|
-
FNDA:
|
|
8148
|
+
FNDA:35,(anonymous_0)
|
|
8151
8149
|
FNDA:15,(anonymous_1)
|
|
8152
8150
|
FNDA:15,(anonymous_2)
|
|
8153
8151
|
FNDA:3,(anonymous_3)
|
|
8154
8152
|
FNDA:3,(anonymous_4)
|
|
8155
|
-
FNDA:
|
|
8153
|
+
FNDA:35,(anonymous_5)
|
|
8156
8154
|
DA:1,40
|
|
8157
8155
|
DA:6,40
|
|
8158
8156
|
DA:8,40
|
|
8159
8157
|
DA:10,40
|
|
8160
|
-
DA:13,
|
|
8161
|
-
DA:14,
|
|
8158
|
+
DA:13,35
|
|
8159
|
+
DA:14,35
|
|
8162
8160
|
DA:15,15
|
|
8163
8161
|
DA:16,15
|
|
8164
8162
|
DA:17,13
|
|
8165
8163
|
DA:19,15
|
|
8166
8164
|
DA:20,13
|
|
8167
8165
|
DA:22,2
|
|
8168
|
-
DA:25,
|
|
8166
|
+
DA:25,35
|
|
8169
8167
|
DA:28,40
|
|
8170
8168
|
DA:30,15
|
|
8171
8169
|
DA:31,15
|
|
@@ -8176,9 +8174,9 @@ DA:40,3
|
|
|
8176
8174
|
DA:41,0
|
|
8177
8175
|
DA:44,3
|
|
8178
8176
|
DA:54,40
|
|
8179
|
-
DA:55,
|
|
8180
|
-
DA:56,
|
|
8181
|
-
DA:58,
|
|
8177
|
+
DA:55,35
|
|
8178
|
+
DA:56,35
|
|
8179
|
+
DA:58,35
|
|
8182
8180
|
DA:59,13
|
|
8183
8181
|
DA:60,13
|
|
8184
8182
|
DA:61,26
|
|
@@ -8187,7 +8185,7 @@ DA:64,15
|
|
|
8187
8185
|
DA:65,15
|
|
8188
8186
|
DA:67,0
|
|
8189
8187
|
DA:75,13
|
|
8190
|
-
DA:78,
|
|
8188
|
+
DA:78,35
|
|
8191
8189
|
LF:35
|
|
8192
8190
|
LH:33
|
|
8193
8191
|
BRDA:16,0,0,13
|
|
@@ -24,6 +24,30 @@ const BASE_LIMIT = envLimit || 5000;
|
|
|
24
24
|
// these are invalid dates sent by the client, need to convert them to a real max date
|
|
25
25
|
const MIN_ISO_DATE = "0000-00-00T00:00:00.000Z";
|
|
26
26
|
const MAX_ISO_DATE = "9999-00-00T00:00:00.000Z";
|
|
27
|
+
function likeKey(client, key) {
|
|
28
|
+
if (!key.includes(" ")) {
|
|
29
|
+
return key;
|
|
30
|
+
}
|
|
31
|
+
let start, end;
|
|
32
|
+
switch (client) {
|
|
33
|
+
case utils_1.SqlClients.MY_SQL:
|
|
34
|
+
start = end = "`";
|
|
35
|
+
break;
|
|
36
|
+
case utils_1.SqlClients.ORACLE:
|
|
37
|
+
case utils_1.SqlClients.POSTGRES:
|
|
38
|
+
start = end = '"';
|
|
39
|
+
break;
|
|
40
|
+
case utils_1.SqlClients.MS_SQL:
|
|
41
|
+
start = "[";
|
|
42
|
+
end = "]";
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
throw "Unknown client";
|
|
46
|
+
}
|
|
47
|
+
const parts = key.split(".");
|
|
48
|
+
key = parts.map(part => `${start}${part}${end}`).join(".");
|
|
49
|
+
return key;
|
|
50
|
+
}
|
|
27
51
|
function parse(input) {
|
|
28
52
|
if (Array.isArray(input)) {
|
|
29
53
|
return JSON.stringify(input);
|
|
@@ -118,7 +142,9 @@ class InternalBuilder {
|
|
|
118
142
|
else {
|
|
119
143
|
const rawFnc = `${fnc}Raw`;
|
|
120
144
|
// @ts-ignore
|
|
121
|
-
query = query[rawFnc](`LOWER(${key}) LIKE ?`, [
|
|
145
|
+
query = query[rawFnc](`LOWER(${likeKey(this.client, key)}) LIKE ?`, [
|
|
146
|
+
`%${value}%`,
|
|
147
|
+
]);
|
|
122
148
|
}
|
|
123
149
|
});
|
|
124
150
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.150",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rimraf dist/ && tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/ && yarn postbuild",
|
|
13
|
+
"debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js",
|
|
13
14
|
"postbuild": "copyfiles -u 1 src/**/*.svelte dist/ && copyfiles -u 1 src/**/*.hbs dist/ && copyfiles -u 1 src/**/*.json dist/",
|
|
14
15
|
"test": "jest --coverage --maxWorkers=2",
|
|
15
16
|
"test:watch": "jest --watch",
|
|
@@ -68,10 +69,10 @@
|
|
|
68
69
|
"license": "GPL-3.0",
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"@apidevtools/swagger-parser": "^10.0.3",
|
|
71
|
-
"@budibase/backend-core": "^1.0.
|
|
72
|
-
"@budibase/client": "^1.0.
|
|
73
|
-
"@budibase/pro": "1.0.
|
|
74
|
-
"@budibase/string-templates": "^1.0.
|
|
72
|
+
"@budibase/backend-core": "^1.0.150",
|
|
73
|
+
"@budibase/client": "^1.0.150",
|
|
74
|
+
"@budibase/pro": "1.0.150",
|
|
75
|
+
"@budibase/string-templates": "^1.0.150",
|
|
75
76
|
"@bull-board/api": "^3.7.0",
|
|
76
77
|
"@bull-board/koa": "^3.7.0",
|
|
77
78
|
"@elastic/elasticsearch": "7.10.0",
|