🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

sqlquerybuilder

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlquerybuilder - npm Package Compare versions

Comparing version

to
0.0.31

9

lib/where.js

@@ -190,8 +190,11 @@ module.exports = function where(self) {

var dropAlias2 = self._selectProps[self._selectAliases.indexOf(pars[0])];
console.log('dropAlias', dropAlias2);
whereString += "(" + (dropAlias2 ? dropAlias2 : (self._sqlObject.fromAlias + "." + pars[0]));
whereString += pars[1].toUpperCase() === "NULL" ? " IS " : " = ";
if(isNaN(pars[1] && pars[1].toUpperCase() !== 'NULL')){
whereString += "'";
whereString += pars[1] + "'" + ")";
} else {
whereString += pars[1] +
")";
console.log('werheString', whereString);
")";
}
continue;

@@ -198,0 +201,0 @@ }

{
"name": "sqlquerybuilder",
"version": "0.0.30",
"version": "0.0.31",
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.",

@@ -5,0 +5,0 @@ "main": "./lib/index",