@digitak/esrun
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@digitak/esrun", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Execute directly your Typescript/Javascript(with ES modules) files using Esbuild", | ||
@@ -11,3 +11,4 @@ "files": ["src/**/*"], | ||
"scripts": { | ||
"test": "./src/bin.js test/test.ts" | ||
"test": "./src/bin.js test/test.ts", | ||
"publish": "npm publish --access public" | ||
}, | ||
@@ -14,0 +15,0 @@ "repository": { |
@@ -15,8 +15,8 @@ const { resolve } = require('path') | ||
const code = buildResult.outputFiles[0].text | ||
const evaluator = new Function('process', code) | ||
const evaluator = new Function('process', 'require', code) | ||
process.argv = [process.argv[0], inputFile, ...args] | ||
return evaluator(process) | ||
return evaluator(process, require) | ||
} | ||
module.exports = esrun |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
3543