@budibase/server 0.9.165 → 0.9.167-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 (168) hide show
  1. package/builder/assets/{index.43a8bb3b.js → index.941194ee.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +96 -82
  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/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 +41 -17
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +26 -26
  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/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/templates.js.html +49 -13
  36. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  43. package/coverage/lcov-report/api/index.html +1 -1
  44. package/coverage/lcov-report/api/index.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/dev.js.html +26 -11
  56. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/index.html +9 -9
  58. package/coverage/lcov-report/api/routes/index.js.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/permission.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/row.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/static.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  75. package/coverage/lcov-report/automations/actions.js.html +1 -1
  76. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  77. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  78. package/coverage/lcov-report/automations/index.html +1 -1
  79. package/coverage/lcov-report/automations/index.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/index.html +1 -1
  89. package/coverage/lcov-report/automations/steps/integromat.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 +1 -1
  92. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  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/thread.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  108. package/coverage/lcov-report/automations/utils.js.html +1 -1
  109. package/coverage/lcov-report/constants/index.html +1 -1
  110. package/coverage/lcov-report/constants/index.js.html +1 -1
  111. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  112. package/coverage/lcov-report/constants/screens.js.html +1 -1
  113. package/coverage/lcov-report/db/client.js.html +1 -1
  114. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  115. package/coverage/lcov-report/db/index.html +1 -1
  116. package/coverage/lcov-report/db/index.js.html +1 -1
  117. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  118. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  121. package/coverage/lcov-report/db/newid.js.html +1 -1
  122. package/coverage/lcov-report/db/utils.js.html +1 -1
  123. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  124. package/coverage/lcov-report/events/index.html +1 -1
  125. package/coverage/lcov-report/events/index.js.html +1 -1
  126. package/coverage/lcov-report/events/utils.js.html +1 -1
  127. package/coverage/lcov-report/index.html +32 -32
  128. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  129. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  130. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  131. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  132. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  133. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  134. package/coverage/lcov-report/middleware/index.html +1 -1
  135. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  136. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  137. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  138. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  139. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  140. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  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 +1 -1
  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 +15 -15
  151. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +20 -8
  152. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  153. package/coverage/lcov-report/utilities/security.js.html +1 -1
  154. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  155. package/coverage/lcov-report/utilities/users.js.html +1 -1
  156. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  157. package/coverage/lcov.info +167 -136
  158. package/dist/api/controllers/dev.js +17 -11
  159. package/dist/api/controllers/templates.js +18 -3
  160. package/dist/api/routes/dev.js +8 -4
  161. package/dist/package.json +4 -4
  162. package/dist/tsconfig.tsbuildinfo +1 -1
  163. package/dist/utilities/rowProcessor/index.js +4 -0
  164. package/package.json +5 -5
  165. package/src/api/controllers/dev.js +16 -8
  166. package/src/api/controllers/templates.js +17 -5
  167. package/src/api/routes/dev.js +9 -4
  168. package/src/utilities/rowProcessor/index.js +4 -0
@@ -872,21 +872,27 @@ end_of_record
872
872
  TN:
873
873
  SF:src/api/controllers/dev.js
874
874
  FN:10,redirect
875
- FN:44,(anonymous_1)
876
- FN:48,(anonymous_2)
875
+ FN:46,(anonymous_1)
876
+ FN:47,(anonymous_2)
877
877
  FN:52,(anonymous_3)
878
- FN:56,(anonymous_4)
879
- FN:68,(anonymous_5)
880
- FN:102,(anonymous_6)
881
- FNF:7
882
- FNH:0
878
+ FN:53,(anonymous_4)
879
+ FN:58,(anonymous_5)
880
+ FN:59,(anonymous_6)
881
+ FN:64,(anonymous_7)
882
+ FN:76,(anonymous_8)
883
+ FN:110,(anonymous_9)
884
+ FNF:10
885
+ FNH:3
883
886
  FNDA:0,redirect
884
- FNDA:0,(anonymous_1)
887
+ FNDA:46,(anonymous_1)
885
888
  FNDA:0,(anonymous_2)
886
- FNDA:0,(anonymous_3)
889
+ FNDA:46,(anonymous_3)
887
890
  FNDA:0,(anonymous_4)
888
- FNDA:0,(anonymous_5)
891
+ FNDA:46,(anonymous_5)
889
892
  FNDA:0,(anonymous_6)
893
+ FNDA:0,(anonymous_7)
894
+ FNDA:0,(anonymous_8)
895
+ FNDA:0,(anonymous_9)
890
896
  DA:1,23
891
897
  DA:2,23
892
898
  DA:3,23
@@ -898,62 +904,66 @@ DA:8,23
898
904
  DA:11,0
899
905
  DA:12,0
900
906
  DA:13,0
901
- DA:24,0
902
- DA:25,0
907
+ DA:26,0
903
908
  DA:27,0
904
- DA:28,0
905
909
  DA:29,0
906
- DA:32,0
907
- DA:33,0
908
- DA:37,0
909
- DA:38,0
910
+ DA:30,0
911
+ DA:31,0
912
+ DA:34,0
913
+ DA:35,0
910
914
  DA:39,0
915
+ DA:40,0
911
916
  DA:41,0
912
- DA:44,23
913
- DA:45,0
914
- DA:48,23
915
- DA:49,0
917
+ DA:43,0
918
+ DA:46,23
919
+ DA:47,46
920
+ DA:48,0
916
921
  DA:52,23
917
- DA:53,0
918
- DA:56,23
919
- DA:57,0
920
- DA:58,0
921
- DA:59,0
922
- DA:61,0
923
- DA:63,0
924
- DA:68,23
922
+ DA:53,46
923
+ DA:54,0
924
+ DA:58,23
925
+ DA:59,46
926
+ DA:60,0
927
+ DA:64,23
928
+ DA:65,0
929
+ DA:66,0
930
+ DA:67,0
925
931
  DA:69,0
926
- DA:70,0
927
- DA:73,0
928
- DA:74,0
929
- DA:75,0
930
- DA:76,0
932
+ DA:71,0
933
+ DA:76,23
934
+ DA:77,0
931
935
  DA:78,0
932
936
  DA:81,0
933
937
  DA:82,0
934
- DA:87,0
938
+ DA:83,0
939
+ DA:84,0
940
+ DA:86,0
935
941
  DA:89,0
936
942
  DA:90,0
937
- DA:91,0
938
- DA:92,0
939
- DA:93,0
940
- DA:94,0
943
+ DA:95,0
944
+ DA:97,0
941
945
  DA:98,0
942
- DA:102,23
943
- DA:103,0
944
- LF:54
945
- LH:14
946
- BRDA:12,0,0,0
947
- BRDA:12,0,1,0
948
- BRDA:24,1,0,0
949
- BRDA:24,1,1,0
950
- BRDA:28,2,0,0
951
- BRDA:28,2,1,0
952
- BRDA:38,3,0,0
953
- BRDA:38,3,1,0
954
- BRDA:76,4,0,0
955
- BRDA:76,4,1,0
956
- BRF:10
946
+ DA:99,0
947
+ DA:100,0
948
+ DA:101,0
949
+ DA:102,0
950
+ DA:106,0
951
+ DA:110,23
952
+ DA:111,0
953
+ LF:57
954
+ LH:17
955
+ BRDA:10,0,0,0
956
+ BRDA:12,1,0,0
957
+ BRDA:12,1,1,0
958
+ BRDA:26,2,0,0
959
+ BRDA:26,2,1,0
960
+ BRDA:30,3,0,0
961
+ BRDA:30,3,1,0
962
+ BRDA:40,4,0,0
963
+ BRDA:40,4,1,0
964
+ BRDA:84,5,0,0
965
+ BRDA:84,5,1,0
966
+ BRF:11
957
967
  BRH:0
958
968
  end_of_record
959
969
  TN:
@@ -1668,14 +1678,27 @@ DA:2,23
1668
1678
  DA:6,23
1669
1679
  DA:8,23
1670
1680
  DA:9,1
1671
- DA:10,1
1681
+ DA:11,1
1682
+ DA:12,1
1672
1683
  DA:13,1
1673
1684
  DA:14,1
1674
- LF:8
1675
- LH:8
1685
+ DA:15,0
1686
+ DA:18,0
1687
+ DA:21,1
1688
+ DA:22,1
1689
+ DA:23,1
1690
+ DA:25,0
1691
+ LF:15
1692
+ LH:12
1676
1693
  BRDA:9,0,0,1
1677
- BRF:1
1678
- BRH:1
1694
+ BRDA:14,1,0,0
1695
+ BRDA:14,1,1,1
1696
+ BRDA:21,2,0,1
1697
+ BRDA:21,2,1,0
1698
+ BRDA:21,3,0,1
1699
+ BRDA:21,3,1,1
1700
+ BRF:7
1701
+ BRH:5
1679
1702
  end_of_record
1680
1703
  TN:
1681
1704
  SF:src/api/controllers/user.js
@@ -3714,24 +3737,28 @@ BRH:0
3714
3737
  end_of_record
3715
3738
  TN:
3716
3739
  SF:src/api/routes/dev.js
3717
- FNF:0
3718
- FNH:0
3740
+ FN:9,redirectPath
3741
+ FNF:1
3742
+ FNH:1
3743
+ FNDA:46,redirectPath
3719
3744
  DA:1,23
3720
3745
  DA:2,23
3721
3746
  DA:3,23
3722
3747
  DA:4,23
3723
3748
  DA:5,23
3724
3749
  DA:7,23
3725
- DA:9,23
3726
- DA:10,23
3750
+ DA:10,46
3727
3751
  DA:16,23
3752
+ DA:17,23
3753
+ DA:18,23
3728
3754
  DA:21,23
3729
- LF:10
3730
- LH:10
3731
- BRDA:9,0,0,23
3732
- BRDA:9,0,1,0
3733
- BRDA:9,1,0,23
3734
- BRDA:9,1,1,0
3755
+ DA:26,23
3756
+ LF:12
3757
+ LH:12
3758
+ BRDA:16,0,0,23
3759
+ BRDA:16,0,1,0
3760
+ BRDA:16,1,0,23
3761
+ BRDA:16,1,1,0
3735
3762
  BRF:4
3736
3763
  BRH:2
3737
3764
  end_of_record
@@ -7338,9 +7365,9 @@ FN:62,(anonymous_3)
7338
7365
  FN:82,(anonymous_4)
7339
7366
  FN:96,processAutoColumn
7340
7367
  FN:152,(anonymous_6)
7341
- FN:172,(anonymous_7)
7342
- FN:213,(anonymous_8)
7343
- FN:238,(anonymous_9)
7368
+ FN:176,(anonymous_7)
7369
+ FN:217,(anonymous_8)
7370
+ FN:242,(anonymous_9)
7344
7371
  FNF:10
7345
7372
  FNH:9
7346
7373
  FNDA:11,(anonymous_0)
@@ -7396,44 +7423,46 @@ DA:142,73
7396
7423
  DA:144,34
7397
7424
  DA:152,34
7398
7425
  DA:154,174
7399
- DA:155,16
7400
- DA:156,158
7401
- DA:157,22
7402
- DA:160,136
7403
- DA:172,34
7404
- DA:178,73
7405
- DA:180,73
7406
- DA:181,73
7426
+ DA:155,0
7427
+ DA:158,174
7428
+ DA:159,16
7429
+ DA:160,158
7430
+ DA:161,22
7431
+ DA:164,136
7432
+ DA:176,34
7407
7433
  DA:182,73
7408
- DA:183,332
7409
- DA:185,332
7410
- DA:186,159
7411
- DA:187,3
7412
- DA:189,159
7413
- DA:193,173
7414
- DA:194,0
7415
- DA:196,173
7416
- DA:200,73
7417
- DA:213,34
7418
- DA:219,100
7419
- DA:220,100
7420
- DA:221,100
7421
- DA:222,87
7422
- DA:223,87
7423
- DA:226,100
7424
- DA:229,100
7425
- DA:232,100
7426
- DA:233,296
7427
- DA:234,8
7428
- DA:235,8
7429
- DA:236,6
7430
- DA:238,2
7431
- DA:239,2
7432
- DA:244,100
7433
- DA:245,26
7434
- DA:251,100
7435
- LF:79
7436
- LH:60
7434
+ DA:184,73
7435
+ DA:185,73
7436
+ DA:186,73
7437
+ DA:187,332
7438
+ DA:189,332
7439
+ DA:190,159
7440
+ DA:191,3
7441
+ DA:193,159
7442
+ DA:197,173
7443
+ DA:198,0
7444
+ DA:200,173
7445
+ DA:204,73
7446
+ DA:217,34
7447
+ DA:223,100
7448
+ DA:224,100
7449
+ DA:225,100
7450
+ DA:226,87
7451
+ DA:227,87
7452
+ DA:230,100
7453
+ DA:233,100
7454
+ DA:236,100
7455
+ DA:237,296
7456
+ DA:238,8
7457
+ DA:239,8
7458
+ DA:240,6
7459
+ DA:242,2
7460
+ DA:243,2
7461
+ DA:248,100
7462
+ DA:249,26
7463
+ DA:255,100
7464
+ LF:81
7465
+ LH:61
7437
7466
  BRDA:18,0,0,2
7438
7467
  BRDA:18,0,1,9
7439
7468
  BRDA:18,1,0,11
@@ -7473,33 +7502,35 @@ BRDA:135,15,0,0
7473
7502
  BRDA:135,15,1,0
7474
7503
  BRDA:136,16,0,0
7475
7504
  BRDA:136,16,1,0
7476
- BRDA:154,17,0,16
7477
- BRDA:154,17,1,158
7478
- BRDA:156,18,0,22
7479
- BRDA:156,18,1,136
7480
- BRDA:173,19,0,0
7481
- BRDA:176,20,0,72
7482
- BRDA:185,21,0,159
7483
- BRDA:185,21,1,173
7484
- BRDA:186,22,0,3
7485
- BRDA:186,22,1,156
7486
- BRDA:193,23,0,0
7487
- BRDA:193,23,1,173
7488
- BRDA:217,24,0,26
7489
- BRDA:221,25,0,87
7490
- BRDA:221,25,1,13
7491
- BRDA:233,26,0,8
7492
- BRDA:233,26,1,288
7493
- BRDA:235,27,0,6
7494
- BRDA:235,27,1,2
7495
- BRDA:235,28,0,8
7496
- BRDA:235,28,1,6
7497
- BRDA:244,29,0,26
7498
- BRDA:244,29,1,74
7499
- BRDA:251,30,0,13
7500
- BRDA:251,30,1,87
7501
- BRF:64
7502
- BRH:36
7505
+ BRDA:154,17,0,0
7506
+ BRDA:154,17,1,174
7507
+ BRDA:158,18,0,16
7508
+ BRDA:158,18,1,158
7509
+ BRDA:160,19,0,22
7510
+ BRDA:160,19,1,136
7511
+ BRDA:177,20,0,0
7512
+ BRDA:180,21,0,72
7513
+ BRDA:189,22,0,159
7514
+ BRDA:189,22,1,173
7515
+ BRDA:190,23,0,3
7516
+ BRDA:190,23,1,156
7517
+ BRDA:197,24,0,0
7518
+ BRDA:197,24,1,173
7519
+ BRDA:221,25,0,26
7520
+ BRDA:225,26,0,87
7521
+ BRDA:225,26,1,13
7522
+ BRDA:237,27,0,8
7523
+ BRDA:237,27,1,288
7524
+ BRDA:239,28,0,6
7525
+ BRDA:239,28,1,2
7526
+ BRDA:239,29,0,8
7527
+ BRDA:239,29,1,6
7528
+ BRDA:248,30,0,26
7529
+ BRDA:248,30,1,74
7530
+ BRDA:255,31,0,13
7531
+ BRDA:255,31,1,87
7532
+ BRF:66
7533
+ BRH:37
7503
7534
  end_of_record
7504
7535
  TN:
7505
7536
  SF:src/utilities/rowProcessor/utils.js
@@ -16,11 +16,11 @@ const { request } = require("../../utilities/workerRequests");
16
16
  const { clearLock } = require("../../utilities/redis");
17
17
  const { Replication } = require("@budibase/auth").db;
18
18
  const { DocumentTypes } = require("../../db/utils");
19
- function redirect(ctx, method) {
19
+ function redirect(ctx, method, path = "global") {
20
20
  return __awaiter(this, void 0, void 0, function* () {
21
21
  const { devPath } = ctx.params;
22
22
  const queryString = ctx.originalUrl.split("?")[1] || "";
23
- const response = yield fetch(checkSlashesInUrl(`${env.WORKER_URL}/api/global/${devPath}?${queryString}`), request(ctx, {
23
+ const response = yield fetch(checkSlashesInUrl(`${env.WORKER_URL}/api/${path}/${devPath}?${queryString}`), request(ctx, {
24
24
  method,
25
25
  body: ctx.request.body,
26
26
  }, true));
@@ -45,15 +45,21 @@ function redirect(ctx, method) {
45
45
  ctx.cookies;
46
46
  });
47
47
  }
48
- exports.redirectGet = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
49
- yield redirect(ctx, "GET");
50
- });
51
- exports.redirectPost = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
52
- yield redirect(ctx, "POST");
53
- });
54
- exports.redirectDelete = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
55
- yield redirect(ctx, "DELETE");
56
- });
48
+ exports.buildRedirectGet = path => {
49
+ return (ctx) => __awaiter(void 0, void 0, void 0, function* () {
50
+ yield redirect(ctx, "GET", path);
51
+ });
52
+ };
53
+ exports.buildRedirectPost = path => {
54
+ return (ctx) => __awaiter(void 0, void 0, void 0, function* () {
55
+ yield redirect(ctx, "POST", path);
56
+ });
57
+ };
58
+ exports.buildRedirectDelete = path => {
59
+ return (ctx) => __awaiter(void 0, void 0, void 0, function* () {
60
+ yield redirect(ctx, "DELETE", path);
61
+ });
62
+ };
57
63
  exports.clearLock = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
