Comparing version 0.0.1 to 0.0.2
@@ -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 | ||
[![Build Status](https://travis-ci.org/unshiftio/axo.svg?branch=master)](https://travis-ci.org/unshiftio/axo) | ||
[![NPM version](https://badge.fury.io/js/axo.svg)](http://badge.fury.io/js/axo) | ||
[![Coverage Status](https://img.shields.io/coveralls/unshiftio/axo.svg)](https://coveralls.io/r/unshiftio/axo?branch=master) | ||
[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/axo.svg?style=flat-square)](http://browsenpm.org/package/axo)[![Build Status](http://img.shields.io/travis/unshiftio/axo/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/axo)[![Dependencies](https://img.shields.io/david/unshiftio/axo.svg?style=flat-square)](https://david-dm.org/unshiftio/axo)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/axo/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/axo?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5059
7
23
2
38
1