vm-browserify
Advanced tools
Comparing version 0.0.1 to 0.0.2
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 @@ |
{ | ||
"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" | ||
] | ||
} | ||
} |
Nonpermissive License
License(Experimental) A package's licensing information has fine-grained problems
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
20301
1
0
0
100
505
1
68
4
+ Addedindexof@0.0.1
+ Addedindexof@0.0.1(transitive)