Comparing version 2.0.0 to 2.1.0
function throttle(function_, wait) { | ||
if (typeof function_ !== 'function') { | ||
throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof function_}\`.`); | ||
} | ||
// TODO: Add `wait` validation too in the next major version. | ||
let timeoutId; | ||
@@ -3,0 +9,0 @@ let lastCallTime = 0; |
{ | ||
"name": "throttleit", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Throttle a function to limit its execution rate", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5133
48
0