@izara_project/izara-core-library-asynchronous-flow 1.0.41 → 1.0.42

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Sven Mason <thebarbariansven@gmail.com>",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "homepage": "https://bitbucket.org/izara-core-libraries/izara-core-library-asynchronous-flow#readme",
6
- "version": "1.0.41",
6
+ "version": "1.0.42",
7
7
  "description": "Shared asynchronous flow logic",
8
8
  "type": "module",
9
9
  "main": "index.js",
@@ -146,8 +146,14 @@ export async function createAwaitingMultipleSteps(
146
146
  finalRecords = records.map(record => {
147
147
  const recordFlowType = record.flowType || flowType;
148
148
 
149
- if (!recordFlowType || !recordFlowType.flowTag || !recordFlowType.serviceTag) {
150
- throw new NoRetryError('record.flowType must have both flowTag and serviceTag');
149
+ if (
150
+ !recordFlowType ||
151
+ !recordFlowType.flowTag ||
152
+ !recordFlowType.serviceTag
153
+ ) {
154
+ throw new NoRetryError(
155
+ 'record.flowType must have both flowTag and serviceTag'
156
+ );
151
157
  }
152
158
 
153
159
  const awaitingStepId =
@@ -376,7 +382,8 @@ export async function checkAllAwaitingStepsFinishedWithReturnParams(
376
382
  isComplete: false,
377
383
  collectedAttributes: null,
378
384
  collectedErrors: [],
379
- returnValues: null
385
+ returnValues: null,
386
+ additionalAttributes: awaitingStepItems[0]?.additionalAttributes || null
380
387
  };
381
388
  }
382
389