Socket
Socket
Sign inDemoInstall

@smithy/util-retry

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/util-retry - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist-cjs/StandardRetryStrategy.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc