Socket
Socket
Sign inDemoInstall

async-lock

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-lock - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

History.md
1.3.0
==================
* Add maxOccupationTime option (Thank you @abozaralizadeh)
* Add maxOccupationTime option (Thank you @abozaralizadeh and @ThePiz)

@@ -5,0 +5,0 @@ 1.2.8

@@ -170,3 +170,3 @@ 'use strict';

else if (self.queues[key].length >= self.maxPending) {
done(false, new Error('Too much pending tasks'));
done(false, new Error('Too many pending tasks in queue ' + key));
}

@@ -187,3 +187,3 @@ else {

timer = null;
done(false, new Error('async-lock timed out'));
done(false, new Error('async-lock timed out in queue ' + key));
}, timeout);

@@ -197,3 +197,3 @@ }

if (!!self.queues[key]) {
done(false, new Error('Maximum occupation time is exceeded'));
done(false, new Error('Maximum occupation time is exceeded in queue ' + key));
}

@@ -200,0 +200,0 @@ }, maxOccupationTime);

{
"name": "async-lock",
"description": "Lock on asynchronous code",
"version": "1.3.0",
"version": "1.3.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Rogier Schouten",

Sorry, the diff of this file is not supported yet

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