146 lines
23 KiB
JSON
146 lines
23 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "axios@^0.16.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "axios",
|
||
|
"name": "axios",
|
||
|
"rawSpec": "^0.16.1",
|
||
|
"spec": ">=0.16.1 <0.17.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
|
||
|
]
|
||
|
],
|
||
|
"_from": "axios@>=0.16.1 <0.17.0",
|
||
|
"_id": "axios@0.16.2",
|
||
|
"_inCache": true,
|
||
|
"_location": "/axios",
|
||
|
"_nodeVersion": "6.10.1",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/axios-0.16.2.tgz_1496518163672_0.8309127793181688"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "nickuraltsev",
|
||
|
"email": "nick.uraltsev@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "3.10.10",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "axios@^0.16.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "axios",
|
||
|
"name": "axios",
|
||
|
"rawSpec": "^0.16.1",
|
||
|
"spec": ">=0.16.1 <0.17.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/xdl"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/axios/-/axios-0.16.2.tgz",
|
||
|
"_shasum": "ba4f92f17167dfbab40983785454b9ac149c3c6d",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "axios@^0.16.1",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
|
||
|
"author": {
|
||
|
"name": "Matt Zabriskie"
|
||
|
},
|
||
|
"browser": {
|
||
|
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/mzabriskie/axios/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"follow-redirects": "^1.2.3",
|
||
|
"is-buffer": "^1.1.5"
|
||
|
},
|
||
|
"description": "Promise based HTTP client for the browser and node.js",
|
||
|
"devDependencies": {
|
||
|
"coveralls": "^2.11.9",
|
||
|
"es6-promise": "^4.0.5",
|
||
|
"grunt": "^1.0.1",
|
||
|
"grunt-banner": "^0.6.0",
|
||
|
"grunt-cli": "^1.2.0",
|
||
|
"grunt-contrib-clean": "^1.0.0",
|
||
|
"grunt-contrib-nodeunit": "^1.0.0",
|
||
|
"grunt-contrib-watch": "^1.0.0",
|
||
|
"grunt-eslint": "^19.0.0",
|
||
|
"grunt-karma": "^2.0.0",
|
||
|
"grunt-ts": "^6.0.0-beta.3",
|
||
|
"grunt-webpack": "^1.0.18",
|
||
|
"istanbul-instrumenter-loader": "^1.0.0",
|
||
|
"jasmine-core": "^2.4.1",
|
||
|
"karma": "^1.3.0",
|
||
|
"karma-chrome-launcher": "^2.0.0",
|
||
|
"karma-coverage": "^1.0.0",
|
||
|
"karma-firefox-launcher": "^1.0.0",
|
||
|
"karma-jasmine": "^1.0.2",
|
||
|
"karma-jasmine-ajax": "^0.1.13",
|
||
|
"karma-opera-launcher": "^1.0.0",
|
||
|
"karma-phantomjs-launcher": "^1.0.0",
|
||
|
"karma-safari-launcher": "^1.0.0",
|
||
|
"karma-sauce-launcher": "^1.1.0",
|
||
|
"karma-sinon": "^1.0.5",
|
||
|
"karma-sourcemap-loader": "^0.3.7",
|
||
|
"karma-webpack": "^1.7.0",
|
||
|
"load-grunt-tasks": "^3.5.2",
|
||
|
"minimist": "^1.2.0",
|
||
|
"phantomjs-prebuilt": "^2.1.7",
|
||
|
"sinon": "^1.17.4",
|
||
|
"typescript": "^2.0.3",
|
||
|
"url-search-params": "^0.6.1",
|
||
|
"webpack": "^1.13.1",
|
||
|
"webpack-dev-server": "^1.14.1"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "ba4f92f17167dfbab40983785454b9ac149c3c6d",
|
||
|
"tarball": "https://registry.npmjs.org/axios/-/axios-0.16.2.tgz"
|
||
|
},
|
||
|
"gitHead": "46e275c407f81c44dd9aad419b6e861d8a936580",
|
||
|
"homepage": "https://github.com/mzabriskie/axios",
|
||
|
"keywords": [
|
||
|
"xhr",
|
||
|
"http",
|
||
|
"ajax",
|
||
|
"promise",
|
||
|
"node"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "mzabriskie",
|
||
|
"email": "mzabriskie@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "nickuraltsev",
|
||
|
"email": "nick.uraltsev@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "axios",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# axios\n\n[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)\n[![build status](https://img.shields.io/travis/mzabriskie/axios.svg?style=flat-square)](https://travis-ci.org/mzabriskie/axios)\n[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)\n[![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=axios)\n[![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)\n\nPromise based HTTP client for the browser and node.js\n\n## Features\n\n- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser\n- Make [http](http://nodejs.org/api/http.html) requests from node.js\n- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API\n- Intercept request and response\n- Transform request and response data\n- Cancel requests\n- Automatic transforms for JSON data\n- Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n\n## Browser Support\n\n![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n--- | --- | --- | --- | --- | --- |\nLatest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |\n\n[![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install axios\n```\n\nUsing bower:\n\n```bash\n$ bower install axios\n```\n\nUsing cdn:\n\n```html\n<script src=\"https://unpkg.com/axios/dist/axios.min.js\"></script>\n```\n\n## Example\n\nPerforming a `GET` request\n\n```js\n// Make a request for a user with a given ID\naxios.get('/user?ID=12345')\n .then(function (response) {\n console.log(response);\n })\n .catch(function (error) {\n console.log(error);\n });\n\n// Optionally the request above could also be done as\naxios.get('/user', {\n params: {\n ID: 12345\n }\n })\n .then(function (response) {\n console.log(response);\n })\n .catch(function (error) {\n console.log(error);\n });\n```\n\nPerforming a `POST` request\n\n```js\naxios.post('/user', {\n firstName: 'Fred',\n lastName: 'Flintstone'\n })\n .then(function (response) {\n console.log(response);\n })\n .catch(function (error) {\n console.log(error);\n });\n```\n\nPerforming multiple concurrent requests\n\n```js\nfunction getUserAccount() {\n return axios.get('/user/12345');\n}\n\nfunction getUserPermissions() {\n return axios.get('/user/12345/permissions');\n}\n\naxios.all([getUserAccount(), getUserPermissions()])\n .then(axios.spread(function (acct, perms) {\n // Both requests are now complete\n }));\n```\n\n## axios API\n\nRequests can be made by passing the relevant config to `axios`.\n\n##### axios(config)\n\n```js\n// Send a POST request\naxios({\n method: 'post',\n url: '/user/12345',\n data: {\n firstName: 'Fred',\n lastName: 'Flintstone'\n }\n});\n```\n\n```js\n// GET request for remote image\naxios({\n method:'get',\n url:'http://bit.ly/2mTM3nY',\n responseType:'stream'\n})\n .then(function(response) {\n response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))\n});\n```\n\n##### axios(url[, config])\n\n```js\n// Send a GET request (default method)\naxios('/user/12345');\n```\n\n### Request method aliases\n\nFor convenience alias
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/mzabriskie/axios.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"build": "NODE_ENV=production grunt build",
|
||
|
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
||
|
"examples": "node ./examples/server.js",
|
||
|
"postversion": "git push && git push --tags",
|
||
|
"preversion": "npm test",
|
||
|
"start": "node ./sandbox/server.js",
|
||
|
"test": "grunt test",
|
||
|
"version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
|
||
|
},
|
||
|
"typings": "./index.d.ts",
|
||
|
"version": "0.16.2"
|
||
|
}
|