Skip to content

Commit eaed63e

Browse files
committed
Update octokit and escapegoat
Now that we are on standard JS modules, this is possible.
1 parent 05198aa commit eaed63e

File tree

3 files changed

+105
-111
lines changed

3 files changed

+105
-111
lines changed

lib/server-infra/error-handler.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ export default async function errorHandler(ctx, next) {
4242
// But if one of these reaches us, it's an internal server error, and should not be communicated as
4343
// whatever status code the GitHub API returned.
4444
function isOctokitError(err) {
45-
return err.documentation_url && err.documentation_url.startsWith("https://developer.github.com/");
45+
return err.response?.documentation_url?.startsWith("https://docs.github.com/");
4646
}

package-lock.json

Lines changed: 102 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
},
1717
"dependencies": {
1818
"@koa/router": "^13.1.0",
19-
"@octokit/rest": "^20.1.2",
20-
"escape-goat": "^3.0.0",
19+
"@octokit/rest": "^22.0.0",
20+
"escape-goat": "^4.0.0",
2121
"github-username-regex": "^1.0.0",
2222
"handlebars": "^4.7.8",
2323
"http-errors": "^2.0.0",

0 commit comments

Comments
 (0)