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

methodqueue

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

methodqueue - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

13

index.js

@@ -40,3 +40,16 @@ class Queue {

}
/**
* Remove methods from queue.
* @param {Number[]|Number} index
*/
remove(...index) {
if (typeof index == "array") {
index.forEach(i => {
this._queuedMethods.splice(i, 1)
})
} else {
this._queuedMethods.splice(index[0], 1)
}
}
}
module.exports = Queue

2

package.json
{
"name": "methodqueue",
"version": "0.1.2",
"version": "0.2.0",
"description": "A simple queueing system for methods.",

@@ -5,0 +5,0 @@ "main": "index.js",

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