Comparing version 3.11.0 to 3.11.1
@@ -203,5 +203,6 @@ 'use strict'; | ||
while ( | ||
this._freeConnections.length > this.config.maxIdle && | ||
Date.now() - this._freeConnections.get(0).lastActiveTime > | ||
this.config.idleTimeout | ||
this._freeConnections.length > this.config.maxIdle || | ||
(this._freeConnections.length > 0 && | ||
Date.now() - this._freeConnections.get(0).lastActiveTime > | ||
this.config.idleTimeout) | ||
) { | ||
@@ -208,0 +209,0 @@ this._freeConnections.get(0).destroy(); |
{ | ||
"name": "mysql2", | ||
"version": "3.11.0", | ||
"version": "3.11.1", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -72,3 +72,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/node": "^20.0.0", | ||
"@types/node": "^22.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.1", | ||
@@ -75,0 +75,0 @@ "@typescript-eslint/parser": "^5.42.1", |
@@ -454,6 +454,6 @@ 'use strict'; | ||
getConnection() { | ||
getConnection(pattern, selector) { | ||
const corePoolCluster = this.poolCluster; | ||
return new this.Promise((resolve, reject) => { | ||
corePoolCluster.getConnection((err, coreConnection) => { | ||
corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => { | ||
if (err) { | ||
@@ -460,0 +460,0 @@ reject(err); |
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
502934
13741