{
  "_args": [
    [
      {
        "raw": "@zeit/fetch-retry@4.0.0",
        "scope": "@zeit",
        "escapedName": "@zeit%2ffetch-retry",
        "name": "@zeit/fetch-retry",
        "rawSpec": "4.0.0",
        "spec": "4.0.0",
        "type": "version"
      },
      "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/fetch"
    ]
  ],
  "_from": "@zeit/fetch-retry@4.0.0",
  "_hasShrinkwrap": false,
  "_id": "@zeit/fetch-retry@4.0.0",
  "_location": "/@zeit/fetch-retry",
  "_nodeVersion": "10.15.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/fetch-retry_4.0.0_1552059130704_0.19439635969816194"
  },
  "_npmUser": {
    "name": "styfle",
    "email": "steven@ceriously.com"
  },
  "_npmVersion": "6.4.1",
  "_phantomChildren": {},
  "_requested": {
    "raw": "@zeit/fetch-retry@4.0.0",
    "scope": "@zeit",
    "escapedName": "@zeit%2ffetch-retry",
    "name": "@zeit/fetch-retry",
    "rawSpec": "4.0.0",
    "spec": "4.0.0",
    "type": "version"
  },
  "_requiredBy": [
    "/@pnpm/fetch"
  ],
  "_resolved": "https://registry.npmjs.org/@zeit/fetch-retry/-/fetch-retry-4.0.0.tgz",
  "_shasum": "ad7fe06c4ceb3dcbd76c04db95b1b624ed6fcf3f",
  "_shrinkwrap": null,
  "_spec": "@zeit/fetch-retry@4.0.0",
  "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/fetch",
  "dependencies": {
    "async-retry": "^1.1.3",
    "debug": "^3.1.0"
  },
  "description": "A layer on top of `fetch` (via [node-fetch](https://www.npmjs.com/package/node-fetch)) with sensible defaults for retrying to prevent common errors.",
  "devDependencies": {
    "jest": "^21.2.1",
    "node-fetch": "^1.7.3"
  },
  "directories": {},
  "dist": {
    "integrity": "sha512-ALXnrCPpiVWha/L3Mm1klPhqmVTKmPQ2dmb5YIsSCrMBJugfhDb42kacVsvQ11vAFRE1LRaJ9Pmw16zEMvQnbw==",
    "shasum": "ad7fe06c4ceb3dcbd76c04db95b1b624ed6fcf3f",
    "tarball": "https://registry.npmjs.org/@zeit/fetch-retry/-/fetch-retry-4.0.0.tgz",
    "fileCount": 6,
    "unpackedSize": 92501,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgor7CRA9TVsSAnZWagAA6oAP+wRs4EVXcj0nAXiOYJqU\nGE0IOmadxxXk2oSp9rw4vOnOc0n97u/4W1p8mRIOqbFq3ILMyBKnaeL+Tl6c\nmvs4oc91ulqCPolBH6fd1oNBnyEbHBL26lH2GdgIJVslNfDi5VKjM+gMDHi4\n94AHMraDQczbc9192HTyKhBsaahZXqMOF/PtqAqaCACUNLhEHODqirB7YLCd\nMq5xeLWkUlMMmrMvkj+D8wbGto3Ao5nPwb8moeglWoPxE+oI0v0l/Q9PG7E9\nI/fnt4S00/zJ2zvAK5xFdaKxjShb0gKqffAV6Yr8nG4th6NeF+pj5FC43aBf\ne68uLNDr7Kf0IGy5LmdUMRoPE5GNu1f5oLa+hBQPVRhD6ebfilwo8vtKdRPy\n3OBAAByF49V92ZoCFsggSActXMVM/IMW6EKZC6ry8gg2l/LmmVqn8ROSIcZo\nr+2/L3HqrOW16ADzyBe2m/SXnrdbjxcf3SF1EOt73vpz0ciZ9YYxFu8MKkFC\neAHWD/HE+/bPwtdF+dTf75MZDhx/AmTsTMlnpvrsUT3ZQi9Pme9ZjZGwSIHN\nC9krhys+zAxX3rX5KXH/k5Zno72M9fAd7XS5BSeVsbOFOvasQvXDkTsML/m5\nSb0XcR/NFfmCQ8V3bkEJOjn0eH0ObMQLfDAT8HEDY/ymQvMBHrrclazExnye\n1MRZ\r\n=cD6V\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "gitHead": "756b513f65e139ee22518ce2954cc361e71d2a45",
  "maintainers": [
    {
      "name": "alexaltea",
      "email": "alexandro@phi.nz"
    },
    {
      "name": "amio",
      "email": "amio.cn@gmail.com"
    },
    {
      "name": "anatrajkovska",
      "email": "ana.trajkovska2015@gmail.com"
    },
    {
      "name": "andybitz",
      "email": "artzbitz@gmail.com"
    },
    {
      "name": "arunoda",
      "email": "arunoda.susiripala@gmail.com"
    },
    {
      "name": "arzafran",
      "email": "franco@basement.studio"
    },
    {
      "name": "b3nnyl",
      "email": "ciao@sylin.me"
    },
    {
      "name": "bluebill1049",
      "email": "bluebill1049@gmail.com"
    },
    {
      "name": "caarlos0",
      "email": "caarlos0@gmail.com"
    },
    {
      "name": "codetheory",
      "email": "thecodetheory@gmail.com"
    },
    {
      "name": "coetry",
      "email": "allenhai03@gmail.com"
    },
    {
      "name": "dav-is",
      "email": "mail@connordav.is"
    },
    {
      "name": "fivepointseven",
      "email": "fivepointseven@icloud.com"
    },
    {
      "name": "hharnisc",
      "email": "hharnisc@gmail.com"
    },
    {
      "name": "iamevilrabbit",
      "email": "hello@evilrabb.it"
    },
    {
      "name": "igorklopov",
      "email": "igor@klopov.com"
    },
    {
      "name": "ijjk",
      "email": "jj@jjsweb.site"
    },
    {
      "name": "javivelasco",
      "email": "javier.velasco86@gmail.com"
    },
    {
      "name": "joecohens",
      "email": "joecohenr@gmail.com"
    },
    {
      "name": "juancampa",
      "email": "juancampa@gmail.com"
    },
    {
      "name": "kheruc",
      "email": "kristian@heruc.com"
    },
    {
      "name": "leo",
      "email": "leo@zeit.co"
    },
    {
      "name": "lfades",
      "email": "luisito453@gmail.com"
    },
    {
      "name": "lipp",
      "email": "gelipp@gmail.com"
    },
    {
      "name": "lucleray",
      "email": "luc.leray@gmail.com"
    },
    {
      "name": "manovotny",
      "email": "manovotny@gmail.com"
    },
    {
      "name": "matheuss",
      "email": "me@matheus.top"
    },
    {
      "name": "mfix22",
      "email": "mrfix84@gmail.com"
    },
    {
      "name": "mglagola",
      "email": "mark.glagola@gmail.com"
    },
    {
      "name": "nkzawa",
      "email": "naoyuki.kanezawa@gmail.com"
    },
    {
      "name": "olliv",
      "email": "olli@zeit.co"
    },
    {
      "name": "paulogdm",
      "email": "paulogdemitri@gmail.com"
    },
    {
      "name": "quietshu",
      "email": "ds303077135@gmail.com"
    },
    {
      "name": "rabaut",
      "email": "rabautse@gmail.com"
    },
    {
      "name": "rauchg",
      "email": "rauchg@gmail.com"
    },
    {
      "name": "sarupbanskota",
      "email": "sbanskota08@gmail.com"
    },
    {
      "name": "sophearak",
      "email": "t.sophearak@gmail.com"
    },
    {
      "name": "styfle",
      "email": "steven@ceriously.com"
    },
    {
      "name": "tejaskumar",
      "email": "tejas@tejas.qa"
    },
    {
      "name": "timer",
      "email": "timer150@gmail.com"
    },
    {
      "name": "timneutkens",
      "email": "tim@timneutkens.nl"
    },
    {
      "name": "tootallnate",
      "email": "nathan@tootallnate.net"
    },
    {
      "name": "umegaya",
      "email": "iyatomi@gmail.com"
    },
    {
      "name": "yukims19",
      "email": "yukims19@gmail.com"
    },
    {
      "name": "zeit-bot",
      "email": "team@zeit.co"
    }
  ],
  "name": "@zeit/fetch-retry",
  "optionalDependencies": {},
  "peerDependencies": {
    "node-fetch": "*"
  },
  "readme": "# fetch-retry [![CircleCI](https://circleci.com/gh/zeit/fetch-retry.svg?style=svg)](https://circleci.com/gh/zeit/fetch-retry)\n\nA layer on top of `fetch` (via [node-fetch](https://www.npmjs.com/package/node-fetch))\nwith sensible defaults for retrying to prevent common errors.\n\n## How to use\n\n`fetch-retry` is a drop-in replacement for `fetch`:\n\n```js\nconst fetch = require('@zeit/fetch-retry')(require('node-fetch'))\n\nmodule.exports = async () => {\n  const res = await fetch('http://localhost:3000')\n  console.log(res.status);\n}\n```\n\nMake sure to `yarn add @zeit/fetch-retry` in your main package.\n\nNote that you can pass [retry options](https://github.com/zeit/async-retry) to using `opts.retry`.\nWe also provide a `opts.onRetry` which is a customized version of `opts.retry.onRetry` and passes\nnot only the `error` object in each retry but also the current `opts` object.\n\n## Rationale\n\nSome errors are very common in production (like the underlying `Socket`\nyielding `ECONNRESET`), and can easily and instantly be remediated\nby retrying.\n\nThe default behavior of `fetch-retry` is to attempt retries **10**, **50**\nand **250** milliseconds (a total of 3 retires) after\na *network error* or *5xx* error occur.\n\nThe idea is to provide a sensible default: most applications should\ncontinue to perform correctly with a worst case scenario of a given\nrequest having an additional 250ms overhead. \n\nOn the other hand, most applications that use `fetch-retry` instead of\nvanilla `fetch` should see lower rates of common errors and fewer 'glitches'\nin production.\n\n## Tests\n\nTo run rests, execute\n\n```console\nnpm test\n```\n",
  "readmeFilename": "readme.md",
  "scripts": {
    "test": "jest test"
  },
  "version": "4.0.0"
}
