@budibase/server 1.0.27-alpha.13 → 1.0.27-alpha.14

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 (189) hide show
  1. package/builder/assets/{index.176f00e0.css → index.39e01193.css} +1 -1
  2. package/builder/assets/{index.5776ef20.js → index.411e6960.js} +232 -232
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +155 -152
  5. package/coverage/coverage-final.json +4 -4
  6. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/application.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/hosting.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/index.html +1 -1
  18. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/metadata.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/index.js.html +7 -4
  24. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.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/table/internal.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  48. package/coverage/lcov-report/api/index.html +1 -1
  49. package/coverage/lcov-report/api/index.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  80. package/coverage/lcov-report/automations/actions.js.html +1 -1
  81. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  82. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  83. package/coverage/lcov-report/automations/index.html +1 -1
  84. package/coverage/lcov-report/automations/index.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/index.html +1 -1
  94. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  112. package/coverage/lcov-report/automations/utils.js.html +1 -1
  113. package/coverage/lcov-report/constants/index.html +1 -1
  114. package/coverage/lcov-report/constants/index.js.html +1 -1
  115. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  116. package/coverage/lcov-report/constants/screens.js.html +1 -1
  117. package/coverage/lcov-report/db/client.js.html +1 -1
  118. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  119. package/coverage/lcov-report/db/index.html +1 -1
  120. package/coverage/lcov-report/db/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  125. package/coverage/lcov-report/db/newid.js.html +1 -1
  126. package/coverage/lcov-report/db/utils.js.html +1 -1
  127. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  128. package/coverage/lcov-report/events/index.html +1 -1
  129. package/coverage/lcov-report/events/index.js.html +1 -1
  130. package/coverage/lcov-report/events/utils.js.html +1 -1
  131. package/coverage/lcov-report/index.html +16 -16
  132. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  133. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  134. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  135. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  136. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  137. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  138. package/coverage/lcov-report/middleware/index.html +1 -1
  139. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  140. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  141. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  142. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  143. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  144. package/coverage/lcov-report/threads/automation.js.html +1 -1
  145. package/coverage/lcov-report/threads/index.html +28 -28
  146. package/coverage/lcov-report/threads/index.js.html +1 -1
  147. package/coverage/lcov-report/threads/query.js.html +181 -13
  148. package/coverage/lcov-report/threads/utils.js.html +11 -161
  149. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  150. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  151. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  152. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  153. package/coverage/lcov-report/utilities/global.js.html +1 -1
  154. package/coverage/lcov-report/utilities/index.html +4 -4
  155. package/coverage/lcov-report/utilities/index.js.html +9 -9
  156. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  157. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  158. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  160. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  162. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  163. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  164. package/coverage/lcov-report/utilities/security.js.html +1 -1
  165. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  166. package/coverage/lcov-report/utilities/users.js.html +1 -1
  167. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  168. package/coverage/lcov.info +291 -284
  169. package/dist/api/controllers/query/index.js +3 -2
  170. package/dist/environment.js +1 -0
  171. package/dist/integrations/dynamodb.js +19 -0
  172. package/dist/integrations/rest.js +68 -19
  173. package/dist/integrations/s3.js +17 -8
  174. package/dist/package.json +4 -4
  175. package/dist/threads/query.js +52 -3
  176. package/dist/threads/utils.js +0 -44
  177. package/dist/tsconfig.tsbuildinfo +1 -1
  178. package/dist/utilities/index.js +1 -1
  179. package/package.json +5 -5
  180. package/src/api/controllers/query/index.js +3 -2
  181. package/src/definitions/datasource.ts +15 -0
  182. package/src/environment.js +1 -0
  183. package/src/integrations/dynamodb.ts +18 -0
  184. package/src/integrations/rest.ts +78 -17
  185. package/src/integrations/s3.ts +18 -7
  186. package/src/integrations/tests/rest.spec.js +287 -24
  187. package/src/threads/query.js +59 -3
  188. package/src/threads/utils.js +0 -50
  189. package/src/utilities/index.js +1 -1
