@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.
- package/builder/assets/{index.0179022b.js → index.418b71d7.js} +322 -323
- package/builder/assets/{index.d013cac9.css → index.7f9a008b.css} +1 -1
- package/builder/index.html +2 -2
- package/dist/integrations/rest.js +0 -4
- package/dist/package.json +7 -7
- package/dist/threads/automation.js +3 -14
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/integrations/rest.ts +0 -3
- package/src/threads/automation.ts +4 -16
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.5.0",
|
|
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.
|
|
48
|
-
"@budibase/client": "2.
|
|
49
|
-
"@budibase/pro": "2.4.44
|
|
50
|
-
"@budibase/shared-core": "2.
|
|
51
|
-
"@budibase/string-templates": "2.
|
|
52
|
-
"@budibase/types": "2.
|
|
47
|
+
"@budibase/backend-core": "^2.5.0",
|
|
48
|
+
"@budibase/client": "^2.5.0",
|
|
49
|
+
"@budibase/pro": "2.4.44",
|
|
50
|
+
"@budibase/shared-core": "^2.5.0",
|
|
51
|
+
"@budibase/string-templates": "^2.5.0",
|
|
52
|
+
"@budibase/types": "^2.5.0",
|
|
53
53
|
"@bull-board/api": "3.7.0",
|
|
54
54
|
"@bull-board/koa": "3.9.4",
|
|
55
55
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"optionalDependencies": {
|
|
177
177
|
"oracledb": "5.3.0"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "aa8ddde74c69b49755866666204c79a27c6c8a2c"
|
|
180
180
|
}
|
package/src/integrations/rest.ts
CHANGED
|
@@ -151,9 +151,6 @@ class RestIntegration implements IntegrationBase {
|
|
|
151
151
|
data = data[keys[0]]
|
|
152
152
|
}
|
|
153
153
|
raw = rawXml
|
|
154
|
-
} else if (contentType.includes("application/pdf")) {
|
|
155
|
-
data = await response.arrayBuffer() // Save PDF as ArrayBuffer
|
|
156
|
-
raw = Buffer.from(data)
|
|
157
154
|
} else {
|
|
158
155
|
data = await response.text()
|
|
159
156
|
raw = data
|
|
@@ -34,8 +34,8 @@ const STOPPED_STATUS = { success: true, status: AutomationStatus.STOPPED }
|
|
|
34
34
|
|
|
35
35
|
function getLoopIterations(loopStep: LoopStep, input: LoopInput) {
|
|
36
36
|
const binding = automationUtils.typecastForLooping(loopStep, input)
|
|
37
|
-
if (!binding) {
|
|
38
|
-
return
|
|
37
|
+
if (!loopStep || !binding) {
|
|
38
|
+
return 1
|
|
39
39
|
}
|
|
40
40
|
if (Array.isArray(binding)) {
|
|
41
41
|
return binding.length
|
|
@@ -43,7 +43,7 @@ function getLoopIterations(loopStep: LoopStep, input: LoopInput) {
|
|
|
43
43
|
if (typeof binding === "string") {
|
|
44
44
|
return automationUtils.stringSplit(binding).length
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return 1
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -423,25 +423,13 @@ class Orchestrator {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
if (loopStep && iterations === 0) {
|
|
427
|
-
loopStep = undefined
|
|
428
|
-
this.executionOutput.steps.splice(loopStepNumber + 1, 0, {
|
|
429
|
-
id: step.id,
|
|
430
|
-
stepId: step.stepId,
|
|
431
|
-
outputs: { status: AutomationStatus.NO_ITERATIONS, success: true },
|
|
432
|
-
inputs: {},
|
|
433
|
-
})
|
|
434
|
-
|
|
435
|
-
this._context.steps.splice(loopStepNumber, 1)
|
|
436
|
-
iterations = 1
|
|
437
|
-
}
|
|
438
|
-
|
|
439
426
|
// Delete the step after the loop step as it's irrelevant, since information is included
|
|
440
427
|
// in the loop step
|
|
441
428
|
if (wasLoopStep && !loopStep) {
|
|
442
429
|
this._context.steps.splice(loopStepNumber + 1, 1)
|
|
443
430
|
wasLoopStep = false
|
|
444
431
|
}
|
|
432
|
+
|
|
445
433
|
if (loopSteps && loopSteps.length) {
|
|
446
434
|
let tempOutput = {
|
|
447
435
|
success: true,
|