Huge News!Announcing our $40M Series B led by Abstract Ventures.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 2.3.0 to 2.4.0

12

lib/TaskQueue.js

@@ -54,3 +54,3 @@ /* putil-taskqueue

let resolved;
const handleCallback = (err) => {
const handleCallback = (err, result) => {
/* istanbul ignore next */

@@ -66,3 +66,3 @@ if (resolved) return;

this.emit('task-complete', task);
resolve();
resolve(result);
}

@@ -79,8 +79,8 @@ if (!this._queue.length)

typeof o.catch === 'function') {
o.then(() => handleCallback())
o.then((x) => handleCallback(null, x))
.catch(e => handleCallback(e || 'Rejected'));
} else
handleCallback();
return;
}
}
handleCallback(null, o);
} catch (e) {

@@ -87,0 +87,0 @@ handleCallback(e);

{
"name": "putil-taskqueue",
"description": "Very simple async task queue for Javascript",
"version": "2.3.0",
"version": "2.4.0",
"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