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.1 to 0.1.2

11

eval.js

@@ -35,6 +35,7 @@ var vm = require('vm')

var exports = {}
var _filename = filename || module.parent.filename;
if (includeGlobals) {
merge(sandbox, global)
sandbox.require = requireLike(filename || module.parent.filename)
sandbox.require = requireLike(_filename)
}

@@ -47,3 +48,9 @@

sandbox.exports = exports
sandbox.module = { exports: exports }
sandbox.module = {
exports: exports,
filename: _filename,
id: _filename,
parent: module.parent,
require: sandbox.require || requireLike(_filename)
}
sandbox.global = sandbox

@@ -50,0 +57,0 @@

2

package.json

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

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

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

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