expression-eval
Advanced tools
Comparing version 1.3.0 to 1.3.1
import * as jsep from "jsep"; | ||
declare function compile(expression: string | jsep.Expression): any; | ||
declare function compile(expression: string | jsep.Expression): (context: object) => any; | ||
declare function evaluate(node: jsep.Expression, context: object): any; | ||
export { compile, jsep as parse, evaluate as eval }; |
{ | ||
"name": "expression-eval", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "JavaScript expression parsing and evaluation.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -64,3 +64,3 @@ # expression-eval | ||
const ast = expr.parse('foo[bar](baz)()'); | ||
expr.eval(ast2, { | ||
expr.eval(ast, { | ||
foo: String, | ||
@@ -67,0 +67,0 @@ bar: 'constructor', |
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
10517