@cadenza.io/core 3.0.7 → 3.0.8

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
@@ -893,6 +893,12 @@ var GraphNode = class _GraphNode extends SignalEmitter {
893
893
  async workAsync() {
894
894
  try {
895
895
  this.result = await this.result;
896
+ if (typeof this.result === "object" && (this.result.hasOwnProperty("errored") || this.result.hasOwnProperty("failed"))) {
897
+ const result = await this.retryAsync(this.result);
898
+ if (typeof result === "object" && (result.hasOwnProperty("errored") || result.hasOwnProperty("failed"))) {
899
+ this.onError(result.error);
900
+ }
901
+ }
896
902
  } catch (e) {
897
903
  const result = await this.retryAsync(e);
898
904
  if (result === e) {