@budibase/server 1.0.46-alpha.7 → 1.0.46-alpha.8

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 (186) hide show
  1. package/builder/assets/{index.af9e71d8.js → index.51efc215.js} +26 -26
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +85 -75
  4. package/coverage/coverage-final.json +3 -3
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +18 -6
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +16 -16
  16. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/user.js.html +12 -6
  40. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  46. package/coverage/lcov-report/api/index.html +1 -1
  47. package/coverage/lcov-report/api/index.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  77. package/coverage/lcov-report/automations/actions.js.html +1 -1
  78. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  79. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  80. package/coverage/lcov-report/automations/index.html +1 -1
  81. package/coverage/lcov-report/automations/index.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/index.html +1 -1
  91. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  109. package/coverage/lcov-report/automations/utils.js.html +1 -1
  110. package/coverage/lcov-report/constants/index.html +1 -1
  111. package/coverage/lcov-report/constants/index.js.html +1 -1
  112. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  113. package/coverage/lcov-report/constants/screens.js.html +1 -1
  114. package/coverage/lcov-report/db/client.js.html +1 -1
  115. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  116. package/coverage/lcov-report/db/index.html +1 -1
  117. package/coverage/lcov-report/db/index.js.html +1 -1
  118. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  122. package/coverage/lcov-report/db/newid.js.html +1 -1
  123. package/coverage/lcov-report/db/utils.js.html +1 -1
  124. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  125. package/coverage/lcov-report/events/index.html +1 -1
  126. package/coverage/lcov-report/events/index.js.html +1 -1
  127. package/coverage/lcov-report/events/utils.js.html +1 -1
  128. package/coverage/lcov-report/index.html +25 -25
  129. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  130. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  131. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  132. package/coverage/lcov-report/middleware/authorized.js.html +165 -63
  133. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  134. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  135. package/coverage/lcov-report/middleware/index.html +19 -19
  136. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  137. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  138. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  139. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  140. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  141. package/coverage/lcov-report/migrations/usageQuotas/index.html +1 -1
  142. package/coverage/lcov-report/migrations/usageQuotas/index.js.html +1 -1
  143. package/coverage/lcov-report/migrations/usageQuotas/syncApps.js.html +1 -1
  144. package/coverage/lcov-report/migrations/usageQuotas/syncRows.js.html +1 -1
  145. package/coverage/lcov-report/threads/automation.js.html +1 -1
  146. package/coverage/lcov-report/threads/index.html +1 -1
  147. package/coverage/lcov-report/threads/index.js.html +1 -1
  148. package/coverage/lcov-report/threads/query.js.html +1 -1
  149. package/coverage/lcov-report/threads/utils.js.html +1 -1
  150. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  151. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  152. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  153. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  154. package/coverage/lcov-report/utilities/global.js.html +1 -1
  155. package/coverage/lcov-report/utilities/index.html +1 -1
  156. package/coverage/lcov-report/utilities/index.js.html +1 -1
  157. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  158. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  160. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  162. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  163. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  164. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  165. package/coverage/lcov-report/utilities/security.js.html +1 -1
  166. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  167. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  168. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  169. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  171. package/coverage/lcov-report/utilities/users.js.html +1 -1
  172. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  173. package/coverage/lcov.info +141 -123
  174. package/dist/api/controllers/auth.js +4 -0
  175. package/dist/api/controllers/user.js +2 -0
  176. package/dist/middleware/authorized.js +55 -30
  177. package/dist/package.json +4 -4
  178. package/dist/tests/utilities/TestConfiguration.js +7 -5
  179. package/dist/tsconfig.tsbuildinfo +1 -1
  180. package/package.json +5 -5
  181. package/src/api/controllers/auth.js +4 -0
  182. package/src/api/controllers/user.js +2 -0
  183. package/src/api/routes/tests/auth.spec.js +1 -2
  184. package/src/middleware/authorized.js +64 -30
  185. package/src/middleware/tests/authorized.spec.js +6 -4
  186. package/src/tests/utilities/TestConfiguration.js +7 -5
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.af9e71d8.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.51efc215.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.3bd2f661.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.dd9e386f.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1643382733216" clover="3.2.0">
3
- <project timestamp="1643382733216" name="All files">
4
- <metrics statements="4792" coveredstatements="3540" conditionals="1934" coveredconditionals="1043" methods="683" coveredmethods="482" elements="7409" coveredelements="5065" complexity="0" loc="4792" ncloc="4792" packages="23" files="144" classes="144"/>
2
+ <coverage generated="1643578979462" clover="3.2.0">
3
+ <project timestamp="1643578979462" name="All files">
4
+ <metrics statements="4802" coveredstatements="3545" conditionals="1938" coveredconditionals="1046" methods="685" coveredmethods="483" elements="7425" coveredelements="5074" complexity="0" loc="4802" ncloc="4802" packages="23" files="144" classes="144"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1089" coveredstatements="775" conditionals="367" coveredconditionals="169" methods="153" coveredmethods="108"/>
41
+ <metrics statements="1092" coveredstatements="776" conditionals="367" coveredconditionals="169" methods="153" coveredmethods="108"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -284,7 +284,7 @@
284
284
  <line num="441" count="192" type="stmt"/>
