@budibase/server 2.1.5 → 2.1.6

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.
Files changed (152) hide show
  1. package/builder/assets/{index.86a98a14.js → index.a6527c44.js} +210 -210
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +15 -11
  4. package/coverage/coverage-final.json +1 -1
  5. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/index.html +1 -1
  11. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  17. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/row/index.html +15 -15
  22. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/utils.js.html +40 -10
  26. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  30. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  38. package/coverage/lcov-report/api/index.html +1 -1
  39. package/coverage/lcov-report/api/index.js.html +1 -1
  40. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  41. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  42. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  43. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  44. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/index.html +1 -1
  49. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  65. package/coverage/lcov-report/automations/actions.js.html +1 -1
  66. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  67. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  68. package/coverage/lcov-report/automations/index.html +1 -1
  69. package/coverage/lcov-report/automations/index.js.html +1 -1
  70. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  71. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  72. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  73. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  74. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  75. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  76. package/coverage/lcov-report/automations/steps/index.html +1 -1
  77. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  87. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  88. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  89. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  90. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  91. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  92. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  93. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  94. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  95. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  96. package/coverage/lcov-report/constants/index.html +1 -1
  97. package/coverage/lcov-report/constants/index.js.html +1 -1
  98. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  99. package/coverage/lcov-report/constants/screens.js.html +1 -1
  100. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  101. package/coverage/lcov-report/db/index.html +1 -1
  102. package/coverage/lcov-report/db/index.js.html +1 -1
  103. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  104. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  105. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  106. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  107. package/coverage/lcov-report/db/newid.js.html +1 -1
  108. package/coverage/lcov-report/db/utils.js.html +1 -1
  109. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  110. package/coverage/lcov-report/events/index.html +1 -1
  111. package/coverage/lcov-report/events/index.js.html +1 -1
  112. package/coverage/lcov-report/events/utils.js.html +1 -1
  113. package/coverage/lcov-report/index.html +15 -15
  114. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  115. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  116. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  117. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  118. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  119. package/coverage/lcov-report/middleware/index.html +1 -1
  120. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  121. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  122. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  123. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  124. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  125. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  126. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  127. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  128. package/coverage/lcov-report/utilities/global.js.html +1 -1
  129. package/coverage/lcov-report/utilities/index.html +1 -1
  130. package/coverage/lcov-report/utilities/index.js.html +1 -1
  131. package/coverage/lcov-report/utilities/plugins.js.html +1 -1
  132. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  133. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  134. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  135. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  136. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  137. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  138. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  139. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  140. package/coverage/lcov-report/utilities/security.js.html +1 -1
  141. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  142. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  143. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  144. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  145. package/coverage/lcov-report/utilities/users.js.html +1 -1
  146. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  147. package/coverage/lcov.info +21 -12
  148. package/dist/api/controllers/row/utils.js +11 -2
  149. package/dist/package.json +6 -6
  150. package/dist/tsconfig.build.tsbuildinfo +1 -1
  151. package/package.json +7 -7
  152. package/src/api/controllers/row/utils.js +12 -2
@@ -1465,7 +1465,7 @@ module.exports = LinkController
1465
1465
  <div class='footer quiet pad2 space-top1 center small'>
1466
1466
  Code coverage generated by
1467
1467
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1468
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
1468
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
1469
1469
  </div>
1470
1470
  <script src="../../prettify.js"></script>
1471
1471
  <script>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
134
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
135
135
  </div>
136
136
  <script src="../../prettify.js"></script>
137
137
  <script>
