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.10.3 to 3.11.0

1

lib/constants/types.js

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

module.exports.BIT = 0x10; // aka BIT, 1-8 byte
module.exports.VECTOR = 0xf2;
module.exports.JSON = 0xf5;

@@ -56,0 +57,0 @@ module.exports.NEWDECIMAL = 0xf6; // aka DECIMAL

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

parseVector() {
const bufLen = this.readLengthCodedNumber();
const vectorEnd = this.offset + bufLen;
const result = [];
while (this.offset < vectorEnd && this.offset < this.end) {
result.push(this.readFloat());
}
return result;
}
parseDate(timezone) {

@@ -613,0 +623,0 @@ const strLen = this.readLengthCodedNumber();

@@ -58,2 +58,4 @@ 'use strict';

return 'packet.parseGeometryValue();';
case Types.VECTOR:
return 'packet.parseVector()';
case Types.JSON:

@@ -60,0 +62,0 @@ // Since for JSON columns mysql always returns charset 63 (BINARY),

@@ -62,2 +62,4 @@ 'use strict';

return 'packet.parseGeometryValue()';
case Types.VECTOR:
return 'packet.parseVector()';
case Types.JSON:

@@ -64,0 +66,0 @@ // Since for JSON columns mysql always returns charset 63 (BINARY),

2

package.json
{
"name": "mysql2",
"version": "3.10.3",
"version": "3.11.0",
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",

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

@@ -19,2 +19,3 @@ interface Types {

0x10: string;
0xf2: string;
0xf5: string;

@@ -49,2 +50,3 @@ 0xf6: string;

BIT: number;
VECTOR: number;
JSON: number;

@@ -51,0 +53,0 @@ NEWDECIMAL: number;

@@ -28,2 +28,3 @@ export type Geometry = {

| 'BIT'
| 'VECTOR'
| 'JSON'

@@ -30,0 +31,0 @@ | 'NEWDECIMAL'

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