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.2 to 0.0.3

.idea/misc.xml

22

index.js

@@ -62,6 +62,10 @@ const mysql = require('mysql');

let timeout = () => {
setTimeout(() => {
this.connect()
.then(() => this.emit("connect"))
.catch((err) => this.emit("error", "Lol"), timeout());
setTimeout(async () => {
try {
await this.connect();
this.emit("connect");
} catch (err) {
this.emit("error", err);
timeout();
}
}, 1000);

@@ -94,4 +98,4 @@ };

async connect() {
return await new Promise((resolve, reject) => {
connect() {
return new Promise((resolve, reject) => {
this.connection.connect((err) => {

@@ -105,6 +109,6 @@ if (err)

async query(str, params, callback = false) {
if (typeof params == "function")
query(str, params, callback = false) {
if (typeof params === "function")
callback = params, params = false;
return await _try(async () => {
return _try(async () => {
return await new Promise((resolve, reject) => {

@@ -111,0 +115,0 @@ this.connection.query(str, params, async (err, result, fields) => {

{
"name": "amysql",
"version": "0.0.2",
"version": "0.0.3",
"description": "Useless wrapper over mysql",

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

@@ -0,0 +0,0 @@ # node-amysql

Sorry, the diff of this file is not supported yet

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