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.6 to 1.2.7

4

History.md

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

1.2.7
==================
* Fix #37 process not set when acquiring lock (Thank you @Philipp91)
1.2.6

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

6

lib/index.js

@@ -18,5 +18,5 @@ 'use strict';

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

@@ -57,3 +57,3 @@ this.maxPending = AsyncLock.DEFAULT_MAX_PENDING;

// will return a promise
deferred = new this.Promise(function(resolve, reject) {
deferred = new this.Promise(function(resolve, reject) {
deferredResolve = resolve;

@@ -60,0 +60,0 @@ deferredReject = reject;

{
"name": "async-lock",
"description": "Lock on asynchronous code",
"version": "1.2.6",
"version": "1.2.7",
"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