From 598caa471a40a40169f691261b18928730e4badb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:31:20 -0500 Subject: [PATCH] fix(deps): update dependency @octokit/request-error to v6 (#514) --- package-lock.json | 37 ++++--------------------------------- package.json | 2 +- test/octokit.ts | 1 - 3 files changed, 5 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3e7d261c..c2aab8a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/request-error": "^5.0.0", + "@octokit/request-error": "^6.0.0", "@octokit/types": "^12.0.0", "bottleneck": "^2.15.3" }, @@ -1737,18 +1737,6 @@ "node": ">= 18" } }, - "node_modules/@octokit/core/node_modules/@octokit/request-error": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", - "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", - "dev": true, - "dependencies": { - "@octokit/types": "^12.0.0" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/@octokit/endpoint": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.0.0.tgz", @@ -1797,23 +1785,9 @@ } }, "node_modules/@octokit/request-error": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.0.1.tgz", - "integrity": "sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==", - "dependencies": { - "@octokit/types": "^12.0.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/request/node_modules/@octokit/request-error": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", - "dev": true, "dependencies": { "@octokit/types": "^12.0.0" }, @@ -2710,11 +2684,6 @@ "node": ">=0.10.0" } }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" - }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", @@ -5320,6 +5289,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, "dependencies": { "wrappy": "1" } @@ -6430,7 +6400,8 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true }, "node_modules/write-file-atomic": { "version": "4.0.2", diff --git a/package.json b/package.json index b1f59e7c..e518ac0d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "license": "MIT", "dependencies": { "@octokit/types": "^12.0.0", - "@octokit/request-error": "^5.0.0", + "@octokit/request-error": "^6.0.0", "bottleneck": "^2.15.3" }, "peerDependencies": { diff --git a/test/octokit.ts b/test/octokit.ts index 3bb38a47..b2c57def 100644 --- a/test/octokit.ts +++ b/test/octokit.ts @@ -20,7 +20,6 @@ function testPlugin(octokit: Octokit) { ? res.data.message : `Test failed request (${res.status})`; const error = new RequestError(message, res.status, { - headers: res.headers, request: options, }); throw error;