@workglow/task-graph 0.0.75 → 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 +12 -3
- package/dist/browser.js.map +5 -5
- package/dist/bun.js +12 -3
- package/dist/bun.js.map +5 -5
- package/dist/node.js +12 -3
- package/dist/node.js.map +5 -5
- package/dist/task/ArrayTask.d.ts +5 -0
- package/dist/task/ArrayTask.d.ts.map +1 -1
- 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
|
}
|
|
@@ -2428,6 +2428,15 @@ class ArrayTaskRunner extends GraphAsTaskRunner {
|
|
|
2428
2428
|
async executeTaskChildren(_input) {
|
|
2429
2429
|
return super.executeTaskChildren({});
|
|
2430
2430
|
}
|
|
2431
|
+
async executeTaskReactive(input, output) {
|
|
2432
|
+
const reactiveResults = await super.executeTaskReactive(input, output);
|
|
2433
|
+
if (this.task.hasChildren()) {
|
|
2434
|
+
return reactiveResults;
|
|
2435
|
+
} else {
|
|
2436
|
+
this.task.runOutputData = Object.assign({}, output, reactiveResults ?? {});
|
|
2437
|
+
return this.task.runOutputData;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2431
2440
|
}
|
|
2432
2441
|
// src/task/JobQueueFactory.ts
|
|
2433
2442
|
import {
|
|
@@ -2973,4 +2982,4 @@ export {
|
|
|
2973
2982
|
ArrayTask
|
|
2974
2983
|
};
|
|
2975
2984
|
|
|
2976
|
-
//# debugId=
|
|
2985
|
+
//# debugId=026AEE8113DA928364756E2164756E21
|