GT2/GT2-Android/node_modules/whatwg-fetch/package.json

97 lines
11 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "whatwg-fetch@>=0.10.0",
"scope": null,
"escapedName": "whatwg-fetch",
"name": "whatwg-fetch",
"rawSpec": ">=0.10.0",
"spec": ">=0.10.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/isomorphic-fetch"
]
],
"_from": "whatwg-fetch@>=0.10.0",
"_id": "whatwg-fetch@2.0.3",
"_inCache": true,
"_location": "/whatwg-fetch",
"_nodeVersion": "0.10.48",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/whatwg-fetch-2.0.3.tgz_1488476993688_0.31996091664768755"
},
"_npmUser": {
"name": "mislav",
"email": "mislav.marohnic@gmail.com"
},
"_npmVersion": "2.15.1",
"_phantomChildren": {},
"_requested": {
"raw": "whatwg-fetch@>=0.10.0",
"scope": null,
"escapedName": "whatwg-fetch",
"name": "whatwg-fetch",
"rawSpec": ">=0.10.0",
"spec": ">=0.10.0",
"type": "range"
},
"_requiredBy": [
"/isomorphic-fetch"
],
"_resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz",
"_shasum": "9c84ec2dcf68187ff00bc64e1274b442176e1c84",
"_shrinkwrap": null,
"_spec": "whatwg-fetch@>=0.10.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/isomorphic-fetch",
"bugs": {
"url": "https://github.com/github/fetch/issues"
},
"dependencies": {},
"description": "A window.fetch polyfill.",
"devDependencies": {
"chai": "1.10.0",
"jshint": "2.8.0",
"mocha": "2.1.0",
"mocha-phantomjs-core": "2.0.1",
"promise-polyfill": "6.0.2",
"url-search-params": "0.6.1"
},
"directories": {},
"dist": {
"shasum": "9c84ec2dcf68187ff00bc64e1274b442176e1c84",
"tarball": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz"
},
"files": [
"LICENSE",
"fetch.js"
],
"gitHead": "d4ed806fdcbdeaef707d27f6c88943f0336a647d",
"homepage": "https://github.com/github/fetch#readme",
"license": "MIT",
"main": "fetch.js",
"maintainers": [
{
"name": "mattandrews",
"email": "matt@mattandre.ws"
},
{
"name": "mislav",
"email": "mislav.marohnic@gmail.com"
}
],
"name": "whatwg-fetch",
"optionalDependencies": {},
"readme": "# window.fetch polyfill\n\nThe `fetch()` function is a Promise-based mechanism for programmatically making\nweb requests in the browser. This project is a polyfill that implements a subset\nof the standard [Fetch specification][], enough to make `fetch` a viable\nreplacement for most uses of XMLHttpRequest in traditional web applications.\n\nThis project adheres to the [Open Code of Conduct][]. By participating, you are\nexpected to uphold this code.\n\n## Table of Contents\n\n* [Read this first](#read-this-first)\n* [Installation](#installation)\n* [Usage](#usage)\n * [HTML](#html)\n * [JSON](#json)\n * [Response metadata](#response-metadata)\n * [Post form](#post-form)\n * [Post JSON](#post-json)\n * [File upload](#file-upload)\n * [Caveats](#caveats)\n * [Handling HTTP error statuses](#handling-http-error-statuses)\n * [Sending cookies](#sending-cookies)\n * [Receiving cookies](#receiving-cookies)\n * [Obtaining the Response URL](#obtaining-the-response-url)\n* [Browser Support](#browser-support)\n\n## Read this first\n\n* If you believe you found a bug with how `fetch` behaves in Chrome or Firefox,\n please **avoid opening an issue in this repository**. This project is a\n _polyfill_, and since Chrome and Firefox both implement the `window.fetch`\n function natively, no code from this project actually takes any effect in\n these browsers. See [Browser support](#browser-support) for detailed\n information.\n\n* If you have trouble **making a request to another domain** (a different\n subdomain or port number also constitutes as another domain), please\n familiarize yourself with all the intricacies and limitations of [CORS][]\n requests. Because CORS requires participation of the server by implementing\n specific HTTP response headers, it is often nontrivial to set up or debug.\n CORS is exclusively handled by the browser's internal mechanisms which this\n polyfill cannot influence.\n\n* If you have trouble **maintaining the user's session** or [CSRF][] protection\n through `fetch` requests, please ensure that you've read and understood the\n [Sending cookies](#sending-cookies) section.\n\n* If this polyfill **doesn't work under Node.js environments**, that is expected,\n because this project is meant for web browsers only. You should ensure that your\n application doesn't try to package and run this on the server.\n\n* If you have an idea for a new feature of `fetch`, please understand that we\n are only ever going to add features and APIs that are a part of the\n [Fetch specification][]. You should **submit your feature requests** to the\n [repository of the specification](https://github.com/whatwg/fetch/issues)\n itself, rather than this repository.\n\n## Installation\n\n* `npm install whatwg-fetch --save`; or\n\n* `bower install fetch`.\n\nYou will also need a Promise polyfill for [older browsers](http://caniuse.com/#feat=promises).\nWe recommend [taylorhakes/promise-polyfill](https://github.com/taylorhakes/promise-polyfill)\nfor its small size and Promises/A+ compatibility.\n\nFor use with webpack, add this package in the `entry` configuration option\nbefore your application entry point:\n\n```javascript\nentry: ['whatwg-fetch', ...]\n```\n\nFor Babel and ES2015+, make sure to import the file:\n\n```javascript\nimport 'whatwg-fetch'\n```\n\n## Usage\n\nFor a more comprehensive API reference that this polyfill supports, refer to\nhttps://github.github.io/fetch/.\n\n### HTML\n\n```javascript\nfetch('/users.html')\n .then(function(response) {\n return response.text()\n }).then(function(body) {\n document.body.innerHTML = body\n })\n```\n\n### JSON\n\n```javascript\nfetch('/users.json')\n .then(function(response) {\n return response.json()\n }).then(function(json) {\n console.log('parsed json', json)\n }).catch(function(ex) {\n console.log('parsing failed', ex)\n })\n```\n\n### Response metadata\n\n```javascript\nfetch('/users.json').then(function(response) {\n console.log(response.headers.get('Content-Type'))\n console.log(response.headers.g
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/github/fetch.git"
},
"scripts": {
"test": "make"
},
"version": "2.0.3"
}