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.1.0 to 0.2.0

13

lib/loophole.js

@@ -19,2 +19,15 @@ (function() {

exports.allowUnsafeNewFunction = function(fn) {
var previousFunction;
previousFunction = global.Function;
try {
global.Function = function(source) {
return vm.runInThisContext(source);
};
return fn();
} finally {
global.Function = Function;
}
};
}).call(this);

2

package.json
{
"name": "loophole",
"version": "0.1.0",
"version": "0.2.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",

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