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.2.5 to 1.2.6

4

History.md

@@ -0,1 +1,5 @@

1.2.6
==================
* Fix `maxPending = Infinity` no longer allowed (thank you @coderaiser)
1.2.5

@@ -2,0 +6,0 @@ ==================

@@ -19,3 +19,7 @@ 'use strict';

this.timeout = opts.timeout || AsyncLock.DEFAULT_TIMEOUT;
this.maxPending = Number.isInteger(opts.maxPending) && opts.maxPending >= 0 ? opts.maxPending : AsyncLock.DEFAULT_MAX_PENDING;
if (opts.maxPending === Infinity || (Number.isInteger(opts.maxPending) && opts.maxPending >= 0)) {
this.maxPending = opts.maxPending;
} else {
this.maxPending = AsyncLock.DEFAULT_MAX_PENDING;
}
};

@@ -22,0 +26,0 @@

2

package.json
{
"name": "async-lock",
"description": "Lock on asynchronous code",
"version": "1.2.5",
"version": "1.2.6",
"author": {

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

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