@budibase/server 1.3.15-alpha.1 → 1.3.15-alpha.2
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.ed9ae6a1.js → index.2884f3c4.js} +2 -2
- package/builder/index.html +1 -1
- package/coverage/clover.xml +21 -21
- package/coverage/coverage-final.json +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 +5 -2
- 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 +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- 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 +34 -34
- package/dist/api/controllers/plugin/index.js +4 -1
- package/dist/api/controllers/screen.js +1 -0
- package/dist/api/controllers/static/templates/preview.hbs +3 -1
- package/dist/app.js +2 -0
- package/dist/package.json +7 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/websocket.js +22 -0
- package/package.json +8 -7
- package/src/api/controllers/plugin/index.ts +5 -1
- package/src/api/controllers/screen.js +1 -0
- package/src/api/controllers/static/templates/preview.hbs +3 -1
- package/src/app.ts +2 -0
- package/src/websocket.ts +26 -0
|
@@ -436,7 +436,7 @@ module.exports = InMemoryQueue
|
|
|
436
436
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
437
437
|
Code coverage generated by
|
|
438
438
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
439
|
-
at
|
|
439
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
440
440
|
</div>
|
|
441
441
|
<script src="../../prettify.js"></script>
|
|
442
442
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -145,7 +145,7 @@ exports.createRoutingView = createRoutingView
|
|
|
145
145
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
146
146
|
Code coverage generated by
|
|
147
147
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
148
|
-
at
|
|
148
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
149
149
|
</div>
|
|
150
150
|
<script src="../../prettify.js"></script>
|
|
151
151
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at
|
|
119
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -1096,7 +1096,7 @@ exports.cleanupAttachments = async (table, { row, rows, oldRow, oldTable }) =>
|
|
|
1096
1096
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1097
1097
|
Code coverage generated by
|
|
1098
1098
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1099
|
-
at
|
|
1099
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
1100
1100
|
</div>
|
|
1101
1101
|
<script src="../../prettify.js"></script>
|
|
1102
1102
|
<script>
|
|
@@ -346,7 +346,7 @@ exports.processDates = <span class="fstat-no" title="function not covered" >(t</
|
|
|
346
346
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
347
347
|
Code coverage generated by
|
|
348
348
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
349
|
-
at
|
|
349
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -142,7 +142,7 @@ module.exports = ScriptRunner
|
|
|
142
142
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
143
143
|
Code coverage generated by
|
|
144
144
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
145
|
-
at
|
|
145
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
146
146
|
</div>
|
|
147
147
|
<script src="../prettify.js"></script>
|
|
148
148
|
<script>
|
|
@@ -283,7 +283,7 @@ exports.CURRENTLY_SUPPORTED_LEVELS = CURRENTLY_SUPPORTED_LEVELS
|
|
|
283
283
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
284
284
|
Code coverage generated by
|
|
285
285
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
286
|
-
at
|
|
286
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
287
287
|
</div>
|
|
288
288
|
<script src="../prettify.js"></script>
|
|
289
289
|
<script>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
92
92
|
Code coverage generated by
|
|
93
93
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
94
|
-
at
|
|
94
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
95
95
|
</div>
|
|
96
96
|
<script src="../prettify.js"></script>
|
|
97
97
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at
|
|
119
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -310,7 +310,7 @@ exports.getUniqueRows = async appIds => {
|
|
|
310
310
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
311
311
|
Code coverage generated by
|
|
312
312
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
313
|
-
at
|
|
313
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
314
314
|
</div>
|
|
315
315
|
<script src="../../prettify.js"></script>
|
|
316
316
|
<script>
|
|
@@ -124,7 +124,7 @@ function <span class="fstat-no" title="function not covered" >resetQuotasIfRequi
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at
|
|
127
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../prettify.js"></script>
|
|
130
130
|
<script>
|
|
@@ -205,7 +205,7 @@ exports.publicApiUserFix = ctx => {
|
|
|
205
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
206
206
|
Code coverage generated by
|
|
207
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
208
|
-
at
|
|
208
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
209
209
|
</div>
|
|
210
210
|
<script src="../prettify.js"></script>
|
|
211
211
|
<script>
|
|
@@ -535,7 +535,7 @@ exports.getChecklist = <span class="fstat-no" title="function not covered" >as</
|
|
|
535
535
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
536
536
|
Code coverage generated by
|
|
537
537
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
538
|
-
at
|
|
538
|
+
at Tue Sep 13 2022 09:23:17 GMT+0000 (Coordinated Universal Time)
|
|
539
539
|
</div>
|
|
540
540
|
<script src="../prettify.js"></script>
|
|
541
541
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -1399,9 +1399,9 @@ FN:54,(anonymous_3)
|
|
|
1399
1399
|
FN:55,(anonymous_4)
|
|
1400
1400
|
FN:66,(anonymous_5)
|
|
1401
1401
|
FN:67,(anonymous_6)
|
|
1402
|
-
FN:
|
|
1403
|
-
FN:
|
|
1404
|
-
FN:
|
|
1402
|
+
FN:96,(anonymous_7)
|
|
1403
|
+
FN:110,(anonymous_8)
|
|
1404
|
+
FN:122,(anonymous_9)
|
|
1405
1405
|
FNF:10
|
|
1406
1406
|
FNH:6
|
|
1407
1407
|
FNDA:1,(anonymous_0)
|
|
@@ -1447,29 +1447,29 @@ DA:66,0
|
|
|
1447
1447
|
DA:67,0
|
|
1448
1448
|
DA:68,0
|
|
1449
1449
|
DA:69,0
|
|
1450
|
-
DA:78,0
|
|
1451
1450
|
DA:79,0
|
|
1452
|
-
DA:
|
|
1453
|
-
DA:84,
|
|
1454
|
-
DA:
|
|
1451
|
+
DA:80,0
|
|
1452
|
+
DA:84,24
|
|
1453
|
+
DA:85,23
|
|
1455
1454
|
DA:87,24
|
|
1456
|
-
DA:
|
|
1457
|
-
DA:96,
|
|
1455
|
+
DA:88,24
|
|
1456
|
+
DA:96,44
|
|
1458
1457
|
DA:97,1
|
|
1459
1458
|
DA:98,1
|
|
1460
|
-
DA:
|
|
1461
|
-
DA:
|
|
1459
|
+
DA:99,1
|
|
1460
|
+
DA:101,1
|
|
1462
1461
|
DA:103,1
|
|
1463
|
-
DA:
|
|
1464
|
-
DA:
|
|
1465
|
-
DA:110,
|
|
1466
|
-
DA:111,
|
|
1467
|
-
DA:
|
|
1468
|
-
DA:114,
|
|
1462
|
+
DA:104,1
|
|
1463
|
+
DA:107,1
|
|
1464
|
+
DA:110,44
|
|
1465
|
+
DA:111,48
|
|
1466
|
+
DA:112,0
|
|
1467
|
+
DA:114,48
|
|
1469
1468
|
DA:115,0
|
|
1470
|
-
DA:
|
|
1471
|
-
DA:119,
|
|
1472
|
-
DA:
|
|
1469
|
+
DA:116,0
|
|
1470
|
+
DA:119,48
|
|
1471
|
+
DA:120,24
|
|
1472
|
+
DA:122,24
|
|
1473
1473
|
LF:56
|
|
1474
1474
|
LH:40
|
|
1475
1475
|
BRDA:35,0,0,23
|
|
@@ -1482,20 +1482,20 @@ BRDA:64,3,0,0
|
|
|
1482
1482
|
BRDA:64,3,1,0
|
|
1483
1483
|
BRDA:67,4,0,0
|
|
1484
1484
|
BRDA:67,4,1,0
|
|
1485
|
-
BRDA:
|
|
1486
|
-
BRDA:
|
|
1487
|
-
BRDA:
|
|
1488
|
-
BRDA:
|
|
1489
|
-
BRDA:
|
|
1490
|
-
BRDA:
|
|
1491
|
-
BRDA:
|
|
1492
|
-
BRDA:
|
|
1493
|
-
BRDA:
|
|
1494
|
-
BRDA:
|
|
1495
|
-
BRDA:
|
|
1496
|
-
BRDA:
|
|
1497
|
-
BRDA:
|
|
1498
|
-
BRDA:
|
|
1485
|
+
BRDA:79,5,0,0
|
|
1486
|
+
BRDA:79,5,1,0
|
|
1487
|
+
BRDA:84,6,0,23
|
|
1488
|
+
BRDA:84,6,1,1
|
|
1489
|
+
BRDA:111,7,0,0
|
|
1490
|
+
BRDA:111,7,1,48
|
|
1491
|
+
BRDA:114,8,0,0
|
|
1492
|
+
BRDA:114,8,1,48
|
|
1493
|
+
BRDA:115,9,0,0
|
|
1494
|
+
BRDA:115,9,1,0
|
|
1495
|
+
BRDA:119,10,0,24
|
|
1496
|
+
BRDA:119,10,1,24
|
|
1497
|
+
BRDA:119,11,0,48
|
|
1498
|
+
BRDA:119,11,1,48
|
|
1499
1499
|
BRF:24
|
|
1500
1500
|
BRH:11
|
|
1501
1501
|
end_of_record
|
|
@@ -22,6 +22,7 @@ const utils_1 = require("../../../db/utils");
|
|
|
22
22
|
const objectStore_1 = require("@budibase/backend-core/objectStore");
|
|
23
23
|
const types_1 = require("@budibase/types");
|
|
24
24
|
const environment_1 = __importDefault(require("../../../environment"));
|
|
25
|
+
const websocket_1 = require("../../../websocket");
|
|
25
26
|
function getPlugins(type) {
|
|
26
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
28
|
const db = (0, tenancy_1.getGlobalDB)();
|
|
@@ -134,7 +135,7 @@ exports.destroy = destroy;
|
|
|
134
135
|
function storePlugin(metadata, directory, source) {
|
|
135
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
137
|
const db = (0, tenancy_1.getGlobalDB)();
|
|
137
|
-
const version = metadata.package.version, name = metadata.package.name, description = metadata.package.description;
|
|
138
|
+
const version = metadata.package.version, name = metadata.package.name, description = metadata.package.description, hash = metadata.schema.hash;
|
|
138
139
|
// first open the tarball into tmp directory
|
|
139
140
|
const bucketPath = `${name}/`;
|
|
140
141
|
const files = yield (0, objectStore_1.uploadDirectory)(constants_1.ObjectStoreBuckets.PLUGINS, directory, bucketPath);
|
|
@@ -168,11 +169,13 @@ function storePlugin(metadata, directory, source) {
|
|
|
168
169
|
}
|
|
169
170
|
let doc = Object.assign(Object.assign({ _id: pluginId, _rev: rev }, metadata), { name,
|
|
170
171
|
version,
|
|
172
|
+
hash,
|
|
171
173
|
description, jsUrl: `${bucketPath}${jsFileName}` });
|
|
172
174
|
if (source) {
|
|
173
175
|
doc = Object.assign(Object.assign({}, doc), { source });
|
|
174
176
|
}
|
|
175
177
|
const response = yield db.put(doc);
|
|
178
|
+
websocket_1.ClientAppSocket.emit("plugin-update", { name, hash });
|
|
176
179
|
return Object.assign(Object.assign({}, doc), { _rev: response.rev });
|
|
177
180
|
});
|
|
178
181
|
}
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
previewDevice,
|
|
68
68
|
navigation,
|
|
69
69
|
hiddenComponentIds,
|
|
70
|
-
usedPlugins
|
|
70
|
+
usedPlugins,
|
|
71
|
+
location
|
|
71
72
|
} = parsed
|
|
72
73
|
|
|
73
74
|
// Set some flags so the app knows we're in the builder
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
window["##BUDIBASE_PREVIEW_NAVIGATION##"] = navigation
|
|
84
85
|
window["##BUDIBASE_HIDDEN_COMPONENT_IDS##"] = hiddenComponentIds
|
|
85
86
|
window["##BUDIBASE_USED_PLUGINS##"] = usedPlugins
|
|
87
|
+
window["##BUDIBASE_LOCATION##"] = location
|
|
86
88
|
|
|
87
89
|
// Initialise app
|
|
88
90
|
try {
|
package/dist/app.js
CHANGED
|
@@ -66,6 +66,7 @@ const migrations = __importStar(require("./migrations"));
|
|
|
66
66
|
const backend_core_1 = require("@budibase/backend-core");
|
|
67
67
|
const workerRequests_1 = require("./utilities/workerRequests");
|
|
68
68
|
const watch_1 = require("./watch");
|
|
69
|
+
const websocket_1 = require("./websocket");
|
|
69
70
|
const app = new Koa();
|
|
70
71
|
// set up top level koa middleware
|
|
71
72
|
app.use(koaBody({
|
|
@@ -99,6 +100,7 @@ if (env.isProd()) {
|
|
|
99
100
|
}
|
|
100
101
|
const server = http.createServer(app.callback());
|
|
101
102
|
destroyable(server);
|
|
103
|
+
(0, websocket_1.initialise)(server);
|
|
102
104
|
let shuttingDown = false, errCode = 0;
|
|
103
105
|
server.on("close", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
104
106
|
// already in process
|
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.3.15-alpha.
|
|
4
|
+
"version": "1.3.15-alpha.1",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"license": "GPL-3.0",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
80
|
-
"@budibase/backend-core": "1.3.15-alpha.
|
|
81
|
-
"@budibase/client": "1.3.15-alpha.
|
|
82
|
-
"@budibase/pro": "1.3.15-alpha.
|
|
83
|
-
"@budibase/string-templates": "1.3.15-alpha.
|
|
84
|
-
"@budibase/types": "1.3.15-alpha.
|
|
80
|
+
"@budibase/backend-core": "1.3.15-alpha.1",
|
|
81
|
+
"@budibase/client": "1.3.15-alpha.1",
|
|
82
|
+
"@budibase/pro": "1.3.15-alpha.1",
|
|
83
|
+
"@budibase/string-templates": "1.3.15-alpha.1",
|
|
84
|
+
"@budibase/types": "1.3.15-alpha.1",
|
|
85
85
|
"@bull-board/api": "3.7.0",
|
|
86
86
|
"@bull-board/koa": "3.9.4",
|
|
87
87
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
"redis": "4",
|
|
140
140
|
"server-destroy": "1.0.1",
|
|
141
141
|
"snowflake-promise": "^4.5.0",
|
|
142
|
+
"socket.io": "^4.5.1",
|
|
142
143
|
"svelte": "3.49.0",
|
|
143
144
|
"swagger-parser": "10.0.3",
|
|
144
145
|
"tar": "6.1.11",
|