285
285
  </file>
286
286
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
287
- <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
287
+ <metrics statements="29" coveredstatements="24" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
288
288
  <line num="1" count="23" type="stmt"/>
289
289
  <line num="2" count="23" type="stmt"/>
290
290
  <line num="3" count="23" type="stmt"/>
@@ -295,23 +295,25 @@
295
295
  <line num="9" count="1" type="cond" truecount="1" falsecount="1"/>
296
296
  <line num="16" count="1" type="stmt"/>
297
297
  <line num="18" count="1" type="stmt"/>
298
- <line num="20" count="1" type="cond" truecount="1" falsecount="1"/>
299
- <line num="21" count="1" type="stmt"/>
298
+ <line num="20" count="1" type="stmt"/>
299
+ <line num="22" count="1" type="cond" truecount="1" falsecount="1"/>
300
300
  <line num="23" count="1" type="stmt"/>
301
- <line num="24" count="1" type="stmt"/>
302
301
  <line num="25" count="1" type="stmt"/>
303
302
  <line num="26" count="1" type="stmt"/>
304
- <line num="28" count="0" type="stmt"/>
305
- <line num="35" count="1" type="cond" truecount="1" falsecount="1"/>
306
- <line num="36" count="0" type="stmt"/>
303
+ <line num="27" count="1" type="stmt"/>
304
+ <line num="28" count="1" type="stmt"/>
305
+ <line num="30" count="0" type="stmt"/>
306
+ <line num="32" count="0" type="stmt"/>
307
307
  <line num="39" count="1" type="cond" truecount="1" falsecount="1"/>
308
- <line num="40" count="1" type="stmt"/>
308
+ <line num="40" count="0" type="stmt"/>
309
+ <line num="43" count="1" type="cond" truecount="1" falsecount="1"/>
309
310
  <line num="44" count="1" type="stmt"/>
310
- <line num="45" count="1" type="stmt"/>
311
- <line num="46" count="1" type="stmt"/>
312
- <line num="48" count="0" type="stmt"/>
311
+ <line num="48" count="1" type="stmt"/>
312
+ <line num="49" count="1" type="stmt"/>
313
313
  <line num="50" count="1" type="stmt"/>
314
- <line num="53" count="0" type="stmt"/>
314
+ <line num="52" count="0" type="stmt"/>
315
+ <line num="54" count="1" type="stmt"/>
316
+ <line num="57" count="0" type="stmt"/>
315
317
  </file>
316
318
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/automation.js">
317
319
  <metrics statements="96" coveredstatements="86" conditionals="32" coveredconditionals="23" methods="14" coveredmethods="13"/>
@@ -1010,7 +1012,7 @@
1010
1012
  <line num="25" count="0" type="stmt"/>
1011
1013
  </file>
1012
1014
  <file name="user.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/user.js">
1013
- <metrics statements="119" coveredstatements="39" conditionals="37" coveredconditionals="0" methods="16" coveredmethods="5"/>
1015
+ <metrics statements="120" coveredstatements="39" conditionals="37" coveredconditionals="0" methods="16" coveredmethods="5"/>
1014
1016
  <line num="1" count="37" type="stmt"/>
1015
1017
  <line num="6" count="37" type="stmt"/>
1016
1018
  <line num="7" count="37" type="stmt"/>
@@ -1093,43 +1095,44 @@
1093
1095
  <line num="165" count="37" type="stmt"/>
1094
1096
  <line num="167" count="0" type="stmt"/>
1095
1097
  <line num="169" count="0" type="stmt"/>
1096
- <line num="170" count="0" type="stmt"/>
1097
- <line num="173" count="37" type="stmt"/>
1098
- <line num="174" count="1" type="stmt"/>
1099
- <line num="175" count="1" type="stmt"/>
1098
+ <line num="171" count="0" type="stmt"/>
1099
+ <line num="172" count="0" type="stmt"/>
1100
+ <line num="175" count="37" type="stmt"/>
1100
1101
  <line num="176" count="1" type="stmt"/>
1102
+ <line num="177" count="1" type="stmt"/>
1101
1103
  <line num="178" count="1" type="stmt"/>
