Socket
Socket
Sign inDemoInstall

vm-browserify

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

LICENSE

11

index.js

@@ -0,1 +1,3 @@

var indexOf = require('indexof');
var Object_keys = function (obj) {

@@ -42,6 +44,13 @@ if (Object.keys) return Object.keys(obj)

var winKeys = Object_keys(win);
var res = win.eval(this.code);
forEach(Object_keys(win), function (key) {
context[key] = win[key];
// Avoid copying circular objects like `top` and `window` by only
// updating existing context properties or new properties in the `win`
// that was only introduced after the eval.
if (key in context || indexOf(winKeys, key) === -1) {
context[key] = win[key];
}
});

@@ -48,0 +57,0 @@

75

package.json
{
"name" : "vm-browserify",
"version" : "0.0.1",
"description" : "vm module for the browser",
"main" : "index.js",
"directories" : {
"example" : "example",
"test" : "test"
},
"repository" : {
"type" : "git",
"url" : "http://github.com/substack/vm-browserify.git"
},
"keywords" : [
"vm",
"browser",
"eval"
],
"devDependencies" : {
"tap" : "~0.2.1",
"browserify" : "1.9.x"
},
"author" : {
"name" : "James Halliday",
"email" : "mail@substack.net",
"url" : "http://substack.net"
},
"scripts" : {
"test" : "tap test/*.js"
},
"license" : "MIT/X11",
"engine" : { "node" : ">=0.4.0" }
"name": "vm-browserify",
"version": "0.0.2",
"description": "vm module for the browser",
"main": "index.js",
"repository": {
"type": "git",
"url": "http://github.com/substack/vm-browserify.git"
},
"keywords": [
"vm",
"browser",
"eval"
],
"dependencies": {
"indexof": "0.0.1"
},
"devDependencies": {
"tape": "~2.3.2"
},
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"scripts": {
"test": "tap test/*.js"
},
"license": "MIT",
"testling": {
"files": "test/*.js",
"browsers": [
"ie/6..latest",
"firefox/16..latest",
"firefox/nightly",
"chrome/22..latest",
"chrome/canary",
"opera/12..latest",
"opera/next",
"safari/5.1..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2..latest"
]
}
}
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