Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-debounce

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-debounce - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

.github/workflows/nodejs.yml

4

CHANGELOG.md

@@ -8,2 +8,6 @@ # Changelog

## 2020-02-01 [2.0.0]
- [changed] improved type of returned function (thanks @zacnomore)
## 2018-11-13 [1.0.0]

@@ -10,0 +14,0 @@

2

dist/src/index.d.ts

@@ -8,2 +8,2 @@ /**

};
export declare function debounce<F extends Procedure>(func: F, waitMilliseconds?: number, options?: Options): F;
export declare function debounce<F extends Procedure>(func: F, waitMilliseconds?: number, options?: Options): (this: ThisParameterType<F>, ...args: Parameters<F>) => void;

@@ -1,2 +0,2 @@

exports.debounce=function(i,e,o){var t;return void 0===e&&(e=50),void 0===o&&(o={isImmediate:!1}),function(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];var n=this,m=o.isImmediate&&void 0===t;void 0!==t&&clearTimeout(t),t=setTimeout(function(){t=void 0,o.isImmediate||i.apply(n,a)},e),m&&i.apply(n,a)}};
exports.debounce=function(i,e,o){var t;return void 0===e&&(e=50),void 0===o&&(o={isImmediate:!1}),function(){for(var a=[],d=arguments.length;d--;)a[d]=arguments[d];var n=this,m=o.isImmediate&&void 0===t;void 0!==t&&clearTimeout(t),t=setTimeout(function(){t=void 0,o.isImmediate||i.apply(n,a)},e),m&&i.apply(n,a)}};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(e.tsDebounce={})}(this,function(e){e.debounce=function(e,i,o){var t;return void 0===i&&(i=50),void 0===o&&(o={isImmediate:!1}),function(){for(var n=[],d=0;d<arguments.length;d++)n[d]=arguments[d];var f=this,u=o.isImmediate&&void 0===t;void 0!==t&&clearTimeout(t),t=setTimeout(function(){t=void 0,o.isImmediate||e.apply(f,n)},i),u&&e.apply(f,n)}}});
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(e.tsDebounce={})}(this,function(e){e.debounce=function(e,i,o){var t;return void 0===i&&(i=50),void 0===o&&(o={isImmediate:!1}),function(){for(var n=[],d=arguments.length;d--;)n[d]=arguments[d];var f=this,u=o.isImmediate&&void 0===t;void 0!==t&&clearTimeout(t),t=setTimeout(function(){t=void 0,o.isImmediate||e.apply(f,n)},i),u&&e.apply(f,n)}}});
//# sourceMappingURL=index.umd.js.map
{
"name": "ts-debounce",
"version": "1.0.0",
"version": "2.0.0",
"description": "TypeScript implementation of debounce",

@@ -26,8 +26,8 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/jest": "^23.3.9",
"jest": "^23.6.0",
"microbundle": "^0.7.0",
"np": "^3.0.4",
"ts-jest": "^23.10.4",
"typescript": "^3.1.6"
"@types/jest": "^24.0.18",
"jest": "^24.9.0",
"microbundle": "^0.11.0",
"np": "^5.2.1",
"ts-jest": "^24.0.2",
"typescript": "^3.6.3"
},

@@ -34,0 +34,0 @@ "scripts": {

# TypeScript implementation of debounce function
[![Build Status](https://travis-ci.org/chodorowicz/ts-debounce.svg?branch=master)](https://travis-ci.org/chodorowicz/ts-debounce)
![Build Status](https://github.com/chodorowicz/ts-debounce//workflows/node-ci/badge.svg)
[![npm](https://img.shields.io/npm/v/ts-debounce.svg)](https://www.npmjs.com/package/ts-debounce)

@@ -36,7 +36,12 @@ [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/ts-debounce.svg)](https://www.npmjs.com/package/ts-debounce)

## Compability
- version 2 - TypeScript 3.3
- version 1 - TypeScript 2.0
## Contributors
| [<img src="https://avatars1.githubusercontent.com/u/20233319" width="100px;"/><br /><sub><b>Karol Majewski</b></sub>](https://github.com/karol-majewski)<br />[💻](https://github.com/chodorowicz/ts-debounce/commits?author=karol-majewski "Code") | [<img src="https://avatars1.githubusercontent.com/u/2027148" width="100px;"/><br /><sub><b>Fabien Rogeret</b></sub>](https://github.com/Tuizi)<br />[💻](https://github.com/chodorowicz/ts-debounce/commits?author=Tuizi "Code")
| :---: | :---: |
| [<img src="https://avatars1.githubusercontent.com/u/20233319" width="100px;"/><br /><sub><b>Karol Majewski</b></sub>](https://github.com/karol-majewski)<br />[💻](https://github.com/chodorowicz/ts-debounce/commits?author=karol-majewski "Code") | [<img src="https://avatars1.githubusercontent.com/u/2027148" width="100px;"/><br /><sub><b>Fabien Rogeret</b></sub>](https://github.com/Tuizi)<br />[💻](https://github.com/chodorowicz/ts-debounce/commits?author=Tuizi "Code") | [<img src="https://avatars1.githubusercontent.com/u/1315090" width="100px;"/><br /><sub><b>Iman</b></sub>](https://github.com/iheidari)<br />[💻](https://github.com/chodorowicz/ts-debounce/commits?author=iheidari "Code")
| :---: | :---: | :---: |
- Project tries to adhere to [all-contributors specification](https://github.com/kentcdodds/all-contributors)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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