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.9 to 0.0.10

15

index.js

@@ -16,2 +16,11 @@ const mysql = require('mysql');

this._config = config;
this.SELECTALL = this.selectAll;
this.SELECT = this.select;
this.INSERT = this.insert;
this.UPDATE = this.update;
}
_createConnection() {
this.connection = mysql.createConnection(this._config);
this.connection.config.queryFormat = (query, values) => {

@@ -77,6 +86,2 @@ query = query.replace(/:insert:/g, () => {

});
this.SELECTALL = this.selectAll;
this.SELECT = this.select;
this.INSERT = this.insert;
this.UPDATE = this.update;
}

@@ -103,3 +108,3 @@

connect(reconnectOnError = 0) {
this.connection = mysql.createConnection(this._config);
this._createConnection();
return new Promise((resolve, reject) => {

@@ -106,0 +111,0 @@ this.connection.connect(async (err) => {

{
"name": "amysql",
"version": "0.0.9",
"version": "0.0.10",
"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