{"name":"popsicle-retry","version":"3.2.1","description":"Enable request retries for Popsicle","main":"dist/index.js","files":["dist/","typings.json","LICENSE"],"scripts":{"lint":"tslint \"src/**/*.ts\"","build":"rm -rf dist/ && tsc","test-spec":"blue-tape test/index.js | tap-spec","test-cov":"istanbul cover --print none blue-tape -- test/index.js | tap-spec","test":"npm run lint && npm run build && npm run test-cov","prepublish":"typings install && npm run build"},"repository":{"type":"git","url":"git://github.com/blakeembrey/popsicle-retry.git"},"keywords":["popsicle","retry","fail","5xx","error","http"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"Apache-2.0","bugs":{"url":"https://github.com/blakeembrey/popsicle-retry/issues"},"homepage":"https://github.com/blakeembrey/popsicle-retry","devDependencies":{"blue-tape":"^0.2.0","bluebird":"^3.2.2","express":"^4.13.4","istanbul":"^0.4.2","popsicle":"^6.1.0","tap-spec":"^4.1.1","tslint":"^3.1.1","typescript":"^1.7.3","typings":"^1.2.0"},"dependencies":{"any-promise":"^1.1.0","xtend":"^4.0.1"},"gitHead":"145e5d2c2f9d09c0836d082da8c37ac0e1faabe5","_id":"popsicle-retry@3.2.1","_shasum":"e06e866533b42a7a123eb330cbe63a7cebcba10c","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"dist":{"shasum":"e06e866533b42a7a123eb330cbe63a7cebcba10c","tarball":"http://registry-npm.ywwl.com/popsicle-retry/download/popsicle-retry-3.2.1.tgz","integrity":"sha512-AOKZJrHLXZMaMQtQcQW03tDZSgknkFOdoeAv5YuXuE1HqJH3D1oobHYmVIIjmdyBdHsqBnCX1inq2lRX1zocxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqdrNa6ri9aQQcOJyZqvRSN9hTUO3XVZxvtqfAwJmBRAIgcdU0pyRrXB3rtsI3wBrZfgtu8OF0CYbdPNmmparZXps="}],"size":3539,"noattachment":false,"key":"/popsicle-retry/-/popsicle-retry-3.2.1.tgz"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/popsicle-retry-3.2.1.tgz_1466444479612_0.5119327732827514"},"directories":{},"readme":"# Popsicle Retry\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\n> Enable request retry for Popsicle.\n\n## Installation\n\n```\nnpm install popsicle-retry --save\n```\n\n## Usage\n\n```js\nimport { retry } from \"popsicle-retry\";\n\nconst send = retry(transport);\nconst res = await send(req);\n```\n\n### Methods\n\n- **retry(fn, shouldRetry?)** Wraps a request function with retry support. Accepts a second function that returns a delay, or `-1` (default is `retries()`).\n- **retryAllowed(error?, request?)** Check if a request should be retried. Defaults to `5xx` and unavailable errors.\n- **retries(count?, isRetryAllowed?)** An exponential back-off function, defaulting to 3 retries.\n\n## License\n\nApache 2.0\n\n[npm-image]: https://img.shields.io/npm/v/popsicle-retry.svg?style=flat\n[npm-url]: https://npmjs.org/package/popsicle-retry\n[downloads-image]: https://img.shields.io/npm/dm/popsicle-retry.svg?style=flat\n[downloads-url]: https://npmjs.org/package/popsicle-retry\n[travis-image]: https://img.shields.io/travis/serviejs/popsicle-retry.svg?style=flat\n[travis-url]: https://travis-ci.org/serviejs/popsicle-retry\n[coveralls-image]: https://img.shields.io/coveralls/serviejs/popsicle-retry.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/serviejs/popsicle-retry?branch=master\n","publish_time":1466444480066,"_cnpm_publish_time":1466444480066,"dist-tags":{"latest":"4.1.0"}}