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

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 (178) hide show
  1. package/builder/assets/{index.00221ff2.js → index.af9e71d8.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +136 -132
  4. package/coverage/coverage-final.json +1 -1
  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 +38 -17
  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/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 +14 -14
  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 +1 -1
  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 +15 -15
  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 +1 -1
  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 +1 -1
  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 +210 -198
  174. package/dist/api/controllers/application.js +14 -6
  175. package/dist/package.json +4 -4
  176. package/dist/tsconfig.tsbuildinfo +1 -1
  177. package/package.json +5 -5
  178. package/src/api/controllers/application.js +14 -7
@@ -340,7 +340,7 @@ exports.update = async (property, usage, opts = { dryRun: false }) => {
340
340
  <div class='footer quiet pad2 space-top1 center small'>
341
341
  Code coverage generated by
342
342
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
343
- at Wed Jan 26 2022 17:11:28 GMT+0000 (Coordinated Universal Time)
343
+ at Fri Jan 28 2022 15:12:12 GMT+0000 (Coordinated Universal Time)
344
344
  </div>
345
345
  </div>
346
346
  <script src="../../prettify.js"></script>
@@ -286,7 +286,7 @@ exports.getUniqueRows = async appIds =&gt; {
286
286
  <div class='footer quiet pad2 space-top1 center small'>
287
287
  Code coverage generated by
288
288
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
289
- at Wed Jan 26 2022 17:11:28 GMT+0000 (Coordinated Universal Time)
289
+ at Fri Jan 28 2022 15:12:12 GMT+0000 (Coordinated Universal Time)
290
290
  </div>
291
291
  </div>
292
292
  <script src="../../prettify.js"></script>
@@ -118,7 +118,7 @@ function <span class="fstat-no" title="function not covered" >resetQuotasIfRequi
118
118
  <div class='footer quiet pad2 space-top1 center small'>
119
119
  Code coverage generated by
120
120
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
121
- at Wed Jan 26 2022 17:11:28 GMT+0000 (Coordinated Universal Time)
121
+ at Fri Jan 28 2022 15:12:12 GMT+0000 (Coordinated Universal Time)
122
122
  </div>
123
123
  </div>
124
124
  <script src="../../prettify.js"></script>
@@ -136,7 +136,7 @@ exports.getFullUser = async (ctx, userId) =&gt; {
136
136
  <div class='footer quiet pad2 space-top1 center small'>
137
137
  Code coverage generated by
138
138
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
139
- at Wed Jan 26 2022 17:11:28 GMT+0000 (Coordinated Universal Time)
139
+ at Fri Jan 28 2022 15:12:12 GMT+0000 (Coordinated Universal Time)
140
140
  </div>
141
141
  </div>
142
142
  <script src="../prettify.js"></script>
@@ -334,7 +334,7 @@ exports.removeAppFromUserRoles = async (ctx, appId) =&gt; {
334
334
  <div class='footer quiet pad2 space-top1 center small'>
335
335
  Code coverage generated by
336
336
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
337
- at Wed Jan 26 2022 17:11:28 GMT+0000 (Coordinated Universal Time)
337
+ at Fri Jan 28 2022 15:12:12 GMT+0000 (Coordinated Universal Time)
338
338
  </div>
339
339
  </div>
340
340
  <script src="../prettify.js"></script>
@@ -143,26 +143,26 @@ FN:62,getScreens
143
143
  FN:69,(anonymous_3)
144
144
  FN:72,getUserRoleId
145
145
  FN:78,getAppUrl
146
- FN:93,(anonymous_6)
147
- FN:95,(anonymous_7)
148
- FN:97,(anonymous_8)
149
- FN:102,(anonymous_9)
150
- FN:108,(anonymous_10)
151
- FN:110,(anonymous_11)
152
- FN:115,createInstance
153
- FN:155,(anonymous_13)
154
- FN:167,(anonymous_14)
155
- FN:180,(anonymous_15)
156
- FN:196,(anonymous_16)
157
- FN:217,(anonymous_17)
158
- FN:279,(anonymous_18)
159
- FN:293,(anonymous_19)
160
- FN:315,(anonymous_20)
161
- FN:338,(anonymous_21)
162
- FN:357,(anonymous_22)
163
- FN:386,(anonymous_23)
164
- FN:406,(anonymous_24)
165
- FN:425,(anonymous_25)
146
+ FN:94,(anonymous_6)
147
+ FN:96,(anonymous_7)
148
+ FN:98,(anonymous_8)
149
+ FN:103,(anonymous_9)
150
+ FN:109,(anonymous_10)
151
+ FN:111,(anonymous_11)
152
+ FN:116,createInstance
153
+ FN:156,(anonymous_13)
154
+ FN:168,(anonymous_14)
155
+ FN:181,(anonymous_15)
156
+ FN:197,(anonymous_16)
157
+ FN:218,(anonymous_17)
158
+ FN:282,(anonymous_18)
159
+ FN:300,(anonymous_19)
160
+ FN:322,(anonymous_20)
161
+ FN:345,(anonymous_21)
162
+ FN:364,(anonymous_22)
163
+ FN:393,(anonymous_23)
164
+ FN:413,(anonymous_24)
165
+ FN:432,(anonymous_25)
166
166
  FNF:26
167
167
  FNH:23
168
168
  FNDA:202,getLayouts
@@ -219,246 +219,258 @@ DA:69,12
219
219
  DA:73,200
220
220
  DA:81,194
221
221
  DA:83,0
222
+ DA:84,194
222
223
  DA:86,194
223
224
  DA:88,194
224
- DA:90,194
225
- DA:93,36
226
- DA:94,194
227
- DA:95,2
228
- DA:97,732
229
- DA:98,0
230
- DA:102,36
231
- DA:104,194
232
- DA:105,0
233
- DA:107,194
234
- DA:108,2
235
- DA:110,732
236
- DA:111,0
237
- DA:116,192
225
+ DA:89,194
226
+ DA:91,194
227
+ DA:94,36
228
+ DA:95,194
229
+ DA:96,2
230
+ DA:98,732
231
+ DA:99,0
232
+ DA:103,36
233
+ DA:105,194
234
+ DA:106,0
235
+ DA:108,194
236
+ DA:109,2
237
+ DA:111,732
238
+ DA:112,0
238
239
  DA:117,192
239
240
  DA:118,192
240
- DA:120,192
241
+ DA:119,192
241
242
  DA:121,192
242
- DA:130,192
243
+ DA:122,192
243
244
  DA:131,192
244
245
  DA:132,192
245
- DA:136,192
246
- DA:137,0
246
+ DA:133,192
247
+ DA:137,192
247
248
  DA:138,0
248
249
  DA:139,0
249
- DA:141,192
250
- DA:144,0
250
+ DA:140,0
251
+ DA:142,192
251
252
  DA:145,0
252
- DA:149,192
253
- DA:152,192
254
- DA:155,36
255
- DA:156,10
253
+ DA:146,0
254
+ DA:150,192
255
+ DA:153,192
256
+ DA:156,36
256
257
  DA:157,10
257
258
  DA:158,10
258
- DA:161,10
259
+ DA:159,10
259
260
  DA:162,10
260
261
  DA:163,10
261
- DA:164,14
262
+ DA:164,10
262
263
  DA:165,14
263
- DA:167,0
264
+ DA:166,14
264
265
  DA:168,0
265
266
  DA:169,0
266
- DA:172,0
267
- DA:177,10
268
- DA:180,36
269
- DA:181,1
267
+ DA:170,0
268
+ DA:173,0
269
+ DA:178,10
270
+ DA:181,36
270
271
  DA:182,1
271
272
  DA:183,1
272
273
  DA:184,1
273
274
  DA:185,1
274
- DA:189,1
275
- DA:196,36
276
- DA:197,201
275
+ DA:186,1
276
+ DA:190,1
277
+ DA:197,36
277
278
  DA:198,201
278
279
  DA:199,201
279
280
  DA:200,201
280
- DA:203,201
281
- DA:204,199
281
+ DA:201,201
282
+ DA:204,201
282
283
  DA:205,199
283
284
  DA:206,199
284
- DA:209,201
285
- DA:217,36
286
- DA:218,192
285
+ DA:207,199
286
+ DA:210,201
287
+ DA:218,36
287
288
  DA:219,192
288
289
  DA:220,192
289
290
  DA:221,192
290
291
  DA:222,192
291
- DA:224,192
292
+ DA:223,192
292
293
  DA:225,192
293
- DA:230,192
294
- DA:231,0
295
- DA:233,192
294
+ DA:226,192
295
+ DA:231,192
296
+ DA:232,0
296
297
  DA:234,192
297
- DA:236,192
298
- DA:238,192
299
- DA:240,192
300
- DA:241,0
301
- DA:245,192
302
- DA:260,192
298
+ DA:235,192
299
+ DA:237,192
300
+ DA:239,192
301
+ DA:241,192
302
+ DA:242,0
303
+ DA:246,192
303
304
  DA:261,192
304
- DA:265,192
305
+ DA:262,192
305
306
  DA:266,192
306
- DA:274,192
307
+ DA:267,192
307
308
  DA:275,192
308
309
  DA:276,192
309
- DA:279,36
310
- DA:280,2
311
- DA:282,2
310
+ DA:277,192
311
+ DA:282,36
312
312
  DA:283,2
313
- DA:284,2
314
313
  DA:285,2
314
+ DA:286,2
315
315
  DA:287,2
316
- DA:288,2
317
316
  DA:289,2
318
317
  DA:290,2
319
- DA:293,36
318
+ DA:291,2
319
+ DA:292,2
320
320
  DA:295,2
321
321
  DA:296,2
322
322
  DA:297,2
323
- DA:300,2
324
- DA:301,0
325
- DA:302,0
326
- DA:306,2
327
- DA:310,2
328
- DA:311,2
329
- DA:312,2
330
- DA:315,36
331
- DA:317,1
332
- DA:318,1
333
- DA:319,1
334
- DA:320,0
323
+ DA:300,36
324
+ DA:302,2
325
+ DA:303,2
326
+ DA:304,2
327
+ DA:307,2
328
+ DA:308,0
329
+ DA:309,0
330
+ DA:313,2
331
+ DA:317,2
332
+ DA:318,2
333
+ DA:319,2
334
+ DA:322,36
335
335
  DA:324,1
336
- DA:325,0
337
- DA:329,1
338
- DA:333,1
339
- DA:334,1
340
- DA:335,1
341
- DA:338,36
342
- DA:339,11
343
- DA:341,11
336
+ DA:325,1
337
+ DA:326,1
338
+ DA:327,0
339
+ DA:331,1
340
+ DA:332,0
341
+ DA:336,1
342
+ DA:340,1
343
+ DA:341,1
344
+ DA:342,1
345
+ DA:345,36
344
346
  DA:346,11
345
- DA:347,0
346
- DA:350,11
347
- DA:351,11
347
+ DA:348,11
348
348
  DA:353,11
349
- DA:354,11
350
- DA:357,36
351
- DA:358,0
352
- DA:359,0
353
- DA:360,0
354
- DA:364,0
349
+ DA:354,0
350
+ DA:357,11
351
+ DA:358,11
352
+ DA:360,11
353
+ DA:361,11
354
+ DA:364,36
355
+ DA:365,0
355
356
  DA:366,0
356
357
  DA:367,0
357
- DA:368,0
358
- DA:369,0
359
- DA:372,0
358
+ DA:371,0
360
359
  DA:373,0
360
+ DA:374,0
361
+ DA:375,0
361
362
  DA:376,0
362
363
  DA:379,0
363
- DA:384,0
364
- DA:385,0
365
- DA:387,0
364
+ DA:380,0
365
+ DA:383,0
366
+ DA:386,0
366
367
  DA:391,0
367
- DA:395,0
368
- DA:397,0
368
+ DA:392,0
369
+ DA:394,0
369
370
  DA:398,0
370
- DA:400,0
371
- DA:406,36
372
- DA:407,5
373
- DA:408,5
374
- DA:410,5
375
- DA:411,5
376
- DA:412,5
371
+ DA:402,0
372
+ DA:404,0
373
+ DA:405,0
374
+ DA:407,0
375
+ DA:413,36
376
+ DA:414,5
377
+ DA:415,5
377
378
  DA:417,5
379
+ DA:418,5
378
380
  DA:419,5
379
- DA:421,5
380
- DA:422,5
381
- DA:425,36
382
- DA:426,192
383
- DA:428,192
384
- DA:429,192
385
- DA:430,384
386
- DA:431,384
387
- DA:434,192
388
- LF:194
389
- LH:154
381
+ DA:424,5
382
+ DA:426,5
383
+ DA:428,5
384
+ DA:429,5
385
+ DA:432,36
386
+ DA:433,192
387
+ DA:435,192
388
+ DA:436,192
389
+ DA:437,384
390
+ DA:438,384
391
+ DA:441,192
392
+ LF:198
393
+ LH:158
390
394
  BRDA:73,0,0,199
391
395
  BRDA:73,0,1,1
392
396
  BRDA:73,1,0,200
393
397
  BRDA:73,1,1,1
394
398
  BRDA:81,2,0,0
395
399
  BRDA:81,2,1,194
396
- BRDA:94,3,0,2
397
- BRDA:94,3,1,192
398
- BRDA:97,4,0,0
399
- BRDA:97,4,1,194
400
- BRDA:104,5,0,0
401
- BRDA:104,5,1,194
402
- BRDA:107,6,0,2
403
- BRDA:107,6,1,192
404
- BRDA:110,7,0,0
405
- BRDA:110,7,1,194
406
- BRDA:116,8,0,0
407
- BRDA:116,8,1,192
408
- BRDA:136,9,0,0
409
- BRDA:136,9,1,192
410
- BRDA:136,10,0,192
411
- BRDA:136,10,1,192
412
- BRDA:138,11,0,0
413
- BRDA:138,11,1,0
414
- BRDA:141,12,0,0
415
- BRDA:141,12,1,192
416
- BRDA:141,13,0,192
417
- BRDA:141,13,1,192
418
- BRDA:144,14,0,0
419
- BRDA:144,14,1,0
420
- BRDA:156,15,0,10
421
- BRDA:156,15,1,10
422
- BRDA:157,16,0,10
423
- BRDA:157,16,1,10
424
- BRDA:161,17,0,10
425
- BRDA:161,17,1,0
426
- BRDA:161,18,0,10
427
- BRDA:161,18,1,0
428
- BRDA:164,19,0,14
429
- BRDA:164,19,1,0
430
- BRDA:168,20,0,0
431
- BRDA:168,20,1,0
432
- BRDA:203,21,0,199
433
- BRDA:203,21,1,2
434
- BRDA:203,22,0,201
435
- BRDA:203,22,1,2
436
- BRDA:230,23,0,0
437
- BRDA:230,23,1,192
438
- BRDA:230,24,0,192
439
- BRDA:230,24,1,0
440
- BRDA:265,25,0,192
441
- BRDA:265,25,1,0
442
- BRDA:300,26,0,0
443
- BRDA:300,26,1,2
444
- BRDA:319,27,0,0
445
- BRDA:319,27,1,1
446
- BRDA:324,28,0,0
447
- BRDA:324,28,1,1
448
- BRDA:346,29,0,0
449
- BRDA:346,29,1,11
450
- BRDA:346,30,0,11
451
- BRDA:346,30,1,0
452
- BRDA:359,31,0,0
453
- BRDA:359,31,1,0
454
- BRDA:369,32,0,0
455
- BRDA:369,32,1,0
456
- BRDA:397,33,0,0
457
- BRDA:397,33,1,0
458
- BRDA:411,34,0,5
459
- BRDA:411,34,1,0
460
- BRF:70
461
- BRH:39
400
+ BRDA:84,3,0,194
401
+ BRDA:84,3,1,0
402
+ BRDA:88,4,0,194
403
+ BRDA:88,4,1,0
404
+ BRDA:95,5,0,2
405
+ BRDA:95,5,1,192
406
+ BRDA:98,6,0,0
407
+ BRDA:98,6,1,194
408
+ BRDA:105,7,0,0
409
+ BRDA:105,7,1,194
410
+ BRDA:108,8,0,2
411
+ BRDA:108,8,1,192
412
+ BRDA:111,9,0,0
413
+ BRDA:111,9,1,194
414
+ BRDA:117,10,0,0
415
+ BRDA:117,10,1,192
416
+ BRDA:137,11,0,0
417
+ BRDA:137,11,1,192
418
+ BRDA:137,12,0,192
419
+ BRDA:137,12,1,192
420
+ BRDA:139,13,0,0
421
+ BRDA:139,13,1,0
422
+ BRDA:142,14,0,0
423
+ BRDA:142,14,1,192
424
+ BRDA:142,15,0,192
425
+ BRDA:142,15,1,192
426
+ BRDA:145,16,0,0
427
+ BRDA:145,16,1,0
428
+ BRDA:157,17,0,10
429
+ BRDA:157,17,1,10
430
+ BRDA:158,18,0,10
431
+ BRDA:158,18,1,10
432
+ BRDA:162,19,0,10
433
+ BRDA:162,19,1,0
434
+ BRDA:162,20,0,10
435
+ BRDA:162,20,1,0
436
+ BRDA:165,21,0,14
437
+ BRDA:165,21,1,0
438
+ BRDA:169,22,0,0
439
+ BRDA:169,22,1,0
440
+ BRDA:204,23,0,199
441
+ BRDA:204,23,1,2
442
+ BRDA:204,24,0,201
443
+ BRDA:204,24,1,2
444
+ BRDA:231,25,0,0
445
+ BRDA:231,25,1,192
446
+ BRDA:231,26,0,192
447
+ BRDA:231,26,1,0
448
+ BRDA:266,27,0,192
449
+ BRDA:266,27,1,0
450
+ BRDA:286,28,0,2
451
+ BRDA:286,28,1,0
452
+ BRDA:290,29,0,2
453
+ BRDA:290,29,1,0
454
+ BRDA:307,30,0,0
455
+ BRDA:307,30,1,2
456
+ BRDA:326,31,0,0
457
+ BRDA:326,31,1,1
458
+ BRDA:331,32,0,0
459
+ BRDA:331,32,1,1
460
+ BRDA:353,33,0,0
461
+ BRDA:353,33,1,11
462
+ BRDA:353,34,0,11
463
+ BRDA:353,34,1,0
464
+ BRDA:366,35,0,0
465
+ BRDA:366,35,1,0
466
+ BRDA:376,36,0,0
467
+ BRDA:376,36,1,0
468
+ BRDA:404,37,0,0
469
+ BRDA:404,37,1,0
470
+ BRDA:418,38,0,5
471
+ BRDA:418,38,1,0
472
+ BRF:78
473
+ BRH:43
462
474
  end_of_record
463
475
  TN:
464
476
  SF:src/api/controllers/auth.js
@@ -57,11 +57,13 @@ function getAppUrl(ctx) {
57
57
  // if the url is provided, use that
58
58
  url = encodeURI(ctx.request.body.url);
59
59
  }
60
- else {
60
+ else if (ctx.request.body.name) {
61
61
  // otherwise use the name
62
62
  url = encodeURI(`${ctx.request.body.name}`);
63
63
  }
64
- url = `/${url.replace(URL_REGEX_SLASH, "")}`.toLowerCase();
64
+ if (url) {
65
+ url = `/${url.replace(URL_REGEX_SLASH, "")}`.toLowerCase();
66
+ }
65
67
  return url;
66
68
  });
67
69
  }
@@ -234,15 +236,21 @@ exports.create = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
234
236
  ctx.status = 200;
235
237
  ctx.body = newApplication;
236
238
  });
239
+ // This endpoint currently operates as a PATCH rather than a PUT
240
+ // Thus name and url fields are handled only if present
237
241
  exports.update = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
238
242
  const apps = yield getAllApps(CouchDB, { dev: true });
239
243
  // validation
240
244
  const name = ctx.request.body.name;
241
- checkAppName(ctx, apps, name, ctx.params.appId);
245
+ if (name) {
246
+ checkAppName(ctx, apps, name, ctx.params.appId);
247
+ }
242
248
  const url = yield getAppUrl(ctx);
243
- checkAppUrl(ctx, apps, url, ctx.params.appId);
244
- const appPackageUpdates = { name, url };
245
- const data = yield updateAppPackage(appPackageUpdates, ctx.params.appId);
249
+ if (url) {
250
+ checkAppUrl(ctx, apps, url, ctx.params.appId);
251
+ ctx.request.body.url = url;
252
+ }
253
+ const data = yield updateAppPackage(ctx.request.body, ctx.params.appId);
246
254
  ctx.status = 200;
247
255
  ctx.body = data;
248
256
  });
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "1.0.46-alpha.5",
4
+ "version": "1.0.46-alpha.6",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -70,9 +70,9 @@
70
70
  "license": "GPL-3.0",
71
71
  "dependencies": {
72
72
  "@apidevtools/swagger-parser": "^10.0.3",
73
- "@budibase/backend-core": "^1.0.46-alpha.5",
74
- "@budibase/client": "^1.0.46-alpha.5",
75
- "@budibase/string-templates": "^1.0.46-alpha.5",
73
+ "@budibase/backend-core": "^1.0.46-alpha.6",
74
+ "@budibase/client": "^1.0.46-alpha.6",
75
+ "@budibase/string-templates": "^1.0.46-alpha.6",
76
76
  "@bull-board/api": "^3.7.0",
77
77
  "@bull-board/koa": "^3.7.0",
78
78
  "@elastic/elasticsearch": "7.10.0",