Socket
Socket
Sign inDemoInstall

mysql2

Package Overview
Dependencies
Maintainers
3
Versions
180
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.1.0 to 3.1.1

1

lib/auth_plugins/caching_sha2_password.js

@@ -89,3 +89,2 @@ 'use strict';

case STATE_WAIT_SERVER_KEY:
console.log('Server pub key:', data);
if (pluginOptions.onServerPublicKey) {

@@ -92,0 +91,0 @@ pluginOptions.onServerPublicKey(data);

27

lib/connection.js

@@ -436,15 +436,2 @@ // This file was modified by Oracle on June 1, 2021.

}
if (packet) {
if (this.sequenceId !== packet.sequenceId) {
const err = new Error(
`Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}`
);
err.expected = this.sequenceId;
err.received = packet.sequenceId;
this.emit('warn', err); // REVIEW
// eslint-disable-next-line no-console
console.error(err.message);
}
this._bumpSequenceId(packet.numPackets);
}
if (this.config.debug) {

@@ -488,2 +475,16 @@ if (packet) {

}
if (packet) {
// Note: when server closes connection due to inactivity, Err packet ER_CLIENT_INTERACTION_TIMEOUT from MySQL 8.0.24, sequenceId will be 0
if (this.sequenceId !== packet.sequenceId) {
const err = new Error(
`Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}`
);
err.expected = this.sequenceId;
err.received = packet.sequenceId;
this.emit('warn', err); // REVIEW
// eslint-disable-next-line no-console
console.error(err.message);
}
this._bumpSequenceId(packet.numPackets);
}
const done = this._command.execute(packet, this);

@@ -490,0 +491,0 @@ if (done) {

{
"name": "mysql2",
"version": "3.1.0",
"version": "3.1.1",
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",

@@ -83,3 +83,2 @@ "main": "index.js",

"husky": "^8.0.2",
"is-async-supported": "^1.2.0",
"lint-staged": "^13.0.3",

@@ -86,0 +85,0 @@ "mocha": "^10.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc