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

@digitak/esrun

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitak/esrun - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

package.json
{
"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": {

4

src/main.js

@@ -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
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