@budibase/server 0.9.131 → 0.9.135

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 (142) hide show
  1. package/builder/assets/{index.ab77299f.js → index.f4e8f945.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +65 -64
  4. package/coverage/coverage-final.json +4 -4
  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 +1 -1
  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/component.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +1 -1
  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/permission.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/query.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  31. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  40. package/coverage/lcov-report/api/index.html +1 -1
  41. package/coverage/lcov-report/api/index.js.html +1 -1
  42. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  43. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  44. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/index.html +1 -1
  54. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  70. package/coverage/lcov-report/automations/actions.js.html +3 -3
  71. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  72. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  73. package/coverage/lcov-report/automations/index.html +14 -14
  74. package/coverage/lcov-report/automations/index.js.html +2 -2
  75. package/coverage/lcov-report/automations/logic.js.html +1 -1
  76. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  77. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/index.html +1 -1
  84. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/sendgridEmail.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  89. package/coverage/lcov-report/automations/thread.js.html +1 -1
  90. package/coverage/lcov-report/automations/triggers.js.html +16 -10
  91. package/coverage/lcov-report/constants/index.html +1 -1
  92. package/coverage/lcov-report/constants/index.js.html +1 -1
  93. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  94. package/coverage/lcov-report/constants/screens.js.html +1 -1
  95. package/coverage/lcov-report/db/client.js.html +1 -1
  96. package/coverage/lcov-report/db/index.html +1 -1
  97. package/coverage/lcov-report/db/index.js.html +1 -1
  98. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  99. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  100. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  101. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  102. package/coverage/lcov-report/db/newid.js.html +1 -1
  103. package/coverage/lcov-report/db/utils.js.html +1 -1
  104. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  105. package/coverage/lcov-report/events/index.html +1 -1
  106. package/coverage/lcov-report/events/index.js.html +1 -1
  107. package/coverage/lcov-report/events/utils.js.html +1 -1
  108. package/coverage/lcov-report/index.html +14 -14
  109. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  110. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  111. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  112. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  113. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  114. package/coverage/lcov-report/middleware/index.html +1 -1
  115. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  116. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  117. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  118. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  119. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  120. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  121. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  122. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  123. package/coverage/lcov-report/utilities/global.js.html +1 -1
  124. package/coverage/lcov-report/utilities/index.html +1 -1
  125. package/coverage/lcov-report/utilities/index.js.html +1 -1
  126. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  127. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  128. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  129. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  130. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  131. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  132. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  133. package/coverage/lcov-report/utilities/security.js.html +1 -1
  134. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  135. package/coverage/lcov-report/utilities/users.js.html +1 -1
  136. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  137. package/coverage/lcov.info +105 -102
  138. package/dist/automations/triggers.js +3 -2
  139. package/dist/package.json +5 -5
  140. package/dist/tsconfig.tsbuildinfo +1 -1
  141. package/package.json +6 -6
  142. package/src/automations/triggers.js +4 -2
@@ -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.ab77299f.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.f4e8f945.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.7177f366.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.d75d5eb7.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.121692c9.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1631888653965" clover="3.2.0">
3
- <project timestamp="1631888653965" name="All files">
4
- <metrics statements="3395" coveredstatements="2749" conditionals="1267" coveredconditionals="801" methods="494" coveredmethods="384" elements="5156" coveredelements="3934" complexity="0" loc="3395" ncloc="3395" packages="18" files="113" classes="113"/>
2
+ <coverage generated="1632229519473" clover="3.2.0">
3
+ <project timestamp="1632229519474" name="All files">
4
+ <metrics statements="3396" coveredstatements="2750" conditionals="1269" coveredconditionals="803" methods="494" coveredmethods="384" elements="5159" coveredelements="3937" complexity="0" loc="3396" ncloc="3396" packages="18" files="113" classes="113"/>
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">
@@ -2182,7 +2182,7 @@
2182
2182
  </file>
2183
2183
  </package>
2184
2184
  <package name="automations">
2185
- <metrics statements="239" coveredstatements="213" conditionals="87" coveredconditionals="65" methods="27" coveredmethods="25"/>
2185
+ <metrics statements="240" coveredstatements="214" conditionals="89" coveredconditionals="67" methods="27" coveredmethods="25"/>
2186
2186
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2187
2187
  <metrics statements="25" coveredstatements="23" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="1"/>
2188
2188
  <line num="1" count="33" type="stmt"/>
@@ -2204,10 +2204,10 @@
2204
2204
  <line num="68" count="33" type="stmt"/>
2205
2205
  <line num="69" count="28" type="stmt"/>
2206
2206
  <line num="70" count="28" type="stmt"/>
2207
- <line num="71" count="20" type="stmt"/>
2207
+ <line num="71" count="18" type="stmt"/>
2208
2208
  <line num="76" count="0" type="stmt"/>
2209
2209
  <line num="77" count="0" type="stmt"/>
2210
- <line num="79" count="20" type="stmt"/>
2210
+ <line num="79" count="18" type="stmt"/>
2211
2211
  <line num="83" count="33" type="stmt"/>
2212
2212
  <line num="84" count="33" type="stmt"/>
2213
2213
  </file>
@@ -2286,7 +2286,7 @@
2286
2286
  <line num="27" count="2" type="stmt"/>
2287
2287
  <line num="33" count="23" type="stmt"/>
2288
2288
  <line num="34" count="28" type="stmt"/>
2289
- <line num="35" count="20" type="stmt"/>
2289
+ <line num="35" count="18" type="stmt"/>
2290
2290
  <line num="36" count="10" type="stmt"/>
2291
2291
  <line num="37" count="10" type="cond" truecount="2" falsecount="0"/>
2292
2292
  <line num="38" count="2" type="stmt"/>
@@ -2365,7 +2365,7 @@
2365
2365
  <line num="104" count="0" type="stmt"/>
2366
2366
  </file>
2367
2367
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2368
- <metrics statements="76" coveredstatements="71" conditionals="35" coveredconditionals="29" methods="9" coveredmethods="8"/>
2368
+ <metrics statements="77" coveredstatements="72" conditionals="37" coveredconditionals="31" methods="9" coveredmethods="8"/>
2369
2369
  <line num="1" count="32" type="stmt"/>
2370
2370
  <line num="2" count="32" type="stmt"/>
2371
2371
  <line num="3" count="32" type="stmt"/>
@@ -2377,71 +2377,72 @@
2377
2377
  <line num="14" count="32" type="stmt"/>
2378
2378
  <line num="15" count="32" type="stmt"/>
2379
2379
  <line num="17" count="32" type="stmt"/>
2380
- <line num="18" count="32" type="stmt"/>
2380
+ <line num="19" count="32" type="cond" truecount="2" falsecount="0"/>
2381
2381
  <line num="20" count="32" type="stmt"/>
2382
- <line num="21" count="32" type="stmt"/>
2383
2382
  <line num="22" count="32" type="stmt"/>
2384
2383
  <line num="23" count="32" type="stmt"/>
2384
+ <line num="24" count="32" type="stmt"/>
2385
2385
  <line num="25" count="32" type="stmt"/>
2386
- <line num="239" count="16" type="cond" truecount="1" falsecount="1"/>
2387
- <line num="240" count="0" type="stmt"/>
2388
- <line num="242" count="16" type="stmt"/>
2389
- <line num="243" count="16" type="stmt"/>
2390
- <line num="248" count="16" type="stmt"/>
2391
- <line num="249" count="4" type="stmt"/>
2386
+ <line num="27" count="32" type="stmt"/>
2387
+ <line num="241" count="16" type="cond" truecount="1" falsecount="1"/>
2388
+ <line num="242" count="0" type="stmt"/>
2389
+ <line num="244" count="16" type="stmt"/>
2390
+ <line num="245" count="16" type="stmt"/>
2391
+ <line num="250" count="16" type="stmt"/>
2392
2392
  <line num="251" count="4" type="stmt"/>
2393
- <line num="252" count="4" type="cond" truecount="2" falsecount="0"/>
2394
- <line num="255" count="16" type="stmt"/>
2395
- <line num="256" count="4" type="stmt"/>
2396
- <line num="257" count="4" type="cond" truecount="1" falsecount="1"/>
2397
- <line num="258" count="4" type="cond" truecount="1" falsecount="1"/>
2398
- <line num="263" count="0" type="stmt"/>
2399
- <line num="265" count="4" type="stmt"/>
2400
- <line num="269" count="32" type="stmt"/>
2401
- <line num="274" count="8" type="stmt"/>
2402
- <line num="277" count="32" type="stmt"/>
2403
- <line num="282" count="3" type="stmt"/>
2404
- <line num="285" count="32" type="stmt"/>
2405
- <line num="290" count="5" type="stmt"/>
2406
- <line num="294" count="3" type="stmt"/>
2407
- <line num="295" count="3" type="stmt"/>
2393
+ <line num="253" count="4" type="stmt"/>
2394
+ <line num="254" count="4" type="cond" truecount="2" falsecount="0"/>
2395
+ <line num="257" count="16" type="stmt"/>
2396
+ <line num="258" count="4" type="stmt"/>
2397
+ <line num="259" count="4" type="cond" truecount="1" falsecount="1"/>
2398
+ <line num="260" count="4" type="cond" truecount="1" falsecount="1"/>
2399
+ <line num="265" count="0" type="stmt"/>
2400
+ <line num="267" count="4" type="stmt"/>
2401
+ <line num="271" count="32" type="stmt"/>
2402
+ <line num="276" count="8" type="stmt"/>
2403
+ <line num="279" count="32" type="stmt"/>
2404
+ <line num="284" count="3" type="stmt"/>
2405
+ <line num="287" count="32" type="stmt"/>
2406
+ <line num="292" count="5" type="stmt"/>
2408
2407
  <line num="296" count="3" type="stmt"/>
2409
- <line num="298" count="3" type="cond" truecount="1" falsecount="1"/>
2410
- <line num="299" count="3" type="stmt"/>
2411
- <line num="300" count="3" type="stmt"/>
2412
- <line num="302" count="0" type="stmt"/>
2413
- <line num="303" count="0" type="stmt"/>
2414
- <line num="305" count="3" type="stmt"/>
2415
- <line num="306" count="3" type="stmt"/>
2416
- <line num="307" count="9" type="stmt"/>
2417
- <line num="308" count="9" type="stmt"/>
2418
- <line num="309" count="9" type="cond" truecount="4" falsecount="0"/>
2419
- <line num="311" count="6" type="cond" truecount="2" falsecount="0"/>
2420
- <line num="312" count="6" type="stmt"/>
2421
- <line num="314" count="1" type="cond" truecount="2" falsecount="0"/>
2422
- <line num="315" count="1" type="stmt"/>
2423
- <line num="317" count="1" type="cond" truecount="2" falsecount="0"/>
2424
- <line num="318" count="1" type="stmt"/>
2425
- <line num="320" count="1" type="cond" truecount="2" falsecount="0"/>
2426
- <line num="321" count="1" type="stmt"/>
2427
- <line num="324" count="3" type="stmt"/>
2428
- <line num="329" count="3" type="stmt"/>
2429
- <line num="332" count="32" type="stmt"/>
2430
- <line num="334" count="6" type="cond" truecount="3" falsecount="1"/>
2431
- <line num="335" count="6" type="cond" truecount="2" falsecount="0"/>
2432
- <line num="336" count="2" type="stmt"/>
2433
- <line num="338" count="6" type="cond" truecount="2" falsecount="0"/>
2434
- <line num="340" count="1" type="stmt"/>
2435
- <line num="341" count="1" type="stmt"/>
2408
+ <line num="297" count="3" type="stmt"/>
2409
+ <line num="298" count="3" type="stmt"/>
2410
+ <line num="300" count="3" type="cond" truecount="1" falsecount="1"/>
2411
+ <line num="301" count="3" type="stmt"/>
2412
+ <line num="302" count="3" type="stmt"/>
2413
+ <line num="304" count="0" type="stmt"/>
2414
+ <line num="305" count="0" type="stmt"/>
2415
+ <line num="307" count="3" type="stmt"/>
2416
+ <line num="308" count="3" type="stmt"/>
2417
+ <line num="309" count="9" type="stmt"/>
2418
+ <line num="310" count="9" type="stmt"/>
2419
+ <line num="311" count="9" type="cond" truecount="4" falsecount="0"/>
2420
+ <line num="313" count="6" type="cond" truecount="2" falsecount="0"/>
2421
+ <line num="314" count="6" type="stmt"/>
2422
+ <line num="316" count="1" type="cond" truecount="2" falsecount="0"/>
2423
+ <line num="317" count="1" type="stmt"/>
2424
+ <line num="319" count="1" type="cond" truecount="2" falsecount="0"/>
2425
+ <line num="320" count="1" type="stmt"/>
2426
+ <line num="322" count="1" type="cond" truecount="2" falsecount="0"/>
2427
+ <line num="323" count="1" type="stmt"/>
2428
+ <line num="326" count="3" type="stmt"/>
2429
+ <line num="331" count="3" type="stmt"/>
2430
+ <line num="334" count="32" type="stmt"/>
2431
+ <line num="336" count="6" type="cond" truecount="3" falsecount="1"/>
2432
+ <line num="337" count="6" type="cond" truecount="2" falsecount="0"/>
2433
+ <line num="338" count="2" type="stmt"/>
2434
+ <line num="340" count="6" type="cond" truecount="2" falsecount="0"/>
2436
2435
  <line num="342" count="1" type="stmt"/>
2437
2436
  <line num="343" count="1" type="stmt"/>
2437
+ <line num="344" count="1" type="stmt"/>
2438
2438
  <line num="345" count="1" type="stmt"/>
2439
- <line num="349" count="6" type="stmt"/>
2440
- <line num="352" count="32" type="stmt"/>
2441
- <line num="353" count="0" type="stmt"/>
2442
- <line num="355" count="32" type="stmt"/>
2443
- <line num="356" count="32" type="stmt"/>
2439
+ <line num="347" count="1" type="stmt"/>
2440
+ <line num="351" count="6" type="stmt"/>
2441
+ <line num="354" count="32" type="stmt"/>
2442
+ <line num="355" count="0" type="stmt"/>
2443
+ <line num="357" count="32" type="stmt"/>
2444
2444
  <line num="358" count="32" type="stmt"/>
2445
+ <line num="360" count="32" type="stmt"/>
2445
2446
  </file>
2446
2447
  </package>
2447
2448
  <package name="automations.steps">
@@ -3665,7 +3666,7 @@
3665
3666
  <line num="34" count="32" type="stmt"/>
3666
3667
  <line num="35" count="32" type="stmt"/>
3667
3668
  <line num="36" count="32" type="stmt"/>
3668
- <line num="49" count="20" type="stmt"/>
3669
+ <line num="49" count="18" type="stmt"/>
3669
3670
  <line num="50" count="17" type="cond" truecount="2" falsecount="0"/>
3670
3671
  <line num="51" count="7" type="stmt"/>
3671
3672
  <line num="53" count="10" type="stmt"/>