Skip to content

Commit

Permalink
Merge pull request #2064 from daltonscharff/daltonscharff/change-git-…
Browse files Browse the repository at this point in the history
…error-header

fix(@octokit/request-error) Fixes depreciation error when accessing error.headers
  • Loading branch information
hipstersmoothie authored Mar 4, 2022
2 parents 849acae + aad6559 commit 837aa6a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@auto-it/bot-list": "link:../../packages/bot-list",
"@endemolshinegroup/cosmiconfig-typescript-loader": "^3.0.2",
"@octokit/plugin-enterprise-compatibility": "^1.2.2",
"@octokit/plugin-enterprise-compatibility": "1.3.0",
"@octokit/plugin-retry": "^3.0.1",
"@octokit/plugin-throttling": "^3.2.0",
"@octokit/rest": "^18.0.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/__tests__/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,9 @@ describe("github", () => {
name: "Request failed",
message: "The request has failed",
status: 404,
headers,
response: {
headers
}
});

// eslint-disable-next-line no-new
Expand Down
27 changes: 20 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@

"@auto-it/core@link:packages/core":
version "10.32.0"

dependencies:
"@auto-it/bot-list" "link:packages/bot-list"
"@endemolshinegroup/cosmiconfig-typescript-loader" "^3.0.2"
"@octokit/plugin-enterprise-compatibility" "^1.2.2"
"@octokit/plugin-enterprise-compatibility" "1.3.0"
"@octokit/plugin-retry" "^3.0.1"
"@octokit/plugin-throttling" "^3.2.0"
"@octokit/rest" "^18.0.0"
Expand Down Expand Up @@ -60,6 +61,7 @@

"@auto-it/npm@link:plugins/npm":
version "10.32.0"

dependencies:
"@auto-it/core" "link:packages/core"
"@auto-it/package-json-utils" "link:packages/package-json-utils"
Expand All @@ -78,12 +80,14 @@

"@auto-it/package-json-utils@link:packages/package-json-utils":
version "10.32.0"

dependencies:
parse-author "^2.0.0"
parse-github-url "1.0.2"

"@auto-it/released@link:plugins/released":
version "10.32.0"

dependencies:
"@auto-it/bot-list" "link:packages/bot-list"
"@auto-it/core" "link:packages/core"
Expand Down Expand Up @@ -2340,12 +2344,12 @@
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.0.0.tgz#0f6992db9854af15eca77d71ab0ec7fad2f20411"
integrity sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==

"@octokit/plugin-enterprise-compatibility@^1.2.2":
version "1.2.11"
resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.2.11.tgz#b150aa0104e6e9d963c5ababdcb4c43f22b1752c"
integrity sha512-bFCxP7q1q2bzK/H9C+NW4JNmdlwvjYFh7+J0SEdjklo9Q0K40s9IhKC4+DUaoCYCVSJv8aiiXIp660Hc15SbtA==
"@octokit/plugin-enterprise-compatibility@1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.3.0.tgz#034f035cc1789b0f0d616e71e41f50f73804e89e"
integrity sha512-h34sMGdEOER/OKrZJ55v26ntdHb9OPfR1fwOx6Q4qYyyhWA104o11h9tFxnS/l41gED6WEI41Vu2G2zHDVC5lQ==
dependencies:
"@octokit/request-error" "^2.0.4"
"@octokit/request-error" "^2.1.0"
"@octokit/types" "^6.0.3"

"@octokit/plugin-enterprise-rest@^6.0.1":
Expand Down Expand Up @@ -2404,6 +2408,15 @@
"@octokit/types" "^6.0.1"
bottleneck "^2.15.3"

"@octokit/request-error@2.1.0", "@octokit/request-error@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677"
integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==
dependencies:
"@octokit/types" "^6.0.3"
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request-error@^1.0.2":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801"
Expand All @@ -2413,7 +2426,7 @@
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request-error@^2.0.0", "@octokit/request-error@^2.0.4", "@octokit/request-error@^2.0.5":
"@octokit/request-error@^2.0.0", "@octokit/request-error@^2.0.5":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.5.tgz#72cc91edc870281ad583a42619256b380c600143"
integrity sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==
Expand Down

0 comments on commit 837aa6a

Please sign in to comment.