Comparing version
@@ -10,2 +10,4 @@ // | ||
module.exports = (function AXO(x, i) { | ||
var target = typeof global !== 'undefined' ? global : window; | ||
for (i = 0; i < x.length; i++) { | ||
@@ -15,3 +17,3 @@ x[i] = String.fromCharCode(x[i].charCodeAt(0) + i); | ||
return this[x.join('')]; | ||
return target[x.join('')]; | ||
})('Abrfr`RHZa[Xh'.split('')); |
{ | ||
"name": "axo", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Return an ActiveXObject without mentioning it in the source", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test.js" | ||
"test": "node test.js", | ||
"coverage": "istanbul cover test.js", | ||
"test-travis": "istanbul cover --report lcovonly test.js" | ||
}, | ||
@@ -17,2 +19,6 @@ "keywords": [ | ||
"license": "MIT", | ||
"devDependencies": { | ||
"istanbul": "0.3.x", | ||
"pre-commit": "1.0.x" | ||
}, | ||
"repository": { | ||
@@ -19,0 +25,0 @@ "type": "git", |
# AXO | ||
[](https://travis-ci.org/unshiftio/axo) | ||
[](http://badge.fury.io/js/axo) | ||
[](https://coveralls.io/r/unshiftio/axo?branch=master) | ||
[](http://unshift.io)[](http://browsenpm.org/package/axo)[](https://travis-ci.org/unshiftio/axo)[](https://david-dm.org/unshiftio/axo)[](https://coveralls.io/r/unshiftio/axo?branch=master)[](http://webchat.freenode.net/?channels=unshift) | ||
@@ -7,0 +5,0 @@ AXO stands for **A**ctive**XO**bject. And the sole purpose of this library is to |
@@ -0,1 +1,2 @@ | ||
/* istanbul ignore next */ | ||
this.ActiveXObject = global.ActiveXObject = function foobar() { | ||
@@ -2,0 +3,0 @@ // Node doesn't have an ActiveXObject so introduce it as global. |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5059
79.84%7
40%23
9.52%2
Infinity%38
-5%1
Infinity%