@budibase/server 1.0.191 → 1.0.192-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.
Files changed (190) hide show
  1. package/builder/assets/index.125b5754.js +1315 -0
  2. package/builder/assets/{index.bb5e3dfd.css → index.8a6f249b.css} +2 -2
  3. package/builder/assets/{vendor.5240f480.js → vendor.9bf2fcb4.js} +53 -53
  4. package/builder/index.html +3 -3
  5. package/coverage/clover.xml +73 -68
  6. package/coverage/coverage-final.json +8 -8
  7. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +15 -15
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +15 -15
  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/staticFormula.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +17 -8
  32. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/templates.js.html +12 -9
  39. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/exporters.js.html +3 -3
  41. package/coverage/lcov-report/api/controllers/view/index.html +4 -4
  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/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/index.html +1 -1
  59. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  73. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  76. package/coverage/lcov-report/automations/actions.js.html +1 -1
  77. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  78. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  79. package/coverage/lcov-report/automations/index.html +1 -1
  80. package/coverage/lcov-report/automations/index.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/index.html +14 -14
  88. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/queryRows.js.html +5 -2
  92. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +10 -7
  93. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  107. package/coverage/lcov-report/constants/index.html +1 -1
  108. package/coverage/lcov-report/constants/index.js.html +1 -1
  109. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  110. package/coverage/lcov-report/constants/screens.js.html +1 -1
  111. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  112. package/coverage/lcov-report/db/index.html +1 -1
  113. package/coverage/lcov-report/db/index.js.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  116. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  117. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  118. package/coverage/lcov-report/db/newid.js.html +1 -1
  119. package/coverage/lcov-report/db/utils.js.html +4 -4
  120. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  121. package/coverage/lcov-report/events/index.html +1 -1
  122. package/coverage/lcov-report/events/index.js.html +1 -1
  123. package/coverage/lcov-report/events/utils.js.html +1 -1
  124. package/coverage/lcov-report/index.html +49 -49
  125. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  126. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  127. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  128. package/coverage/lcov-report/middleware/builder.js.html +43 -10
  129. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  130. package/coverage/lcov-report/middleware/index.html +14 -14
  131. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  132. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  133. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  134. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  135. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  136. package/coverage/lcov-report/threads/automation.js.html +1 -1
  137. package/coverage/lcov-report/threads/index.html +1 -1
  138. package/coverage/lcov-report/threads/query.js.html +1 -1
  139. package/coverage/lcov-report/threads/utils.js.html +1 -1
  140. package/coverage/lcov-report/utilities/budibaseDir.js.html +11 -32
  141. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  142. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  143. package/coverage/lcov-report/utilities/global.js.html +1 -1
  144. package/coverage/lcov-report/utilities/index.html +19 -19
  145. package/coverage/lcov-report/utilities/index.js.html +1 -1
  146. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  147. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  148. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  149. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  151. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  152. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  153. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  154. package/coverage/lcov-report/utilities/security.js.html +1 -1
  155. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  157. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  158. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  159. package/coverage/lcov-report/utilities/users.js.html +1 -1
  160. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  161. package/coverage/lcov.info +128 -116
  162. package/dist/api/controllers/row/utils.js +3 -0
  163. package/dist/api/controllers/templates.js +2 -1
  164. package/dist/api/controllers/view/exporters.js +1 -1
  165. package/dist/automations/steps/queryRows.js +1 -0
  166. package/dist/automations/steps/sendSmtpEmail.js +1 -0
  167. package/dist/definitions/datasource.js +1 -0
  168. package/dist/environment.js +9 -13
  169. package/dist/integrations/index.js +3 -0
  170. package/dist/integrations/snowflake.js +101 -0
  171. package/dist/middleware/builder.js +9 -2
  172. package/dist/package.json +6 -5
  173. package/dist/tsconfig.build.tsbuildinfo +1 -1
  174. package/dist/utilities/budibaseDir.js +0 -6
  175. package/dist/utilities/redis.js +1 -1
  176. package/package.json +7 -6
  177. package/scripts/likeCypress.ts +0 -1
  178. package/src/api/controllers/row/utils.js +3 -0
  179. package/src/api/controllers/templates.js +2 -1
  180. package/src/api/controllers/view/exporters.js +1 -1
  181. package/src/automations/steps/queryRows.js +1 -0
  182. package/src/automations/steps/sendSmtpEmail.js +1 -0
  183. package/src/definitions/datasource.ts +1 -0
  184. package/src/environment.js +9 -13
  185. package/src/integrations/index.ts +3 -0
  186. package/src/integrations/snowflake.ts +98 -0
  187. package/src/middleware/builder.js +13 -2
  188. package/src/utilities/budibaseDir.js +0 -7
  189. package/src/utilities/redis.js +2 -0
  190. package/builder/assets/index.dae59da9.js +0 -1299
