Socket
Socket
Sign inDemoInstall

mysql-pool

Package Overview
Dependencies
0
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

9

lib/mysql-pool/pool.js

@@ -114,2 +114,5 @@ "use strict";

var args = Array.prototype.slice.call(params.args);
while(typeof args[args.length-1] == "undefined") {
args.pop();
}
var cb = args.pop();

@@ -119,4 +122,4 @@

return function(err) {
if(params.cb) {
cb.apply(client, arguments);
if(cb) {
cb.apply(client, Array.prototype.slice.call(arguments));
} else if(err) {

@@ -130,3 +133,3 @@ pool.emit("error", err);

var client = this._connectionPool[i];
params.method.apply(client, params.args.concat(mkCallback(client)));
params.method.apply(client, args.concat(mkCallback(client)));
}

@@ -133,0 +136,0 @@

{
"name": "mysql-pool",
"description": "MySQL connection pool for node.js on top of node-mysql.",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/Kijewski/node-mysql-pool",

@@ -6,0 +6,0 @@ "repository": {

@@ -162,3 +162,3 @@ <h1 id="Readme">node-mysql-pool</h1>

format(sql, params)
function(val)
escape(val)

@@ -170,3 +170,3 @@ Will behave exactly like the original methods. They do not belong to a single

Emitted if end only if an error occurred and no callback function was supplied.
Emitted if and only if an error occurred and no callback function was supplied.
You should always supply a callback function!

@@ -173,0 +173,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc