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

evaljs

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evaljs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

new-index.js

2

index.js

@@ -9,3 +9,3 @@ "use strict";

var parse = require('acorn/acorn_csp').parse;
var parse = require('acorn').parse;

@@ -12,0 +12,0 @@ function noop() {}

{
"name": "evaljs",
"version": "1.0.1",
"version": "1.0.2",
"description": "A JavaScript interpreter written in JavaScript",

@@ -8,10 +8,10 @@ "main": "index.js",

"dependencies": {
"acorn": "^0.11.0"
"acorn": "^4.0.4"
},
"devDependencies": {
"browserify": "^8.1.1",
"esprima": "^1.2.3",
"is-optimizable": "^1.1.0",
"jshint": "^2.5.11",
"uglify-js": "^2.4.16"
"browserify": "^13.1.1",
"esprima": "^3.1.2",
"is-optimizable": "^1.1.1",
"jshint": "^2.9.4",
"uglify-js": "^2.7.5"
},

@@ -18,0 +18,0 @@ "scripts": {

@@ -5,3 +5,3 @@ "use strict";

var fs = require('fs');
var parse = require('acorn/acorn_csp').parse;
var parse = require('acorn').parse;

@@ -28,3 +28,3 @@ // basic

// acorn.js
var code = fs.readFileSync(require.resolve('acorn/acorn_csp'), {encoding: 'UTF-8'});
var code = fs.readFileSync(require.resolve('acorn'), {encoding: 'UTF-8'});
var env = new evaljs.Environment([global, {exports: {}, module: {}}]);

@@ -37,3 +37,3 @@ //env.DEBUG = true;

// parse file
var parsed = env.gen('exports.parse("1 + 1")')();
var parsed = env.gen('exports.parse("1+1")')();
// for bonus points: run the parsed expression

@@ -40,0 +40,0 @@ console.log(env.gen(parsed)());

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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