@devicecloud.dev/dcd 3.3.5 → 3.3.6

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.
@@ -325,8 +325,9 @@ class Cloud extends core_1.Command {
325
325
  }
326
326
  }
327
327
  const resultsWithoutEarlierTries = updatedResults.filter((result) => {
328
- const beenRetried = updatedResults.find((r) => r.retry_of === result.id);
329
- return !beenRetried;
328
+ const originalTryId = result.retry_of || result.id;
329
+ const tries = updatedResults.filter((r) => r.retry_of === originalTryId || r.id === originalTryId);
330
+ return result.id === Math.max(...tries.map((t) => t.id));
330
331
  });
331
332
  if (resultsWithoutEarlierTries.some((result) => result.status === 'FAILED')) {
332
333
  reject(new Error('RUN_FAILED'));
@@ -398,5 +398,5 @@
398
398
  ]
399
399
  }
400
400
  },
401
- "version": "3.3.5"
401
+ "version": "3.3.6"
402
402
  }
package/package.json CHANGED
@@ -80,7 +80,7 @@
80
80
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
81
81
  "version": "oclif readme && git add README.md"
82
82
  },
83
- "version": "3.3.5",
83
+ "version": "3.3.6",
84
84
  "bugs": {
85
85
  "url": "https://discord.gg/gm3mJwcNw8"
86
86
  },