{
  "_args": [
    [
      {
        "raw": "retry-request@https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
        "scope": null,
        "escapedName": "retry-request",
        "name": "retry-request",
        "rawSpec": "https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
        "spec": "https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
        "type": "remote"
      },
      "E:\\MissionXJC\\XJC\\functions\\node_modules\\firebase-admin"
    ]
  ],
  "_from": "retry-request@>=2.0.0 <3.0.0",
  "_id": "retry-request@2.0.5",
  "_inCache": true,
  "_location": "/firebase-admin/retry-request",
  "_phantomChildren": {},
  "_requested": {
    "raw": "retry-request@https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
    "scope": null,
    "escapedName": "retry-request",
    "name": "retry-request",
    "rawSpec": "https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
    "spec": "https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
    "type": "remote"
  },
  "_requiredBy": [
    "/firebase-admin",
    "/firebase-admin/@google-cloud/common",
    "/firebase-admin/gcp-metadata"
  ],
  "_resolved": "https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
  "_shasum": "d089a14a15db9ed60685b8602b40f4dcc0d3fb3c",
  "_shrinkwrap": null,
  "_spec": "retry-request@https://registry.npmjs.org/retry-request/-/retry-request-2.0.5.tgz",
  "_where": "E:\\MissionXJC\\XJC\\functions\\node_modules\\firebase-admin",
  "author": {
    "name": "Stephen Sawchuk",
    "email": "sawchuk@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/stephenplusplus/retry-request/issues"
  },
  "dependencies": {
    "request": "^2.81.0",
    "through2": "^2.0.0"
  },
  "description": "Retry a request.",
  "devDependencies": {
    "mocha": "^2.2.5"
  },
  "engines": {
    "node": ">=4"
  },
  "files": [
    "index.js",
    "license"
  ],
  "homepage": "https://github.com/stephenplusplus/retry-request#readme",
  "keywords": [
    "request",
    "retry",
    "stream"
  ],
  "license": "MIT",
  "main": "index.js",
  "name": "retry-request",
  "optionalDependencies": {},
  "readme": "|![retry-request](logo.png)\n|:-:\n|Retry a [request][request] with built-in [exponential backoff](https://developers.google.com/analytics/devguides/reporting/core/v3/coreErrors#backoff).\n\n```sh\n$ npm install --save retry-request\n```\n```js\nvar request = require('retry-request');\n```\n\nIt should work the same as `request` in both callback mode and stream mode.\n\nNote: This module only works when used as a readable stream, i.e. POST requests aren't supported  ([#3](https://github.com/stephenplusplus/retry-request/issues/3)).\n\n#### Callback\n\n`urlThatReturns503` will be requested 3 total times before giving up and executing the callback.\n\n```js\nrequest(urlThatReturns503, function (err, resp, body) {});\n```\n\n#### Stream\n\n`urlThatReturns503` will be requested 3 total times before giving up and emitting the `response` and `complete` event as usual.\n\n```js\nrequest(urlThatReturns503)\n  .on('error', function () {})\n  .on('response', function () {})\n  .on('complete', function () {});\n```\n\n## request(requestOptions, [opts], [cb])\n\n### requestOptions\n\nPassed directly to `request`. See the list of options supported: https://github.com/request/request/#requestoptions-callback.\n\n### opts *(optional)*\n\n#### `opts.objectMode`\n\nType: `Boolean`\n\nDefault: `false`\n\nSet to `true` if your custom `opts.request` function returns a stream in object mode.\n\n#### `opts.retries`\n\nType: `Number`\n\nDefault: `2`\n\n```js\nvar opts = {\n  retries: 4\n};\n\nrequest(urlThatReturns503, opts, function (err, resp, body) {\n  // urlThatReturns503 was requested a total of 5 times\n  // before giving up and executing this callback.\n});\n```\n\n#### `opts.shouldRetryFn`\n\nType: `Function`\n\nDefault: Returns `true` if [http.incomingMessage](https://nodejs.org/api/http.html#http_http_incomingmessage).statusCode is < 200 or >= 400.\n\n```js\nvar opts = {\n  shouldRetryFn: function (incomingHttpMessage) {\n    return incomingHttpMessage.statusMessage !== 'OK';\n  }\n};\n\nrequest(urlThatReturnsNonOKStatusMessage, opts, function (err, resp, body) {\n  // urlThatReturnsNonOKStatusMessage was requested a\n  // total of 3 times, each time using `opts.shouldRetryFn`\n  // to decide if it should continue before giving up and\n  // executing this callback.\n});\n```\n\n#### `opts.request`\n\nType: `Function`\n\nDefault: [`request`][request]\n\n*NOTE: If you override the request function, and it returns a stream in object mode, be sure to set `opts.objectMode` to `true`.*\n\n```js\nvar originalRequest = require('request').defaults({\n  pool: {\n    maxSockets: Infinity\n  }\n});\n\nvar opts = {\n  request: originalRequest\n};\n\nrequest(urlThatReturns503, opts, function (err, resp, body) {\n  // Your provided `originalRequest` instance was used.\n});\n```\n\n### cb *(optional)*\n\nPassed directly to `request`. See the callback section: https://github.com/request/request/#requestoptions-callback.\n\n[request]: https://github.com/request/request\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/stephenplusplus/retry-request.git"
  },
  "scripts": {
    "test": "mocha --timeout 0"
  },
  "version": "2.0.5"
}