@@ -706,7 +706,7 @@ exports.squashLinksToPrimaryDisplay = async (table, enriched) =&gt; {
706
706
  <div class='footer quiet pad2 space-top1 center small'>
707
707
  Code coverage generated by
708
708
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
709
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
709
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
710
710
  </div>
711
711
  <script src="../../prettify.js"></script>
712
712
  <script>
@@ -418,7 +418,7 @@ exports.getRelatedTableForField = (table, fieldName) =&gt; {
418
418
  <div class='footer quiet pad2 space-top1 center small'>
419
419
  Code coverage generated by
420
420
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
421
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
421
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
422
422
  </div>
423
423
  <script src="../../prettify.js"></script>
424
424
  <script>
@@ -85,7 +85,7 @@ module.exports = function () {
85
85
  <div class='footer quiet pad2 space-top1 center small'>
86
86
  Code coverage generated by
87
87
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
88
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
88
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
89
89
  </div>
90
90
  <script src="../prettify.js"></script>
91
91
  <script>
@@ -946,7 +946,7 @@ exports.getMultiIDParams = ids =&gt; {
946
946
  <div class='footer quiet pad2 space-top1 center small'>
947
947
  Code coverage generated by
948
948
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
949
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
949
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
950
950
  </div>
951
951
  <script src="../prettify.js"></script>
952
952
  <script>
@@ -229,7 +229,7 @@ module.exports = AutomationEmitter
229
229
  <div class='footer quiet pad2 space-top1 center small'>
230
230
  Code coverage generated by
231
231
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
232
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
232
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
233
233
  </div>
234
234
  <script src="../prettify.js"></script>
235
235
  <script>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
134
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
135
135
  </div>
136
136
  <script src="../prettify.js"></script>
137
137
  <script>
@@ -160,7 +160,7 @@ module.exports = emitter
160
160
  <div class='footer quiet pad2 space-top1 center small'>
161
161
  Code coverage generated by
162
162
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
163
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
163
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
164
164
  </div>
165
165
  <script src="../prettify.js"></script>
166
166
  <script>
@@ -184,7 +184,7 @@ exports.tableEmission = ({ emitter, eventName, appId, table, metadata }) =&gt; {
184
184
  <div class='footer quiet pad2 space-top1 center small'>
185
185
  Code coverage generated by
186
186
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
187
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
187
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
188
188
  </div>
189
189
  <script src="../prettify.js"></script>
190
190
  <script>
@@ -23,16 +23,16 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">72.24% </span>
26
+ <span class="strong">72.17% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>2952/4086</span>
28
+ <span class='fraction'>2952/4090</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">55.12% </span>
33
+ <span class="strong">55.07% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>963/1747</span>
35
+ <span class='fraction'>965/1752</span>
36
36
  </div>
37
37
 
38
38
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">72.31% </span>
47
+ <span class="strong">72.24% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>2905/4017</span>
49
+ <span class='fraction'>2905/4021</span>
50
50
  </div>
51
51
 
52
52
 
@@ -125,17 +125,17 @@
125
125
 
126
126
  <tr>
127
127
  <td class="file medium" data-value="api/controllers/row"><a href="api/controllers/row/index.html">api/controllers/row</a></td>
128
- <td data-value="65.2" class="pic medium">
129
- <div class="chart"><div class="cover-fill" style="width: 65%"></div><div class="cover-empty" style="width: 35%"></div></div>
128
+ <td data-value="64.82" class="pic medium">
129
+ <div class="chart"><div class="cover-fill" style="width: 64%"></div><div class="cover-empty" style="width: 36%"></div></div>
130
130
  </td>
131
- <td data-value="65.2" class="pct medium">65.2%</td>
132
- <td data-value="684" class="abs medium">446/684</td>
133
- <td data-value="48.75" class="pct low">48.75%</td>
134
- <td data-value="322" class="abs low">157/322</td>
131
+ <td data-value="64.82" class="pct medium">64.82%</td>
132
+ <td data-value="688" class="abs medium">446/688</td>
133
+ <td data-value="48.62" class="pct low">48.62%</td>
134
+ <td data-value="327" class="abs low">159/327</td>
135
135
  <td data-value="61.7" class="pct medium">61.7%</td>
136
136
  <td data-value="94" class="abs medium">58/94</td>
137
- <td data-value="65.06" class="pct medium">65.06%</td>
138
- <td data-value="667" class="abs medium">434/667</td>
137
+ <td data-value="64.67" class="pct medium">64.67%</td>
138
+ <td data-value="671" class="abs medium">434/671</td>
139
139
  </tr>
140
140
 
141
141
  <tr>
@@ -416,7 +416,7 @@
416
416
  <div class='footer quiet pad2 space-top1 center small'>
417
417
  Code coverage generated by
418
418
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
419
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
419
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
420
420
  </div>
421
421
  <script src="prettify.js"></script>
422
422
  <script>
@@ -70,7 +70,7 @@
70
70
  <div class='footer quiet pad2 space-top1 center small'>
71
71
  Code coverage generated by
72
72
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
73
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
73
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
74
74
  </div>
75
75
  <script src="../../prettify.js"></script>
76
76
  <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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
104
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
105
105
  </div>
106
106
  <script src="../../prettify.js"></script>
107
107
  <script>
@@ -127,7 +127,7 @@ exports.middleware =
127
127
  <div class='footer quiet pad2 space-top1 center small'>
128
128
  Code coverage generated by
129
129
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
130
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
130
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
131
131
  </div>
132
132
  <script src="../prettify.js"></script>
133
133
  <script>
@@ -340,7 +340,7 @@ module.exports = async (ctx, permType) =&gt; {
340
340
  <div class='footer quiet pad2 space-top1 center small'>
341
341
  Code coverage generated by
342
342
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
343
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
343
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
344
344
  </div>
345
345
  <script src="../prettify.js"></script>
346
346
  <script>
@@ -481,7 +481,7 @@ module.exports = async (ctx, next) =&gt; {
481
481
  <div class='footer quiet pad2 space-top1 center small'>
482
482
  Code coverage generated by
483
483
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
484
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
484
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
485
485
  </div>
486
486
  <script src="../prettify.js"></script>
487
487
  <script>
@@ -206,7 +206,7 @@
206
206
  <div class='footer quiet pad2 space-top1 center small'>
207
207
  Code coverage generated by
208
208
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
209
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
209
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
210
210
  </div>
211
211
  <script src="../prettify.js"></script>
212
212
  <script>
@@ -187,7 +187,7 @@ function <span class="fstat-no" title="function not covered" >validate(</span>sc
187
187
  <div class='footer quiet pad2 space-top1 center small'>
188
188
  Code coverage generated by
189
189
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
190
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
190
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
191
191
  </div>
192
192
  <script src="../prettify.js"></script>
193
193
  <script>
@@ -133,7 +133,7 @@ module.exports = function ({ requiresAppId } = <span class="branch-0 cbranch-no"
133
133
  <div class='footer quiet pad2 space-top1 center small'>
134
134
  Code coverage generated by
135
135
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
136
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
136
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
137
137
  </div>
138
138
  <script src="../prettify.js"></script>
139
139
  <script>
@@ -253,7 +253,7 @@ module.exports.bodySubResource = (main, sub) =&gt; {
253
253
  <div class='footer quiet pad2 space-top1 center small'>
254
254
  Code coverage generated by
255
255
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
256
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
256
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
257
257
  </div>
258
258
  <script src="../prettify.js"></script>
259
259
  <script>
@@ -100,7 +100,7 @@ module.exports = async (ctx, next) =&gt; {
100
100
  <div class='footer quiet pad2 space-top1 center small'>
101
101
  Code coverage generated by
102
102
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
103
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
103
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
104
104
  </div>
105
105
  <script src="../prettify.js"></script>
106
106
  <script>
@@ -91,7 +91,7 @@ exports.isWebhookEndpoint = ctx =&gt; {
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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
94
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
95
95
  </div>
96
96
  <script src="../prettify.js"></script>
97
97
  <script>
@@ -79,7 +79,7 @@ module.exports.budibaseTempDir = budibaseTempDir
79
79
  <div class='footer quiet pad2 space-top1 center small'>
80
80
  Code coverage generated by
81
81
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
82
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
83
83
  </div>
84
84
  <script src="../prettify.js"></script>
85
85
  <script>
@@ -136,7 +136,7 @@ exports.resolve = function (...args) {
136
136
  <div class='footer quiet pad2 space-top1 center small'>
137
137
  Code coverage generated by
138
138
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
139
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
139
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
140
140
  </div>
141
141
  <script src="../prettify.js"></script>
142
142
  <script>
@@ -505,7 +505,7 @@ module.exports = {
505
505
  <div class='footer quiet pad2 space-top1 center small'>
506
506
  Code coverage generated by
507
507
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
508
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
508
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
509
509
  </div>
510
510
  <script src="../prettify.js"></script>
511
511
  <script>
@@ -451,7 +451,7 @@ exports.getGlobalUsersFromMetadata = async users =&gt; {
451
451
  <div class='footer quiet pad2 space-top1 center small'>
452
452
  Code coverage generated by
453
453
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
454
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
454
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
455
455
  </div>
456
456
  <script src="../prettify.js"></script>
457
457
  <script>
@@ -251,7 +251,7 @@
251
251
  <div class='footer quiet pad2 space-top1 center small'>
252
252
  Code coverage generated by
253
253
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
254
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
254
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
255
255
  </div>
256
256
  <script src="../prettify.js"></script>
257
257
  <script>
@@ -586,7 +586,7 @@ exports.isQsTrue = param =&gt; {
586
586
  <div class='footer quiet pad2 space-top1 center small'>
587
587
  Code coverage generated by
588
588
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
589
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
589
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
590
590
  </div>
591
591
  <script src="../prettify.js"></script>
592
592
  <script>
@@ -133,7 +133,7 @@ exports.enrichPluginURLs = plugins =&gt; {
133
133
  <div class='footer quiet pad2 space-top1 center small'>
134
134
  Code coverage generated by
135
135
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
136
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
136
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
137
137
  </div>
138
138
  <script src="../prettify.js"></script>
139
139
  <script>
@@ -436,7 +436,7 @@ class 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
439
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
104
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
104
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
148
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
119
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -1111,7 +1111,7 @@ exports.cleanupAttachments = async (table, { row, rows, oldRow, oldTable }) =&gt
1111
1111
  <div class='footer quiet pad2 space-top1 center small'>
1112
1112
  Code coverage generated by
1113
1113
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1114
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
1114
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
1115
1115
  </div>
1116
1116
  <script src="../../prettify.js"></script>
1117
1117
  <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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
349
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
145
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
286
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
94
+ at Wed Nov 02 2022 10:06:53 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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
119
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -322,7 +322,7 @@ exports.getUniqueRows = async appIds =&gt; {
322
322
  <div class='footer quiet pad2 space-top1 center small'>
323
323
  Code coverage generated by
324
324
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
325
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
325
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
326
326
  </div>
327
327
  <script src="../../prettify.js"></script>
328
328
  <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 Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
127
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
128
128
  </div>
129
129
  <script src="../../prettify.js"></script>
130
130
  <script>
@@ -223,7 +223,7 @@ exports.publicApiUserFix = ctx =&gt; {
223
223
  <div class='footer quiet pad2 space-top1 center small'>
224
224
  Code coverage generated by
225
225
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
226
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
226
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
227
227
  </div>
228
228
  <script src="../prettify.js"></script>
229
229
  <script>
@@ -589,7 +589,7 @@ exports.generateApiKey = <span class="fstat-no" title="function not covered" >as
589
589
  <div class='footer quiet pad2 space-top1 center small'>
590
590
  Code coverage generated by
591
591
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
592
- at Wed Nov 02 2022 09:16:30 GMT+0000 (Coordinated Universal Time)
592
+ at Wed Nov 02 2022 10:06:53 GMT+0000 (Coordinated Universal Time)
593
593
  </div>
594
594
  <script src="../prettify.js"></script>
595
595
  <script>
@@ -2737,13 +2737,17 @@ DA:78,0
2737
2737
  DA:81,0
2738
2738
  DA:83,0
2739
2739
  DA:85,228
2740
- DA:87,0
2741
- DA:88,0
2742
2740
  DA:90,0
2743
- DA:93,228
2744
- DA:95,228
2745
- DA:97,85
2746
- LF:55
2741
+ DA:91,0
2742
+ DA:92,0
2743
+ DA:93,0
2744
+ DA:94,0
2745
+ DA:96,0
2746
+ DA:100,0
2747
+ DA:103,228
2748
+ DA:105,228
2749
+ DA:107,85
2750
+ LF:59
2747
2751
  LH:37
2748
2752
  BRDA:33,0,0,0
2749
2753
  BRDA:33,0,1,26
@@ -2775,12 +2779,17 @@ BRDA:81,13,0,0
2775
2779
  BRDA:81,13,1,0
2776
2780
  BRDA:85,14,0,0
2777
2781
  BRDA:85,14,1,228
2778
- BRDA:85,15,0,228
2779
- BRDA:85,15,1,0
2780
- BRDA:95,16,0,2
2781
- BRDA:95,16,1,226
2782
- BRF:34
2783
- BRH:13
2782
+ BRDA:86,15,0,228
2783
+ BRDA:86,15,1,224
2784
+ BRDA:86,15,2,4
2785
+ BRDA:92,16,0,0
2786
+ BRDA:92,16,1,0
2787
+ BRDA:93,17,0,0
2788
+ BRDA:93,17,1,0
2789
+ BRDA:105,18,0,2
2790
+ BRDA:105,18,1,226
2791
+ BRF:39
2792
+ BRH:15
2784
2793
  end_of_record
2785
2794
  TN:
2786
2795
  SF:src/api/controllers/table/bulkFormula.js
@@ -87,10 +87,19 @@ exports.validate = ({ tableId, row, table }) => __awaiter(void 0, void 0, void 0
87
87
  errors[fieldName] = [`${fieldName} is required`];
88
88
  }
89
89
  }
90
- else if (type === FieldTypes.JSON && typeof row[fieldName] === "string") {
90
+ else if ((type === FieldTypes.ATTACHMENT || type === FieldTypes.JSON) &&
91
+ typeof row[fieldName] === "string") {
91
92
  // this should only happen if there is an error
92
93
  try {
93
- JSON.parse(row[fieldName]);
94
+ const json = JSON.parse(row[fieldName]);
95
+ if (type === FieldTypes.ATTACHMENT) {
96
+ if (Array.isArray(json)) {
97
+ row[fieldName] = json;
98
+ }
99
+ else {
100
+ errors[fieldName] = [`Must be an array`];
101
+ }
102
+ }
94
103
  }
95
104
  catch (err) {
96
105
  errors[fieldName] = [`Contains invalid JSON`];