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.1.2 to 3.2.0

15

lib/connection_config.js

@@ -13,2 +13,3 @@ // This file was modified by Oracle on September 21, 2021.

const Charsets = require('./constants/charsets');
const { version } = require('../package.json')
let SSLProfiles = null;

@@ -173,3 +174,9 @@

);
this.connectAttributes = options.connectAttributes;
// Default connection attributes
// https://dev.mysql.com/doc/refman/8.0/en/performance-schema-connection-attribute-tables.html
const defaultConnectAttributes = {
_client_name: 'Node-MySQL-2',
_client_version: version
};
this.connectAttributes = { ...defaultConnectAttributes, ...(options.connectAttributes || {})};
this.maxPreparedStatements = options.maxPreparedStatements || 16000;

@@ -222,3 +229,4 @@ }

'TRANSACTIONS',
'SESSION_TRACK'
'SESSION_TRACK',
'CONNECT_ATTRS'
];

@@ -231,5 +239,2 @@ if (options && options.multipleStatements) {

if (options && options.connectAttributes) {
defaultFlags.push('CONNECT_ATTRS');
}
return defaultFlags;

@@ -236,0 +241,0 @@ }

@@ -350,3 +350,4 @@ // This file was modified by Oracle on June 1, 2021.

passphrase: this.config.ssl.passphrase,
minVersion: this.config.ssl.minVersion
minVersion: this.config.ssl.minVersion,
maxVersion: this.config.ssl.maxVersion
});

@@ -353,0 +354,0 @@ const rejectUnauthorized = this.config.ssl.rejectUnauthorized;

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -232,2 +232,7 @@ // This file was modified by Oracle on November 04, 2021.

/**
* Configure the maximum supported version of SSL, the default is TLSv1.3.
*/
maxVersion?: string;
/**
* You can verify the server name identity presented on the server certificate when connecting to a MySQL server.

@@ -234,0 +239,0 @@ * You should enable this but it is disabled by default right now for backwards compatibility.

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