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

putil-taskqueue

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

putil-taskqueue - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

14

lib/taskqueue.js

@@ -43,13 +43,10 @@ /* putil-taskqueue

if (self._queue.length) {
const nextTask = () => {
self._taskRunning = false;
self.next();
};
const fn = self.shift();
if (!self._queue.length)
self._taskRunning = false;
else {
const fn = self._queue.shift();
self._taskRunning = true;
setImmediate(() => {
try {
fn(nextTask);
fn(() => self.next());
} catch (e) {

@@ -62,3 +59,2 @@ self._taskRunning = false;

});
}

@@ -65,0 +61,0 @@ }

{
"name": "putil-taskqueue",
"description": "Very simple async task queue for ES6",
"version": "1.0.1",
"version": "1.0.2",
"author": "Panates Ltd.",

@@ -6,0 +6,0 @@ "contributors": [

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