Socket
Socket
Sign inDemoInstall

mysql-simple-query

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.16 to 1.0.17

3

lib/util/dbQuery.js

@@ -62,3 +62,4 @@ const select = select => {

const value = whereObject[key];
whereStatement.push(`${key} IN (${value.join(',')})`);
const inString = `"${value.join('","')}"`;
whereStatement.push(`${key} IN (${inString})`);
}

@@ -65,0 +66,0 @@

{
"name": "mysql-simple-query",
"version": "1.0.16",
"version": "1.0.17",
"description": "Simple query wrapper for mysql-promise to make querying, inserting, updating, and deleting easier for developers.",

@@ -5,0 +5,0 @@ "main": "mysqlSimpleQuery.js",

@@ -67,3 +67,4 @@ const select = (select) => {

const value = whereObject[key];
whereStatement.push(`${key} IN (${value.join(',')})`);
const inString = `"${value.join('","')}"`;
whereStatement.push(`${key} IN (${inString})`);
}

@@ -70,0 +71,0 @@

@@ -181,4 +181,4 @@ const expect = require('chai').expect;

expect(testResults).to.equal('SELECT * FROM table WHERE key="%value%" AND column IN (1,2);');
expect(testResults).to.equal('SELECT * FROM table WHERE key="%value%" AND column IN ("1","2");');
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc