@applitools/functional-commons
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "@applitools/functional-commons", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/functional-commons.js", |
@@ -7,3 +7,3 @@ 'use strict' | ||
func, | ||
{maxCallsPerMinute = 120, now = Date.now, timeSpan = ONE_MINUTE_IN_MILLIS}, | ||
{maxCallsPerTimeSpan = 120, now = Date.now, timeSpan = ONE_MINUTE_IN_MILLIS}, | ||
) { | ||
@@ -21,5 +21,5 @@ let start = now() | ||
++countLogsInMinute | ||
if (countLogsInMinute > maxCallsPerMinute) { | ||
if (countLogsInMinute > maxCallsPerTimeSpan) { | ||
if (!loggedWarning) { | ||
func('throttling debug messages because max of %d exceeded', maxCallsPerMinute) | ||
func('throttling debug messages because max of %d exceeded', maxCallsPerTimeSpan) | ||
loggedWarning = true | ||
@@ -26,0 +26,0 @@ } |
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
5716