Skip to content

Commit b109ba5

Browse files
authoredNov 28, 2022
release: 3.3.4 (#201)
1 parent 0bc29e7 commit b109ba5

File tree

6 files changed

+598
-668
lines changed

6 files changed

+598
-668
lines changed
 

‎CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Runnerty ChangeLog
22

3+
<a name="3.3.4"></a>
4+
5+
# [3.3.4](28/11/2022)
6+
7+
### Features
8+
9+
- **dependencies:** minor dependency updates
10+
11+
### Bug Fixes
12+
13+
- **common:** in iterable chains only the first value of the input was accessible
14+
315
<a name="3.3.3"></a>
416

517
# [3.3.3](28/06/2022)

‎__tests__/end2end.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('SimpleIter', () => {
116116
const successOutput = `info: 1 CHAIN CHAIN-LAUNCHER START
117117
info: 2 PROCESS PROCESS-LAUNCHER OF CHAIN CHAIN-LAUNCHER START
118118
info: 3 PROCESS PROCESS-LAUNCHER OF CHAIN CHAIN-LAUNCHER END
119-
info: - 4 [I:echo PROCESS-LAUNCHER_1] CHAIN CHAIN-ITERABLE START
119+
info: - 4 [I:echo PROCESS-LAUNCHER_1PROCESS-LAUNCHER_X1] CHAIN CHAIN-ITERABLE START
120120
info: - 5 [I:echo PROCESS-LAUNCHER_1] PROCESS PROCESS-ITER-ONE OF CHAIN CHAIN-ITERABLE START
121121
info: - 6 [I:echo PROCESS-LAUNCHER_1] PROCESS PROCESS-ITER-ONE OF CHAIN CHAIN-ITERABLE END
122122
info: - 7 [I:echo PROCESS-LAUNCHER_1] PROCESS PROCESS-ITER-TWO OF CHAIN CHAIN-ITERABLE START OK1

‎__tests__/end2end/plan_simple_iter.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"id": "iterable_default",
3333
"objects": [
3434
{
35-
"CMDPROC": "echo @GV(PROCESS_ID)_1"
35+
"CMDPROC": "echo @GV(PROCESS_ID)_1",
36+
"CMDPROCX": "@GV(PROCESS_ID)_X1"
3637
},
3738
{
3839
"CMDPROC": "echo @GV(PROCESS_ID)_2"
@@ -82,7 +83,8 @@
8283
},
8384
"input": [
8485
{
85-
"CMDPROC": "CMDPROC"
86+
"CMDPROC": "CMDPROC",
87+
"CMDPROCX": "CMDPROCX"
8688
}
8789
],
8890
"meta": {
@@ -92,7 +94,7 @@
9294
"on_start": [
9395
{
9496
"id": "console_default",
95-
"message": "- 4 [I:@GV(CMDPROC)] CHAIN @GV(CHAIN_ID) START"
97+
"message": "- 4 [I:@GV(CMDPROC)@GV(CMDPROCX)] CHAIN @GV(CHAIN_ID) START"
9698
}
9799
],
98100
"on_end": [

‎lib/classes/chain.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -577,16 +577,13 @@ class Chain {
577577
//Start Chain
578578
async start(options) {
579579
this.mustEnd = false;
580-
581580
if (options.inputIteration) {
582581
this.execute_input = {};
583582
if (Array.isArray(this.input)) {
584-
let inputLength = this.input.length;
585-
586-
while (inputLength--) {
587-
const key = Object.keys(this.input[inputLength])[0];
588-
const value = this.input[inputLength][key];
589-
this.execute_input[key] = options.inputIteration[value];
583+
for (const inputElem of this.input) {
584+
for (const [key, value] of Object.entries(inputElem)) {
585+
this.execute_input[key] = options.inputIteration[value];
586+
}
590587
}
591588
} else if (typeof this.input === 'string') {
592589
this.execute_input[this.input] = options.inputIteration;

‎package-lock.json

+568-649
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "runnerty",
33
"description": "Process orchestrator",
4-
"version": "3.3.3",
4+
"version": "3.3.4",
55
"preferGlobal": true,
66
"main": "index.js",
77
"license": "MIT",
@@ -28,21 +28,21 @@
2828
"dependencies": {
2929
"@runnerty/interpreter-core": "~3.1.1",
3030
"@runnerty/trigger-server": "~3.1.1",
31-
"ajv": "~8.11.0",
32-
"axios": "~1.1.2",
31+
"ajv": "~8.11.2",
32+
"axios": "~1.2.0",
3333
"better-ajv-errors": "~1.2.0",
3434
"body-parser": "~1.20.1",
3535
"boxen": "~5.1.2",
3636
"bytes": "~3.1.2",
3737
"chalk": "~4.1.2",
3838
"colors": "1.4.0",
39-
"commander": "~9.3.0",
39+
"commander": "~9.4.1",
4040
"cors": "~2.8.5",
41-
"cron-parser": "~4.6.0",
41+
"cron-parser": "~4.7.0",
4242
"dotenv": "^16.0.3",
4343
"express": "~4.18.2",
4444
"express-basic-auth": "~1.2.1",
45-
"express-jwt": "~7.7.5",
45+
"express-jwt": "~7.7.7",
4646
"fs-extra": "~10.1.0",
4747
"glob-to-regexp": "~0.4.1",
4848
"helmet": "~6.0.0",
@@ -53,12 +53,12 @@
5353
"moment": "~2.29.4",
5454
"morgan": "~1.10.0",
5555
"ms": "~2.1.3",
56-
"node-ical": "~0.15.2",
56+
"node-ical": "~0.15.3",
5757
"npm-package-arg": "^9.1.2",
5858
"object-sizeof": "~1.6.3",
5959
"resolve": "^1.22.1",
6060
"semver": "~7.3.8",
61-
"socket.io-client": "~4.5.2",
61+
"socket.io-client": "~4.5.4",
6262
"update-notifier": "~5.1.0",
6363
"winston": "~3.8.2"
6464
},

0 commit comments

Comments
 (0)
Please sign in to comment.