@budibase/server 2.4.44-alpha.4 → 2.5.0

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.
@@ -8,8 +8,8 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.0179022b.js"></script>
12
- <link rel="stylesheet" href="/builder/assets/index.d013cac9.css">
11
+ <script type="module" crossorigin src="/builder/assets/index.418b71d7.js"></script>
12
+ <link rel="stylesheet" href="/builder/assets/index.7f9a008b.css">
13
13
  </head>
14
14
 
15
15
  <body id="app">
@@ -166,10 +166,6 @@ class RestIntegration {
166
166
  }
167
167
  raw = rawXml;
168
168
  }
169
- else if (contentType.includes("application/pdf")) {
170
- data = yield response.arrayBuffer(); // Save PDF as ArrayBuffer
171
- raw = Buffer.from(data);
172
- }
173
169
  else {
174
170
  data = yield response.text();
175
171
  raw = data;
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.4.44-alpha.3",
4
+ "version": "2.4.44",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -44,12 +44,12 @@
44
44
  "license": "GPL-3.0",
45
45
  "dependencies": {
46
46
  "@apidevtools/swagger-parser": "10.0.3",
47
- "@budibase/backend-core": "2.4.44-alpha.3",
48
- "@budibase/client": "2.4.44-alpha.3",
49
- "@budibase/pro": "2.4.44-alpha.3",
50
- "@budibase/shared-core": "2.4.44-alpha.3",
51
- "@budibase/string-templates": "2.4.44-alpha.3",
52
- "@budibase/types": "2.4.44-alpha.3",
47
+ "@budibase/backend-core": "^2.4.44",
48
+ "@budibase/client": "^2.4.44",
49
+ "@budibase/pro": "2.4.44",
50
+ "@budibase/shared-core": "^2.4.44",
51
+ "@budibase/string-templates": "^2.4.44",
52
+ "@budibase/types": "^2.4.44",
53
53
  "@bull-board/api": "3.7.0",
54
54
  "@bull-board/koa": "3.9.4",
55
55
  "@elastic/elasticsearch": "7.10.0",
@@ -58,8 +58,8 @@ const CRON_STEP_ID = triggerInfo_1.definitions.CRON.stepId;
58
58
  const STOPPED_STATUS = { success: true, status: types_1.AutomationStatus.STOPPED };
59
59
  function getLoopIterations(loopStep, input) {
60
60
  const binding = automationUtils.typecastForLooping(loopStep, input);
61
- if (!binding) {
62
- return 0;
61
+ if (!loopStep || !binding) {
62
+ return 1;
63
63
  }
64
64
  if (Array.isArray(binding)) {
65
65
  return binding.length;
@@ -67,7 +67,7 @@ function getLoopIterations(loopStep, input) {
67
67
  if (typeof binding === "string") {
68
68
  return automationUtils.stringSplit(binding).length;
69
69
  }
70
- return 0;
70
+ return 1;
71
71
  }
72
72
  /**
73
73
  * The automation orchestrator is a class responsible for executing automations.
@@ -372,17 +372,6 @@ class Orchestrator {
372
372
  }
373
373
  }
374
374
  }
375
- if (loopStep && iterations === 0) {
376
- loopStep = undefined;
377
- this.executionOutput.steps.splice(loopStepNumber + 1, 0, {
378
- id: step.id,
379
- stepId: step.stepId,
380
- outputs: { status: types_1.AutomationStatus.NO_ITERATIONS, success: true },
381
- inputs: {},
382
- });
383
- this._context.steps.splice(loopStepNumber, 1);
384
- iterations = 1;
385
- }
386
375
  // Delete the step after the loop step as it's irrelevant, since information is included
387
376
  // in the loop step
388
377
  if (wasLoopStep && !loopStep) {