Socket
Socket
Sign inDemoInstall

mysql2

Package Overview
Dependencies
Maintainers
3
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql2 - npm Package Compare versions

Comparing version 3.11.0 to 3.11.1

7

lib/pool.js

@@ -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);

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