jeefo-mysql
Advanced tools
Comparing version 0.0.49 to 0.0.50
@@ -203,3 +203,3 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
const query = `UPDATE ${tbl} SET ${set}${where}${order}${limit};`; | ||
await this.exec(query, [...set.values, ...where.values]); | ||
const res = await this.exec(query, [...set.values, ...where.values]); | ||
@@ -213,2 +213,4 @@ if (return_back) { | ||
} | ||
return res; | ||
} | ||
@@ -220,3 +222,3 @@ | ||
async delete(where, options = {}) { | ||
delete(where, options = {}) { | ||
where = this.prepare_where(where); | ||
@@ -229,3 +231,3 @@ | ||
const query = `DELETE FROM ${tbl}${where}${order}${limit};`; | ||
await this.exec(query, where.values); | ||
return this.exec(query, where.values); | ||
} | ||
@@ -232,0 +234,0 @@ |
{ | ||
"name": "jeefo-mysql", | ||
"version": "0.0.49", | ||
"version": "0.0.50", | ||
"description": "Very simple MySQL connection instances for each table. I had annoyed enough for MySQL Deadlocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
11465
4
257