🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
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
2.1.0

4

index.js

@@ -34,3 +34,3 @@ const jsep = require('jsep');

'-' : function (a) { return -a; },
'+' : function (a) { return a; },
'+' : function (a) { return +a; },
'~' : function (a) { return ~a; },

@@ -152,3 +152,3 @@ '!' : function (a) { return !a; },

caller,
await evaluateArrayAsync( node.arguments, context ),
await evaluateArrayAsync( node.arguments, context )
);

@@ -155,0 +155,0 @@

{
"name": "expression-eval",
"version": "2.0.0",
"version": "2.1.0",
"description": "JavaScript expression parsing and evaluation.",

@@ -34,4 +34,4 @@ "main": "index.js",

"devDependencies": {
"budo": "^10.0.4"
"budo": "^11.6.3"
}
}

@@ -83,2 +83,3 @@ const expr = require('./');

{expr: '~15', expected: -16 },
{expr: '+[]', expected: 0 },

@@ -85,0 +86,0 @@ // 'this' context