Comparing version 1.1.0 to 1.2.0
@@ -5,3 +5,3 @@ { | ||
"description": "Creates and returns a new debounced version of the passed function that will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "scripts": [ |
1.2.0 / 2018-08-14 | ||
================== | ||
* Added a .debounce member to debounce (#21) | ||
1.1.0 / 2017-10-30 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -15,4 +15,3 @@ /** | ||
*/ | ||
module.exports = function debounce(func, wait, immediate){ | ||
function debounce(func, wait, immediate){ | ||
var timeout, args, context, timestamp, result; | ||
@@ -68,1 +67,6 @@ if (null == wait) wait = 100; | ||
}; | ||
// Adds compatibility for ES modules | ||
debounce.debounce = debounce; | ||
module.exports = debounce; |
{ | ||
"name": "debounce", | ||
"description": "Creates and returns a new debounced version of the passed function that will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": "git://github.com/component/debounce", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -37,2 +37,8 @@ | ||
Alternately, if using newer syntax: | ||
```js | ||
import { debounce } from "debounce"; | ||
``` | ||
## API | ||
@@ -39,0 +45,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10590
188
70
0
8