sequelize-pool
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -201,3 +201,3 @@ "use strict"; | ||
* | ||
* - If there are available clients waiting, shift the first one out (LIFO), | ||
* - If there are available clients waiting, pop the first one out (LIFO), | ||
* and call its callback. | ||
@@ -225,3 +225,5 @@ * - If there are no waiting clients, try to create one if it won't exceed | ||
this._log("dispense() - reusing obj", "verbose"); | ||
resourceWithTimeout = this._availableObjects[0]; | ||
resourceWithTimeout = this._availableObjects[ | ||
this._availableObjects.length - 1 | ||
]; | ||
if (!this._factory.validate(resourceWithTimeout.resource)) { | ||
@@ -232,3 +234,3 @@ this.destroy(resourceWithTimeout.resource); | ||
this._availableObjects.shift(); | ||
this._availableObjects.pop(); | ||
this._inUseObjects.push(resourceWithTimeout.resource); | ||
@@ -235,0 +237,0 @@ |
{ | ||
"name": "sequelize-pool", | ||
"description": "Resource pooling for Node.JS", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"author": "Sushant <sushantdhiman@outlook.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
21250
458