This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

3
node_modules/has-cors/.npmignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
components
build
node_modules

21
node_modules/has-cors/History.md generated vendored Normal file
View File

@ -0,0 +1,21 @@
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
1.0.1 / 2013-08-23
==================
* package: add "component" section
1.0.0 / 2013-08-22
==================
* Initial release

11
node_modules/has-cors/Makefile generated vendored Normal file
View File

@ -0,0 +1,11 @@
build: components index.js
@component build --dev
components: component.json
@component install --dev
clean:
rm -fr build components template.js
.PHONY: clean

24
node_modules/has-cors/Readme.md generated vendored Normal file
View File

@ -0,0 +1,24 @@
# has-cors
Detects support for Cross-Origin Resource Sharing
## Installation
Install with [component(1)](http://component.io):
$ component install component/has-cors
## API
Exports `true` if the user-agent supports CORS, or `false` otherwise.
``` js
var hasCORS = require('has-cors');
console.log(hasCORS);
// true
```
## License
MIT

13
node_modules/has-cors/component.json generated vendored Normal file
View File

@ -0,0 +1,13 @@
{
"name": "has-cors",
"repo": "component/has-cors",
"description": "Detects support for Cross-Origin Resource Sharing",
"version": "1.1.0",
"keywords": [],
"development": {},
"license": "MIT",
"main": "index.js",
"scripts": [
"index.js"
]
}

17
node_modules/has-cors/index.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
/**
* Module exports.
*
* Logic borrowed from Modernizr:
*
* - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js
*/
try {
module.exports = typeof XMLHttpRequest !== 'undefined' &&
'withCredentials' in new XMLHttpRequest();
} catch (err) {
// if XMLHttp support is disabled in IE then it will throw
// when trying to create
module.exports = false;
}

71
node_modules/has-cors/package.json generated vendored Normal file
View File

@ -0,0 +1,71 @@
{
"_args": [
[
"has-cors@1.1.0",
"/Users/tatiana/selfdefined"
]
],
"_from": "has-cors@1.1.0",
"_id": "has-cors@1.1.0",
"_inBundle": false,
"_integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=",
"_location": "/has-cors",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "has-cors@1.1.0",
"name": "has-cors",
"escapedName": "has-cors",
"rawSpec": "1.1.0",
"saveSpec": null,
"fetchSpec": "1.1.0"
},
"_requiredBy": [
"/engine.io-client",
"/socket.io-client",
"/socket.io/engine.io-client",
"/socket.io/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz",
"_spec": "1.1.0",
"_where": "/Users/tatiana/selfdefined",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://n8.io/"
},
"bugs": {
"url": "https://github.com/component/has-cors/issues"
},
"component": {
"scripts": {
"has-cors/index.js": "index.js"
}
},
"description": "Detects support for Cross-Origin Resource Sharing",
"devDependencies": {
"chai": "^1.10",
"mocha": "^2.0"
},
"homepage": "https://github.com/component/has-cors#readme",
"keywords": [
"cors",
"cross",
"origin",
"resource",
"sharing",
"domain"
],
"license": "MIT",
"main": "index.js",
"name": "has-cors",
"repository": {
"type": "git",
"url": "git://github.com/component/has-cors.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.1.0"
}

24
node_modules/has-cors/test.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
var expect = require('chai').expect;
describe('has-cors', function() {
beforeEach(function() {
// make sure result is not cached
delete require.cache[require.resolve('./')];
});
it('should not have cors', function() {
var hasCors = require('./');
expect(hasCors).to.be.false;
});
it('should have cors', function() {
global.XMLHttpRequest = function() {
this.withCredentials = true;
};
var hasCors = require('./');
expect(hasCors).to.be.true;
});
});