@@ -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.5776ef20.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.411e6960.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.f9faf6ab.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
- <link rel="stylesheet" href="/builder/assets/index.176f00e0.css">
16
+ <link rel="stylesheet" href="/builder/assets/index.39e01193.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="1641993597085" clover="3.2.0">
3
- <project timestamp="1641993597085" name="All files">
4
- <metrics statements="4630" coveredstatements="3425" conditionals="1852" coveredconditionals="1011" methods="661" coveredmethods="465" elements="7143" coveredelements="4901" complexity="0" loc="4630" ncloc="4630" packages="21" files="140" classes="140"/>
2
+ <coverage generated="1642083491662" clover="3.2.0">
3
+ <project timestamp="1642083491663" name="All files">
4
+ <metrics statements="4633" coveredstatements="3427" conditionals="1856" coveredconditionals="1013" methods="661" coveredmethods="465" elements="7150" coveredelements="4905" complexity="0" loc="4633" ncloc="4633" packages="21" files="140" classes="140"/>
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">
@@ -1253,31 +1253,31 @@
1253
1253
  <line num="139" count="2" type="stmt"/>
1254
1254
  <line num="142" count="2" type="stmt"/>
1255
1255
  <line num="143" count="2" type="stmt"/>
1256
- <line num="152" count="1" type="cond" truecount="3" falsecount="1"/>
1257
- <line num="153" count="1" type="stmt"/>
1258
- <line num="155" count="0" type="stmt"/>
1259
- <line num="158" count="1" type="stmt"/>
1260
- <line num="162" count="34" type="stmt"/>
1261
- <line num="163" count="2" type="stmt"/>
1262
- <line num="166" count="34" type="stmt"/>
1263
- <line num="167" count="0" type="stmt"/>
1264
- <line num="170" count="34" type="stmt"/>
1265
- <line num="171" count="2" type="stmt"/>
1256
+ <line num="153" count="1" type="cond" truecount="3" falsecount="1"/>
1257
+ <line num="154" count="1" type="stmt"/>
1258
+ <line num="156" count="0" type="stmt"/>
1259
+ <line num="159" count="1" type="stmt"/>
1260
+ <line num="163" count="34" type="stmt"/>
1261
+ <line num="164" count="2" type="stmt"/>
1262
+ <line num="167" count="34" type="stmt"/>
1263
+ <line num="168" count="0" type="stmt"/>
1264
+ <line num="171" count="34" type="stmt"/>
1266
1265
  <line num="172" count="2" type="stmt"/>
1267
1266
  <line num="173" count="2" type="stmt"/>
1268
- <line num="175" count="2" type="cond" truecount="2" falsecount="0"/>
1269
- <line num="177" count="1" type="stmt"/>
1267
+ <line num="174" count="2" type="stmt"/>
1268
+ <line num="176" count="2" type="cond" truecount="2" falsecount="0"/>
1270
1269
  <line num="178" count="1" type="stmt"/>
1271
1270
  <line num="179" count="1" type="stmt"/>
1272
- <line num="182" count="1" type="stmt"/>
1271
+ <line num="180" count="1" type="stmt"/>
1273
1272
  <line num="183" count="1" type="stmt"/>
1274
- <line num="185" count="1" type="stmt"/>
1275
- <line num="189" count="34" type="stmt"/>
1276
- <line num="190" count="2" type="stmt"/>
1273
+ <line num="184" count="1" type="stmt"/>
1274
+ <line num="186" count="1" type="stmt"/>
1275
+ <line num="190" count="34" type="stmt"/>
1277
1276
  <line num="191" count="2" type="stmt"/>
1278
1277
  <line num="192" count="2" type="stmt"/>
1279
1278
  <line num="193" count="2" type="stmt"/>
1280
1279
  <line num="194" count="2" type="stmt"/>
1280
+ <line num="195" count="2" type="stmt"/>
1281
1281
  </file>
1282
1282
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1283
1283
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -4301,7 +4301,7 @@
4301
4301
  </file>
4302
4302
  </package>
4303
4303
  <package name="threads">
4304
- <metrics statements="251" coveredstatements="214" conditionals="111" coveredconditionals="71" methods="37" coveredmethods="34"/>
4304
+ <metrics statements="254" coveredstatements="216" conditionals="113" coveredconditionals="72" methods="37" coveredmethods="34"/>
4305
4305
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4306
4306
  <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4307
4307
  <line num="1" count="4" type="stmt"/>
