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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5931
85