jeefo-mysql
Advanced tools
Comparing version 0.0.30 to 0.0.31
10
index.js
@@ -139,3 +139,3 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
if (is.string(fields)) fields = [fields]; | ||
return fields.join(", "); | ||
return fields.map(f => mysql.escape(f)).join(", "); | ||
} | ||
@@ -147,5 +147,5 @@ | ||
if (is.object(value) && !(value instanceof Date)) { | ||
value = `'${JSON.stringify(value)}'`; | ||
value = mysql.escape(JSON.stringify(value)); | ||
} else if (is.string(value)) { | ||
value = mysql.escapeId(value); | ||
value = mysql.escape(value); | ||
} | ||
@@ -161,5 +161,5 @@ key = mysql.escapeId(key); | ||
if (is.object(value) && !(value instanceof Date)) { | ||
value = `'${JSON.stringify(value)}'`; | ||
value = mysql.escape(JSON.stringify(value)); | ||
} else if (is.string(value)) { | ||
value = mysql.escapeId(value); | ||
value = mysql.escape(value); | ||
} | ||
@@ -166,0 +166,0 @@ key = mysql.escapeId(key); |
{ | ||
"name": "jeefo-mysql", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Very simple MySQL connection instances for each table. I had annoyed enough for MySQL Deadlocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16225