@aws-sdk/util-retry
Advanced tools
Comparing version 3.357.0 to 3.362.0
@@ -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": "@aws-sdk/util-retry", | ||
"version": "3.357.0", | ||
"version": "3.362.0", | ||
"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
52733