@workglow/task-graph 0.0.76 → 0.0.77
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/dist/browser.js +6 -6
- package/dist/browser.js.map +5 -5
- package/dist/bun.js +6 -6
- package/dist/bun.js.map +5 -5
- package/dist/node.js +6 -6
- package/dist/node.js.map +5 -5
- package/dist/task/TaskRunner.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/bun.js
CHANGED
|
@@ -369,7 +369,7 @@ class TaskRunner {
|
|
|
369
369
|
}
|
|
370
370
|
async executeTaskReactive(input, output) {
|
|
371
371
|
const reactiveResult = await this.task.executeReactive(input, output, { own: this.own });
|
|
372
|
-
return Object.
|
|
372
|
+
return Object.assign({}, output, reactiveResult ?? {});
|
|
373
373
|
}
|
|
374
374
|
async handleStart(config = {}) {
|
|
375
375
|
if (this.task.status === TaskStatus.PROCESSING)
|
|
@@ -1475,7 +1475,7 @@ class GraphAsTaskRunner extends TaskRunner {
|
|
|
1475
1475
|
this.task.runOutputData = this.task.subGraph.mergeExecuteOutputsToRunOutput(reactiveResults, this.task.compoundMerge);
|
|
1476
1476
|
} else {
|
|
1477
1477
|
const reactiveResults = await super.executeTaskReactive(this.fixInput(input), output);
|
|
1478
|
-
this.task.runOutputData =
|
|
1478
|
+
this.task.runOutputData = Object.assign({}, output, reactiveResults ?? {});
|
|
1479
1479
|
}
|
|
1480
1480
|
return this.task.runOutputData;
|
|
1481
1481
|
}
|
|
@@ -2429,11 +2429,11 @@ class ArrayTaskRunner extends GraphAsTaskRunner {
|
|
|
2429
2429
|
return super.executeTaskChildren({});
|
|
2430
2430
|
}
|
|
2431
2431
|
async executeTaskReactive(input, output) {
|
|
2432
|
+
const reactiveResults = await super.executeTaskReactive(input, output);
|
|
2432
2433
|
if (this.task.hasChildren()) {
|
|
2433
|
-
return
|
|
2434
|
+
return reactiveResults;
|
|
2434
2435
|
} else {
|
|
2435
|
-
|
|
2436
|
-
this.task.runOutputData = reactiveResults ?? output ?? {};
|
|
2436
|
+
this.task.runOutputData = Object.assign({}, output, reactiveResults ?? {});
|
|
2437
2437
|
return this.task.runOutputData;
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
@@ -2982,4 +2982,4 @@ export {
|
|
|
2982
2982
|
ArrayTask
|
|
2983
2983
|
};
|
|
2984
2984
|
|
|
2985
|
-
//# debugId=
|
|
2985
|
+
//# debugId=026AEE8113DA928364756E2164756E21
|