Socket
Socket
Sign inDemoInstall

sequelize-pool

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-pool - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

8

lib/Pool.js

@@ -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": [

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