@@ -4414,160 +4414,163 @@
4414
4414
  <line num="66" count="34" type="stmt"/>
4415
4415
  </file>
4416
4416
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4417
- <metrics statements="88" coveredstatements="82" conditionals="37" coveredconditionals="30" methods="12" coveredmethods="11"/>
4417
+ <metrics statements="112" coveredstatements="98" conditionals="58" coveredconditionals="40" methods="13" coveredmethods="12"/>
4418
4418
  <line num="1" count="2" type="stmt"/>
4419
4419
  <line num="2" count="2" type="stmt"/>
4420
4420
  <line num="3" count="2" type="stmt"/>
4421
4421
  <line num="4" count="2" type="stmt"/>
4422
4422
  <line num="5" count="2" type="stmt"/>
4423
4423
  <line num="6" count="2" type="stmt"/>
4424
- <line num="10" count="15" type="stmt"/>
4425
- <line num="11" count="15" type="stmt"/>
4426
- <line num="12" count="15" type="stmt"/>
4424
+ <line num="8" count="2" type="stmt"/>
4425
+ <line num="9" count="2" type="stmt"/>
4427
4426
  <line num="13" count="15" type="stmt"/>
4428
4427
  <line num="14" count="15" type="stmt"/>
4429
4428
  <line num="15" count="15" type="stmt"/>
4430
4429
  <line num="16" count="15" type="stmt"/>
4431
4430
  <line num="17" count="15" type="stmt"/>
4432
4431
  <line num="18" count="15" type="stmt"/>
4432
+ <line num="19" count="15" type="stmt"/>
4433
+ <line num="20" count="15" type="stmt"/>
4434
+ <line num="21" count="15" type="stmt"/>
4433
4435
  <line num="22" count="15" type="stmt"/>
4434
- <line num="23" count="15" type="stmt"/>
4435
- <line num="27" count="16" type="stmt"/>
4436
- <line num="29" count="16" type="stmt"/>
4437
- <line num="30" count="16" type="stmt"/>
4436
+ <line num="26" count="15" type="stmt"/>
4437
+ <line num="27" count="15" type="stmt"/>
4438
4438
  <line num="31" count="16" type="stmt"/>