58
64
  const { appId } = ctx.params;
59
65
  try {
@@ -15,9 +15,24 @@ const DEFAULT_TEMPLATES_BUCKET = "prod-budi-templates.s3-eu-west-1.amazonaws.com
15
15
  exports.fetch = function (ctx) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  const { type = "app" } = ctx.query;
18
- const response = yield fetch(`https://${DEFAULT_TEMPLATES_BUCKET}/manifest.json`);
19
- const json = yield response.json();
20
- ctx.body = Object.values(json.templates[type]);
18
+ let response, error = false;
19
+ try {
20
+ response = yield fetch(`https://${DEFAULT_TEMPLATES_BUCKET}/manifest.json`);
21
+ if (response.status !== 200) {
22
+ error = true;
23
+ }
24
+ }
25
+ catch (err) {
26
+ error = true;
27
+ }
28
+ // if there is an error, simply return no templates
29
+ if (!error && response) {
30
+ const json = yield response.json();
31
+ ctx.body = Object.values(json.templates[type]);
32
+ }
33
+ else {
34
+ ctx.body = [];
35
+ }
21
36
  });
22
37
  };
23
38
  // can't currently test this, have to ignore from coverage
@@ -5,11 +5,15 @@ const env = require("../../environment");
5
5
  const authorized = require("../../middleware/authorized");
