New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

window-eval

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window-eval - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

index.js

@@ -20,4 +20,4 @@ function windowEval(code, context = {}, options = {}) {

}
return eval(`with (proxy) {${code}}
//# sourceURL=${options.filename}`);
return new Function('proxy', `with (proxy) {${code}}
//# sourceURL=${options.filename}`).call(proxy, proxy);
}

@@ -24,0 +24,0 @@ windowEval.builtinKeys = [

{
"name": "window-eval",
"version": "0.0.6",
"version": "0.0.7",
"description": "Eval in context (global/window), in pure JS",

@@ -5,0 +5,0 @@ "main": "index.js",

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