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

eval

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eval - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

eval.js

@@ -39,2 +39,6 @@ var vm = require('vm')

merge(sandbox, global)
// console is non-enumerable in node v10 and above
sandbox.console = global.console
// process is non-enumerable in node v12 and above
sandbox.process = global.process
sandbox.require = requireLike(_filename)

@@ -41,0 +45,0 @@ }

2

package.json

@@ -6,3 +6,3 @@ {

, "keywords": ["require","eval","vm","module"]
, "version": "0.1.3"
, "version": "0.1.4"
, "homepage": "http://github.com/pierrec/node-eval"

@@ -9,0 +9,0 @@ , "repository": {

@@ -30,2 +30,6 @@ var assert = require('assert')

// Verify that the console is available when globals are passed
res = _eval('exports.x = console', true)
assert.deepEqual(res.x, console)
console.log('All tests passed')
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