You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-distributed-debounce

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-distributed-debounce - npm Package Compare versions

Comparing version

to
1.0.6

2

package.json
{
"name": "node-distributed-debounce",
"version": "1.0.5",
"version": "1.0.6",
"description": "debounce function for distributed system with redis and nodejs.",

@@ -5,0 +5,0 @@ "keywords": ["nodejs", "debounce", "distributed-system", "redis", "distributed"],

@@ -26,3 +26,2 @@ # node-dsitributed-debounce

const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
const redisclient = redis.createClient();

@@ -40,6 +39,7 @@

const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
function main() {
for (let i = 0; i < 10; i++) {
debouncedCall(i);
wait(100);
await wait(100);
}

@@ -46,0 +46,0 @@ }