Comparing version 0.4.4 to 0.4.5
@@ -8,2 +8,4 @@ (function() { | ||
path = process.cwd() + "/" + path; | ||
} else { | ||
path = process.cwd() + "/node_modules/" + path; | ||
} | ||
@@ -54,3 +56,3 @@ try { | ||
context.process = process; | ||
context.require = require; | ||
context.require = serverRequire; | ||
context.serverRequire = serverRequire; | ||
@@ -68,3 +70,3 @@ runFunc = Function("context", "callback", "\n for (var property in context) {\n eval ('var '+property+'= context.'+property);\n }\n\n " + pogoWrappers() + "\n\n return (" + func + ")();\n "); | ||
context.process = process; | ||
context.require = require; | ||
context.require = serverRequire; | ||
context.serverRequire = serverRequire; | ||
@@ -96,3 +98,3 @@ runFunc = Function("context", "callback", "\n for (var property in context) {\n eval ('var '+property+'= context.'+property);\n }\n\n return (" + func + ")(callback);\n "); | ||
context.process = process; | ||
context.require = require; | ||
context.require = serverRequire; | ||
context.serverRequire = serverRequire; | ||
@@ -99,0 +101,0 @@ runFunc = Function("context", "\n for (var property in context) {\n eval ('var '+property+'= context.'+property);\n }\n\n " + pogoWrappers() + "\n\n return (" + options.func + ")();\n "); |
{ | ||
"name": "censeo", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Run arbitrary JavaScript or PogoScript on a server", | ||
@@ -5,0 +5,0 @@ "author": "Derek Ekins <derek@spathi.com>", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
16365
244
2