Socket
Socket
Sign inDemoInstall

debounce

Package Overview
Dependencies
Maintainers
27
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debounce - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

component.json

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

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