{"name":"@octokit-next/request-error","version":"3.0.0","publishConfig":{"access":"public","provenance":true},"type":"module","description":"Error class for Octokit request errors","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/request-error"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/request-error#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 --100 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"3.0.0"},"_id":"@octokit-next/request-error@3.0.0","gitHead":"7e23f7a31baa94fbd946908355368cee9c59075e","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-/uW639Bv7DTxNnF9y5VtxF17t6hL+TGKfobfnBBuFrd72TRj9K06DbFMf7dtCNZeL1tqNpyyLW/tBp3U8a4QDw==","shasum":"24b8e748f264f363d258f9f6d99b38fba9b94d41","tarball":"http://registry-npm.ywwl.com/@octokit-next/request-error/download/@octokit-next/request-error-3.0.0.tgz","fileCount":6,"unpackedSize":8930,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit-next%2frequest-error@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDh+vW0m7IFKXTi0dpDLNzZi+Uz65VNVi6O4bU4U2PUFQIhAL0uEQBCtqhhL2XG7CZefHxC1f0geWpXImYb461hGUSx"}],"size":2663,"noattachment":false,"key":"/@octokit-next/request-error/-/@octokit-next/request-error-3.0.0.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/request-error_3.0.0_1747722953704_0.15948731193596966"},"_hasShrinkwrap":false,"readme":"# request-error.js\n\n> Error class for Octokit request errors\n\n[![@latest](https://img.shields.io/npm/v/@octokit-next/request-error.svg)](https://www.npmjs.com/package/@octokit-next/request-error)\n[![Build Status](https://github.com/octokit-next/request-error.js/workflows/Test/badge.svg)](https://github.com/octokit-next/request-error.js/actions?query=workflow%3ATest)\n\n## Usage\n\n<table>\n<tbody valign=top align=left>\n<tr><th>\nBrowsers\n</th><td width=100%>\nLoad <code>@octokit-next/request-error</code> directly from <a href=\"https://cdn.skypack.dev\">cdn.skypack.dev</a>\n        \n```html\n<script type=\"module\">\nimport { RequestError } from \"https://cdn.skypack.dev/@octokit-next/request-error\";\n</script>\n```\n\n</td></tr>\n<tr><th>\nNode\n</th><td>\n\nInstall with <code>npm install @octokit-next/request-error</code>\n\n```js\nimport { RequestError } from \"@octokit-next/request-error\";\n```\n\n</td></tr>\n</tbody>\n</table>\n\n```js\nconst error = new RequestError(\"Oops\", 500, {\n  request: {\n    method: \"POST\",\n    url: \"https://api.github.com/foo\",\n    body: {\n      bar: \"baz\",\n    },\n    headers: {\n      authorization: \"token secret123\",\n    },\n  },\n  response: {\n    status: 500,\n    url: \"https://api.github.com/foo\"\n    headers: {\n      \"x-github-request-id\": \"1:2:3:4\",\n    },\n    data: {\n      foo: \"bar\"\n    }\n  },\n});\n\nerror.message; // Oops\nerror.status; // 500\nerror.request; // { method, url, headers, body }\nerror.response; // { url, status, headers, data }\n```\n\n## LICENSE\n\n[MIT](LICENSE)\n","publish_time":1747722953863,"_cnpm_publish_time":1747722953863,"dist-tags":{"latest":"3.0.0"}}