lightning-pool
Advanced tools
Comparing version 2.0.5 to 2.0.7
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35208
762