1102
- <line num="179" count="1" type="stmt"/>
1103
- <line num="183" count="1" type="stmt"/>
1104
- <line num="186" count="37" type="stmt"/>
1105
- <line num="187" count="1" type="stmt"/>
1106
- <line num="188" count="1" type="stmt"/>
1104
+ <line num="180" count="1" type="stmt"/>
1105
+ <line num="181" count="1" type="stmt"/>
1106
+ <line num="185" count="1" type="stmt"/>
1107
+ <line num="188" count="37" type="stmt"/>
1107
1108
  <line num="189" count="1" type="stmt"/>
1108
- <line num="190" count="0" type="stmt"/>
1109
- <line num="194" count="1" type="stmt"/>
1110
- <line num="199" count="37" type="stmt"/>
1111
- <line num="200" count="1" type="stmt"/>
1112
- <line num="203" count="37" type="stmt"/>
1113
- <line num="204" count="0" type="stmt"/>
1114
- <line num="205" count="0" type="stmt"/>
1115
- <line num="206" count="0" type="cond" truecount="0" falsecount="2"/>
1109
+ <line num="190" count="1" type="stmt"/>
1110
+ <line num="191" count="1" type="stmt"/>
1111
+ <line num="192" count="0" type="stmt"/>
1112
+ <line num="196" count="1" type="stmt"/>
1113
+ <line num="201" count="37" type="stmt"/>
1114
+ <line num="202" count="1" type="stmt"/>
1115
+ <line num="205" count="37" type="stmt"/>
1116
+ <line num="206" count="0" type="stmt"/>
1116
1117
  <line num="207" count="0" type="stmt"/>
1118
+ <line num="208" count="0" type="cond" truecount="0" falsecount="2"/>
1117
1119
  <line num="209" count="0" type="stmt"/>
1118
- <line num="210" count="0" type="stmt"/>
1120
+ <line num="211" count="0" type="stmt"/>
1119
1121
  <line num="212" count="0" type="stmt"/>
1120
- <line num="213" count="0" type="stmt"/>
1122
+ <line num="214" count="0" type="stmt"/>
1121
1123
  <line num="215" count="0" type="stmt"/>
1122
- <line num="217" count="0" type="cond" truecount="0" falsecount="2"/>
1123
- <line num="218" count="0" type="stmt"/>
1124
- <line num="219" count="0" type="stmt"/>
1125
- <line num="222" count="37" type="stmt"/>
1126
- <line num="223" count="0" type="stmt"/>
1127
- <line num="224" count="0" type="stmt"/>
1124
+ <line num="217" count="0" type="stmt"/>
1125
+ <line num="219" count="0" type="cond" truecount="0" falsecount="2"/>
1126
+ <line num="220" count="0" type="stmt"/>
1127
+ <line num="221" count="0" type="stmt"/>
1128
+ <line num="224" count="37" type="stmt"/>
1128
1129
  <line num="225" count="0" type="stmt"/>
1130
+ <line num="226" count="0" type="stmt"/>
1129
1131
  <line num="227" count="0" type="stmt"/>
1130
- <line num="228" count="0" type="stmt"/>
1132
+ <line num="229" count="0" type="stmt"/>
1131
1133
  <line num="230" count="0" type="stmt"/>
1132
1134
  <line num="232" count="0" type="stmt"/>
1135
+ <line num="234" count="0" type="stmt"/>
1133
1136
  </file>
1134
1137
  <file name="webhook.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/webhook.js">
1135
1138
  <metrics statements="57" coveredstatements="52" conditionals="10" coveredconditionals="4" methods="7" coveredmethods="7"/>
@@ -4059,7 +4062,7 @@
4059
4062
  </file>
4060
4063
  </package>
4061
4064
  <package name="middleware">
4062
- <metrics statements="259" coveredstatements="218" conditionals="175" coveredconditionals="124" methods="33" coveredmethods="29"/>
4065
+ <metrics statements="266" coveredstatements="222" conditionals="179" coveredconditionals="127" methods="35" coveredmethods="30"/>
4063
4066
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4064
4067
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4065
4068
  <line num="1" count="23" type="stmt"/>
@@ -4074,41 +4077,48 @@
4074
4077
  <line num="18" count="7" type="stmt"/>
4075
4078
  </file>
4076
4079
  <file name="authorized.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/authorized.js">
4077
- <metrics statements="34" coveredstatements="34" conditionals="28" coveredconditionals="25" methods="4" coveredmethods="4"/>
4080
+ <metrics statements="41" coveredstatements="38" conditionals="32" coveredconditionals="28" methods="6" coveredmethods="5"/>
4078
4081
  <line num="5" count="24" type="stmt"/>
4079
4082
  <line num="9" count="24" type="stmt"/>
4080
4083
  <line num="10" count="24" type="stmt"/>
