Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sql-query

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-query - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

17

lib/Where.js

@@ -106,2 +106,19 @@ exports.build = function (Dialect, where) {

break;
case "sql":
var sql = where.w[k].sql.replace("?:column", buildComparisonKey(Dialect, where.t, k));
sql = sql.replace(/\?:(id|value)/g, function (m) {
if (where.w[k].replace.length === 0) {
return '';
}
if (m == "?:id") {
return Dialect.escapeId(where.w[k].replace.shift());
}
// ?:value
return Dialect.escapeVal(where.w[k].replace.shift());
});
query.push(sql);
break;
}

@@ -108,0 +125,0 @@ continue;

2

package.json

@@ -9,3 +9,3 @@ {

],
"version": "0.0.19",
"version": "0.0.20",
"license": "MIT",

@@ -12,0 +12,0 @@ "repository": {

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