@workglow/task-graph 0.0.56 → 0.0.57

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/bun.js CHANGED
@@ -780,7 +780,7 @@ class Task {
780
780
  let json = this.stripSymbols({
781
781
  id: this.config.id,
782
782
  type: this.type,
783
- input: this.defaults,
783
+ defaults: this.defaults,
784
784
  ...Object.keys(provenance).length ? { provenance } : {},
785
785
  ...extras && Object.keys(extras).length ? { extras } : {}
786
786
  });
@@ -2627,8 +2627,8 @@ var createSingleTaskFromJSON = (item) => {
2627
2627
  throw new TaskJSONError("Task id required");
2628
2628
  if (!item.type)
2629
2629
  throw new TaskJSONError("Task type required");
2630
- if (item.input && (Array.isArray(item.input) || Array.isArray(item.provenance)))
2631
- throw new TaskJSONError("Task input must be an object");
2630
+ if (item.defaults && (Array.isArray(item.defaults) || Array.isArray(item.provenance)))
2631
+ throw new TaskJSONError("Task defaults must be an object");
2632
2632
  if (item.provenance && (Array.isArray(item.provenance) || typeof item.provenance !== "object"))
2633
2633
  throw new TaskJSONError("Task provenance must be an object");
2634
2634
  const taskClass = TaskRegistry.all.get(item.type);
@@ -2640,7 +2640,7 @@ var createSingleTaskFromJSON = (item) => {
2640
2640
  provenance: item.provenance ?? {},
2641
2641
  extras: item.extras
2642
2642
  };
2643
- const task = new taskClass(item.input ?? {}, taskConfig);
2643
+ const task = new taskClass(item.defaults ?? {}, taskConfig);
2644
2644
  return task;
2645
2645
  };
2646
2646
  var createTaskFromDependencyJSON = (item) => {
@@ -2888,4 +2888,4 @@ export {
2888
2888
  ArrayTask
2889
2889
  };
2890
2890
 
2891
- //# debugId=C28425FA5364B74264756E2164756E21
2891
+ //# debugId=D3EC2E99FF734C2C64756E2164756E21