You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

expression-eval

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expression-eval - npm Package Compare versions

Comparing version

to
1.3.1

2

index.d.ts
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',