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