@budibase/server 0.9.188 → 0.9.189

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.550fdba7.js → index.5cc4c0d0.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +100 -91
  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 +1 -1
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +1 -1
  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 +11 -8
  25. package/coverage/lcov-report/api/controllers/row/index.html +13 -13
  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 +4 -4
  35. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/exporters.js.html +19 -4
  38. package/coverage/lcov-report/api/controllers/view/index.html +17 -17
  39. package/coverage/lcov-report/api/controllers/view/index.js.html +49 -10
  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 +1 -1
  56. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/index.html +1 -1
  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 +22 -22
  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/middleware/utils.js.html +1 -1
  140. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  141. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  142. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  143. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  144. package/coverage/lcov-report/utilities/global.js.html +1 -1
  145. package/coverage/lcov-report/utilities/index.html +1 -1
  146. package/coverage/lcov-report/utilities/index.js.html +1 -1
  147. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  148. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  149. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  150. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  151. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  152. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  153. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  154. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  155. package/coverage/lcov-report/utilities/security.js.html +1 -1
  156. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  157. package/coverage/lcov-report/utilities/users.js.html +1 -1
  158. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  159. package/coverage/lcov.info +147 -130
  160. package/dist/api/controllers/row/external.js +2 -1
  161. package/dist/api/controllers/view/exporters.js +4 -0
  162. package/dist/api/controllers/view/index.js +14 -2
  163. package/dist/package.json +5 -5
  164. package/dist/tsconfig.tsbuildinfo +1 -1
  165. package/package.json +6 -6
  166. package/src/api/controllers/row/external.js +2 -1
  167. package/src/api/controllers/view/exporters.js +5 -0
  168. package/src/api/controllers/view/index.js +15 -2
@@ -1914,15 +1914,15 @@ FN:14,handleRequest
1914
1914
  FN:33,(anonymous_1)
1915
1915
  FN:46,(anonymous_2)
1916
1916
  FN:55,(anonymous_3)
1917
- FN:62,(anonymous_4)
1918
- FN:68,(anonymous_5)
1919
- FN:83,(anonymous_6)
1920
- FN:98,(anonymous_7)
1921
- FN:111,(anonymous_8)
1922
- FN:114,(anonymous_9)
1923
- FN:171,(anonymous_10)
1924
- FN:176,(anonymous_11)
1925
- FN:212,(anonymous_12)
1917
+ FN:63,(anonymous_4)
1918
+ FN:69,(anonymous_5)
1919
+ FN:84,(anonymous_6)
1920
+ FN:99,(anonymous_7)
1921
+ FN:112,(anonymous_8)
1922
+ FN:115,(anonymous_9)
1923
+ FN:172,(anonymous_10)
1924
+ FN:177,(anonymous_11)
1925
+ FN:213,(anonymous_12)
1926
1926
  FNF:13
1927
1927
  FNH:0
1928
1928
  FNDA:0,handleRequest
@@ -1965,56 +1965,56 @@ DA:50,0
1965
1965
  DA:55,34
1966
1966
  DA:58,0
1967
1967
  DA:59,0
1968
- DA:62,34
1969
- DA:63,0
1968
+ DA:60,0
1969
+ DA:63,34
1970
1970
  DA:64,0
1971
1971
  DA:65,0
1972
- DA:68,34
1973
- DA:69,0
1972
+ DA:66,0
1973
+ DA:69,34
1974
1974
  DA:70,0
1975
1975
  DA:71,0
1976
1976
  DA:72,0
1977
- DA:80,0
1978
- DA:83,34
1979
- DA:84,0
1977
+ DA:73,0
1978
+ DA:81,0
1979
+ DA:84,34
1980
1980
  DA:85,0
1981
1981
  DA:86,0
1982
1982
  DA:87,0
1983
- DA:95,0
1984
- DA:98,34
1985
- DA:99,0
1983
+ DA:88,0
1984
+ DA:96,0
1985
+ DA:99,34
1986
1986
  DA:100,0
1987
1987
  DA:101,0
1988
1988
  DA:102,0
1989
1989
  DA:103,0
1990
1990
  DA:104,0
1991
- DA:110,0
1991
+ DA:105,0
1992
1992
  DA:111,0