@@ -10,10 +10,10 @@
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.dae59da9.js"></script>
14
- <link rel="modulepreload" href="/builder/assets/vendor.5240f480.js">
13
+ <script type="module" crossorigin src="/builder/assets/index.125b5754.js"></script>
14
+ <link rel="modulepreload" href="/builder/assets/vendor.9bf2fcb4.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
- <link rel="stylesheet" href="/builder/assets/index.bb5e3dfd.css">
16
+ <link rel="stylesheet" href="/builder/assets/index.8a6f249b.css">
17
17
  </head>
18
18
  <body id="app">
19
19
 
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1654005454208" clover="3.2.0">
3
- <project timestamp="1654005454208" name="All files">
4
- <metrics statements="4173" coveredstatements="3001" conditionals="1718" coveredconditionals="885" methods="614" coveredmethods="433" elements="6505" coveredelements="4319" complexity="0" loc="4173" ncloc="4173" packages="23" files="130" classes="130"/>
2
+ <coverage generated="1654087211224" clover="3.2.0">
3
+ <project timestamp="1654087211224" name="All files">
4
+ <metrics statements="4178" coveredstatements="3003" conditionals="1727" coveredconditionals="890" methods="613" coveredmethods="433" elements="6518" coveredelements="4326" complexity="0" loc="4178" ncloc="4178" packages="23" files="130" classes="130"/>
5
5
  <package name="api">
6
6
  <metrics statements="35" coveredstatements="33" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -44,7 +44,7 @@
44
44
  </file>
45
45
  </package>
46
46
  <package name="api.controllers">
47
- <metrics statements="905" coveredstatements="621" conditionals="288" coveredconditionals="125" methods="130" coveredmethods="85"/>
47
+ <metrics statements="906" coveredstatements="622" conditionals="287" coveredconditionals="124" methods="130" coveredmethods="85"/>
48
48
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
49
49
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
50
50
  <line num="1" count="24" type="stmt"/>
@@ -811,22 +811,23 @@
811
811
  <line num="10" count="0" type="stmt"/>
812
812
  </file>
813
813
  <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/templates.js">
814
- <metrics statements="15" coveredstatements="12" conditionals="7" coveredconditionals="5" methods="1" coveredmethods="1"/>
814
+ <metrics statements="16" coveredstatements="13" conditionals="6" coveredconditionals="4" methods="1" coveredmethods="1"/>
815
815
  <line num="1" count="24" type="stmt"/>
816
816
  <line num="2" count="24" type="stmt"/>
817
- <line num="6" count="24" type="stmt"/>
818
- <line num="8" count="24" type="stmt"/>
819
- <line num="9" count="1" type="cond" truecount="1" falsecount="0"/>
820
- <line num="11" count="1" type="stmt"/>
817
+ <line num="3" count="24" type="stmt"/>
818
+ <line num="7" count="24" type="stmt"/>
819
+ <line num="9" count="24" type="stmt"/>
820
+ <line num="10" count="1" type="stmt"/>
821
821
  <line num="12" count="1" type="stmt"/>
822
822
  <line num="13" count="1" type="stmt"/>
823
- <line num="14" count="1" type="cond" truecount="1" falsecount="1"/>
824
- <line num="15" count="0" type="stmt"/>
825
- <line num="18" count="0" type="stmt"/>
826
- <line num="21" count="1" type="cond" truecount="3" falsecount="1"/>
827
- <line num="22" count="1" type="stmt"/>
823
+ <line num="14" count="1" type="stmt"/>
824
+ <line num="15" count="1" type="cond" truecount="1" falsecount="1"/>
825
+ <line num="16" count="0" type="stmt"/>
826
+ <line num="19" count="0" type="stmt"/>
827
+ <line num="22" count="1" type="cond" truecount="3" falsecount="1"/>
828
828
  <line num="23" count="1" type="stmt"/>
829
- <line num="25" count="0" type="stmt"/>
829
+ <line num="24" count="1" type="stmt"/>
830
+ <line num="26" count="0" type="stmt"/>
830
831
  </file>
831
832
  <file name="user.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/user.js">
