Socket
Socket
Sign inDemoInstall

has-cors

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

test.js

5

component.json

@@ -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",

13

History.md
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
/**
* 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

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