has-cors
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -5,7 +5,4 @@ { | ||
"description": "Detects support for Cross-Origin Resource Sharing", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"keywords": [], | ||
"dependencies": { | ||
"component/global": "2.0.1" | ||
}, | ||
"development": {}, | ||
@@ -12,0 +9,0 @@ "license": "MIT", |
1.1.0 / 2014-11-12 | ||
================== | ||
* remove "global" module dependency (#2, @achingbrain) | ||
1.0.2 / 2013-08-27 | ||
================== | ||
- explicitly use `global` instead of being implicit | ||
- pin "component/global" to v2.0.1 | ||
* explicitly use `global` instead of being implicit | ||
* pin "component/global" to v2.0.1 | ||
@@ -11,3 +16,3 @@ 1.0.1 / 2013-08-23 | ||
- package: add "component" section | ||
* package: add "component" section | ||
@@ -17,2 +22,2 @@ 1.0.0 / 2013-08-22 | ||
- Initial release | ||
* Initial release |
10
index.js
/** | ||
* Module dependencies. | ||
*/ | ||
var global = require('global'); | ||
/** | ||
* Module exports. | ||
@@ -17,4 +11,4 @@ * | ||
try { | ||
module.exports = 'XMLHttpRequest' in global && | ||
'withCredentials' in new global.XMLHttpRequest(); | ||
module.exports = typeof XMLHttpRequest !== 'undefined' && | ||
'withCredentials' in new XMLHttpRequest(); | ||
} catch (err) { | ||
@@ -21,0 +15,0 @@ // if XMLHttp support is disabled in IE then it will throw |
{ | ||
"name": "has-cors", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Detects support for Cross-Origin Resource Sharing", | ||
@@ -10,5 +10,2 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"global": "https://github.com/component/global/archive/v2.0.1.tar.gz" | ||
}, | ||
"keywords": [ | ||
@@ -28,3 +25,10 @@ "cors", | ||
} | ||
}, | ||
"devDependencies": { | ||
"mocha": "^2.0", | ||
"chai": "^1.10" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
2707
0
8
46
0
0
2