832
833
  <metrics statements="120" coveredstatements="38" conditionals="37" coveredconditionals="0" methods="17" coveredmethods="5"/>
@@ -1030,7 +1031,7 @@
1030
1031
  </file>
1031
1032
  </package>
1032
1033
  <package name="api.controllers.row">
1033
- <metrics statements="590" coveredstatements="342" conditionals="268" coveredconditionals="96" methods="86" coveredmethods="46"/>
1034
+ <metrics statements="592" coveredstatements="342" conditionals="270" coveredconditionals="96" methods="86" coveredmethods="46"/>
1034
1035
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1035
1036
  <metrics statements="110" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1036
1037
  <line num="6" count="41" type="stmt"/>
@@ -1583,7 +1584,7 @@
1583
1584
  <line num="155" count="74" type="stmt"/>
1584
1585
  </file>
1585
1586
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1586
- <metrics statements="51" coveredstatements="35" conditionals="32" coveredconditionals="13" methods="6" coveredmethods="4"/>
1587
+ <metrics statements="53" coveredstatements="35" conditionals="34" coveredconditionals="13" methods="6" coveredmethods="4"/>
1587
1588
  <line num="1" count="41" type="stmt"/>
1588
1589
  <line num="2" count="41" type="stmt"/>
1589
1590
  <line num="3" count="41" type="stmt"/>
@@ -1623,18 +1624,20 @@
1623
1624
  <line num="60" count="0" type="stmt"/>
1624
1625
  <line num="65" count="214" type="cond" truecount="2" falsecount="2"/>
1625
1626
  <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
1626
- <line num="67" count="0" type="stmt"/>
1627
- <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
1628
- <line num="72" count="0" type="stmt"/>
1629
- <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
1630
- <line num="77" count="0" type="stmt"/>
1631
- <line num="79" count="214" type="cond" truecount="2" falsecount="2"/>
1632
- <line num="81" count="0" type="stmt"/>
1633
- <line num="82" count="0" type="stmt"/>
1627
+ <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1628
+ <line num="68" count="0" type="stmt"/>
1629
+ <line num="70" count="0" type="stmt"/>
1630
+ <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
1631
+ <line num="75" count="0" type="stmt"/>
1632
+ <line num="78" count="0" type="cond" truecount="0" falsecount="4"/>
1633
+ <line num="80" count="0" type="stmt"/>
1634
+ <line num="82" count="214" type="cond" truecount="2" falsecount="2"/>
1634
1635
  <line num="84" count="0" type="stmt"/>
1635
- <line num="87" count="214" type="stmt"/>
1636
- <line num="89" count="214" type="cond" truecount="2" falsecount="0"/>
1637
- <line num="91" count="78" type="stmt"/>
1636
+ <line num="85" count="0" type="stmt"/>
1637
+ <line num="87" count="0" type="stmt"/>
1638
+ <line num="90" count="214" type="stmt"/>
1639
+ <line num="92" count="214" type="cond" truecount="2" falsecount="0"/>
1640
+ <line num="94" count="78" type="stmt"/>
1638
1641
  </file>
1639
1642
  </package>
1640
1643
  <package name="api.controllers.table">
@@ -1919,9 +1922,9 @@
1919
1922
  </file>
1920
1923
  </package>
1921
1924
  <package name="api.controllers.view">
1922
- <metrics statements="201" coveredstatements="153" conditionals="89" coveredconditionals="59" methods="26" coveredmethods="20"/>
1925
+ <metrics statements="201" coveredstatements="153" conditionals="91" coveredconditionals="60" methods="26" coveredmethods="20"/>
1923
1926
  <file name="exporters.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/exporters.js">
1924
- <metrics statements="11" coveredstatements="11" conditionals="2" coveredconditionals="1" methods="4" coveredmethods="4"/>
1927
+ <metrics statements="11" coveredstatements="11" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="4"/>
1925
1928
  <line num="1" count="41" type="stmt"/>
1926
1929
  <line num="2" count="2" type="stmt"/>
1927
1930
  <line num="4" count="1" type="stmt"/>
@@ -2621,7 +2624,7 @@
2621
2624
  </file>
2622
2625
  </package>
2623
2626
  <package name="automations.steps">
2624
- <metrics statements="211" coveredstatements="148" conditionals="80" coveredconditionals="52" methods="18" coveredmethods="9"/>
2627
+ <metrics statements="212" coveredstatements="148" conditionals="82" coveredconditionals="52" methods="18" coveredmethods="9"/>
2625
2628
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
2626
2629
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
2627
2630
  <line num="1" count="41" type="stmt"/>
