Skip to content

Commit 5c4221b

Browse files
authored
1 parent f67687d commit 5c4221b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const webAuth = async (opener, opts, body) => {
7070
if ((er.statusCode >= 400 && er.statusCode <= 499) || er.statusCode === 500) {
7171
throw new WebLoginNotSupported('POST', {
7272
status: er.statusCode,
73-
headers: { raw: () => er.headers },
73+
headers: er.headers,
7474
}, er.body)
7575
}
7676
throw er
@@ -250,7 +250,6 @@ class WebLoginInvalidResponse extends HttpErrorBase {
250250
constructor (method, res, body) {
251251
super(method, res, body)
252252
this.message = 'Invalid response from web login endpoint'
253-
Error.captureStackTrace(this, WebLoginInvalidResponse)
254253
}
255254
}
256255

@@ -259,7 +258,6 @@ class WebLoginNotSupported extends HttpErrorBase {
259258
super(method, res, body)
260259
this.message = 'Web login not supported'
261260
this.code = 'ENYI'
262-
Error.captureStackTrace(this, WebLoginNotSupported)
263261
}
264262
}
265263

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "GitHub Inc.",
77
"license": "ISC",
88
"dependencies": {
9-
"npm-registry-fetch": "^17.0.0",
9+
"npm-registry-fetch": "^17.0.1",
1010
"proc-log": "^4.0.0"
1111
},
1212
"main": "./lib/index.js",

0 commit comments

Comments
 (0)