1993
- DA:114,34
1994
- DA:115,0
1993
+ DA:112,0
1994
+ DA:115,34
1995
1995
  DA:116,0
1996
1996
  DA:117,0
1997
1997
  DA:118,0
1998
1998
  DA:119,0
1999
1999
  DA:120,0
2000
- DA:122,0
2001
- DA:124,0
2000
+ DA:121,0
2001
+ DA:123,0
2002
2002
  DA:125,0
2003
- DA:130,0
2003
+ DA:126,0
2004
2004
  DA:131,0
2005
- DA:136,0
2006
- DA:138,0
2007
- DA:141,0
2008
- DA:145,0
2009
- DA:150,0
2005
+ DA:132,0
2006
+ DA:137,0
2007
+ DA:139,0
2008
+ DA:142,0
2009
+ DA:146,0
2010
2010
  DA:151,0
2011
2011
  DA:152,0
2012
- DA:165,0
2013
- DA:168,0
2014
- DA:171,34
2015
- DA:173,0
2016
- DA:176,34
2017
- DA:177,0
2012
+ DA:153,0
2013
+ DA:166,0
2014
+ DA:169,0
2015
+ DA:172,34
2016
+ DA:174,0
2017
+ DA:177,34
2018
2018
  DA:178,0
2019
2019
  DA:179,0
2020
2020
  DA:180,0
@@ -2022,20 +2022,21 @@ DA:181,0
2022
2022
  DA:182,0
2023
2023
  DA:183,0
2024
2024
  DA:184,0
2025
- DA:186,0
2025
+ DA:185,0
2026
2026
  DA:187,0
2027
- DA:196,0
2027
+ DA:188,0
2028
2028
  DA:197,0
2029
- DA:200,0
2029
+ DA:198,0
2030
2030
  DA:201,0
2031
- DA:206,0
2032
- DA:208,0
2031
+ DA:202,0
2032
+ DA:207,0
2033
2033
  DA:209,0
2034
2034
  DA:210,0
2035
- DA:212,0
2035
+ DA:211,0
2036
2036
  DA:213,0
2037
- DA:227,0
2038
- LF:97
2037
+ DA:214,0
2038
+ DA:228,0
2039
+ LF:98
2039
2040
  LH:14
2040
2041
  BRDA:14,0,0,0
2041
2042
  BRDA:16,1,0,0
@@ -2048,36 +2049,38 @@ BRDA:22,4,0,0
2048
2049
  BRDA:22,4,1,0
2049
2050
  BRDA:22,5,0,0
2050
2051
  BRDA:22,5,1,0
2051
- BRDA:80,6,0,0
2052
- BRDA:80,6,1,0
2053
- BRDA:119,7,0,0
2054
- BRDA:119,7,1,0
2055
- BRDA:119,8,0,0
2056
- BRDA:119,8,1,0
2057
- BRDA:124,9,0,0
2058
- BRDA:124,9,1,0
2059
- BRDA:130,10,0,0
2060
- BRDA:130,10,1,0
2061
- BRDA:130,11,0,0
2062
- BRDA:130,11,1,0
2063
- BRDA:136,12,0,0
2064
- BRDA:136,12,1,0
2065
- BRDA:138,13,0,0
2066
- BRDA:138,13,1,0
2067
- BRDA:151,14,0,0
2068
- BRDA:151,14,1,0
2069
- BRDA:151,15,0,0
2070
- BRDA:151,15,1,0
2071
- BRDA:183,16,0,0
2072
- BRDA:183,16,1,0
2073
- BRDA:183,17,0,0
2074
- BRDA:183,17,1,0
2075
- BRDA:201,18,0,0
2076
- BRDA:201,18,1,0
2052
+ BRDA:59,6,0,0
2053
+ BRDA:59,6,1,0
2054
+ BRDA:81,7,0,0
2055
+ BRDA:81,7,1,0
2056
+ BRDA:120,8,0,0
2057
+ BRDA:120,8,1,0
2058
+ BRDA:120,9,0,0
2059
+ BRDA:120,9,1,0
2060
+ BRDA:125,10,0,0
2061
+ BRDA:125,10,1,0
2062
+ BRDA:131,11,0,0
2063
+ BRDA:131,11,1,0
2064
+ BRDA:131,12,0,0
2065
+ BRDA:131,12,1,0
2066
+ BRDA:137,13,0,0
2067
+ BRDA:137,13,1,0
2068
+ BRDA:139,14,0,0
2069
+ BRDA:139,14,1,0
2070
+ BRDA:152,15,0,0
2071
+ BRDA:152,15,1,0
2072
+ BRDA:152,16,0,0
2073
+ BRDA:152,16,1,0
2074
+ BRDA:184,17,0,0
2075
+ BRDA:184,17,1,0
2076
+ BRDA:184,18,0,0
2077
+ BRDA:184,18,1,0
2077
2078
  BRDA:202,19,0,0
