@workglow/tasks 0.0.110 → 0.0.113

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 CHANGED
@@ -593,7 +593,7 @@ class ArrayTask extends GraphAsTask {
593
593
  const combinations = this.generateCombinations(inputObject, inputIds);
594
594
  const tasks = combinations.map((combination) => {
595
595
  const { id, title, ...rest } = this.config;
596
- const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` });
596
+ const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` }, this.runConfig);
597
597
  return task;
598
598
  });
599
599
  this.subGraph.addTasks(tasks);
@@ -5786,12 +5786,12 @@ class JsonTask extends GraphAsTask2 {
5786
5786
  return;
5787
5787
  const data = JSON.parse(this.runInputData.json);
5788
5788
  if (data && typeof data === "object" && "tasks" in data && Array.isArray(data.tasks) && "dataflows" in data && Array.isArray(data.dataflows)) {
5789
- this.subGraph = createGraphFromGraphJSON(data);
5789
+ this.subGraph = createGraphFromGraphJSON(data, this.runConfig?.registry);
5790
5790
  super.regenerateGraph();
5791
5791
  return;
5792
5792
  }
5793
5793
  let jsonItems = Array.isArray(data) ? data : [data];
5794
- this.subGraph = createGraphFromDependencyJSON(jsonItems);
5794
+ this.subGraph = createGraphFromDependencyJSON(jsonItems, this.runConfig?.registry);
5795
5795
  for (const item of jsonItems) {
5796
5796
  if (!item.dependencies)
5797
5797
  continue;
@@ -8834,4 +8834,4 @@ export {
8834
8834
  ArrayTask
8835
8835
  };
8836
8836
 
8837
- //# debugId=67A37FA9D5F521AA64756E2164756E21
8837
+ //# debugId=292EEA2EE91046DB64756E2164756E21