@cadenza.io/core 3.0.7 → 3.0.9

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.js CHANGED
@@ -930,6 +930,12 @@ var GraphNode = class _GraphNode extends SignalEmitter {
930
930
  async workAsync() {
931
931
  try {
932
932
  this.result = await this.result;
933
+ if (typeof this.result === "object" && (this.result.hasOwnProperty("errored") || this.result.hasOwnProperty("failed"))) {
934
+ const result = await this.retryAsync(this.result.__error);
935
+ if (typeof result === "object" && (result.hasOwnProperty("errored") || result.hasOwnProperty("failed"))) {
936
+ this.onError(result.__error);
937
+ }
938
+ }
933
939
  } catch (e) {
934
940
  const result = await this.retryAsync(e);
935
941
  if (result === e) {