2078
2079
  BRDA:202,19,1,0
2079
- BRDA:202,19,2,0
2080
- BRF:40
2080
+ BRDA:203,20,0,0
2081
+ BRDA:203,20,1,0
2082
+ BRDA:203,20,2,0
2083
+ BRF:42
2081
2084
  BRH:0
2082
2085
  end_of_record
2083
2086
  TN:
@@ -3149,7 +3152,7 @@ FNDA:99,(anonymous_13)
3149
3152
  FNDA:99,(anonymous_14)
3150
3153
  FNDA:0,(anonymous_15)
3151
3154
  FNDA:0,(anonymous_16)
3152
- FNDA:28,(anonymous_17)
3155
+ FNDA:30,(anonymous_17)
3153
3156
  FNDA:1,(anonymous_18)
3154
3157
  FNDA:0,(anonymous_19)
3155
3158
  FNDA:0,(anonymous_20)
@@ -3261,11 +3264,11 @@ DA:231,34
3261
3264
  DA:232,0
3262
3265
  DA:233,0
3263
3266
  DA:236,34
3264
- DA:237,28
3265
- DA:238,28
3267
+ DA:237,30
3268
+ DA:238,30
3266
3269
  DA:239,0
3267
3270
  DA:240,0
3268
- DA:242,28
3271
+ DA:242,30
3269
3272
  DA:246,34
3270
3273
  DA:247,1
3271
3274
  DA:248,1
@@ -3360,7 +3363,7 @@ BRDA:225,22,1,0
3360
3363
  BRDA:225,23,0,0
3361
3364
  BRDA:225,23,1,0
3362
3365
  BRDA:238,24,0,0
3363
- BRDA:238,24,1,28
3366
+ BRDA:238,24,1,30
3364
3367
  BRDA:255,25,0,0
3365
3368
  BRDA:255,25,1,0
3366
3369
  BRDA:257,26,0,0
@@ -3412,8 +3415,9 @@ DA:9,2
3412
3415
  DA:13,1
3413
3416
  DA:16,33
3414
3417
  DA:17,1
3415
- LF:10
3416
- LH:10
3418
+ DA:20,33
3419
+ LF:11
3420
+ LH:11
3417
3421
  BRDA:8,0,0,0
3418
3422
  BRDA:8,0,1,2
3419
3423
  BRF:2
@@ -3421,10 +3425,10 @@ BRH:1
3421
3425
  end_of_record
3422
3426
  TN:
3423
3427
  SF:src/api/controllers/view/index.js
3424
- FN:8,(anonymous_0)
3425
- FN:13,(anonymous_1)
3426
- FN:42,(anonymous_2)
3427
- FN:53,(anonymous_3)
3428
+ FN:9,(anonymous_0)
3429
+ FN:14,(anonymous_1)
3430
+ FN:43,(anonymous_2)
3431
+ FN:54,(anonymous_3)
3428
3432
  FNF:4
3429
3433
  FNH:4
3430
3434
  FNDA:1,(anonymous_0)
@@ -3437,77 +3441,90 @@ DA:3,33
3437
3441
  DA:4,33
3438
3442
  DA:5,33
3439
3443
  DA:6,33
3440
- DA:8,33
3441
- DA:9,1
3444
+ DA:7,33
3445
+ DA:9,33
3442
3446
  DA:10,1
3443
- DA:13,33
3444
- DA:14,8
3447
+ DA:11,1
3448
+ DA:14,33
3445
3449
  DA:15,8
3446
3450
  DA:16,8