6
6
  const { BUILDER } = require("@budibase/auth/permissions");
7
7
  const router = Router();
8
- if (env.isDev() || env.isTest()) {
8
+ function redirectPath(path) {
9
9
  router
10
- .get("/api/global/:devPath(.*)", controller.redirectGet)
11
- .post("/api/global/:devPath(.*)", controller.redirectPost)
12
- .delete("/api/global/:devPath(.*)", controller.redirectDelete);
10
+ .get(`/api/${path}/:devPath(.*)`, controller.buildRedirectGet(path))
11
+ .post(`/api/${path}/:devPath(.*)`, controller.buildRedirectPost(path))
12
+ .delete(`/api/${path}/:devPath(.*)`, controller.buildRedirectDelete(path));
13
+ }
14
+ if (env.isDev() || env.isTest()) {
15
+ redirectPath("global");
16
+ redirectPath("system");
13
17
  }
14
18
  router
15
19
  .get("/api/dev/version", authorized(BUILDER), controller.getBudibaseVersion)
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "0.9.165-alpha.1",
4
+ "version": "0.9.167-alpha.1",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -68,9 +68,9 @@
68
68
  "author": "Budibase",
69
69
  "license": "AGPL-3.0-or-later",
70
70
  "dependencies": {
71
- "@budibase/auth": "^0.9.165-alpha.1",
72
- "@budibase/client": "^0.9.165-alpha.1",
73
- "@budibase/string-templates": "^0.9.165-alpha.1",
71
+ "@budibase/auth": "^0.9.167-alpha.1",
72
+ "@budibase/client": "^0.9.167-alpha.1",
73
+ "@budibase/string-templates": "^0.9.167-alpha.1",
74
74
  "@elastic/elasticsearch": "7.10.0",
75
75
  "@koa/router": "8.0.0",
76
76
  "@sendgrid/mail": "7.1.1",