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.3 to 0.0.4

20

index.js

@@ -127,4 +127,4 @@ const mysql = require('mysql');

async insert([table, values, onDuplicate = false], callback) {
return await _try(async () => {
insert([table, values, onDuplicate = false], callback) {
return _try(async () => {
if (typeof values != "object" || Array.isArray(values))

@@ -151,4 +151,4 @@ throw new DBError(`Params must be an object`);

async select([fields, table, condition = false, params = false], callback = false) {
return await _try(async () => {
select([fields, table, condition = false, params = false], callback = false) {
return _try(async () => {
let query = "SELECT ";

@@ -171,4 +171,4 @@ if (typeof fields == "object") {

async update([table, setters, condition = false, params = false], callback = false) {
return await _try(async () => {
update([table, setters, condition = false, params = false], callback = false) {
return _try(async () => {
let query = "UPDATE ";

@@ -189,4 +189,4 @@

async _nudeQuery(query, callback) {
return await _try(async () => {
_nudeQuery(query, callback) {
return _try(() => {
return new Promise((resolve, reject) => {

@@ -207,2 +207,6 @@ this.connection.query(query, async (err, result, fields) => {

}
end() {
this.connection.end();
}
}

@@ -209,0 +213,0 @@

2

package.json
{
"name": "amysql",
"version": "0.0.3",
"version": "0.0.4",
"description": "Useless wrapper over mysql",

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

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