workers-qb
Advanced tools
Comparing version 1.6.6 to 1.6.7
@@ -527,4 +527,5 @@ "use strict"; | ||
if (typeof conditions === "string") return ` WHERE ${conditions.toString()}`; | ||
if (conditions.length > 0) { | ||
return ` WHERE ${conditions.join(" AND ")}`; | ||
if (conditions.length === 1) return ` WHERE ${conditions[0].toString()}`; | ||
if (conditions.length > 1) { | ||
return ` WHERE (${conditions.join(") AND (")})`; | ||
} | ||
@@ -531,0 +532,0 @@ return ""; |
{ | ||
"name": "workers-qb", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"description": "Zero dependencies Query Builder for Cloudflare Workers", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
74299
1715