99 lines
4.0 KiB
JSON
99 lines
4.0 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "isomorphic-fetch@^2.1.1",
|
|
"scope": null,
|
|
"escapedName": "isomorphic-fetch",
|
|
"name": "isomorphic-fetch",
|
|
"rawSpec": "^2.1.1",
|
|
"spec": ">=2.1.1 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/fbjs"
|
|
]
|
|
],
|
|
"_from": "isomorphic-fetch@>=2.1.1 <3.0.0",
|
|
"_id": "isomorphic-fetch@2.2.1",
|
|
"_inCache": true,
|
|
"_location": "/isomorphic-fetch",
|
|
"_nodeVersion": "4.2.3",
|
|
"_npmUser": {
|
|
"name": "financial-times",
|
|
"email": "strategic.products@ft.com"
|
|
},
|
|
"_npmVersion": "2.14.7",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "isomorphic-fetch@^2.1.1",
|
|
"scope": null,
|
|
"escapedName": "isomorphic-fetch",
|
|
"name": "isomorphic-fetch",
|
|
"rawSpec": "^2.1.1",
|
|
"spec": ">=2.1.1 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/fbjs"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
|
|
"_shasum": "611ae1acf14f5e81f729507472819fe9733558a9",
|
|
"_shrinkwrap": null,
|
|
"_spec": "isomorphic-fetch@^2.1.1",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/fbjs",
|
|
"author": {
|
|
"name": "Matt Andrews",
|
|
"email": "matt@mattandre.ws"
|
|
},
|
|
"browser": "fetch-npm-browserify.js",
|
|
"bugs": {
|
|
"url": "https://github.com/matthew-andrews/isomorphic-fetch/issues"
|
|
},
|
|
"dependencies": {
|
|
"node-fetch": "^1.0.1",
|
|
"whatwg-fetch": ">=0.10.0"
|
|
},
|
|
"description": "Isomorphic WHATWG Fetch API, for Node & Browserify",
|
|
"devDependencies": {
|
|
"chai": "^1.10.0",
|
|
"es6-promise": "^2.0.1",
|
|
"jshint": "^2.5.11",
|
|
"lintspaces-cli": "0.0.4",
|
|
"mocha": "^2.1.0",
|
|
"nock": "^0.56.0",
|
|
"npm-prepublish": "^1.0.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "611ae1acf14f5e81f729507472819fe9733558a9",
|
|
"tarball": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz"
|
|
},
|
|
"gitHead": "43437dc5b381e391b73522d71cea23fc72675154",
|
|
"homepage": "https://github.com/matthew-andrews/isomorphic-fetch/issues",
|
|
"license": "MIT",
|
|
"main": "fetch-npm-node.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "financial-times",
|
|
"email": "strategic.products@ft.com"
|
|
},
|
|
{
|
|
"name": "mattandrews",
|
|
"email": "matt@mattandre.ws"
|
|
}
|
|
],
|
|
"name": "isomorphic-fetch",
|
|
"optionalDependencies": {},
|
|
"readme": "isomorphic-fetch [![Build Status](https://travis-ci.org/matthew-andrews/isomorphic-fetch.svg?branch=master)](https://travis-ci.org/matthew-andrews/isomorphic-fetch)\n================\n\nFetch for node and Browserify. Built on top of [GitHub's WHATWG Fetch polyfill](https://github.com/github/fetch).\n\n## Warnings\n\n- This adds `fetch` as a global so that its API is consistent between client and server.\n- You must bring your own ES6 Promise compatible polyfill, I suggest [es6-promise](https://github.com/jakearchibald/es6-promise).\n\n## Installation\n\n### NPM\n\n```sh\nnpm install --save isomorphic-fetch es6-promise\n```\n\n### Bower\n\n```sh\nbower install --save isomorphic-fetch es6-promise\n```\n\n## Usage\n\n```js\nrequire('es6-promise').polyfill();\nrequire('isomorphic-fetch');\n\nfetch('//offline-news-api.herokuapp.com/stories')\n\t.then(function(response) {\n\t\tif (response.status >= 400) {\n\t\t\tthrow new Error(\"Bad response from server\");\n\t\t}\n\t\treturn response.json();\n\t})\n\t.then(function(stories) {\n\t\tconsole.log(stories);\n\t});\n```\n\n## License\n\nAll open source code released by FT Labs is licenced under the MIT licence. Based on [the fine work by](https://github.com/github/fetch/pull/31) **[jxck](https://github.com/Jxck)**.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/matthew-andrews/isomorphic-fetch.git"
|
|
},
|
|
"scripts": {
|
|
"files": "find . -name '*.js' ! -path './node_modules/*' ! -path './bower_components/*'",
|
|
"test": "jshint `npm run -s files` && lintspaces -i js-comments -e .editorconfig `npm run -s files` && mocha"
|
|
},
|
|
"version": "2.2.1"
|
|
}
|