4439
- <line num="32" count="16" type="cond" truecount="2" falsecount="0"/>
4440
- <line num="33" count="2" type="stmt"/>
4441
- <line num="35" count="14" type="stmt"/>
4442
- <line num="37" count="14" type="stmt"/>
4443
- <line num="38" count="14" type="stmt"/>
4444
- <line num="39" count="14" type="stmt"/>
4445
- <line num="40" count="14" type="stmt"/>
4446
- <line num="41" count="14" type="cond" truecount="2" falsecount="0"/>
4447
- <line num="42" count="12" type="stmt"/>
4448
- <line num="43" count="12" type="stmt"/>
4449
- <line num="44" count="12" type="stmt"/>
4450
- <line num="48" count="14" type="cond" truecount="1" falsecount="1"/>
4451
- <line num="49" count="0" type="stmt"/>
4452
- <line num="53" count="0" type="stmt"/>
4453
- <line num="57" count="14" type="cond" truecount="2" falsecount="0"/>
4454
- <line num="63" count="1" type="stmt"/>
4455
- <line num="65" count="1" type="stmt"/>
4456
- <line num="66" count="1" type="stmt"/>
4457
- <line num="70" count="13" type="cond" truecount="2" falsecount="0"/>
4458
- <line num="71" count="11" type="stmt"/>
4459
- <line num="75" count="13" type="cond" truecount="1" falsecount="1"/>
4460
- <line num="76" count="0" type="stmt"/>
4461
- <line num="80" count="13" type="stmt"/>
4462
- <line num="82" count="13" type="cond" truecount="1" falsecount="1"/>
4463
- <line num="83" count="0" type="stmt"/>
4464
- <line num="86" count="13" type="stmt"/>
4465
- <line num="90" count="5" type="stmt"/>
4466
- <line num="91" count="5" type="stmt"/>
4467
- <line num="92" count="5" type="stmt"/>
4468
- <line num="93" count="5" type="stmt"/>
4469
- <line num="107" count="6" type="stmt"/>
4470
- <line num="108" count="6" type="stmt"/>
4471
- <line num="109" count="6" type="stmt"/>
4472
- <line num="110" count="6" type="stmt"/>
4473
- <line num="111" count="6" type="cond" truecount="2" falsecount="0"/>
4474
- <line num="112" count="5" type="cond" truecount="1" falsecount="1"/>
4475
- <line num="116" count="5" type="stmt"/>
4476
- <line num="117" count="5" type="stmt"/>
4477
- <line num="119" count="1" type="stmt"/>
4439
+ <line num="33" count="16" type="stmt"/>
4440
+ <line num="34" count="16" type="stmt"/>
4441
+ <line num="37" count="16" type="cond" truecount="1" falsecount="1"/>
4442
+ <line num="38" count="0" type="stmt"/>
4443
+ <line num="41" count="16" type="stmt"/>
4444
+ <line num="42" count="16" type="cond" truecount="2" falsecount="0"/>
4445
+ <line num="43" count="2" type="stmt"/>
4446
+ <line num="45" count="14" type="stmt"/>
4447
+ <line num="47" count="14" type="stmt"/>
4448
+ <line num="48" count="14" type="stmt"/>
4449
+ <line num="49" count="14" type="stmt"/>
4450
+ <line num="50" count="14" type="stmt"/>
4451
+ <line num="51" count="14" type="stmt"/>
4452
+ <line num="52" count="14" type="cond" truecount="2" falsecount="0"/>
4453
+ <line num="53" count="12" type="stmt"/>
4454
+ <line num="54" count="12" type="stmt"/>
4455
+ <line num="55" count="12" type="stmt"/>
4456
+ <line num="56" count="12" type="stmt"/>
4457
+ <line num="60" count="14" type="cond" truecount="1" falsecount="1"/>
4458
+ <line num="61" count="0" type="stmt"/>
4459
+ <line num="65" count="0" type="stmt"/>
4460
+ <line num="69" count="14" type="cond" truecount="2" falsecount="0"/>
4461
+ <line num="75" count="1" type="stmt"/>
4462
+ <line num="77" count="1" type="stmt"/>
4463
+ <line num="78" count="1" type="stmt"/>
4464
+ <line num="82" count="13" type="cond" truecount="2" falsecount="0"/>
4465
+ <line num="83" count="11" type="stmt"/>
4466
+ <line num="87" count="13" type="cond" truecount="1" falsecount="1"/>
4467
+ <line num="88" count="0" type="stmt"/>
4468
+ <line num="92" count="13" type="stmt"/>
4469
+ <line num="94" count="13" type="cond" truecount="1" falsecount="1"/>
4470
+ <line num="95" count="0" type="stmt"/>
4471
+ <line num="98" count="13" type="stmt"/>
4472
+ <line num="102" count="5" type="stmt"/>
4473
+ <line num="103" count="5" type="stmt"/>
4474
+ <line num="104" count="5" type="stmt"/>
4475
+ <line num="105" count="5" type="stmt"/>
4476
+ <line num="119" count="6" type="stmt"/>
4477
+ <line num="120" count="6" type="stmt"/>
4478
4478
  <line num="121" count="6" type="stmt"/>
4479
- <line num="125" count="16" type="stmt"/>
4480
- <line num="126" count="16" type="cond" truecount="3" falsecount="1"/>
4481
- <line num="127" count="0" type="stmt"/>
4482
- <line num="129" count="16" type="cond" truecount="2" falsecount="0"/>
4483
- <line num="130" count="16" type="cond" truecount="2" falsecount="0"/>
4484
- <line num="131" count="16" type="stmt"/>
4485
- <line num="132" count="2" type="cond" truecount="1" falsecount="1"/>
4486
- <line num="133" count="2" type="stmt"/>
4487
- <line num="136" count="16" type="cond" truecount="2" falsecount="0"/>
4488
- <line num="138" count="11" type="stmt"/>
4489
- <line num="139" count="11" type="stmt"/>
4490
- <line num="141" count="6" type="cond" truecount="1" falsecount="1"/>
4491
- <line num="142" count="0" type="stmt"/>
4492
- <line num="145" count="6" type="stmt"/>
4493
- <line num="146" count="6" type="stmt"/>
4494
- <line num="148" count="11" type="stmt"/>
4495
- <line num="149" count="11" type="stmt"/>
4479
+ <line num="122" count="6" type="stmt"/>
4480
+ <line num="123" count="6" type="cond" truecount="2" falsecount="0"/>
4481
+ <line num="124" count="5" type="cond" truecount="1" falsecount="1"/>
4482
+ <line num="128" count="5" type="stmt"/>
4483
+ <line num="129" count="5" type="stmt"/>
4484
+ <line num="131" count="1" type="stmt"/>
4485
+ <line num="133" count="6" type="stmt"/>
4486
+ <line num="137" count="16" type="stmt"/>
4487
+ <line num="138" count="16" type="cond" truecount="3" falsecount="1"/>
4488
+ <line num="139" count="0" type="stmt"/>
4489
+ <line num="141" count="16" type="cond" truecount="2" falsecount="0"/>
4490
+ <line num="142" count="16" type="cond" truecount="2" falsecount="0"/>
4491
+ <line num="143" count="16" type="stmt"/>
4492
+ <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
4493
+ <line num="145" count="2" type="stmt"/>
4494
+ <line num="148" count="16" type="cond" truecount="2" falsecount="0"/>
4496
4495
  <line num="150" count="11" type="stmt"/>
