Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightning-pool

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-pool - npm Package Compare versions

Comparing version 2.0.5 to 2.0.7

9

lib/Pool.js

@@ -44,3 +44,3 @@ /* lightning-pool

if (typeof factory !== 'object')
throw new TypeError('`factory` object required');
throw new TypeError('You must provide `factory` object');

@@ -152,2 +152,5 @@ if (typeof factory.create !== 'function')

}
/* istanbul ignore next */
if (this.state !== PoolState.STARTED)
return callback(new Error('Pool closed'));
if (this.options.maxQueue && this.pending >= this.options.maxQueue)

@@ -244,3 +247,3 @@ callback(new Error('Pool queue is full'));

*
* @param {Boolean} force
* @param {Boolean} [force]
* @param {Function} [callback]

@@ -250,2 +253,3 @@ * @return {Promise|undefined}

close(force, callback) {
/* istanbul ignore next */
if (typeof force === 'function') {

@@ -336,3 +340,2 @@ callback = force;

let tries = 0;
let aborted;
this._creating++;

@@ -339,0 +342,0 @@

{
"name": "lightning-pool",
"description": "Fastest object pool implementation for JavaScript",
"version": "2.0.5",
"version": "2.0.7",
"author": "Panates Ltd.",

@@ -40,3 +40,3 @@ "contributors": [

"nyc": {
"temp-directory": "./coverage/.nyc_output"
"temp-dir": "./coverage/.nyc_output"
},

@@ -43,0 +43,0 @@ "scripts": {

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