New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapiest-mysql

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapiest-mysql - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

2

lib/mysqlDaoQueryHelper.js

@@ -196,2 +196,4 @@ 'use strict';

sqlObject = sqlObject.where(`${columnName} IS NULL`);
} else if (cleanValue === 'IS NULL' || cleanValue === 'IS NOT NULL') {
sqlObject = sqlObject.where(`${columnName} ${cleanValue}`);
} else {

@@ -198,0 +200,0 @@ sqlObject = sqlObject.where(`${columnName} = ${cleanValue}`);

2

package.json
{
"name": "hapiest-mysql",
"version": "0.0.20",
"version": "0.0.21",
"description": "A wrapper around mysql that provides a very descriptive way of running queries.",

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

@@ -372,4 +372,15 @@ 'use strict';

it('Should generate good WHERE clause when input contains special functions', function() {
const sqlObj = Squel.select().from('users');
const someObj = {firstName: 'John'};
mysqlDaoQueryHelper._appendWhereClause(sqlObj, {dateCreated: 'CURRENT_TIMESTAMP', dateUpdated: 'NOW()', email: 'IS NULL', firstName: 'IS NOT NULL'});
const sqlString = sqlObj.toString();
sqlString.should.eql("SELECT * FROM users WHERE (date_created = CURRENT_TIMESTAMP) AND (date_updated = NOW()) AND (email IS NULL) AND (first_name IS NOT NULL)");
});
});
});
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