@@ -2781,24 +2784,24 @@
2781
2784
  <line num="7" count="41" type="stmt"/>
2782
2785
  <line num="12" count="41" type="stmt"/>
2783
2786
  <line num="17" count="41" type="stmt"/>
2784
- <line num="75" count="1" type="stmt"/>
2785
- <line num="80" count="1" type="stmt"/>
2787
+ <line num="76" count="1" type="stmt"/>
2786
2788
  <line num="81" count="1" type="stmt"/>
2787
- <line num="84" count="41" type="stmt"/>
2788
- <line num="85" count="1" type="stmt"/>
2789
+ <line num="82" count="1" type="stmt"/>
2790
+ <line num="85" count="41" type="stmt"/>
2789
2791
  <line num="86" count="1" type="stmt"/>
2790
2792
  <line num="87" count="1" type="stmt"/>
2791
- <line num="88" count="1" type="cond" truecount="5" falsecount="1"/>
2792
- <line num="89" count="1" type="stmt"/>
2793
+ <line num="88" count="1" type="stmt"/>
2794
+ <line num="89" count="1" type="cond" truecount="5" falsecount="1"/>
2793
2795
  <line num="90" count="1" type="stmt"/>
2794
- <line num="93" count="1" type="stmt"/>
2795
- <line num="105" count="1" type="stmt"/>
2796
+ <line num="91" count="1" type="stmt"/>
2797
+ <line num="94" count="1" type="stmt"/>
2796
2798
  <line num="106" count="1" type="stmt"/>
2797
2799
  <line num="107" count="1" type="stmt"/>
2798
- <line num="112" count="0" type="stmt"/>
2800
+ <line num="108" count="1" type="stmt"/>
2801
+ <line num="113" count="0" type="stmt"/>
2799
2802
  </file>
2800
2803
  <file name="sendSmtpEmail.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/sendSmtpEmail.js">
2801
- <metrics statements="11" coveredstatements="4" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
2804
+ <metrics statements="12" coveredstatements="4" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
2802
2805
  <line num="1" count="41" type="stmt"/>
2803
2806
  <line num="2" count="41" type="stmt"/>
2804
2807
  <line num="4" count="41" type="stmt"/>
@@ -2806,10 +2809,11 @@
2806
2809
  <line num="52" count="0" type="stmt"/>
2807
2810
  <line num="53" count="0" type="cond" truecount="0" falsecount="2"/>
2808
2811
  <line num="54" count="0" type="stmt"/>
2809
- <line num="56" count="0" type="stmt"/>
2812
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
2810
2813
  <line num="57" count="0" type="stmt"/>
2811
2814
  <line num="58" count="0" type="stmt"/>
2812
- <line num="63" count="0" type="stmt"/>
2815
+ <line num="59" count="0" type="stmt"/>
2816
+ <line num="64" count="0" type="stmt"/>
2813
2817
  </file>
2814
2818
  <file name="serverLog.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/serverLog.js">
2815
2819
  <metrics statements="4" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3068,10 +3072,10 @@
3068
3072
  <line num="188" count="54" type="stmt"/>
3069
3073
  <line num="189" count="193" type="stmt"/>
3070
3074
  <line num="195" count="54" type="stmt"/>
3071
- <line num="196" count="2" type="stmt"/>
3072
- <line num="197" count="2" type="cond" truecount="4" falsecount="0"/>
3075
+ <line num="196" count="3" type="stmt"/>
3076
+ <line num="197" count="3" type="cond" truecount="4" falsecount="0"/>
3073
3077
  <line num="198" count="1" type="stmt"/>
3074
- <line num="200" count="1" type="stmt"/>
3078
+ <line num="200" count="2" type="stmt"/>
3075
3079
  <line num="206" count="54" type="cond" truecount="0" falsecount="2"/>
3076
3080
  <line num="207" count="225" type="stmt"/>
3077
3081
  <line num="214" count="54" type="stmt"/>
@@ -3487,7 +3491,7 @@
3487
3491
  </file>
3488
3492
  </package>
3489
3493
  <package name="middleware">
3490
- <metrics statements="174" coveredstatements="149" conditionals="117" coveredconditionals="89" methods="25" coveredmethods="25"/>
3494
+ <metrics statements="180" coveredstatements="154" conditionals="123" coveredconditionals="94" methods="25" coveredmethods="25"/>
3491
3495
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
3492
3496
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
3493
3497
  <line num="1" count="24" type="stmt"/>
