Huge News!Announcing our $40M Series B led by Abstract Ventures.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.5 to 0.0.6

26

index.js

@@ -99,13 +99,16 @@ const mysql = require('mysql');

return new Promise((resolve, reject) => {
this.connection.connect((err) => {
if (err)
if (typeof reconnectOnError === "number" && reconnectOnError > 500)
setTimeout(() => {
this.connect(reconnectOnError);
}, reconnectOnError);
else
return reject(["__DB_CONNECT_ERROR__", err]);
return resolve(true);
this.connection.connect((err) => {
if (err)
if (typeof reconnectOnError === "number" && reconnectOnError > 500)
resolve(new Promise((resolve, reject) => {
setTimeout(() => {
this.connect(reconnectOnError).then(resolve).catch(reject);
}, reconnectOnError);
}));
else
return reject(["__DB_CONNECT_ERROR__", err]);
return resolve(true);
});
});
});
}

@@ -130,3 +133,4 @@

async selectAll([table, condition, params], callback) {
return await this.select(["*", table, condition, params], callback);
return await
this.select(["*", table, condition, params], callback);
}

@@ -133,0 +137,0 @@

{
"name": "amysql",
"version": "0.0.5",
"version": "0.0.6",
"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