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.4.0 to 1.4.1

4

lib/index.js

@@ -185,2 +185,4 @@ 'use strict';

var maxPending = opts.maxPending || self.maxPending;
if (!self.queues[key]) {

@@ -195,3 +197,3 @@ self.queues[key] = [];

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

@@ -198,0 +200,0 @@ }

{
"name": "async-lock",
"description": "Lock on asynchronous code",
"version": "1.4.0",
"version": "1.4.1",
"author": {

@@ -14,3 +14,3 @@ "name": "Rogier Schouten",

"type": "git",
"url": "https://github.com/rogierschouten/async-lock.git"
"url": "git+https://github.com/rogierschouten/async-lock.git"
},

@@ -39,3 +39,3 @@ "bugs": {

"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-watch": "^1.1.0",

@@ -46,3 +46,3 @@ "grunt-env": "^1.0.1",

"lodash": "^4.17.20",
"mocha": "^7.1.2",
"mocha": "^10.2.0",
"q": "^1.5.1",

@@ -49,0 +49,0 @@ "should": "^13.2.1"

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