@@ -3502,7 +3506,7 @@
3502
3506
  <line num="18" count="7" type="stmt"/>
3503
3507
  </file>
3504
3508
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
3505
- <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="4" coveredmethods="4"/>
3509
+ <metrics statements="42" coveredstatements="37" conditionals="28" coveredconditionals="22" methods="4" coveredmethods="4"/>
3506
3510
  <line num="1" count="25" type="stmt"/>
3507
3511
  <line num="7" count="25" type="stmt"/>
3508
3512
  <line num="8" count="25" type="stmt"/>
@@ -3524,21 +3528,27 @@
3524
3528
  <line num="51" count="1" type="stmt"/>
3525
3529
  <line num="52" count="1" type="stmt"/>
3526
3530
  <line num="53" count="1" type="stmt"/>
3527
- <line num="54" count="1" type="stmt"/>
3528
3531
  <line num="55" count="1" type="stmt"/>
3529
- <line num="56" count="1" type="stmt"/>
3532
+ <line num="57" count="1" type="stmt"/>
3530
3533
  <line num="58" count="1" type="stmt"/>
3531
- <line num="62" count="25" type="stmt"/>
3532
- <line num="63" count="181" type="stmt"/>
3533
- <line num="65" count="181" type="cond" truecount="2" falsecount="0"/>
3534
- <line num="66" count="5" type="stmt"/>
3535
- <line num="68" count="176" type="stmt"/>
3536
- <line num="69" count="176" type="stmt"/>
3537
- <line num="70" count="176" type="cond" truecount="2" falsecount="0"/>
3538
- <line num="72" count="176" type="cond" truecount="4" falsecount="0"/>
3539
- <line num="73" count="175" type="stmt"/>
3540
- <line num="76" count="1" type="stmt"/>
3541
- <line num="78" count="1" type="stmt"/>
3534
+ <line num="59" count="1" type="stmt"/>
3535
+ <line num="61" count="1" type="stmt"/>
3536
+ <line num="65" count="25" type="stmt"/>
3537
+ <line num="66" count="181" type="stmt"/>
3538
+ <line num="68" count="181" type="cond" truecount="2" falsecount="0"/>
3539
+ <line num="69" count="5" type="stmt"/>
3540
+ <line num="71" count="176" type="stmt"/>
3541
+ <line num="72" count="176" type="stmt"/>
3542
+ <line num="74" count="176" type="stmt"/>
3543
+ <line num="75" count="176" type="cond" truecount="2" falsecount="0"/>
3544
+ <line num="76" count="176" type="cond" truecount="1" falsecount="1"/>
3545
+ <line num="77" count="0" type="stmt"/>
3546
+ <line num="80" count="176" type="cond" truecount="2" falsecount="0"/>
3547
+ <line num="81" count="176" type="cond" truecount="2" falsecount="0"/>
3548
+ <line num="83" count="176" type="cond" truecount="4" falsecount="0"/>
3549
+ <line num="84" count="175" type="stmt"/>
3550
+ <line num="87" count="1" type="stmt"/>
3551
+ <line num="89" count="1" type="stmt"/>
3542
3552
  </file>
3543
3553
  <file name="currentapp.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/currentapp.js">
3544
3554
  <metrics statements="63" coveredstatements="50" conditionals="55" coveredconditionals="44" methods="2" coveredmethods="2"/>
@@ -3999,16 +4009,11 @@
3999
4009
  </file>
4000
4010
  </package>
4001
4011
  <package name="utilities">
4002
- <metrics statements="341" coveredstatements="249" conditionals="143" coveredconditionals="85" methods="66" coveredmethods="45"/>
4012
+ <metrics statements="336" coveredstatements="245" conditionals="141" coveredconditionals="85" methods="65" coveredmethods="45"/>
4003
4013
  <file name="budibaseDir.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/budibaseDir.js">
4004
- <metrics statements="7" coveredstatements="6" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
4014
+ <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
4005
4015
  <line num="1" count="42" type="stmt"/>
4006
- <line num="2" count="42" type="stmt"/>
4007
4016
  <line num="3" count="42" type="stmt"/>
4008
- <line num="4" count="42" type="stmt"/>
4009
- <line num="6" count="42" type="stmt"/>
4010
- <line num="7" count="0" type="cond" truecount="0" falsecount="2"/>
4011
- <line num="10" count="42" type="stmt"/>
4012
4017
  </file>
4013
4018
  <file name="centralPath.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/centralPath.js">
4014
4019
  <metrics statements="5" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>