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

debounce-queue

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debounce-queue - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

10

index.js
const defaultEnqueue = require('./enqueue');
module.exports = function debounceQueue(callback, delay, opts) {
module.exports = function debounceQueue(callback, opts = {}) {
if (typeof callback !== 'function') {

@@ -8,9 +8,7 @@ throw new Error('Required: the function to debounce');

if (typeof delay !== 'number' && !opts) {
opts = delay
delay = opts.delay
if (typeof opts === 'number') {
opts = { delay: opts };
}
opts = opts || {};
delay = delay || 100;
const delay = opts.delay = opts.delay || 100;

@@ -17,0 +15,0 @@ let queue = [];

2

package.json
{
"name": "debounce-queue",
"version": "0.2.1",
"version": "0.2.2",
"description": "Like lodash.debounce but you get an array of all previous (unique) events",
"repository": "laggingreflex/debounce-queue"
}
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