New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mariadb

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mariadb - npm Package Compare versions

Comparing version 2.5.4 to 2.5.5

7

CHANGELOG.md
# Change Log
## [2.5.5](https://github.com/mariadb-corporation/mariadb-connector-nodejs/tree/2.5.5) (19 Oct 2021)
[Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-nodejs/compare/2.5.4...2.5.5)
* [CONJS-170] Pool.query(undefined) never release connection
* [CONJS-173] not permitting providing null as a value without an array
* [CONJS-175] Missing leakDetectionTimeout option in Typescript description
## [2.5.4](https://github.com/mariadb-corporation/mariadb-connector-nodejs/tree/2.5.4) (08 Jun 2021)

@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-nodejs/compare/2.5.3...2.5.4)

2

lib/cmd/query.js

@@ -25,3 +25,3 @@ 'use strict';

start(out, opts, info) {
if (!this.initialValues) {
if (this.initialValues === undefined) {
//shortcut if no parameters

@@ -28,0 +28,0 @@ out.startPacket(this);

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

module.exports.ER_MINIMUM_NODE_VERSION_REQUIRED = 45045;
module.exports.ER_POOL_UNDEFINED_SQL = 45049;

@@ -114,0 +115,0 @@ const keys = Object.keys(module.exports);

@@ -210,2 +210,18 @@ 'use strict';

const addRequest = function (pool, sql, values, isBatch) {
if (isBatch != undefined && !sql) {
// request for query/batch without sql
return Promise.reject(
Errors.createError(
'sql parameter is mandatory',
null,
false,
null,
'HY000',
Errors.ER_POOL_UNDEFINED_SQL,
undefined,
false
)
);
}
if (closed) {

@@ -212,0 +228,0 @@ return Promise.reject(

{
"name": "mariadb",
"version": "2.5.4",
"version": "2.5.5",
"description": "fast mariadb/mysql connector.",

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

@@ -148,3 +148,3 @@ <p align="center">

[travis-image]:https://travis-ci.com/mariadb-corporation/mariadb-connector-nodejs.svg?branch=master
[travis-url]:https://travis-ci.com/mariadb-corporation/mariadb-connector-nodejs
[travis-url]:https://app.travis-ci.com/github/mariadb-corporation/mariadb-connector-nodejs
[npm-image]:https://img.shields.io/npm/v/mariadb.svg

@@ -151,0 +151,0 @@ [npm-url]:http://npmjs.org/package/mariadb

@@ -380,2 +380,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

noControlAfterUse?: boolean;
/**
* Permit to indicate a timeout to log connection borrowed from pool.
* When a connection is borrowed from pool and this timeout is reached,
* a message will be logged to console indicating a possible connection leak.
* Another message will tell if the possible logged leak has been released.
* A value of 0 (default) meaning Leak detection is disable
*/
leakDetectionTimeout?: number;
}

@@ -382,0 +391,0 @@

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