Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.3.0 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',

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