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

amysql

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amysql - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

7

index.js

@@ -15,3 +15,3 @@ const mysql = require('mysql');

super();
this.connection = mysql.createConnection(config);
this._config = config;
this.connection.config.queryFormat = (query, values) => {

@@ -102,5 +102,7 @@ query = query.replace(/:insert:/g, () => {

connect(reconnectOnError = 0) {
this.connection = mysql.createConnection(this._config);
return new Promise((resolve, reject) => {
this.connection.connect(async (err) => {
if (err)
if (err) {
this.connection.end();
if (typeof reconnectOnError === "number" && reconnectOnError > 499 && reconnectOnError < 5001) {

@@ -117,2 +119,3 @@ this.emit("reconnect", err);

}
}
return resolve(true);

@@ -119,0 +122,0 @@ });

{
"name": "amysql",
"version": "0.0.8",
"version": "0.0.9",
"description": "Useless wrapper over mysql",

@@ -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