New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dumb-limiter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dumb-limiter - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "dumb-limiter",
"version": "0.0.1",
"version": "0.0.2",
"description": "A very simple rate limiter.",

@@ -5,0 +5,0 @@ "main": "src/limiter.js",

@@ -9,5 +9,5 @@ module.exports = interval => {

const unqueue = () => {
const resolve = queue.shift()
if (resolve) {
resolve()
const callback = queue.shift()
if (callback) {
callback()
}

@@ -18,3 +18,5 @@ }

return () => new Promise(resolve => queue.push(resolve))
return callback => {
queue.push(callback)
}
}
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