Comparing version 3.1.2 to 3.1.3
@@ -50,3 +50,3 @@ "use strict"; | ||
const next = Math.pow(options.exponent, t) * Math.tanh(Math.sqrt(pFactor * t)); | ||
const formulaIntrinsicValue = Math.max(0, next - prev); | ||
const formulaIntrinsicValue = isFinite(next) ? Math.max(0, next - prev) : Infinity; | ||
return [ | ||
@@ -53,0 +53,0 @@ Math.min(formulaIntrinsicValue * rpScalingFactor * options.initialDelay, options.maxDelay), |
@@ -44,3 +44,3 @@ /** | ||
const next = Math.pow(options.exponent, t) * Math.tanh(Math.sqrt(pFactor * t)); | ||
const formulaIntrinsicValue = Math.max(0, next - prev); | ||
const formulaIntrinsicValue = isFinite(next) ? Math.max(0, next - prev) : Infinity; | ||
return [ | ||
@@ -47,0 +47,0 @@ Math.min(formulaIntrinsicValue * rpScalingFactor * options.initialDelay, options.maxDelay), |
{ | ||
"name": "cockatiel", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
408537