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

mysql-promise

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql-promise - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

17

index.js

@@ -51,2 +51,19 @@ 'use strict';

/**
* End DB pool connections
* @return {Promise}
*/
DB.prototype.end = function () {
var defer = Promise.defer();
this.pool.end(function (err) {
if (err) {
return defer.reject(err);
}
defer.resolve();
});
return defer.promise;
};
module.exports = function (name) {

@@ -53,0 +70,0 @@ name = name || '_default_';

2

package.json
{
"name": "mysql-promise",
"version": "1.3.1",
"version": "1.4.0",
"description": "Small wrapper for mysql that use promises.",

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

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