Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

static-eval

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-eval - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

5

index.js

@@ -0,1 +1,3 @@

var unparse = require('escodegen').generate;
module.exports = function (ast, vars) {

@@ -100,2 +102,5 @@ if (!vars) vars = {};

}
else if (node.type === 'FunctionExpression') {
return Function('return ' + unparse(node))();
}
else return FAIL;

@@ -102,0 +107,0 @@ })(ast);

2

package.json
{
"name": "static-eval",
"version": "0.1.1",
"version": "0.2.0",
"description": "evaluate statically-analyzable expressions",

@@ -5,0 +5,0 @@ "main": "index.js",

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