@cadenza.io/core 3.0.8 → 3.0.10

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/index.mjs CHANGED
@@ -894,9 +894,9 @@ var GraphNode = class _GraphNode extends SignalEmitter {
894
894
  try {
895
895
  this.result = await this.result;
896
896
  if (typeof this.result === "object" && (this.result.hasOwnProperty("errored") || this.result.hasOwnProperty("failed"))) {
897
- const result = await this.retryAsync(this.result);
897
+ const result = await this.retryAsync(this.result.__error);
898
898
  if (typeof result === "object" && (result.hasOwnProperty("errored") || result.hasOwnProperty("failed"))) {
899
- this.onError(result.error);
899
+ this.onError(result.__error);
900
900
  }
901
901
  }
902
902
  } catch (e) {
@@ -2165,7 +2165,7 @@ var GraphRegistry = class _GraphRegistry {
2165
2165
  return { ...context, __task: task };
2166
2166
  }
2167
2167
  }
2168
- return context;
2168
+ return false;
2169
2169
  },
2170
2170
  "Gets task by name (first match)."
2171
2171
  );
@@ -2226,7 +2226,7 @@ var GraphRegistry = class _GraphRegistry {
2226
2226
  return { ...context, __routine: routine };
2227
2227
  }
2228
2228
  }
2229
- return context;
2229
+ return false;
2230
2230
  },
2231
2231
  "Gets routine by name."
2232
2232
  );