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

node-sql-parser

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sql-parser - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

4

lib/parser.js

@@ -33,3 +33,3 @@ "use strict";

sqlify(ast, opt = _util.DEFAULT_OPT) {
process.env.NODE_SQL_PARSER_OPT = JSON.stringify(opt);
(0, _util.setParserOpt)(opt);
return (0, _sql.default)(ast, opt);

@@ -42,3 +42,3 @@ }

} = opt;
process.env.NODE_SQL_PARSER_OPT = JSON.stringify(opt);
(0, _util.setParserOpt)(opt);
const typeCase = database.toLowerCase();

@@ -45,0 +45,0 @@ if (parser[typeCase]) return parser[typeCase](sql);

@@ -18,2 +18,3 @@ "use strict";

exports.hasVal = hasVal;
exports.setParserOpt = setParserOpt;
exports.toUpper = toUpper;

@@ -42,2 +43,3 @@ exports.DEFAULT_OPT = void 0;

exports.DEFAULT_OPT = DEFAULT_OPT;
let parserOpt = DEFAULT_OPT;

@@ -156,10 +158,7 @@ function commonOptionConnector(keyword, action, opt) {

function getParserOpt() {
let opt = DEFAULT_OPT;
return parserOpt;
}
try {
opt = JSON.parse(process.env.NODE_SQL_PARSER_OPT);
} catch (parseError) {// ignore error
}
return opt;
function setParserOpt(opt) {
parserOpt = opt;
}

@@ -166,0 +165,0 @@

{
"name": "node-sql-parser",
"version": "1.6.3",
"version": "1.6.4",
"description": "simple node sql parser",

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

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