GT2/GT2-iOS/node_modules/superagent-retry/package.json

99 lines
4.5 KiB
JSON

{
"_args": [
[
{
"raw": "superagent-retry@^0.6.0",
"scope": null,
"escapedName": "superagent-retry",
"name": "superagent-retry",
"rawSpec": "^0.6.0",
"spec": ">=0.6.0 <0.7.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/analytics-node"
]
],
"_from": "superagent-retry@>=0.6.0 <0.7.0",
"_id": "superagent-retry@0.6.0",
"_inCache": true,
"_location": "/superagent-retry",
"_nodeVersion": "4.2.4",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/superagent-retry-0.6.0.tgz_1463507053998_0.9569967181887478"
},
"_npmUser": {
"name": "segmentio",
"email": "tools@segment.com"
},
"_npmVersion": "2.14.12",
"_phantomChildren": {},
"_requested": {
"raw": "superagent-retry@^0.6.0",
"scope": null,
"escapedName": "superagent-retry",
"name": "superagent-retry",
"rawSpec": "^0.6.0",
"spec": ">=0.6.0 <0.7.0",
"type": "range"
},
"_requiredBy": [
"/analytics-node"
],
"_resolved": "https://registry.npmjs.org/superagent-retry/-/superagent-retry-0.6.0.tgz",
"_shasum": "e49b35ca96c0e3b1d0e3f49605136df0e0a028b7",
"_shrinkwrap": null,
"_spec": "superagent-retry@^0.6.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/analytics-node",
"author": {
"name": "Segmentio",
"email": "friends@segment.io"
},
"bugs": {
"url": "https://github.com/segmentio/superagent-retry/issues"
},
"dependencies": {},
"description": "A retrying layer for a superagent request",
"devDependencies": {
"express": "~3.3.8",
"mocha": "*",
"should": "*",
"superagent": "~0.20.0"
},
"directories": {},
"dist": {
"shasum": "e49b35ca96c0e3b1d0e3f49605136df0e0a028b7",
"tarball": "https://registry.npmjs.org/superagent-retry/-/superagent-retry-0.6.0.tgz"
},
"gitHead": "11a15b47e8e0ae9e9758d8719291bba19f640c63",
"homepage": "https://github.com/segmentio/superagent-retry#readme",
"keywords": [
"superagent",
"retry"
],
"main": "lib/index",
"maintainers": [
{
"name": "segmentio",
"email": "friends@segment.io"
},
{
"name": "gjohnson",
"email": "gjj391@gmail.com"
}
],
"name": "superagent-retry",
"optionalDependencies": {},
"peerDependencies": {
"superagent": "*"
},
"readme": "# superagent-retry\n\n Extends the node version of [`visionmedia/superagent`][superagent]'s `Request`, adds a `.retry` method to add retrying logic to the request. Calling this will retry the request however many additional times you'd like.\n\n\n [superagent]: https://github.com/visionmedia/superagent\n\n## Usage\n\n```javascript\nvar superagent = require('superagent');\nrequire('superagent-retry')(superagent);\n\nsuperagent\n .get('https://segment.io')\n .retry(2) // retry twice before responding\n .end(onresponse);\n\n\nfunction onresponse (err, res) {\n console.log(res.status, res.headers);\n console.log(res.body);\n}\n```\n\n## Retrying Cases\n\n Currently the retrying logic checks for:\n\n * ECONNRESET\n * ETIMEDOUT\n * EADDRINFO\n * ESOCKETTIMEDOUT\n * superagent client timeouts\n * bad gateway errors (502, 503, 504 statuses)\n * Internal Server Error (500 status)\n\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Segmentio &lt;friends@segment.io&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git://github.com/segmentio/superagent-retry.git"
},
"scripts": {},
"version": "0.6.0"
}