4081
4084
  <line num="11" count="24" type="stmt"/>
4082
- <line num="14" count="7" type="stmt"/>
4083
- <line num="17" count="24" type="stmt"/>
4084
- <line num="19" count="2338" type="stmt"/>
4085
- <line num="22" count="162" type="cond" truecount="4" falsecount="0"/>
4086
- <line num="23" count="1" type="stmt"/>
4087
- <line num="26" count="161" type="cond" truecount="2" falsecount="0"/>
4088
- <line num="27" count="1" type="stmt"/>
4089
- <line num="32" count="160" type="stmt"/>
4090
- <line num="34" count="160" type="stmt"/>
4091
- <line num="36" count="160" type="cond" truecount="3" falsecount="0"/>
4092
- <line num="37" count="160" type="stmt"/>
4093
- <line num="38" count="160" type="cond" truecount="2" falsecount="0"/>
4094
- <line num="39" count="125" type="stmt"/>
4095
- <line num="40" count="35" type="cond" truecount="4" falsecount="0"/>
4096
- <line num="41" count="28" type="stmt"/>
4097
- <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
4098
- <line num="46" count="7" type="stmt"/>
4099
- <line num="49" count="7" type="stmt"/>
4100
- <line num="50" count="7" type="stmt"/>
4101
- <line num="51" count="7" type="cond" truecount="2" falsecount="0"/>
4102
- <line num="52" count="3" type="stmt"/>
4103
- <line num="55" count="7" type="cond" truecount="2" falsecount="0"/>
4104
- <line num="56" count="1" type="stmt"/>
4105
- <line num="57" count="1" type="stmt"/>
4106
- <line num="59" count="1" type="cond" truecount="1" falsecount="1"/>
4107
- <line num="60" count="6" type="cond" truecount="1" falsecount="1"/>
4108
- <line num="61" count="6" type="stmt"/>
4109
- <line num="65" count="4" type="cond" truecount="1" falsecount="1"/>
4110
- <line num="66" count="4" type="stmt"/>
4111
- <line num="69" count="4" type="stmt"/>
4085
+ <line num="12" count="24" type="stmt"/>
4086
+ <line num="15" count="155" type="stmt"/>
4087
+ <line num="18" count="24" type="stmt"/>
4088
+ <line num="26" count="24" type="stmt"/>
4089
+ <line num="28" count="129" type="cond" truecount="3" falsecount="0"/>
4090
+ <line num="29" count="129" type="stmt"/>
4091
+ <line num="30" count="129" type="cond" truecount="4" falsecount="0"/>
4092
+ <line num="31" count="1" type="stmt"/>
4093
+ <line num="35" count="128" type="cond" truecount="2" falsecount="0"/>
4094
+ <line num="36" count="3" type="stmt"/>
4095
+ <line num="40" count="24" type="stmt"/>
4096
+ <line num="47" count="3" type="cond" truecount="2" falsecount="0"/>
4097
+ <line num="48" count="3" type="stmt"/>
4098
+ <line num="51" count="3" type="stmt"/>
4099
+ <line num="53" count="3" type="cond" truecount="1" falsecount="1"/>
4100
+ <line num="55" count="0" type="stmt"/>
4101
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
4102
+ <line num="57" count="0" type="stmt"/>
4103
+ <line num="60" count="3" type="cond" truecount="1" falsecount="1"/>
4104
+ <line num="61" count="3" type="stmt"/>
4105
+ <line num="65" count="24" type="stmt"/>
4106
+ <line num="67" count="2338" type="stmt"/>
4107
+ <line num="70" count="162" type="cond" truecount="4" falsecount="0"/>
4108
+ <line num="71" count="1" type="stmt"/>
4109
+ <line num="74" count="161" type="cond" truecount="2" falsecount="0"/>
4110
+ <line num="75" count="1" type="stmt"/>
4111
+ <line num="80" count="160" type="stmt"/>
4112
+ <line num="83" count="160" type="stmt"/>
4113
+ <line num="84" count="160" type="cond" truecount="4" falsecount="0"/>
4114
+ <line num="85" count="55" type="stmt"/>
4115
+ <line num="89" count="160" type="stmt"/>
4116
+ <line num="90" count="160" type="cond" truecount="2" falsecount="0"/>
4117
+ <line num="91" count="1" type="stmt"/>
4118
+ <line num="95" count="159" type="cond" truecount="2" falsecount="0"/>
4119
+ <line num="96" count="30" type="stmt"/>
4120
+ <line num="100" count="129" type="stmt"/>
4121
+ <line num="103" count="129" type="stmt"/>
4112
4122
  </file>
4113
4123
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
4114
4124
  <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="3" coveredmethods="3"/>