@smithy/util-retry
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -58,3 +58,3 @@ "use strict"; | ||
shouldRetry(tokenToRenew, errorInfo, maxAttempts) { | ||
const attempts = tokenToRenew.getRetryCount(); | ||
const attempts = tokenToRenew.getRetryCount() + 1; | ||
return (attempts < maxAttempts && | ||
@@ -61,0 +61,0 @@ this.capacity >= this.getCapacityCost(errorInfo.errorType) && |
@@ -54,3 +54,3 @@ import { DEFAULT_MAX_ATTEMPTS, RETRY_MODES } from "./config"; | ||
shouldRetry(tokenToRenew, errorInfo, maxAttempts) { | ||
const attempts = tokenToRenew.getRetryCount(); | ||
const attempts = tokenToRenew.getRetryCount() + 1; | ||
return (attempts < maxAttempts && | ||
@@ -57,0 +57,0 @@ this.capacity >= this.getCapacityCost(errorInfo.errorType) && |
{ | ||
"name": "@smithy/util-retry", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Shared retry utilities to be used in middleware packages.", | ||
@@ -5,0 +5,0 @@ "main": "./dist-cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48308