📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

mysql2

Package Overview
Dependencies
Maintainers
3
Versions
204
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

to
3.14.1-canary.0617813d

1

lib/constants/encoding_charset.js

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

gb18030: 248,
utf8mb3: 192,
};

@@ -67,3 +67,9 @@ 'use strict';

const charsetNumber = EncodingToCharset[val];
connection.config.charsetNumber = charsetNumber;
// TODO - better api for driver users to handle unknown encodings?
// maybe custom coverter in the config?
// For now just ignore character_set_client command if there is
// no known mapping from reported encoding to a charset code
if (typeof charsetNumber !== 'undefined') {
connection.config.charsetNumber = charsetNumber;
}
}

@@ -70,0 +76,0 @@ } else if (type === sessionInfoTypes.SCHEMA) {

2

package.json
{
"name": "mysql2",
"version": "3.14.0",
"version": "3.14.1-canary.0617813d",
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",

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