4497
- <line num="151" count="6" type="stmt"/>
4498
- <line num="152" count="6" type="stmt"/>
4496
+ <line num="151" count="11" type="stmt"/>
4497
+ <line num="153" count="6" type="cond" truecount="1" falsecount="1"/>
4498
+ <line num="154" count="0" type="stmt"/>
4499
4499
  <line num="157" count="6" type="stmt"/>
4500
- <line num="160" count="16" type="stmt"/>
4501
- <line num="164" count="2" type="stmt"/>
4502
- <line num="165" count="10" type="stmt"/>
4503
- <line num="166" count="10" type="stmt"/>
4504
- <line num="168" count="8" type="stmt"/>
4505
- <line num="171" count="2" type="stmt"/>
4500
+ <line num="158" count="6" type="stmt"/>
4501
+ <line num="160" count="11" type="stmt"/>
4502
+ <line num="161" count="11" type="stmt"/>
4503
+ <line num="162" count="11" type="stmt"/>
4504
+ <line num="163" count="6" type="stmt"/>
4505
+ <line num="164" count="6" type="stmt"/>
4506
+ <line num="169" count="6" type="stmt"/>
4507
+ <line num="172" count="16" type="stmt"/>
4508
+ <line num="176" count="16" type="stmt"/>
4509
+ <line num="179" count="16" type="stmt"/>
4510
+ <line num="180" count="19" type="cond" truecount="1" falsecount="1"/>
4511
+ <line num="181" count="0" type="stmt"/>
4512
+ <line num="183" count="19" type="cond" truecount="1" falsecount="1"/>
4513
+ <line num="185" count="0" type="stmt"/>
4514
+ <line num="186" count="19" type="cond" truecount="1" falsecount="1"/>
4515
+ <line num="188" count="19" type="stmt"/>
4516
+ <line num="190" count="19" type="cond" truecount="2" falsecount="2"/>
4517
+ <line num="191" count="0" type="stmt"/>
4518
+ <line num="193" count="19" type="stmt"/>
4519
+ <line num="197" count="0" type="stmt"/>
4520
+ <line num="200" count="16" type="cond" truecount="1" falsecount="1"/>
4521
+ <line num="205" count="0" type="stmt"/>
4522
+ <line num="206" count="0" type="stmt"/>
4523
+ <line num="214" count="0" type="stmt"/>
4524
+ <line num="216" count="16" type="stmt"/>
4525
+ <line num="220" count="2" type="stmt"/>
4526
+ <line num="221" count="10" type="stmt"/>
4527
+ <line num="222" count="10" type="stmt"/>
4528
+ <line num="224" count="8" type="stmt"/>
4529
+ <line num="227" count="2" type="stmt"/>
4506
4530
  </file>
4507
4531
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4508
- <metrics statements="58" coveredstatements="45" conditionals="33" coveredconditionals="18" methods="10" coveredmethods="9"/>
4532
+ <metrics statements="37" coveredstatements="31" conditionals="14" coveredconditionals="9" methods="9" coveredmethods="8"/>
4509
4533
  <line num="1" count="34" type="stmt"/>
4510
4534
  <line num="2" count="34" type="stmt"/>
4511
4535
  <line num="3" count="34" type="stmt"/>
4512
4536
  <line num="4" count="34" type="stmt"/>
4513
4537
  <line num="5" count="34" type="stmt"/>
4514
- <line num="6" count="34" type="stmt"/>
4515
- <line num="8" count="34" type="stmt"/>
4516
- <line num="11" count="34" type="stmt"/>
4517
- <line num="12" count="34" type="stmt"/>
4518
- <line num="15" count="19" type="cond" truecount="2" falsecount="0"/>
4519
- <line num="16" count="2" type="stmt"/>
4520
- <line num="18" count="19" type="stmt"/>
4538
+ <line num="7" count="34" type="stmt"/>
4539
+ <line num="11" count="19" type="cond" truecount="2" falsecount="0"/>
4540
+ <line num="12" count="2" type="stmt"/>
4541
+ <line num="14" count="19" type="stmt"/>
4542
+ <line num="17" count="34" type="stmt"/>
4543
+ <line num="18" count="0" type="cond" truecount="0" falsecount="2"/>
4521
4544
  <line num="21" count="34" type="stmt"/>
4522
- <line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
4523
- <line num="25" count="34" type="stmt"/>
4524
- <line num="27" count="6" type="cond" truecount="2" falsecount="2"/>
4525
- <line num="28" count="6" type="stmt"/>
4526
- <line num="31" count="0" type="stmt"/>
4527
- <line num="32" count="0" type="stmt"/>
4528
- <line num="36" count="19" type="stmt"/>
4529
- <line num="39" count="34" type="stmt"/>
4530
- <line num="40" count="11" type="stmt"/>
4531
- <line num="41" count="11" type="stmt"/>
4532
- <line num="44" count="34" type="stmt"/>
4533
- <line num="45" count="3" type="stmt"/>
4534
- <line num="46" count="3" type="stmt"/>
4535
- <line num="47" count="3" type="stmt"/>
4545
+ <line num="23" count="6" type="cond" truecount="2" falsecount="2"/>
4546
+ <line num="24" count="6" type="stmt"/>
4547
+ <line num="27" count="0" type="stmt"/>
4548
+ <line num="28" count="0" type="stmt"/>
4549
+ <line num="32" count="19" type="stmt"/>
4550
+ <line num="35" count="34" type="stmt"/>
4551
+ <line num="36" count="11" type="stmt"/>
4552
+ <line num="37" count="11" type="stmt"/>
4553
+ <line num="40" count="34" type="stmt"/>
4554
+ <line num="41" count="3" type="stmt"/>
4555
+ <line num="42" count="3" type="stmt"/>
4556
+ <line num="43" count="3" type="stmt"/>
4557
+ <line num="44" count="3" type="stmt"/>
4536
4558
  <line num="48" count="3" type="stmt"/>
4537
- <line num="52" count="3" type="stmt"/>
4538
- <line num="55" count="34" type="stmt"/>
4539
- <line num="56" count="5" type="stmt"/>
4540
- <line num="57" count="5" type="stmt"/>
4541
- <line num="64" count="34" type="stmt"/>
4542
- <line num="65" count="14" type="cond" truecount="1" falsecount="1"/>
4543
- <line num="66" count="0" type="stmt"/>
4544
- <line num="67" count="0" type="stmt"/>
4545
- <line num="69" count="0" type="stmt"/>
4559
+ <line num="51" count="34" type="stmt"/>
4560
+ <line num="52" count="5" type="stmt"/>
4561
+ <line num="53" count="5" type="stmt"/>
4562
+ <line num="60" count="34" type="stmt"/>
4563
+ <line num="61" count="14" type="cond" truecount="1" falsecount="1"/>
4564
+ <line num="62" count="0" type="stmt"/>
4565
+ <line num="63" count="0" type="stmt"/>
4566
+ <line num="65" count="0" type="stmt"/>
4567
+ <line num="68" count="14" type="stmt"/>
4568
+ <line num="71" count="34" type="stmt"/>
4546
4569
  <line num="72" count="14" type="stmt"/>
