Socket
Socket
Sign inDemoInstall

loophole

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

2

lib/loophole.js

@@ -28,3 +28,3 @@ (function() {

} finally {
global.Function = Function;
global.Function = previousFunction;
}

@@ -31,0 +31,0 @@ };

{
"name": "loophole",
"version": "0.2.0",
"version": "0.3.0",
"description": "A hack to enable use of libraries that depend on a basic form of eval in Atom",

@@ -5,0 +5,0 @@ "main": "./lib/loophole.js",

@@ -8,6 +8,9 @@ # Eval Loophole

```coffee
{allowUnsafeEval} = require 'loophole'
{allowUnsafeEval, allowUnsafeNewFunction} = require 'loophole'
allowUnsafeEval ->
crazyLibrary.exploitLoophole()
crazyLibrary.exploitLoophole() # allows `eval(...)`
allowUnsafeNewFunction ->
crazyLibrary.exploitLoophole() # allows `new Function(...)`
```

@@ -14,0 +17,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc