@budibase/server 1.0.42 → 1.0.44
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.
- package/builder/assets/{index.17f372b7.js → index.bc00c307.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +71 -70
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/application.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +14 -14
- package/coverage/lcov-report/api/controllers/query/index.js.html +18 -9
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/application.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/row.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/static.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/automations/utils.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/client.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/authorized.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/index.js.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +2 -2
- package/coverage/lcov.info +100 -97
- package/dist/api/controllers/query/index.js +4 -1
- package/dist/package.json +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utilities/workerRequests.js +1 -1
- package/package.json +5 -5
- package/src/api/controllers/query/index.js +4 -1
- package/src/utilities/workerRequests.js +1 -1
|
@@ -1300,7 +1300,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1300
1300
|
This action cannot be undone.`)},m(o,l){v(o,e,l),v(o,n,l),M(n,i),M(n,a),v(o,s,l)},p(o,l){l&1&&r!==(r=o[0].name+"")&&Pe(i,r)},d(o){o&&E(e),o&&E(n),o&&E(s)}}}function jde(t){let e,n,r,i,a,s;e=new _i({props:{$$slots:{control:[Yde],default:[Gde]},$$scope:{ctx:t}}});let o={okText:"Delete Automation",onOk:t[3],title:"Confirm Deletion",$$slots:{default:[zde]},$$scope:{ctx:t}};r=new ii({props:o}),t[4](r);let l={automation:t[0]};return a=new Bde({props:l}),t[5](a),{c(){w(e.$$.fragment),n=L(),w(r.$$.fragment),i=L(),w(a.$$.fragment)},m(u,c){T(e,u,c),v(u,n,c),T(r,u,c),v(u,i,c),T(a,u,c),s=!0},p(u,[c]){const f={};c&134&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const d={};c&129&&(d.$$scope={dirty:c,ctx:u}),r.$set(d);const p={};c&1&&(p.automation=u[0]),a.$set(p)},i(u){s||(m(e.$$.fragment,u),m(r.$$.fragment,u),m(a.$$.fragment,u),s=!0)},o(u){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){C(e,u),u&&E(n),t[4](null),C(r,u),u&&E(i),t[5](null),C(a,u)}}}function Vde(t,e,n){let r;_e(t,en,c=>n(6,r=c));let{automation:i}=e,a,s;async function o(){await _n.actions.delete(i),Ke.success("Automation deleted."),r("../automate")}function l(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}function u(c){ae[c?"unshift":"push"](()=>{s=c,n(2,s)})}return t.$$set=c=>{"automation"in c&&n(0,i=c.automation)},[i,a,s,o,l,u]}class Hde extends de{constructor(e){super();pe(this,e,Vde,jde,ce,{automation:0})}}function TA(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function Wde(t){let e,n,r;return e=new Hde({props:{automation:t[5]}}),{c(){w(e.$$.fragment),n=L()},m(i,a){T(e,i,a),v(i,n,a),r=!0},p(i,a){const s={};a&1&&(s.automation=i[5]),e.$set(s)},i(i){r||(m(e.$$.fragment,i),r=!0)},o(i){g(e.$$.fragment,i),r=!1},d(i){C(e,i),i&&E(n)}}}function CA(t){let e,n;function r(){return t[3](t[5])}return e=new Fs({props:{border:t[7]>0,icon:"ShareAndroid",text:t[5].name,selected:t[5]._id===t[1],$$slots:{default:[Wde]},$$scope:{ctx:t}}}),e.$on("click",r),{c(){w(e.$$.fragment)},m(i,a){T(e,i,a),n=!0},p(i,a){t=i;const s={};a&1&&(s.text=t[5].name),a&3&&(s.selected=t[5]._id===t[1]),a&257&&(s.$$scope={dirty:a,ctx:t}),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){C(e,i)}}}function xde(t){let e,n,r=t[0].automations,i=[];for(let s=0;s<r.length;s+=1)i[s]=CA(TA(t,r,s));const a=s=>g(i[s],1,1,()=>{i[s]=null});return{c(){e=B("div");for(let s=0;s<i.length;s+=1)i[s].c();O(e,"class","automations-list svelte-g64vb")},m(s,o){v(s,e,o);for(let l=0;l<i.length;l+=1)i[l].m(e,null);n=!0},p(s,[o]){if(o&7){r=s[0].automations;let l;for(l=0;l<r.length;l+=1){const u=TA(s,r,l);i[l]?(i[l].p(u,o),m(i[l],1)):(i[l]=CA(u),i[l].c(),m(i[l],1),i[l].m(e,null))}for(oe(),l=r.length;l<i.length;l+=1)a(l);le()}},i(s){if(!n){for(let o=0;o<r.length;o+=1)m(i[o]);n=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)g(i[o]);n=!1},d(s){s&&E(e),Nt(i,s)}}}function Qde(t,e,n){let r,i,a;_e(t,en,l=>n(4,i=l)),_e(t,_n,l=>n(0,a=l)),pn(()=>{_n.actions.fetch()});function s(l){_n.actions.select(l),i(`./${l._id}`)}const o=l=>s(l);return t.$$.update=()=>{var l,u;t.$$.dirty&1&&n(1,r=(u=(l=a.selectedAutomation)==null?void 0:l.automation)==null?void 0:u._id)},[a,r,s,o]}class Kde extends de{constructor(e){super();pe(this,e,Qde,xde,ce,{})}}function OA(t,e,n){const r=t.slice();return r[17]=e[n][0],r[18]=e[n][1],r}function Xde(t){let e;return{c(){e=W(`Please name your automation, then select a trigger. Every automation must
|
|
1301
1301
|
start with a trigger.`)},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function Zde(t){let e;return{c(){e=W("Triggers")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function Jde(t){let e=t[18].name+"",n;return{c(){n=W(e)},m(r,i){v(r,n,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&Pe(n,e)},d(r){r&&E(n)}}}function NA(t){let e,n,r,i,a,s,o,l,u,c;r=new Tt({props:{name:t[18].icon}}),s=new nt({props:{size:"S",$$slots:{default:[Jde]},$$scope:{ctx:t}}});function f(){return t[13](t[18])}return{c(){e=B("div"),n=B("div"),w(r.$$.fragment),i=L(),a=B("span"),w(s.$$.fragment),o=L(),O(a,"class","icon-spacing svelte-d3iboa"),O(n,"class","item-body svelte-d3iboa"),O(e,"class","item svelte-d3iboa"),fe(e,"selected",t[2]===t[18].name)},m(d,p){v(d,e,p),M(e,n),T(r,n,null),M(n,i),M(n,a),T(s,a,null),M(e,o),l=!0,u||(c=Fe(e,"click",f),u=!0)},p(d,p){t=d;const _={};p&8&&(_.name=t[18].icon),r.$set(_);const h={};p&2097160&&(h.$$scope={dirty:p,ctx:t}),s.$set(h),p&12&&fe(e,"selected",t[2]===t[18].name)},i(d){l||(m(r.$$.fragment,d),m(s.$$.fragment,d),l=!0)},o(d){g(r.$$.fragment,d),g(s.$$.fragment,d),l=!1},d(d){d&&E(e),C(r),C(s),u=!1,c()}}}function epe(t){let e,n,r,i;e=new nt({props:{size:"S",$$slots:{default:[Zde]},$$scope:{ctx:t}}});let a=t[3],s=[];for(let l=0;l<a.length;l+=1)s[l]=NA(OA(t,a,l));const o=l=>g(s[l],1,1,()=>{s[l]=null});return{c(){w(e.$$.fragment),n=L(),r=B("div");for(let l=0;l<s.length;l+=1)s[l].c();O(r,"class","item-list svelte-d3iboa")},m(l,u){T(e,l,u),v(l,n,u),v(l,r,u);for(let c=0;c<s.length;c+=1)s[c].m(r,null);i=!0},p(l,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:l}),e.$set(c),u&76){a=l[3];let f;for(f=0;f<a.length;f+=1){const d=OA(l,a,f);s[f]?(s[f].p(d,u),m(s[f],1)):(s[f]=NA(d),s[f].c(),m(s[f],1),s[f].m(r,null))}for(oe(),f=a.length;f<s.length;f+=1)o(f);le()}},i(l){if(!i){m(e.$$.fragment,l);for(let u=0;u<a.length;u+=1)m(s[u]);i=!0}},o(l){g(e.$$.fragment,l),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)g(s[u]);i=!1},d(l){C(e,l),l&&E(n),l&&E(r),Nt(s,l)}}}function tpe(t){let e,n,r,i,a,s,o,l,u,c;e=new lg({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new nt({props:{size:"XS",$$slots:{default:[Xde]},$$scope:{ctx:t}}});function f(_){t[10](_)}function d(_){t[11](_)}let p={label:"Name"};return t[0]!==void 0&&(p.value=t[0]),t[4]!==void 0&&(p.error=t[4]),a=new ot({props:p}),ae.push(()=>ge(a,"value",f)),ae.push(()=>ge(a,"error",d)),a.$on("change",t[12]),u=new st({props:{noPadding:!0,$$slots:{default:[epe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment),n=L(),w(r.$$.fragment),i=L(),w(a.$$.fragment),l=L(),w(u.$$.fragment)},m(_,h){T(e,_,h),v(_,n,h),T(r,_,h),v(_,i,h),T(a,_,h),v(_,l,h),T(u,_,h),c=!0},p(_,h){const b={};h&2097152&&(b.$$scope={dirty:h,ctx:_}),r.$set(b);const S={};!s&&h&1&&(s=!0,S.value=_[0],he(()=>s=!1)),!o&&h&16&&(o=!0,S.error=_[4],he(()=>o=!1)),a.$set(S);const $={};h&2097164&&($.$$scope={dirty:h,ctx:_}),u.$set($)},i(_){c||(m(e.$$.fragment,_),m(r.$$.fragment,_),m(a.$$.fragment,_),m(u.$$.fragment,_),c=!0)},o(_){g(e.$$.fragment,_),g(r.$$.fragment,_),g(a.$$.fragment,_),g(u.$$.fragment,_),c=!1},d(_){C(e,_),_&&E(n),C(r,_),_&&E(i),C(a,_),_&&E(l),C(u,_)}}}function npe(t){let e,n;return e=new Xt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:t[5],disabled:!t[2]||!t[0],$$slots:{default:[tpe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function rpe(t,e,n){let r,i,a,s,o,l;_e(t,_n,R=>n(8,s=R)),_e(t,en,R=>n(16,o=R)),_e(t,Zo,R=>n(9,l=R));let u,c,f=!1,d,{webhookModal:p}=e;async function _(){var N;await _n.actions.create({name:u,instanceId:r});const R=s.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);_n.actions.addBlockToAutomation(R),d.stepId==="WEBHOOK"&&p.show,await _n.actions.save((N=s.selectedAutomation)==null?void 0:N.automation),Ke.success(`Automation ${u} created.`),o(`./${s.selectedAutomation.automation._id}`),_r.captureEvent(Ar.AUTOMATION.CREATED,{name:u})}const h=R=>{d=R,n(2,c=R.name)};function b(R){u=R,n(0,u)}function S(R){i=R,n(4,i),n(1,f),n(0,u)}const $=()=>n(1,f=!0),A=R=>h(R);return t.$$set=R=>{"webhookModal"in R&&n(7,p=R.webhookModal)},t.$$.update=()=>{t.$$.dirty&512&&(r=l._id),t.$$.dirty&3&&n(4,i=f&&!u?"Please specify a name for the automation.":null),t.$$.dirty&256&&n(3,a=Object.entries(s.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,h,p,s,l,b,S,$,A]}class RA extends de{constructor(e){super();pe(this,e,rpe,npe,ce,{webhookModal:7})}}function ipe(t){let e,n;return e=new RA({props:{webhookModal:t[1]}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function ape(t){let e,n,r,i,a;n=new Kde({});let s={$$slots:{default:[ipe]},$$scope:{ctx:t}};return i=new Yt({props:s}),t[2](i),{c(){e=B("div"),w(n.$$.fragment),r=L(),w(i.$$.fragment),O(e,"class","tab-content-padding svelte-1r2f9up")},m(o,l){v(o,e,l),T(n,e,null),M(e,r),T(i,e,null),a=!0},p(o,l){const u={};l&10&&(u.$$scope={dirty:l,ctx:o}),i.$set(u)},i(o){a||(m(n.$$.fragment,o),m(i.$$.fragment,o),a=!0)},o(o){g(n.$$.fragment,o),g(i.$$.fragment,o),a=!1},d(o){o&&E(e),C(n),t[2](null),C(i)}}}function spe(t){let e,n;return e=new Bn({props:{title:"Automations",$$slots:{default:[ape]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function ope(t){let e,n,r,i,a,s;return n=new Si({props:{selected:"Automations",$$slots:{default:[spe]},$$scope:{ctx:t}}}),a=new Tt({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){yt(t[0].show)&&t[0].show.apply(this,arguments)}),{c(){e=B("div"),w(n.$$.fragment),r=L(),i=B("div"),w(a.$$.fragment),O(i,"class","add-button svelte-1r2f9up"),O(i,"data-cy","new-screen"),O(e,"class","title svelte-1r2f9up")},m(o,l){v(o,e,l),T(n,e,null),M(e,r),M(e,i),T(a,i,null),s=!0},p(o,[l]){t=o;const u={};l&11&&(u.$$scope={dirty:l,ctx:t}),n.$set(u)},i(o){s||(m(n.$$.fragment,o),m(a.$$.fragment,o),s=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),s=!1},d(o){o&&E(e),C(n),C(a)}}}function lpe(t,e,n){let{modal:r}=e,{webhookModal:i}=e;function a(s){ae[s?"unshift":"push"](()=>{r=s,n(0,r)})}return t.$$set=s=>{"modal"in s&&n(0,r=s.modal),"webhookModal"in s&&n(1,i=s.webhookModal)},[r,i,a]}class upe extends de{constructor(e){super();pe(this,e,lpe,ope,ce,{modal:0,webhookModal:1})}}function cpe(t){let e,n,r,i;return r=new st({props:{gap:"S",justifyItems:"center",$$slots:{default:[mpe]},$$scope:{ctx:t}}}),{c(){e=B("div"),n=B("div"),w(r.$$.fragment),O(n,"class","main svelte-16gumu0"),O(e,"class","centered svelte-16gumu0")},m(a,s){v(a,e,s),M(e,n),T(r,n,null),i=!0},p(a,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:a}),r.$set(o)},i(a){i||(m(r.$$.fragment,a),i=!0)},o(a){g(r.$$.fragment,a),i=!1},d(a){a&&E(e),C(r)}}}function fpe(t){let e;const n=t[4].default,r=kt(n,t,t[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&It(r,n,i,i[8],e?Mt(n,i[8],a,null):Dt(i[8]),null)},i(i){e||(m(r,i),e=!0)},o(i){g(r,i),e=!1},d(i){r&&r.d(i)}}}function dpe(t){let e;return{c(){e=W("You have no automations")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function ppe(t){let e;return{c(){e=W("Let's fix that. Call the bots!")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function _pe(t){let e;return{c(){e=W("Create automation")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function mpe(t){let e,n,r,i,a,s,o,l,u;return i=new At({props:{size:"M",$$slots:{default:[dpe]},$$scope:{ctx:t}}}),s=new nt({props:{size:"M",$$slots:{default:[ppe]},$$scope:{ctx:t}}}),l=new Ct({props:{size:"M",cta:!0,$$slots:{default:[_pe]},$$scope:{ctx:t}}}),l.$on("click",t[5]),{c(){e=Ce("svg"),n=Ce("use"),r=L(),w(i.$$.fragment),a=L(),w(s.$$.fragment),o=L(),w(l.$$.fragment),yn(n,"xlink:href","#spectrum-icon-18-WorkflowAdd"),O(e,"width","60px"),O(e,"height","60px"),O(e,"class","spectrum-Icon"),O(e,"focusable","false")},m(c,f){v(c,e,f),M(e,n),v(c,r,f),T(i,c,f),v(c,a,f),T(s,c,f),v(c,o,f),T(l,c,f),u=!0},p(c,f){const d={};f&256&&(d.$$scope={dirty:f,ctx:c}),i.$set(d);const p={};f&256&&(p.$$scope={dirty:f,ctx:c}),s.$set(p);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),l.$set(_)},i(c){u||(m(i.$$.fragment,c),m(s.$$.fragment,c),m(l.$$.fragment,c),u=!0)},o(c){g(i.$$.fragment,c),g(s.$$.fragment,c),g(l.$$.fragment,c),u=!1},d(c){c&&E(e),c&&E(r),C(i,c),c&&E(a),C(s,c),c&&E(o),C(l,c)}}}function gpe(t){let e,n;return e=new RA({props:{webhookModal:t[1]}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function hpe(t){let e,n;return e=new G1({}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function bpe(t){let e,n,r,i,a,s,o,l,u,c,f,d;r=new upe({props:{modal:t[0],webhookModal:t[1]}});const p=[fpe,cpe],_=[];function h($,A){return $[2]?0:1}s=h(t),o=_[s]=p[s](t);let b={$$slots:{default:[gpe]},$$scope:{ctx:t}};u=new Yt({props:b}),t[6](u);let S={width:"30%",$$slots:{default:[hpe]},$$scope:{ctx:t}};return f=new Yt({props:S}),t[7](f),{c(){e=B("div"),n=B("div"),w(r.$$.fragment),i=L(),a=B("div"),o.c(),l=L(),w(u.$$.fragment),c=L(),w(f.$$.fragment),O(n,"class","nav svelte-16gumu0"),O(a,"class","content svelte-16gumu0"),O(e,"class","root svelte-16gumu0")},m($,A){v($,e,A),M(e,n),T(r,n,null),M(e,i),M(e,a),_[s].m(a,null),M(e,l),T(u,e,null),M(e,c),T(f,e,null),d=!0},p($,[A]){const R={};A&1&&(R.modal=$[0]),A&2&&(R.webhookModal=$[1]),r.$set(R);let N=s;s=h($),s===N?_[s].p($,A):(oe(),g(_[N],1,1,()=>{_[N]=null}),le(),o=_[s],o?o.p($,A):(o=_[s]=p[s]($),o.c()),m(o,1),o.m(a,null));const D={};A&258&&(D.$$scope={dirty:A,ctx:$}),u.$set(D);const U={};A&256&&(U.$$scope={dirty:A,ctx:$}),f.$set(U)},i($){d||(m(r.$$.fragment,$),m(o),m(u.$$.fragment,$),m(f.$$.fragment,$),d=!0)},o($){g(r.$$.fragment,$),g(o),g(u.$$.fragment,$),g(f.$$.fragment,$),d=!1},d($){$&&E(e),C(r),_[s].d(),t[6](null),C(u),t[7](null),C(f)}}}function vpe(t,e,n){let r,i;_e(t,_n,d=>n(3,i=d));let{$$slots:a={},$$scope:s}=e,o,l;const u=()=>o.show();function c(d){ae[d?"unshift":"push"](()=>{o=d,n(0,o)})}function f(d){ae[d?"unshift":"push"](()=>{l=d,n(1,l)})}return t.$$set=d=>{"$$scope"in d&&n(8,s=d.$$scope)},t.$$.update=()=>{t.$$.dirty&8&&n(2,r=i.automations[0])},[o,l,r,i,a,u,c,f,s]}class Epe extends de{constructor(e){super();pe(this,e,vpe,bpe,ce,{})}}function Spe(t){let e;return{c(){e=W("Publish")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function ype(t){let e,n;return e=new Xt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p:Ue,i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function $pe(t){let e;return{c(){e=B("span"),e.textContent=`The changes you have made will be published to the production version of
|
|
1302
1302
|
the application.`},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function wpe(t){let e,n;return e=new Xt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:t[2],$$slots:{default:[$pe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&64&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Tpe(t){let e,n,r,i,a,s;e=new Ct({props:{secondary:!0,$$slots:{default:[Spe]},$$scope:{ctx:t}}}),e.$on("click",function(){yt(t[1].show)&&t[1].show.apply(this,arguments)});let o={$$slots:{default:[ype]},$$scope:{ctx:t}};r=new Yt({props:o}),t[3](r);let l={$$slots:{default:[wpe]},$$scope:{ctx:t}};return a=new Yt({props:l}),t[4](a),{c(){w(e.$$.fragment),n=L(),w(r.$$.fragment),i=L(),w(a.$$.fragment)},m(u,c){T(e,u,c),v(u,n,c),T(r,u,c),v(u,i,c),T(a,u,c),s=!0},p(u,[c]){t=u;const f={};c&64&&(f.$$scope={dirty:c,ctx:t}),e.$set(f);const d={};c&64&&(d.$$scope={dirty:c,ctx:t}),r.$set(d);const p={};c&64&&(p.$$scope={dirty:c,ctx:t}),a.$set(p)},i(u){s||(m(e.$$.fragment,u),m(r.$$.fragment,u),m(a.$$.fragment,u),s=!0)},o(u){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){C(e,u),u&&E(n),t[3](null),C(r,u),u&&E(i),t[4](null),C(a,u)}}}function Cpe(t,e,n){let r;_e(t,rt,u=>n(5,r=u));let i,a;async function s(){try{const u=await pt.post("/api/deploy");if(u.status!==200)throw new Error(`status ${u.status}`);_r.captureEvent(Ar.APP.PUBLISHED,{appId:r.appId}),Ke.success("Application published successfully")}catch(u){_r.captureException(u),Ke.error(`Error publishing app: ${u}`)}}function o(u){ae[u?"unshift":"push"](()=>{i=u,n(0,i)})}function l(u){ae[u?"unshift":"push"](()=>{a=u,n(1,a)})}return[i,a,s,o,l]}class Ope extends de{constructor(e){super();pe(this,e,Cpe,Tpe,ce,{})}}function Npe(t){let e,n,r,i,a,s,o;function l(c){t[4](c)}let u={};return t[2]!==void 0&&(u.value=t[2]),a=new ot({props:u}),ae.push(()=>ge(a,"value",l)),{c(){e=B("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
1303
|
-
back to its production state.`,n=L(),r=B("span"),r.textContent="Please enter your app name to continue.",i=L(),w(a.$$.fragment)},m(c,f){v(c,e,f),v(c,n,f),v(c,r,f),v(c,i,f),T(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],he(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){g(a.$$.fragment,c),o=!1},d(c){c&&E(e),c&&E(n),c&&E(r),c&&E(i),C(a,c)}}}function Rpe(t){let e,n;return e=new Xt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[Npe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Ape(t){let e,n,r,i;e=new Tt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){yt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[Rpe]},$$scope:{ctx:t}};return r=new Yt({props:a}),t[5](r),{c(){w(e.$$.fragment),n=L(),w(r.$$.fragment)},m(s,o){T(e,s,o),v(s,n,o),T(r,s,o),i=!0},p(s,[o]){t=s;const l={};o&133&&(l.$$scope={dirty:o,ctx:t}),r.$set(l)},i(s){i||(m(e.$$.fragment,s),m(r.$$.fragment,s),i=!0)},o(s){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){C(e,s),s&&E(n),t[5](null),C(r,s)}}}function kpe(t,e,n){let r,i;_e(t,rt,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await pt.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await pt.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await rt.actions.initialise(p);else throw new Error(p);Ke.info("Changes reverted.")}catch(c){Ke.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Ipe extends de{constructor(e){super();pe(this,e,kpe,Ape,ce,{})}}const Dpe="@budibase/client",Mpe="1.0.
|
|
1303
|
+
back to its production state.`,n=L(),r=B("span"),r.textContent="Please enter your app name to continue.",i=L(),w(a.$$.fragment)},m(c,f){v(c,e,f),v(c,n,f),v(c,r,f),v(c,i,f),T(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],he(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){g(a.$$.fragment,c),o=!1},d(c){c&&E(e),c&&E(n),c&&E(r),c&&E(i),C(a,c)}}}function Rpe(t){let e,n;return e=new Xt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[Npe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Ape(t){let e,n,r,i;e=new Tt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){yt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[Rpe]},$$scope:{ctx:t}};return r=new Yt({props:a}),t[5](r),{c(){w(e.$$.fragment),n=L(),w(r.$$.fragment)},m(s,o){T(e,s,o),v(s,n,o),T(r,s,o),i=!0},p(s,[o]){t=s;const l={};o&133&&(l.$$scope={dirty:o,ctx:t}),r.$set(l)},i(s){i||(m(e.$$.fragment,s),m(r.$$.fragment,s),i=!0)},o(s){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){C(e,s),s&&E(n),t[5](null),C(r,s)}}}function kpe(t,e,n){let r,i;_e(t,rt,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await pt.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await pt.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await rt.actions.initialise(p);else throw new Error(p);Ke.info("Changes reverted.")}catch(c){Ke.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Ipe extends de{constructor(e){super();pe(this,e,kpe,Ape,ce,{})}}const Dpe="@budibase/client",Mpe="1.0.43",Lpe="MPL-2.0",Ppe="dist/budibase-client.js",Upe="dist/budibase-client.js",Bpe="module",Fpe="src/index.js",qpe={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Gpe={build:"rollup -c","dev:builder":"rollup -cw"},Ype={"@budibase/bbui":"^1.0.43","@budibase/standard-components":"^0.9.139","@budibase/string-templates":"^1.0.43",regexparam:"^1.3.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},zpe={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5","fs-extra":"^8.1.0",jsdom:"^16.0.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0"},jpe="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var Y1={name:Dpe,version:Mpe,license:Lpe,module:Ppe,main:Upe,type:Bpe,svelte:Fpe,exports:qpe,scripts:Gpe,dependencies:Ype,devDependencies:zpe,gitHead:jpe};function Vpe(t){let e,n;return e=new nt({props:{size:"S",$$slots:{default:[Wpe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Hpe(t){let e,n;return e=new nt({props:{size:"S",$$slots:{default:[xpe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Wpe(t){let e,n,r=t[0].version+"",i,a;return{c(){e=W("This app is currently using version "),n=B("b"),i=W(r),a=W(` which is the
|
|
1304
1304
|
latest version available.`)},m(s,o){v(s,e,o),v(s,n,o),M(n,i),v(s,a,o)},p(s,o){o&1&&r!==(r=s[0].version+"")&&Pe(i,r)},d(s){s&&E(e),s&&E(n),s&&E(a)}}}function xpe(t){let e,n,r=t[0].version+"",i,a,s,o;return{c(){e=W("This app is currently using version "),n=B("b"),i=W(r),a=W(`, but version
|
|
1305
1305
|
`),s=B("b"),s.textContent=`${Y1.version}`,o=W(` is available. Updates can contain new features,
|
|
1306
1306
|
performance improvements and bug fixes.`)},m(l,u){v(l,e,u),v(l,n,u),M(n,i),v(l,a,u),v(l,s,u),v(l,o,u)},p(l,u){u&1&&r!==(r=l[0].version+"")&&Pe(i,r)},d(l){l&&E(e),l&&E(n),l&&E(a),l&&E(s),l&&E(o)}}}function AA(t){let e,n;return e=new nt({props:{size:"S",$$slots:{default:[Qpe]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){T(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){C(e,r)}}}function Qpe(t){let e,n,r=t[0].revertableVersion+"",i,a;return{c(){e=W(`You can revert this app to version
|
package/builder/index.html
CHANGED
|
@@ -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.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.bc00c307.js"></script>
|
|
14
14
|
<link rel="modulepreload" href="/builder/assets/vendor.f9faf6ab.js">
|
|
15
15
|
<link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
|
|
16
16
|
<link rel="stylesheet" href="/builder/assets/index.39e01193.css">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1642587188963" clover="3.2.0">
|
|
3
|
+
<project timestamp="1642587188963" name="All files">
|
|
4
|
+
<metrics statements="4634" coveredstatements="3428" conditionals="1858" coveredconditionals="1015" methods="661" coveredmethods="465" elements="7153" coveredelements="4908" complexity="0" loc="4634" ncloc="4634" packages="21" files="140" classes="140"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
|
|
7
7
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
|
|
@@ -1187,9 +1187,9 @@
|
|
|
1187
1187
|
</file>
|
|
1188
1188
|
</package>
|
|
1189
1189
|
<package name="api.controllers.query">
|
|
1190
|
-
<metrics statements="
|
|
1190
|
+
<metrics statements="97" coveredstatements="80" conditionals="21" coveredconditionals="15" methods="17" coveredmethods="15"/>
|
|
1191
1191
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
|
|
1192
|
-
<metrics statements="
|
|
1192
|
+
<metrics statements="89" coveredstatements="72" conditionals="21" coveredconditionals="15" methods="14" coveredmethods="12"/>
|
|
1193
1193
|
<line num="1" count="34" type="stmt"/>
|
|
1194
1194
|
<line num="6" count="34" type="stmt"/>
|
|
1195
1195
|
<line num="7" count="34" type="stmt"/>
|
|
@@ -1197,87 +1197,88 @@
|
|
|
1197
1197
|
<line num="9" count="34" type="stmt"/>
|
|
1198
1198
|
<line num="10" count="34" type="stmt"/>
|
|
1199
1199
|
<line num="11" count="34" type="stmt"/>
|
|
1200
|
-
<line num="
|
|
1201
|
-
<line num="
|
|
1202
|
-
<line num="
|
|
1203
|
-
<line num="
|
|
1204
|
-
<line num="
|
|
1205
|
-
<line num="
|
|
1206
|
-
<line num="24" count="
|
|
1207
|
-
<line num="27" count="
|
|
1208
|
-
<line num="
|
|
1209
|
-
<line num="
|
|
1210
|
-
<line num="
|
|
1211
|
-
<line num="39" count="
|
|
1212
|
-
<line num="
|
|
1213
|
-
<line num="41" count="0" type="stmt"/>
|
|
1200
|
+
<line num="12" count="34" type="stmt"/>
|
|
1201
|
+
<line num="14" count="34" type="stmt"/>
|
|
1202
|
+
<line num="20" count="5" type="stmt"/>
|
|
1203
|
+
<line num="21" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
1204
|
+
<line num="22" count="5" type="stmt"/>
|
|
1205
|
+
<line num="23" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1206
|
+
<line num="24" count="4" type="stmt"/>
|
|
1207
|
+
<line num="27" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
1208
|
+
<line num="30" count="34" type="stmt"/>
|
|
1209
|
+
<line num="31" count="2" type="stmt"/>
|
|
1210
|
+
<line num="33" count="2" type="stmt"/>
|
|
1211
|
+
<line num="39" count="2" type="stmt"/>
|
|
1212
|
+
<line num="42" count="34" type="stmt"/>
|
|
1214
1213
|
<line num="43" count="0" type="stmt"/>
|
|
1215
1214
|
<line num="44" count="0" type="stmt"/>
|
|
1216
|
-
<line num="
|
|
1217
|
-
<line num="
|
|
1218
|
-
<line num="50" count="0" type="
|
|
1219
|
-
<line num="
|
|
1220
|
-
<line num="
|
|
1221
|
-
<line num="62" count="0" type="stmt"/>
|
|
1215
|
+
<line num="46" count="0" type="stmt"/>
|
|
1216
|
+
<line num="47" count="0" type="stmt"/>
|
|
1217
|
+
<line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1218
|
+
<line num="52" count="0" type="stmt"/>
|
|
1219
|
+
<line num="53" count="0" type="stmt"/>
|
|
1222
1220
|
<line num="63" count="0" type="stmt"/>
|
|
1221
|
+
<line num="64" count="0" type="stmt"/>
|
|
1222
|
+
<line num="65" count="0" type="stmt"/>
|
|
1223
1223
|
<line num="66" count="0" type="stmt"/>
|
|
1224
1224
|
<line num="69" count="0" type="stmt"/>
|
|
1225
|
-
<line num="
|
|
1226
|
-
<line num="
|
|
1227
|
-
<line num="78" count="
|
|
1228
|
-
<line num="
|
|
1229
|
-
<line num="
|
|
1230
|
-
<line num="82" count="28" type="cond" truecount="1" falsecount="1"/>
|
|
1225
|
+
<line num="72" count="0" type="stmt"/>
|
|
1226
|
+
<line num="74" count="0" type="stmt"/>
|
|
1227
|
+
<line num="78" count="0" type="stmt"/>
|
|
1228
|
+
<line num="81" count="34" type="stmt"/>
|
|
1229
|
+
<line num="82" count="28" type="stmt"/>
|
|
1231
1230
|
<line num="83" count="28" type="stmt"/>
|
|
1231
|
+
<line num="85" count="28" type="cond" truecount="1" falsecount="1"/>
|
|
1232
1232
|
<line num="86" count="28" type="stmt"/>
|
|
1233
|
-
<line num="87" count="28" type="stmt"/>
|
|
1234
1233
|
<line num="89" count="28" type="stmt"/>
|
|
1235
1234
|
<line num="90" count="28" type="stmt"/>
|
|
1236
|
-
<line num="
|
|
1237
|
-
<line num="
|
|
1238
|
-
<line num="
|
|
1239
|
-
<line num="97" count="3" type="
|
|
1240
|
-
<line num="98" count="
|
|
1241
|
-
<line num="
|
|
1242
|
-
<line num="101" count="
|
|
1243
|
-
<line num="
|
|
1244
|
-
<line num="
|
|
1245
|
-
<line num="107" count="
|
|
1246
|
-
<line num="
|
|
1247
|
-
<line num="
|
|
1235
|
+
<line num="92" count="28" type="stmt"/>
|
|
1236
|
+
<line num="93" count="28" type="stmt"/>
|
|
1237
|
+
<line num="96" count="34" type="stmt"/>
|
|
1238
|
+
<line num="97" count="3" type="stmt"/>
|
|
1239
|
+
<line num="98" count="3" type="stmt"/>
|
|
1240
|
+
<line num="100" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
1241
|
+
<line num="101" count="1" type="stmt"/>
|
|
1242
|
+
<line num="102" count="1" type="stmt"/>
|
|
1243
|
+
<line num="104" count="3" type="stmt"/>
|
|
1244
|
+
<line num="107" count="34" type="stmt"/>
|
|
1245
|
+
<line num="108" count="8" type="stmt"/>
|
|
1246
|
+
<line num="110" count="8" type="stmt"/>
|
|
1248
1247
|
<line num="114" count="8" type="stmt"/>
|
|
1249
|
-
<line num="
|
|
1250
|
-
<line num="
|
|
1251
|
-
<line num="
|
|
1252
|
-
<line num="
|
|
1248
|
+
<line num="116" count="8" type="stmt"/>
|
|
1249
|
+
<line num="117" count="8" type="stmt"/>
|
|
1250
|
+
<line num="127" count="7" type="stmt"/>
|
|
1251
|
+
<line num="134" count="1" type="stmt"/>
|
|
1253
1252
|
<line num="139" count="2" type="stmt"/>
|
|
1253
|
+
<line num="141" count="2" type="stmt"/>
|
|
1254
1254
|
<line num="142" count="2" type="stmt"/>
|
|
1255
|
-
<line num="
|
|
1256
|
-
<line num="
|
|
1257
|
-
<line num="
|
|
1258
|
-
<line num="
|
|
1259
|
-
<line num="159" count="
|
|
1260
|
-
<line num="
|
|
1261
|
-
<line num="
|
|
1262
|
-
<line num="167" count="
|
|
1263
|
-
<line num="
|
|
1264
|
-
<line num="171" count="
|
|
1265
|
-
<line num="
|
|
1266
|
-
<line num="
|
|
1267
|
-
<line num="
|
|
1268
|
-
<line num="
|
|
1269
|
-
<line num="
|
|
1270
|
-
<line num="
|
|
1271
|
-
<line num="
|
|
1255
|
+
<line num="145" count="2" type="stmt"/>
|
|
1256
|
+
<line num="146" count="2" type="stmt"/>
|
|
1257
|
+
<line num="156" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
1258
|
+
<line num="157" count="1" type="stmt"/>
|
|
1259
|
+
<line num="159" count="0" type="stmt"/>
|
|
1260
|
+
<line num="162" count="1" type="stmt"/>
|
|
1261
|
+
<line num="166" count="34" type="stmt"/>
|
|
1262
|
+
<line num="167" count="2" type="stmt"/>
|
|
1263
|
+
<line num="170" count="34" type="stmt"/>
|
|
1264
|
+
<line num="171" count="0" type="stmt"/>
|
|
1265
|
+
<line num="174" count="34" type="stmt"/>
|
|
1266
|
+
<line num="175" count="2" type="stmt"/>
|
|
1267
|
+
<line num="176" count="2" type="stmt"/>
|
|
1268
|
+
<line num="177" count="2" type="stmt"/>
|
|
1269
|
+
<line num="179" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
1270
|
+
<line num="181" count="1" type="stmt"/>
|
|
1271
|
+
<line num="182" count="1" type="stmt"/>
|
|
1272
1272
|
<line num="183" count="1" type="stmt"/>
|
|
1273
|
-
<line num="184" count="1" type="stmt"/>
|
|
1274
1273
|
<line num="186" count="1" type="stmt"/>
|
|
1275
|
-
<line num="
|
|
1276
|
-
<line num="
|
|
1277
|
-
<line num="
|
|
1278
|
-
<line num="193" count="2" type="stmt"/>
|
|
1274
|
+
<line num="187" count="1" type="stmt"/>
|
|
1275
|
+
<line num="189" count="1" type="stmt"/>
|
|
1276
|
+
<line num="193" count="34" type="stmt"/>
|
|
1279
1277
|
<line num="194" count="2" type="stmt"/>
|
|
1280
1278
|
<line num="195" count="2" type="stmt"/>
|
|
1279
|
+
<line num="196" count="2" type="stmt"/>
|
|
1280
|
+
<line num="197" count="2" type="stmt"/>
|
|
1281
|
+
<line num="198" count="2" type="stmt"/>
|
|
1281
1282
|
</file>
|
|
1282
1283
|
<file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
|
|
1283
1284
|
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
|