@workglow/tasks 0.0.110 → 0.0.111

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/node.js CHANGED
@@ -588,7 +588,7 @@ class ArrayTask extends GraphAsTask {
588
588
  const combinations = this.generateCombinations(inputObject, inputIds);
589
589
  const tasks = combinations.map((combination) => {
590
590
  const { id, title, ...rest } = this.config;
591
- const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` });
591
+ const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` }, this.runConfig);
592
592
  return task;
593
593
  });
594
594
  this.subGraph.addTasks(tasks);
@@ -5781,12 +5781,12 @@ class JsonTask extends GraphAsTask2 {
5781
5781
  return;
5782
5782
  const data = JSON.parse(this.runInputData.json);
5783
5783
  if (data && typeof data === "object" && "tasks" in data && Array.isArray(data.tasks) && "dataflows" in data && Array.isArray(data.dataflows)) {
5784
- this.subGraph = createGraphFromGraphJSON(data);
5784
+ this.subGraph = createGraphFromGraphJSON(data, this.runConfig?.registry);
5785
5785
  super.regenerateGraph();
5786
5786
  return;
5787
5787
  }
5788
5788
  let jsonItems = Array.isArray(data) ? data : [data];
5789
- this.subGraph = createGraphFromDependencyJSON(jsonItems);
5789
+ this.subGraph = createGraphFromDependencyJSON(jsonItems, this.runConfig?.registry);
5790
5790
  for (const item of jsonItems) {
5791
5791
  if (!item.dependencies)
5792
5792
  continue;
@@ -9023,4 +9023,4 @@ export {
9023
9023
  ArrayTask
9024
9024
  };
9025
9025
 
9026
- //# debugId=7A3E87B880771F0564756E2164756E21
9026
+ //# debugId=8E1BA7B890B24D9564756E2164756E21