expre-parser
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -11,6 +11,9 @@ "use strict"; | ||
__export(require("./compiler")); | ||
function prepareToSqliteParser(exp) { | ||
return 'select ' + exp.toString().replace(/::text/g, ''); | ||
} | ||
function sqlite_parse(expression) { | ||
// sqliteParser works in expressions with "select" string at begining | ||
try { | ||
return sqliteParser('select ' + expression).statement[0].result[0]; | ||
return sqliteParser(prepareToSqliteParser(expression)).statement[0].result[0]; | ||
; | ||
@@ -17,0 +20,0 @@ } |
{ | ||
"name": "expre-parser", | ||
"description": "expression parser", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52831
708