4547
- <line num="75" count="34" type="stmt"/>
4548
- <line num="76" count="14" type="stmt"/>
4549
- <line num="84" count="34" type="cond" truecount="0" falsecount="1"/>
4550
- <line num="85" count="16" type="stmt"/>
4551
- <line num="88" count="16" type="stmt"/>
4552
- <line num="89" count="19" type="cond" truecount="1" falsecount="1"/>
4553
- <line num="90" count="0" type="stmt"/>
4554
- <line num="92" count="19" type="cond" truecount="1" falsecount="1"/>
4555
- <line num="94" count="0" type="stmt"/>
4556
- <line num="95" count="19" type="cond" truecount="1" falsecount="1"/>
4557
- <line num="97" count="19" type="stmt"/>
4558
- <line num="99" count="19" type="cond" truecount="2" falsecount="2"/>
4559
- <line num="100" count="0" type="stmt"/>
4560
- <line num="102" count="19" type="stmt"/>
4561
- <line num="106" count="0" type="stmt"/>
4562
- <line num="110" count="16" type="cond" truecount="1" falsecount="1"/>
4563
- <line num="115" count="0" type="stmt"/>
4564
- <line num="116" count="0" type="stmt"/>
4565
- <line num="124" count="0" type="stmt"/>
4566
- <line num="127" count="16" type="stmt"/>
4567
4570
  </file>
4568
4571
  </package>
4569
4572
  <package name="utilities">
4570
- <metrics statements="331" coveredstatements="240" conditionals="131" coveredconditionals="73" methods="63" coveredmethods="43"/>
4573
+ <metrics statements="331" coveredstatements="240" conditionals="133" coveredconditionals="74" methods="63" coveredmethods="43"/>
4571
4574
  <file name="bcrypt.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/bcrypt.js">
4572
4575
  <metrics statements="9" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>
4573
4576
  <line num="3" count="0" type="stmt"/>
@@ -4733,7 +4736,7 @@
4733
4736
  <line num="98" count="0" type="stmt"/>
4734
4737
  </file>
4735
4738
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/index.js">
4736
- <metrics statements="76" coveredstatements="55" conditionals="26" coveredconditionals="13" methods="16" coveredmethods="12"/>
4739
+ <metrics statements="76" coveredstatements="55" conditionals="28" coveredconditionals="14" methods="16" coveredmethods="12"/>
4737
4740
  <line num="1" count="37" type="stmt"/>
4738
4741
  <line num="2" count="37" type="stmt"/>
4739
4742
  <line num="3" count="37" type="stmt"/>
@@ -4751,7 +4754,7 @@
4751
4754
  <line num="28" count="37" type="stmt"/>
4752
4755
  <line num="29" count="189" type="stmt"/>
4753
4756
  <line num="36" count="37" type="stmt"/>
4754
- <line num="37" count="2" type="cond" truecount="1" falsecount="1"/>
4757
+ <line num="37" count="2" type="cond" truecount="2" falsecount="2"/>
4755
4758
  <line num="39" count="2" type="stmt"/>
4756
4759
  <line num="41" count="0" type="stmt"/>
4757
4760
  <line num="55" count="37" type="stmt"/>
@@ -4803,13 +4806,13 @@
4803
4806
  <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4804
4807
  <line num="150" count="0" type="stmt"/>
4805
4808
  <line num="154" count="37" type="stmt"/>
4806
- <line num="155" count="21" type="stmt"/>
4807
- <line num="156" count="21" type="stmt"/>
4808
- <line num="157" count="21" type="stmt"/>
4809
- <line num="158" count="21" type="cond" truecount="2" falsecount="0"/>
4810
- <line num="159" count="21" type="cond" truecount="1" falsecount="1"/>
4809
+ <line num="155" count="29" type="stmt"/>
4810
+ <line num="156" count="29" type="stmt"/>
4811
+ <line num="157" count="29" type="stmt"/>
4812
+ <line num="158" count="29" type="cond" truecount="2" falsecount="0"/>
4813
+ <line num="159" count="29" type="cond" truecount="1" falsecount="1"/>
4811
4814
  <line num="160" count="0" type="stmt"/>
4812
- <line num="162" count="21" type="cond" truecount="3" falsecount="1"/>
4815
+ <line num="162" count="29" type="cond" truecount="3" falsecount="1"/>
4813
4816
  </file>
4814
4817
  <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4815
4818
  <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>