@budibase/server 1.0.212-alpha.14 → 1.0.212-alpha.15
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.1f366fcc.js → index.83448a6c.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +115 -97
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.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/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/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- 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/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.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/bulkFormula.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/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/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/index.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/migrations.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/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.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/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.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/delay.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/loop.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/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/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 +19 -19
- 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/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/publicApi.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/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +19 -19
- package/coverage/lcov-report/threads/query.js.html +147 -18
- package/coverage/lcov-report/threads/utils.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/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +188 -154
- package/dist/api/controllers/query/index.js +19 -0
- package/dist/package.json +6 -6
- package/dist/threads/query.js +35 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/api/controllers/query/index.ts +23 -1
- package/src/module.d.ts +1 -0
- package/src/threads/query.js +50 -7
|
@@ -910,7 +910,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
910
910
|
`),t=D("i"),i=F(n),l=F("?"),s=F(`
|
|
911
911
|
This action cannot be undone.`)},m(o,a){$(o,e,a),$(o,t,a),P(t,i),P(t,l),$(o,s,a)},p(o,a){a&1&&n!==(n=o[0].name+"")&&ke(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function C1e(r){let e,t,n,i,l,s;e=new Cr({props:{$$slots:{control:[y1e],default:[w1e]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[k1e]},$$scope:{ctx:r}};n=new pr({props:o}),r[4](n);let a={automation:r[0]};return l=new $1e({props:a}),r[5](l),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment),i=R(),k(l.$$.fragment)},m(u,f){C(e,u,f),$(u,t,f),C(n,u,f),$(u,i,f),C(l,u,f),s=!0},p(u,[f]){const c={};f&134&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f&129&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f&1&&(d.automation=u[0]),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){S(e,u),u&&b(t),r[4](null),S(n,u),u&&b(i),r[5](null),S(l,u)}}}function S1e(r,e,t){let n;fe(r,jt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Nt.actions.delete(i),be.success("Automation deleted successfully"),n("../automate")}catch{be.error("Error deleting automation")}}function a(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}function u(f){K[f?"unshift":"push"](()=>{s=f,t(2,s)})}return r.$$set=f=>{"automation"in f&&t(0,i=f.automation)},[i,l,s,o,a,u]}class A1e extends oe{constructor(e){super();ae(this,e,S1e,C1e,le,{automation:0})}}function bk(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function O1e(r){let e,t,n;return e=new A1e({props:{automation:r[5]}}),{c(){k(e.$$.fragment),t=R()},m(i,l){C(e,i,l),$(i,t,l),n=!0},p(i,l){const s={};l&1&&(s.automation=i[5]),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){_(e.$$.fragment,i),n=!1},d(i){S(e,i),i&&b(t)}}}function vk(r){let e,t;function n(){return r[3](r[5])}return e=new zl({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[O1e]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){k(e.$$.fragment)},m(i,l){C(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.text=r[5].name),l&3&&(s.selected=r[5]._id===r[1]),l&257&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){S(e,i)}}}function E1e(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=vk(bk(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();y(e,"class","automations-list svelte-g64vb")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&7){n=s[0].automations;let a;for(a=0;a<n.length;a+=1){const u=bk(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=vk(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),pt(i,s)}}}function T1e(r,e,t){let n,i,l;fe(r,jt,a=>t(4,i=a)),fe(r,Nt,a=>t(0,l=a)),Pt(async()=>{try{await Nt.actions.fetch()}catch{be.error("Error getting automations list")}});function s(a){Nt.actions.select(a),i(`./${a._id}`)}const o=a=>s(a);return r.$$.update=()=>{var a,u;r.$$.dirty&1&&t(1,n=(u=(a=l.selectedAutomation)==null?void 0:a.automation)==null?void 0:u._id)},[l,n,s,o]}class I1e extends oe{constructor(e){super();ae(this,e,T1e,E1e,le,{})}}function wk(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function L1e(r){let e;return{c(){e=F(`Please name your automation, then select a trigger. Every automation must
|
|
912
912
|
start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function P1e(r){let e;return{c(){e=F("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function N1e(r){let e=r[18].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&ke(t,e)},d(n){n&&b(t)}}}function yk(r){let e,t,n,i,l,s,o,a,u,f;n=new ot({props:{name:r[18].icon}}),s=new He({props:{size:"S",$$slots:{default:[N1e]},$$scope:{ctx:r}}});function c(){return r[13](r[18])}return{c(){e=D("div"),t=D("div"),k(n.$$.fragment),i=R(),l=D("span"),k(s.$$.fragment),o=R(),y(l,"class","icon-spacing svelte-d3iboa"),y(t,"class","item-body svelte-d3iboa"),y(e,"class","item svelte-d3iboa"),se(e,"selected",r[2]===r[18].name)},m(p,d){$(p,e,d),P(e,t),C(n,t,null),P(t,i),P(t,l),C(s,l,null),P(e,o),a=!0,u||(f=Le(e,"click",c),u=!0)},p(p,d){r=p;const g={};d&8&&(g.name=r[18].icon),n.$set(g);const h={};d&2097160&&(h.$$scope={dirty:d,ctx:r}),s.$set(h),d&12&&se(e,"selected",r[2]===r[18].name)},i(p){a||(m(n.$$.fragment,p),m(s.$$.fragment,p),a=!0)},o(p){_(n.$$.fragment,p),_(s.$$.fragment,p),a=!1},d(p){p&&b(e),S(n),S(s),u=!1,f()}}}function R1e(r){let e,t,n,i;e=new He({props:{size:"S",$$slots:{default:[P1e]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=yk(wk(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){k(e.$$.fragment),t=R(),n=D("div");for(let a=0;a<s.length;a+=1)s[a].c();y(n,"class","item-list svelte-d3iboa")},m(a,u){C(e,a,u),$(a,t,u),$(a,n,u);for(let f=0;f<s.length;f+=1)s[f].m(n,null);i=!0},p(a,u){const f={};if(u&2097152&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),u&76){l=a[3];let c;for(c=0;c<l.length;c+=1){const p=wk(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=yk(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}},i(a){if(!i){m(e.$$.fragment,a);for(let u=0;u<l.length;u+=1)m(s[u]);i=!0}},o(a){_(e.$$.fragment,a),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);i=!1},d(a){S(e,a),a&&b(t),a&&b(n),pt(s,a)}}}function M1e(r){let e,t,n,i,l,s,o,a,u,f;e=new bm({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."}}),n=new He({props:{size:"XS",$$slots:{default:[L1e]},$$scope:{ctx:r}}});function c(g){r[10](g)}function p(g){r[11](g)}let d={label:"Name"};return r[0]!==void 0&&(d.value=r[0]),r[4]!==void 0&&(d.error=r[4]),l=new et({props:d}),K.push(()=>pe(l,"value",c)),K.push(()=>pe(l,"error",p)),l.$on("change",r[12]),u=new Be({props:{noPadding:!0,$$slots:{default:[R1e]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment),i=R(),k(l.$$.fragment),a=R(),k(u.$$.fragment)},m(g,h){C(e,g,h),$(g,t,h),C(n,g,h),$(g,i,h),C(l,g,h),$(g,a,h),C(u,g,h),f=!0},p(g,h){const v={};h&2097152&&(v.$$scope={dirty:h,ctx:g}),n.$set(v);const w={};!s&&h&1&&(s=!0,w.value=g[0],de(()=>s=!1)),!o&&h&16&&(o=!0,w.error=g[4],de(()=>o=!1)),l.$set(w);const O={};h&2097164&&(O.$$scope={dirty:h,ctx:g}),u.$set(O)},i(g){f||(m(e.$$.fragment,g),m(n.$$.fragment,g),m(l.$$.fragment,g),m(u.$$.fragment,g),f=!0)},o(g){_(e.$$.fragment,g),_(n.$$.fragment,g),_(l.$$.fragment,g),_(u.$$.fragment,g),f=!1},d(g){S(e,g),g&&b(t),S(n,g),g&&b(i),S(l,g),g&&b(a),S(u,g)}}}function D1e(r){let e,t;return e=new Rt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[M1e]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,[i]){const l={};i&5&&(l.disabled=!n[2]||!n[0]),i&2097183&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function j1e(r,e,t){let n,i,l,s,o,a;fe(r,Nt,I=>t(8,s=I)),fe(r,jt,I=>t(16,o=I)),fe(r,Bs,I=>t(9,a=I));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var I;try{await Nt.actions.create({name:u,instanceId:n});const E=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Nt.actions.addBlockToAutomation(E),p.stepId==="WEBHOOK"&&d.show,await Nt.actions.save((I=s.selectedAutomation)==null?void 0:I.automation),be.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`)}catch{be.error("Error creating automation")}}const h=I=>{p=I,t(2,f=I.name)};function v(I){u=I,t(0,u)}function w(I){i=I,t(4,i),t(1,c),t(0,u)}const O=()=>t(1,c=!0),T=I=>h(I);return r.$$set=I=>{"webhookModal"in I&&t(7,d=I.webhookModal)},r.$$.update=()=>{r.$$.dirty&512&&(n=a._id),r.$$.dirty&3&&t(4,i=c&&!u?"Please specify a name for the automation.":null),r.$$.dirty&256&&t(3,l=Object.entries(s.blockDefinitions.TRIGGER))},[u,c,f,l,i,g,h,d,s,a,v,w,O,T]}class kk extends oe{constructor(e){super();ae(this,e,j1e,D1e,le,{webhookModal:7})}}function B1e(r){let e,t;return e=new kk({props:{webhookModal:r[1]}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function z1e(r){let e,t,n,i;e=new I1e({});let l={$$slots:{default:[B1e]},$$scope:{ctx:r}};return n=new kt({props:l}),r[2](n),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment)},m(s,o){C(e,s,o),$(s,t,o),C(n,s,o),i=!0},p(s,o){const a={};o&10&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){S(e,s),s&&b(t),r[2](null),S(n,s)}}}function q1e(r){let e,t;return e=new mn({props:{title:"Automations",$$slots:{default:[z1e]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&11&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function U1e(r){let e,t,n,i,l,s;return t=new Ar({props:{selected:"Automations",$$slots:{default:[q1e]},$$scope:{ctx:r}}}),l=new ot({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ut(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),k(t.$$.fragment),n=R(),i=D("div"),k(l.$$.fragment),y(i,"class","add-button svelte-mcmub4"),y(e,"class","title svelte-mcmub4")},m(o,a){$(o,e,a),C(t,e,null),P(e,n),P(e,i),C(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&11&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),S(t),S(l)}}}function F1e(r,e,t){let{modal:n}=e,{webhookModal:i}=e;function l(s){K[s?"unshift":"push"](()=>{n=s,t(0,n)})}return r.$$set=s=>{"modal"in s&&t(0,n=s.modal),"webhookModal"in s&&t(1,i=s.webhookModal)},[n,i,l]}class V1e extends oe{constructor(e){super();ae(this,e,F1e,U1e,le,{modal:0,webhookModal:1})}}function Ck(r,e,t){const n=r.slice();return n[7]=e[t],n[9]=t,n}function Sk(r){var u;let e,t,n,i,l;function s(f){r[6](f)}let o={showTestStatus:!0,block:r[7],isTrigger:r[9]===0,testResult:(u=r[2])==null?void 0:u[r[9]]};r[3]!==void 0&&(o.showParameters=r[3]),e=new sk({props:o}),K.push(()=>pe(e,"showParameters",s));let a=r[3]&&r[3][r[7].id]&&Ak(r);return{c(){k(e.$$.fragment),n=R(),a&&a.c(),i=Oe()},m(f,c){C(e,f,c),$(f,n,c),a&&a.m(f,c),$(f,i,c),l=!0},p(f,c){var d;const p={};c&2&&(p.block=f[7]),c&4&&(p.testResult=(d=f[2])==null?void 0:d[f[9]]),!t&&c&8&&(t=!0,p.showParameters=f[3],de(()=>t=!1)),e.$set(p),f[3]&&f[3][f[7].id]?a?(a.p(f,c),c&10&&m(a,1)):(a=Ak(f),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(f){l||(m(e.$$.fragment,f),m(a),l=!0)},o(f){_(e.$$.fragment,f),_(a),l=!1},d(f){S(e,f),f&&b(n),a&&a.d(f),f&&b(i)}}}function Ak(r){var a,u;let e,t,n,i,l,s;e=new Yt({props:{noMargin:!0}});let o=((u=(a=r[2])==null?void 0:a[r[9]])==null?void 0:u.outputs.iterations)&&Ok(r);return l=new Ar({props:{quiet:!0,noPadding:!0,selected:"Input",$$slots:{default:[Y1e]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),k(l.$$.fragment),y(i,"class","tabs svelte-1d49z3j")},m(f,c){C(e,f,c),$(f,t,c),o&&o.m(f,c),$(f,n,c),$(f,i,c),C(l,i,null),s=!0},p(f,c){var d,g;((g=(d=f[2])==null?void 0:d[f[9]])==null?void 0:g.outputs.iterations)?o?(o.p(f,c),c&4&&m(o,1)):(o=Ok(f),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const p={};c&1028&&(p.$$scope={dirty:c,ctx:f}),l.$set(p)},i(f){s||(m(e.$$.fragment,f),m(o),m(l.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),_(o),_(l.$$.fragment,f),s=!1},d(f){S(e,f),f&&b(t),o&&o.d(f),f&&b(n),f&&b(i),S(l)}}}function Ok(r){let e,t,n,i,l,s;return t=new ot({props:{name:"Reuse"}}),l=new Je({props:{$$slots:{default:[H1e]},$$scope:{ctx:r}}}),{c(){e=D("div"),k(t.$$.fragment),n=R(),i=D("div"),k(l.$$.fragment),_t(i,"margin-left","10px"),_t(e,"display","flex"),_t(e,"padding","10px 10px 0px 12px")},m(o,a){$(o,e,a),C(t,e,null),P(e,n),P(e,i),C(l,i,null),s=!0},p(o,a){const u={};a&1028&&(u.$$scope={dirty:a,ctx:o}),l.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),S(t),S(l)}}}function H1e(r){var l,s;let e,t=((s=(l=r[2])==null?void 0:l[r[9]])==null?void 0:s.outputs.iterations)+"",n,i;return{c(){e=F("This loop ran "),n=F(t),i=F(" times.")},m(o,a){$(o,e,a),$(o,n,a),$(o,i,a)},p(o,a){var u,f;a&4&&t!==(t=((f=(u=o[2])==null?void 0:u[o[9]])==null?void 0:f.outputs.iterations)+"")&&ke(n,t)},d(o){o&&b(e),o&&b(n),o&&b(i)}}}function W1e(r){var i,l;let e,t,n;return t=new bi({props:{minHeight:"80px",disabled:!0,value:kc((l=(i=r[2])==null?void 0:i[r[9]])==null?void 0:l.inputs,"No input")}}),{c(){e=D("div"),k(t.$$.fragment),_t(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),C(t,e,null),n=!0},p(s,o){var u,f;const a={};o&4&&(a.value=kc((f=(u=s[2])==null?void 0:u[s[9]])==null?void 0:f.inputs,"No input")),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),S(t)}}}function G1e(r){var i,l;let e,t,n;return t=new bi({props:{minHeight:"100px",disabled:!0,value:kc((l=(i=r[2])==null?void 0:i[r[9]])==null?void 0:l.outputs,"No output")}}),{c(){e=D("div"),k(t.$$.fragment),_t(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),C(t,e,null),n=!0},p(s,o){var u,f;const a={};o&4&&(a.value=kc((f=(u=s[2])==null?void 0:u[s[9]])==null?void 0:f.outputs,"No output")),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),S(t)}}}function Y1e(r){let e,t,n,i;return e=new mn({props:{title:"Input",$$slots:{default:[W1e]},$$scope:{ctx:r}}}),n=new mn({props:{title:"Output",$$slots:{default:[G1e]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment)},m(l,s){C(e,l,s),$(l,t,s),C(n,l,s),i=!0},p(l,s){const o={};s&1028&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1028&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){S(e,l),l&&b(t),S(n,l)}}}function Ek(r){let e;return{c(){e=D("div"),y(e,"class","separator svelte-1d49z3j")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tk(r){let e,t,n,i,l,s=r[7].stepId!=="LOOP"&&Sk(r),o=r[1].length-1!==r[9]&&Ek();return{c(){e=D("div"),s&&s.c(),n=R(),o&&o.c(),i=Oe(),y(e,"class","block svelte-1d49z3j"),y(e,"style",t=r[0]?`width: ${r[0]}`:"")},m(a,u){$(a,e,u),s&&s.m(e,null),$(a,n,u),o&&o.m(a,u),$(a,i,u),l=!0},p(a,u){a[7].stepId!=="LOOP"?s?(s.p(a,u),u&2&&m(s,1)):(s=Sk(a),s.c(),m(s,1),s.m(e,null)):s&&(ee(),_(s,1,1,()=>{s=null}),te()),(!l||u&1&&t!==(t=a[0]?`width: ${a[0]}`:""))&&y(e,"style",t),a[1].length-1!==a[9]?o||(o=Ek(),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},i(a){l||(m(s),l=!0)},o(a){_(s),l=!1},d(a){a&&b(e),s&&s.d(),a&&b(n),o&&o.d(a),a&&b(i)}}}function J1e(r){let e,t,n=r[1],i=[];for(let s=0;s<n.length;s+=1)i[s]=Tk(Ck(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();y(e,"class","container svelte-1d49z3j")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&15){n=s[1];let a;for(a=0;a<n.length;a+=1){const u=Ck(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Tk(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),pt(i,s)}}}function X1e(r){return r==null?void 0:r.steps.filter(e=>e.stepId!=="LOOP"||[])}function kc(r,e){return r?JSON.stringify(r,null,2):e}function Q1e(r,e,t){let n,{automation:i}=e,{testResults:l}=e,{width:s="400px"}=e,o,a;function u(f){o=f,t(3,o)}return r.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,l=f.testResults),"width"in f&&t(0,s=f.width)},r.$$.update=()=>{if(r.$$.dirty&32&&t(2,n=X1e(l)),r.$$.dirty&22){if(t(1,a=[]),i)i.definition.trigger&&a.push(i.definition.trigger),t(1,a=a.concat(i.definition.steps||[]).filter(f=>f.stepId!=="LOOP"));else if(n){t(1,a=n||[]);let f=0;for(let c of a)c.id=f++}}},[s,a,n,o,i,l,u]}class Ik extends oe{constructor(e){super();ae(this,e,Q1e,J1e,le,{automation:4,testResults:5,width:0})}}function K1e(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;return n=new ot({props:{name:"MultipleCheck"}}),a=new ot({props:{hoverable:!0,name:"Close"}}),a.$on("click",r[4]),f=new Yt({}),p=new Ik({props:{automation:r[1],testResults:r[0]}}),{c(){e=D("div"),t=D("div"),k(n.$$.fragment),i=R(),l=D("div"),l.textContent="Test Details",s=R(),o=D("div"),k(a.$$.fragment),u=R(),k(f.$$.fragment),c=R(),k(p.$$.fragment),_t(l,"padding-left","var(--spacing-l)"),y(t,"class","title-text svelte-nwwj95"),_t(o,"padding-right","var(--spacing-xl)"),y(e,"class","title svelte-nwwj95")},m(g,h){$(g,e,h),P(e,t),C(n,t,null),P(t,i),P(t,l),P(e,s),P(e,o),C(a,o,null),$(g,u,h),C(f,g,h),$(g,c,h),C(p,g,h),d=!0},p(g,[h]){const v={};h&2&&(v.automation=g[1]),h&1&&(v.testResults=g[0]),p.$set(v)},i(g){d||(m(n.$$.fragment,g),m(a.$$.fragment,g),m(f.$$.fragment,g),m(p.$$.fragment,g),d=!0)},o(g){_(n.$$.fragment,g),_(a.$$.fragment,g),_(f.$$.fragment,g),_(p.$$.fragment,g),d=!1},d(g){g&&b(e),S(n),S(a),g&&b(u),S(f,g),g&&b(c),S(p,g)}}}function Z1e(r,e,t){let n;fe(r,Nt,a=>t(2,n=a));let{automation:i}=e,{testResults:l}=e,s;const o=async()=>{kn(Nt,n.showTestPanel=!1,n)};return r.$$set=a=>{"automation"in a&&t(1,i=a.automation),"testResults"in a&&t(0,l=a.testResults)},r.$$.update=()=>{var a;r.$$.dirty&5&&(l||t(0,l=(a=n.selectedAutomation)==null?void 0:a.testResults)),r.$$.dirty&11&&(t(3,s=[]),i?(i.definition.trigger&&s.push(i.definition.trigger),t(3,s=s.concat(i.definition.steps||[]).filter(u=>u.stepId!=="LOOP"))):l&&t(3,s=l.steps||[]))},[l,i,n,s,o]}class x1e extends oe{constructor(e){super();ae(this,e,Z1e,K1e,le,{automation:1,testResults:0})}}function ege(r){let e,t,n,i;return n=new Be({props:{gap:"S",justifyItems:"center",$$slots:{default:[lge]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),k(n.$$.fragment),y(t,"class","main svelte-374m3f"),y(e,"class","centered svelte-374m3f")},m(l,s){$(l,e,s),P(e,t),C(n,t,null),i=!0},p(l,s){const o={};s&258&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),S(n)}}}function tge(r){let e;const t=r[4].default,n=$t(t,r,r[8],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&256)&&bt(n,t,i,i[8],e?wt(t,i[8],l,null):vt(i[8]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function nge(r){let e;return{c(){e=F("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rge(r){let e;return{c(){e=F("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ige(r){let e;return{c(){e=F("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lge(r){let e,t,n,i,l,s,o,a,u;return i=new ft({props:{size:"M",$$slots:{default:[nge]},$$scope:{ctx:r}}}),s=new He({props:{size:"M",$$slots:{default:[rge]},$$scope:{ctx:r}}}),a=new lt({props:{size:"M",cta:!0,$$slots:{default:[ige]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=me("svg"),t=me("use"),n=R(),k(i.$$.fragment),l=R(),k(s.$$.fragment),o=R(),k(a.$$.fragment),Wt(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),y(e,"width","60px"),y(e,"height","60px"),y(e,"class","spectrum-Icon"),y(e,"focusable","false")},m(f,c){$(f,e,c),P(e,t),$(f,n,c),C(i,f,c),$(f,l,c),C(s,f,c),$(f,o,c),C(a,f,c),u=!0},p(f,c){const p={};c&256&&(p.$$scope={dirty:c,ctx:f}),i.$set(p);const d={};c&256&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const g={};c&256&&(g.$$scope={dirty:c,ctx:f}),a.$set(g)},i(f){u||(m(i.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),u=!0)},o(f){_(i.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),u=!1},d(f){f&&b(e),f&&b(n),S(i,f),f&&b(l),S(s,f),f&&b(o),S(a,f)}}}function Lk(r){let e,t,n;return t=new x1e({props:{automation:r[3]}}),{c(){e=D("div"),k(t.$$.fragment),y(e,"class","setup svelte-374m3f")},m(i,l){$(i,e,l),C(t,e,null),n=!0},p(i,l){const s={};l&8&&(s.automation=i[3]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),S(t)}}}function sge(r){let e,t;return e=new kk({props:{webhookModal:r[2]}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.webhookModal=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function oge(r){let e,t;return e=new n1({}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function age(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new V1e({props:{modal:r[1],webhookModal:r[2]}});const g=[tge,ege],h=[];function v(I,E){return I[3]?0:1}s=v(r),o=h[s]=g[s](r);let w=r[0].showTestPanel&&Lk(r),O={$$slots:{default:[sge]},$$scope:{ctx:r}};f=new kt({props:O}),r[6](f);let T={width:"30%",$$slots:{default:[oge]},$$scope:{ctx:r}};return p=new kt({props:T}),r[7](p),{c(){e=D("div"),t=D("div"),k(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),w&&w.c(),u=R(),k(f.$$.fragment),c=R(),k(p.$$.fragment),y(t,"class","nav svelte-374m3f"),y(l,"class","content svelte-374m3f"),y(e,"class","root svelte-374m3f")},m(I,E){$(I,e,E),P(e,t),C(n,t,null),P(e,i),P(e,l),h[s].m(l,null),P(e,a),w&&w.m(e,null),P(e,u),C(f,e,null),P(e,c),C(p,e,null),d=!0},p(I,[E]){const L={};E&2&&(L.modal=I[1]),E&4&&(L.webhookModal=I[2]),n.$set(L);let M=s;s=v(I),s===M?h[s].p(I,E):(ee(),_(h[M],1,1,()=>{h[M]=null}),te(),o=h[s],o?o.p(I,E):(o=h[s]=g[s](I),o.c()),m(o,1),o.m(l,null)),I[0].showTestPanel?w?(w.p(I,E),E&1&&m(w,1)):(w=Lk(I),w.c(),m(w,1),w.m(e,u)):w&&(ee(),_(w,1,1,()=>{w=null}),te());const j={};E&260&&(j.$$scope={dirty:E,ctx:I}),f.$set(j);const B={};E&256&&(B.$$scope={dirty:E,ctx:I}),p.$set(B)},i(I){d||(m(n.$$.fragment,I),m(o),m(w),m(f.$$.fragment,I),m(p.$$.fragment,I),d=!0)},o(I){_(n.$$.fragment,I),_(o),_(w),_(f.$$.fragment,I),_(p.$$.fragment,I),d=!1},d(I){I&&b(e),S(n),h[s].d(),w&&w.d(),r[6](null),S(f),r[7](null),S(p)}}}function uge(r,e,t){let n,i;fe(r,Nt,p=>t(0,i=p));let{$$slots:l={},$$scope:s}=e,o,a;Pt(()=>{kn(Nt,i.showTestPanel=!1,i)});const u=()=>o.show();function f(p){K[p?"unshift":"push"](()=>{o=p,t(1,o)})}function c(p){K[p?"unshift":"push"](()=>{a=p,t(2,a)})}return r.$$set=p=>{"$$scope"in p&&t(8,s=p.$$scope)},r.$$.update=()=>{var p;r.$$.dirty&1&&t(3,n=((p=i.selectedAutomation)==null?void 0:p.automation)||i.automations[0])},[i,o,a,n,l,u,f,c,s]}class fge extends oe{constructor(e){super();ae(this,e,uge,age,le,{})}}function cge(r){let e,t,n,i,l,s,o;function a(f){r[4](f)}let u={};return r[2]!==void 0&&(u.value=r[2]),l=new et({props:u}),K.push(()=>pe(l,"value",a)),{c(){e=D("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
913
|
-
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),k(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),C(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],de(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),S(l,f)}}}function pge(r){let e,t;return e=new Rt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[cge]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function dge(r){let e,t,n,i;e=new ot({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ut(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[pge]},$$scope:{ctx:r}};return n=new kt({props:l}),r[5](n),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment)},m(s,o){C(e,s,o),$(s,t,o),C(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){S(e,s),s&&b(t),r[5](null),S(n,s)}}}function mge(r,e,t){let n,i;fe(r,Fe,f=>t(0,i=f));let l,s;const o=async()=>{try{await We.revertAppChanges(n);const f=await We.fetchAppPackage(n);await Fe.actions.initialise(f),be.info("Changes reverted successfully")}catch(f){be.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class gge extends oe{constructor(e){super();ae(this,e,mge,dge,le,{})}}const _ge="@budibase/client",hge="1.0.212-alpha.
|
|
913
|
+
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),k(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),C(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],de(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),S(l,f)}}}function pge(r){let e,t;return e=new Rt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[cge]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function dge(r){let e,t,n,i;e=new ot({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ut(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[pge]},$$scope:{ctx:r}};return n=new kt({props:l}),r[5](n),{c(){k(e.$$.fragment),t=R(),k(n.$$.fragment)},m(s,o){C(e,s,o),$(s,t,o),C(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){S(e,s),s&&b(t),r[5](null),S(n,s)}}}function mge(r,e,t){let n,i;fe(r,Fe,f=>t(0,i=f));let l,s;const o=async()=>{try{await We.revertAppChanges(n);const f=await We.fetchAppPackage(n);await Fe.actions.initialise(f),be.info("Changes reverted successfully")}catch(f){be.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class gge extends oe{constructor(e){super();ae(this,e,mge,dge,le,{})}}const _ge="@budibase/client",hge="1.0.212-alpha.14",$ge="MPL-2.0",bge="dist/budibase-client.js",vge="dist/budibase-client.js",wge="module",yge="src/index.js",kge={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Cge={build:"rollup -c","dev:builder":"rollup -cw"},Sge={"@budibase/bbui":"^1.0.212-alpha.14","@budibase/frontend-core":"^1.0.212-alpha.14","@budibase/string-templates":"^1.0.212-alpha.14","@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",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},Age={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.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","rollup-plugin-visualizer":"^5.5.4"},Oge="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var Fs={name:_ge,version:hge,license:$ge,module:bge,main:vge,type:wge,svelte:yge,exports:kge,scripts:Cge,dependencies:Sge,devDependencies:Age,gitHead:Oge};function Pk(r){let e,t,n;return t=new ot({props:{name:"Refresh",hoverable:!0}}),t.$on("click",function(){ut(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){e=D("div"),k(t.$$.fragment),y(e,"class","icon-wrapper svelte-18djg2h"),se(e,"highlight",r[4])},m(i,l){$(i,e,l),C(t,e,null),n=!0},p(i,l){r=i,l&16&&se(e,"highlight",r[4])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),S(t)}}}function Ege(r){let e,t;return e=new He({props:{size:"S",$$slots:{default:[Ige]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function Tge(r){let e,t;return e=new He({props:{size:"S",$$slots:{default:[Lge]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function Ige(r){let e,t,n=r[1].version+"",i,l;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(` which is the
|
|
914
914
|
latest version available.`)},m(s,o){$(s,e,o),$(s,t,o),P(t,i),$(s,l,o)},p(s,o){o&2&&n!==(n=s[1].version+"")&&ke(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function Lge(r){let e,t,n=r[1].version+"",i,l,s,o;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(`, but version
|
|
915
915
|
`),s=D("b"),s.textContent=`${Fs.version}`,o=F(` is available. Updates can contain new features,
|
|
916
916
|
performance improvements and bug fixes.`)},m(a,u){$(a,e,u),$(a,t,u),P(t,i),$(a,l,u),$(a,s,u),$(a,o,u)},p(a,u){u&2&&n!==(n=a[1].version+"")&&ke(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function Nk(r){let e,t;return e=new He({props:{size:"S",$$slots:{default:[Pge]},$$scope:{ctx:r}}}),{c(){k(e.$$.fragment)},m(n,i){C(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){S(e,n)}}}function Pge(r){let e,t,n=r[1].revertableVersion+"",i,l;return{c(){e=F(`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.83448a6c.js"></script>
|
|
14
14
|
<link rel="modulepreload" href="/builder/assets/vendor.001dcf8c.js">
|
|
15
15
|
<link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
|
|
16
16
|
<link rel="stylesheet" href="/builder/assets/index.7786f497.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="1657013244533" clover="3.2.0">
|
|
3
|
+
<project timestamp="1657013244533" name="All files">
|
|
4
|
+
<metrics statements="4382" coveredstatements="3147" conditionals="1831" coveredconditionals="957" methods="632" coveredmethods="446" elements="6845" coveredelements="4550" complexity="0" loc="4382" ncloc="4382" packages="23" files="129" classes="129"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
7
7
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
|
|
@@ -3857,7 +3857,7 @@
|
|
|
3857
3857
|
</file>
|
|
3858
3858
|
</package>
|
|
3859
3859
|
<package name="threads">
|
|
3860
|
-
<metrics statements="
|
|
3860
|
+
<metrics statements="327" coveredstatements="216" conditionals="151" coveredconditionals="68" methods="35" coveredmethods="27"/>
|
|
3861
3861
|
<file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
|
|
3862
3862
|
<metrics statements="165" coveredstatements="84" conditionals="75" coveredconditionals="20" methods="13" coveredmethods="9"/>
|
|
3863
3863
|
<line num="1" count="3" type="stmt"/>
|
|
@@ -4027,115 +4027,133 @@
|
|
|
4027
4027
|
<line num="346" count="0" type="stmt"/>
|
|
4028
4028
|
</file>
|
|
4029
4029
|
<file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
|
|
4030
|
-
<metrics statements="
|
|
4030
|
+
<metrics statements="126" coveredstatements="102" conditionals="61" coveredconditionals="38" methods="13" coveredmethods="10"/>
|
|
4031
4031
|
<line num="1" count="2" type="stmt"/>
|
|
4032
4032
|
<line num="2" count="2" type="stmt"/>
|
|
4033
4033
|
<line num="3" count="2" type="stmt"/>
|
|
4034
4034
|
<line num="4" count="2" type="stmt"/>
|
|
4035
4035
|
<line num="5" count="2" type="stmt"/>
|
|
4036
4036
|
<line num="6" count="2" type="stmt"/>
|
|
4037
|
-
<line num="
|
|
4037
|
+
<line num="10" count="2" type="stmt"/>
|
|
4038
4038
|
<line num="11" count="2" type="stmt"/>
|
|
4039
|
-
<line num="
|
|
4040
|
-
<line num="
|
|
4041
|
-
<line num="17" count="22" type="stmt"/>
|
|
4042
|
-
<line num="18" count="22" type="stmt"/>
|
|
4043
|
-
<line num="19" count="22" type="stmt"/>
|
|
4044
|
-
<line num="20" count="22" type="stmt"/>
|
|
4039
|
+
<line num="13" count="2" type="stmt"/>
|
|
4040
|
+
<line num="17" count="2" type="stmt"/>
|
|
4045
4041
|
<line num="21" count="22" type="stmt"/>
|
|
4046
4042
|
<line num="22" count="22" type="stmt"/>
|
|
4047
4043
|
<line num="23" count="22" type="stmt"/>
|
|
4044
|
+
<line num="24" count="22" type="stmt"/>
|
|
4048
4045
|
<line num="25" count="22" type="stmt"/>
|
|
4046
|
+
<line num="26" count="22" type="stmt"/>
|
|
4047
|
+
<line num="27" count="22" type="stmt"/>
|
|
4048
|
+
<line num="28" count="22" type="stmt"/>
|
|
4049
4049
|
<line num="29" count="22" type="stmt"/>
|
|
4050
|
-
<line num="
|
|
4051
|
-
<line num="
|
|
4052
|
-
<line num="
|
|
4053
|
-
<line num="
|
|
4054
|
-
<line num="
|
|
4055
|
-
<line num="
|
|
4056
|
-
<line num="
|
|
4057
|
-
<line num="
|
|
4058
|
-
<line num="48" count="21" type="
|
|
4059
|
-
<line num="
|
|
4060
|
-
<line num="
|
|
4050
|
+
<line num="31" count="22" type="stmt"/>
|
|
4051
|
+
<line num="35" count="22" type="stmt"/>
|
|
4052
|
+
<line num="36" count="22" type="stmt"/>
|
|
4053
|
+
<line num="37" count="22" type="stmt"/>
|
|
4054
|
+
<line num="41" count="23" type="stmt"/>
|
|
4055
|
+
<line num="43" count="23" type="stmt"/>
|
|
4056
|
+
<line num="44" count="23" type="cond" truecount="2" falsecount="0"/>
|
|
4057
|
+
<line num="45" count="2" type="stmt"/>
|
|
4058
|
+
<line num="48" count="21" type="cond" truecount="1" falsecount="1"/>
|
|
4059
|
+
<line num="49" count="0" type="stmt"/>
|
|
4060
|
+
<line num="51" count="0" type="stmt"/>
|
|
4061
4061
|
<line num="56" count="21" type="stmt"/>
|
|
4062
|
-
<line num="59" count="21" type="
|
|
4063
|
-
<line num="
|
|
4064
|
-
<line num="
|
|
4065
|
-
<line num="
|
|
4066
|
-
<line num="
|
|
4067
|
-
<line num="
|
|
4068
|
-
<line num="
|
|
4069
|
-
<line num="79" count="
|
|
4070
|
-
<line num="
|
|
4071
|
-
<line num="
|
|
4072
|
-
<line num="
|
|
4073
|
-
<line num="
|
|
4074
|
-
<line num="
|
|
4075
|
-
<line num="
|
|
4076
|
-
<line num="
|
|
4077
|
-
<line num="
|
|
4078
|
-
<line num="
|
|
4079
|
-
<line num="
|
|
4080
|
-
<line num="
|
|
4081
|
-
<line num="
|
|
4082
|
-
<line num="
|
|
4083
|
-
<line num="
|
|
4084
|
-
<line num="
|
|
4085
|
-
<line num="
|
|
4086
|
-
<line num="
|
|
4087
|
-
<line num="
|
|
4088
|
-
<line num="
|
|
4089
|
-
<line num="
|
|
4090
|
-
<line num="
|
|
4091
|
-
<line num="
|
|
4092
|
-
<line num="
|
|
4093
|
-
<line num="
|
|
4094
|
-
<line num="132" count="
|
|
4095
|
-
<line num="
|
|
4096
|
-
<line num="
|
|
4097
|
-
<line num="
|
|
4098
|
-
<line num="
|
|
4099
|
-
<line num="
|
|
4100
|
-
<line num="
|
|
4101
|
-
<line num="
|
|
4102
|
-
<line num="
|
|
4103
|
-
<line num="
|
|
4104
|
-
<line num="
|
|
4105
|
-
<line num="
|
|
4106
|
-
<line num="
|
|
4107
|
-
<line num="
|
|
4108
|
-
<line num="
|
|
4109
|
-
<line num="
|
|
4110
|
-
<line num="
|
|
4111
|
-
<line num="
|
|
4112
|
-
<line num="
|
|
4113
|
-
<line num="
|
|
4114
|
-
<line num="
|
|
4115
|
-
<line num="179" count="21" type="stmt"/>
|
|
4116
|
-
<line num="180" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
4117
|
-
<line num="181" count="2" type="stmt"/>
|
|
4118
|
-
<line num="184" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4119
|
-
<line num="186" count="16" type="stmt"/>
|
|
4120
|
-
<line num="187" count="16" type="stmt"/>
|
|
4121
|
-
<line num="189" count="6" type="cond" truecount="1" falsecount="1"/>
|
|
4062
|
+
<line num="59" count="21" type="stmt"/>
|
|
4063
|
+
<line num="63" count="21" type="stmt"/>
|
|
4064
|
+
<line num="64" count="21" type="stmt"/>
|
|
4065
|
+
<line num="67" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4066
|
+
<line num="68" count="1" type="stmt"/>
|
|
4067
|
+
<line num="76" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4068
|
+
<line num="77" count="2" type="stmt"/>
|
|
4069
|
+
<line num="79" count="19" type="stmt"/>
|
|
4070
|
+
<line num="83" count="21" type="cond" truecount="1" falsecount="1"/>
|
|
4071
|
+
<line num="84" count="0" type="stmt"/>
|
|
4072
|
+
<line num="87" count="21" type="stmt"/>
|
|
4073
|
+
<line num="88" count="21" type="stmt"/>
|
|
4074
|
+
<line num="89" count="21" type="stmt"/>
|
|
4075
|
+
<line num="90" count="21" type="stmt"/>
|
|
4076
|
+
<line num="91" count="21" type="stmt"/>
|
|
4077
|
+
<line num="92" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4078
|
+
<line num="93" count="19" type="stmt"/>
|
|
4079
|
+
<line num="94" count="19" type="stmt"/>
|
|
4080
|
+
<line num="95" count="19" type="stmt"/>
|
|
4081
|
+
<line num="96" count="19" type="stmt"/>
|
|
4082
|
+
<line num="100" count="21" type="cond" truecount="1" falsecount="1"/>
|
|
4083
|
+
<line num="101" count="0" type="stmt"/>
|
|
4084
|
+
<line num="105" count="0" type="stmt"/>
|
|
4085
|
+
<line num="109" count="21" type="cond" truecount="5" falsecount="0"/>
|
|
4086
|
+
<line num="110" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
4087
|
+
<line num="116" count="0" type="stmt"/>
|
|
4088
|
+
<line num="117" count="0" type="stmt"/>
|
|
4089
|
+
<line num="119" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
4090
|
+
<line num="122" count="0" type="stmt"/>
|
|
4091
|
+
<line num="126" count="1" type="stmt"/>
|
|
4092
|
+
<line num="127" count="1" type="stmt"/>
|
|
4093
|
+
<line num="128" count="1" type="stmt"/>
|
|
4094
|
+
<line num="132" count="20" type="cond" truecount="1" falsecount="1"/>
|
|
4095
|
+
<line num="133" count="0" type="stmt"/>
|
|
4096
|
+
<line num="137" count="20" type="cond" truecount="2" falsecount="0"/>
|
|
4097
|
+
<line num="138" count="18" type="stmt"/>
|
|
4098
|
+
<line num="142" count="20" type="cond" truecount="1" falsecount="1"/>
|
|
4099
|
+
<line num="143" count="0" type="stmt"/>
|
|
4100
|
+
<line num="147" count="20" type="stmt"/>
|
|
4101
|
+
<line num="149" count="20" type="cond" truecount="1" falsecount="1"/>
|
|
4102
|
+
<line num="150" count="0" type="stmt"/>
|
|
4103
|
+
<line num="153" count="20" type="stmt"/>
|
|
4104
|
+
<line num="157" count="5" type="stmt"/>
|
|
4105
|
+
<line num="158" count="5" type="stmt"/>
|
|
4106
|
+
<line num="159" count="5" type="stmt"/>
|
|
4107
|
+
<line num="160" count="5" type="stmt"/>
|
|
4108
|
+
<line num="173" count="0" type="stmt"/>
|
|
4109
|
+
<line num="174" count="0" type="stmt"/>
|
|
4110
|
+
<line num="176" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
4111
|
+
<line num="177" count="0" type="stmt"/>
|
|
4112
|
+
<line num="178" count="0" type="stmt"/>
|
|
4113
|
+
<line num="181" count="0" type="stmt"/>
|
|
4114
|
+
<line num="189" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
4122
4115
|
<line num="190" count="0" type="stmt"/>
|
|
4123
|
-
<line num="
|
|
4124
|
-
<line num="194" count="
|
|
4125
|
-
<line num="
|
|
4126
|
-
<line num="197" count="16" type="stmt"/>
|
|
4127
|
-
<line num="198" count="16" type="stmt"/>
|
|
4116
|
+
<line num="191" count="0" type="stmt"/>
|
|
4117
|
+
<line num="194" count="0" type="stmt"/>
|
|
4118
|
+
<line num="198" count="6" type="stmt"/>
|
|
4128
4119
|
<line num="199" count="6" type="stmt"/>
|
|
4129
4120
|
<line num="200" count="6" type="stmt"/>
|
|
4130
|
-
<line num="
|
|
4131
|
-
<line num="
|
|
4132
|
-
<line num="
|
|
4133
|
-
<line num="
|
|
4134
|
-
<line num="
|
|
4135
|
-
<line num="
|
|
4136
|
-
<line num="
|
|
4137
|
-
<line num="
|
|
4138
|
-
<line num="
|
|
4121
|
+
<line num="201" count="6" type="stmt"/>
|
|
4122
|
+
<line num="202" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
4123
|
+
<line num="203" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
4124
|
+
<line num="207" count="5" type="stmt"/>
|
|
4125
|
+
<line num="208" count="5" type="stmt"/>
|
|
4126
|
+
<line num="210" count="1" type="stmt"/>
|
|
4127
|
+
<line num="212" count="6" type="stmt"/>
|
|
4128
|
+
<line num="216" count="21" type="stmt"/>
|
|
4129
|
+
<line num="217" count="21" type="cond" truecount="3" falsecount="1"/>
|
|
4130
|
+
<line num="218" count="0" type="stmt"/>
|
|
4131
|
+
<line num="220" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4132
|
+
<line num="221" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4133
|
+
<line num="222" count="21" type="stmt"/>
|
|
4134
|
+
<line num="223" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
4135
|
+
<line num="224" count="2" type="stmt"/>
|
|
4136
|
+
<line num="227" count="21" type="cond" truecount="2" falsecount="0"/>
|
|
4137
|
+
<line num="229" count="16" type="stmt"/>
|
|
4138
|
+
<line num="230" count="16" type="stmt"/>
|
|
4139
|
+
<line num="232" count="6" type="cond" truecount="1" falsecount="1"/>
|
|
4140
|
+
<line num="233" count="0" type="stmt"/>
|
|
4141
|
+
<line num="236" count="6" type="stmt"/>
|
|
4142
|
+
<line num="237" count="6" type="stmt"/>
|
|
4143
|
+
<line num="239" count="16" type="stmt"/>
|
|
4144
|
+
<line num="240" count="16" type="stmt"/>
|
|
4145
|
+
<line num="241" count="16" type="stmt"/>
|
|
4146
|
+
<line num="242" count="6" type="stmt"/>
|
|
4147
|
+
<line num="243" count="6" type="stmt"/>
|
|
4148
|
+
<line num="254" count="6" type="stmt"/>
|
|
4149
|
+
<line num="257" count="21" type="stmt"/>
|
|
4150
|
+
<line num="261" count="2" type="stmt"/>
|
|
4151
|
+
<line num="262" count="17" type="stmt"/>
|
|
4152
|
+
<line num="263" count="17" type="stmt"/>
|
|
4153
|
+
<line num="264" count="17" type="stmt"/>
|
|
4154
|
+
<line num="265" count="17" type="stmt"/>
|
|
4155
|
+
<line num="266" count="15" type="stmt"/>
|
|
4156
|
+
<line num="268" count="2" type="stmt"/>
|
|
4139
4157
|
</file>
|
|
4140
4158
|
<file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
|
|
4141
4159
|
<metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>
|