cdk-real-drift 0.7.2 → 0.7.3

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/cli.js CHANGED
@@ -14586,8 +14586,8 @@ async function revertStack(p) {
14586
14586
  const failedUpdateIds = /* @__PURE__ */ new Set();
14587
14587
  const applied = [];
14588
14588
  const clock = waitNow ?? Date.now;
14589
- const buildRetryOpts = (displayId) => ({
14590
- ...waitMs !== void 0 && { deadlineMs: clock() + waitMs },
14589
+ const buildRetryOpts = (displayId, deadlineMsOverride) => ({
14590
+ ...waitMs !== void 0 && { deadlineMs: deadlineMsOverride ?? clock() + waitMs },
14591
14591
  ...waitNow && { now: waitNow },
14592
14592
  ...waitSleep && { sleep: waitSleep },
14593
14593
  onRetry: ({ attempt, delayMs, hint }) => {
@@ -14649,7 +14649,8 @@ async function revertStack(p) {
14649
14649
  if (!r.ok) worst = Math.max(worst, 2);
14650
14650
  if (!r.ok) failedUpdateIds.add(item.logicalId);
14651
14651
  }
14652
- const deleteOutcomes = await applyRevertDeletes(deleteItems, (item) => applyRevertDelete(cc, item, item.physicalId, buildRetryOpts(item.displayId)));
14652
+ const deleteDeadlineMs = waitMs !== void 0 ? clock() + waitMs : void 0;
14653
+ const deleteOutcomes = await applyRevertDeletes(deleteItems, (item) => applyRevertDelete(cc, item, item.physicalId, buildRetryOpts(item.displayId, deleteDeadlineMs)));
14653
14654
  for (const { item, result: r } of deleteOutcomes) {
14654
14655
  if (!r.ok) failedDeleteIds.add(item.logicalId);
14655
14656
  applied.push({