3447
- DA:18,8
3448
- DA:19,0
3449
- DA:22,8
3450
- DA:25,8
3451
+ DA:17,8
3452
+ DA:19,8
3453
+ DA:20,0
3454
+ DA:23,8
3451
3455
  DA:26,8
3452
3456
  DA:27,8
3453
- DA:28,3
3454
- DA:30,8
3457
+ DA:28,8
3458
+ DA:29,3
3455
3459
  DA:31,8
3456
- DA:32,0
3457
- DA:34,8
3458
- DA:36,8
3459
- DA:42,33
3460
- DA:43,1
3460
+ DA:32,8
3461
+ DA:33,0
3462
+ DA:35,8
3463
+ DA:37,8
3464
+ DA:43,33
3461
3465
  DA:44,1
3462
3466
  DA:45,1
3463
3467
  DA:46,1
3464
3468
  DA:47,1
3465
3469
  DA:48,1
3466
- DA:50,1
3467
- DA:53,33
3468
- DA:54,2
3470
+ DA:49,1
3471
+ DA:51,1
3472
+ DA:54,33
3469
3473
  DA:55,2
3470
3474
  DA:56,2
3471
- DA:58,2
3475
+ DA:57,2
3472
3476
  DA:59,2
3473
- DA:60,0
3474
- DA:63,2
3477
+ DA:60,2
3478
+ DA:61,0
3475
3479
  DA:64,2
3476
- DA:66,2
3477
- DA:78,2
3478
- DA:80,2
3480
+ DA:65,2
3481
+ DA:67,2
3482
+ DA:79,2
3479
3483
  DA:81,2
3480
3484
  DA:82,2
3481
3485
  DA:83,2
3482
3486
  DA:84,2
3483
- DA:88,2
3487
+ DA:85,2
3484
3488
  DA:89,2
3485
- DA:90,2
3489
+ DA:90,1
3490
+ DA:91,1
3486
3491
  DA:92,2
3487
3492
  DA:93,2
3488
- LF:54
3489
- LH:51
3490
- BRDA:18,0,0,0
3491
- BRDA:18,0,1,8
3492
- BRDA:26,1,0,0
3493
- BRDA:26,1,1,8
3494
- BRDA:27,2,0,3
3495
- BRDA:27,2,1,5
3496
- BRDA:31,3,0,0
3497
- BRDA:31,3,1,8
3498
- BRDA:59,4,0,0
3499
- BRDA:59,4,1,2
3500
- BRDA:63,5,0,2
3501
- BRDA:63,5,1,0
3502
- BRDA:80,6,0,2
3503
- BRDA:80,6,1,2
3504
- BRDA:80,6,2,2
3493
+ DA:94,2
3494
+ DA:101,2
3495
+ DA:102,2
3496
+ DA:103,2
3497
+ DA:105,2
3498
+ DA:106,2
3499
+ LF:61
3500
+ LH:58
3501
+ BRDA:19,0,0,0
3502
+ BRDA:19,0,1,8
3503
+ BRDA:27,1,0,0
3504
+ BRDA:27,1,1,8
3505
+ BRDA:28,2,0,3
3506
+ BRDA:28,2,1,5
3507
+ BRDA:32,3,0,0
3508
+ BRDA:32,3,1,8
3509
+ BRDA:60,4,0,0
3510
+ BRDA:60,4,1,2
3511
+ BRDA:60,5,0,2
3512
+ BRDA:60,5,1,2
3513
+ BRDA:64,6,0,2
3514
+ BRDA:64,6,1,0
3505
3515
  BRDA:81,7,0,2
3506
- BRDA:81,7,1,0
3516
+ BRDA:81,7,1,2
3517
+ BRDA:81,7,2,2
3507
3518
  BRDA:82,8,0,2
3508
- BRDA:82,8,1,2
3509
- BRF:19
3510
- BRH:13
3519
+ BRDA:82,8,1,0
3520
+ BRDA:83,9,0,2
3521
+ BRDA:83,9,1,2
3522
+ BRDA:89,10,0,1
3523
+ BRDA:89,10,1,1
3524
+ BRDA:93,11,0,2
3525
+ BRDA:93,11,1,0
3526
+ BRF:25
3527
+ BRH:18
3511
3528
  end_of_record
3512
3529
  TN:
3513
3530
  SF:src/api/controllers/view/utils.js
@@ -64,7 +64,8 @@ exports.save = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
64
64
  exports.fetchView = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
65
65
  // there are no views in external data sources, shouldn't ever be called
66
66
  // for now just fetch
67
- ctx.params.tableId = ctx.params.viewName.split("all_")[1];
67
+ const split = ctx.params.viewName.split("all_");
68
+ ctx.params.tableId = split[1] ? split[1] : split[0];
68
69
  return exports.fetch(ctx);
69
70
  });
70
71
  exports.fetch = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
@@ -15,3 +15,7 @@ exports.csv = function (headers, rows) {
15
15
  exports.json = function (headers, rows) {
16
16
  return JSON.stringify(rows, undefined, 2);
17
17
  };
18
+ exports.ExportFormats = {
19
+ CSV: "csv",
20
+ JSON: "json",
21
+ };
@@ -25,6 +25,7 @@ const { apiFileReturn } = require("../../../utilities/fileSystem");
25
25
  const exporters = require("./exporters");
26
26
  const { saveView, getView, getViews, deleteView } = require("./utils");
27
27
  const { fetchView } = require("../row");
28
+ const { getTable } = require("../table/utils");
28
29
  exports.fetch = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
29
30
  const db = new CouchDB(ctx.appId);
30
31
  ctx.body = yield getViews(db);
@@ -65,7 +66,7 @@ exports.exportView = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
65
66
  const viewName = decodeURI(ctx.query.view);
66
67
  const view = yield getView(db, viewName);
67
68
  const format = ctx.query.format;
68
- if (!format) {
69
+ if (!format || !Object.values(exporters.ExportFormats).includes(format)) {
69
70
  ctx.throw(400, "Format must be specified, either csv or json");
70
71
  }
71
72
  if (view) {
@@ -87,9 +88,20 @@ exports.exportView = (ctx) => __awaiter(void 0, void 0, void 0, function* () {
87
88
  let schema = view && view.meta && view.meta.schema;
88
89
  if (!schema) {
89
90
  const tableId = ctx.params.tableId || view.meta.tableId;
90
- const table = yield db.get(tableId);
91
+ const table = yield getTable(ctx.appId, tableId);
91
92
  schema = table.schema;
92
93
  }
94
+ // make sure no "undefined" entries appear in the CSV
95
+ if (format === exporters.ExportFormats.CSV) {
96
+ const schemaKeys = Object.keys(schema);
97
+ for (let key of schemaKeys) {
98
+ for (let row of ctx.body) {
99
+ if (row[key] == null) {
100
+ row[key] = "";
101
+ }
102
+ }
103
+ }
104
+ }
93
105
  // Export part
94
106
  let headers = Object.keys(schema);
95
107
  const exporter = exporters[format];
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.187",
4
+ "version": "0.9.188",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "test": "jest --coverage --maxWorkers=2",
15
15
  "test:watch": "jest --watch",
16
16
  "predocker": "copyfiles -f ../client/dist/budibase-client.js ../client/manifest.json client",
17
- "build:docker": "yarn run predocker && docker build . -t app-service",
17
+ "build:docker": "yarn run predocker && docker build . -t app-service --label version=$BUDIBASE_RELEASE_VERSION",
18
18
  "run:docker": "node dist/index.js",
19
19
  "dev:stack:up": "node scripts/dev/manage.js up",
20
20
  "dev:stack:down": "node scripts/dev/manage.js down",
@@ -68,9 +68,9 @@
68
68
  "author": "Budibase",
69
69
  "license": "GPL-3.0",
70
70
  "dependencies": {
71
- "@budibase/auth": "^0.9.187",
72
- "@budibase/client": "^0.9.187",
73
- "@budibase/string-templates": "^0.9.187",
71
+ "@budibase/auth": "^0.9.188",
72
+ "@budibase/client": "^0.9.188",
73
+ "@budibase/string-templates": "^0.9.188",
74
74
  "@elastic/elasticsearch": "7.10.0",
75
75
  "@koa/router": "8.0.0",
76
76
  "@sendgrid/mail": "7.1.1",