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

flora-sql-parser

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flora-sql-parser - npm Package Compare versions

Comparing version 0.7.8 to 0.7.9

9

lib/sql.js

@@ -77,3 +77,3 @@ 'use strict';

if (operator === '!=') operator = 'NOT IN';
if (operator === 'BETWEEN') rstr = rstr[0] + ' AND ' + rstr[1];
if (operator === 'BETWEEN' || operator === 'NOT BETWEEN') rstr = rstr[0] + ' AND ' + rstr[1];
else rstr = '(' + rstr.join(', ') + ')';

@@ -257,5 +257,6 @@ }

select: (expr) => {
let str = selectToSQL(expr);
if (expr.parentheses) str = '(' + str + ')';
return str;
const str = typeof expr._next !== 'object'
? selectToSQL(expr)
: unionToSQL(expr);
return !expr.parentheses ? str : `(${str})`;
},

@@ -262,0 +263,0 @@ unary_expr: unaryToSQL

{
"name": "flora-sql-parser",
"version": "0.7.8",
"version": "0.7.9",
"description": "Parse SQL (select) statements into abstract syntax tree (AST) and convert ASTs back to SQL.",
"main": "index.js",
"scripts": {
"build": "./node_modules/.bin/pegjs -o build/pegjs-parser.js sql.pegjs",
"build": "./node_modules/.bin/grunt create-parser",
"test": "./node_modules/.bin/grunt test",
"lint": "grunt lint"
"lint": "./node_modules/.bin/grunt lint"
},

@@ -11,0 +11,0 @@ "keywords": [

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