ci: Update most of the dev tooling (no-changelog) (#6780)
This commit is contained in:
committed by
GitHub
parent
d2bbdaa58a
commit
7461085408
@@ -39,7 +39,11 @@ export interface ClientOAuth2Options {
|
||||
}
|
||||
|
||||
class ResponseError extends Error {
|
||||
constructor(readonly status: number, readonly body: object, readonly code = 'ESTATUS') {
|
||||
constructor(
|
||||
readonly status: number,
|
||||
readonly body: object,
|
||||
readonly code = 'ESTATUS',
|
||||
) {
|
||||
super(`HTTP status ${status}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,10 @@ export class ClientOAuth2Token {
|
||||
|
||||
private expires: Date;
|
||||
|
||||
constructor(readonly client: ClientOAuth2, readonly data: ClientOAuth2TokenData) {
|
||||
constructor(
|
||||
readonly client: ClientOAuth2,
|
||||
readonly data: ClientOAuth2TokenData,
|
||||
) {
|
||||
this.tokenType = data.token_type?.toLowerCase() ?? 'bearer';
|
||||
this.accessToken = data.access_token;
|
||||
this.refreshToken = data.refresh_token;
|
||||
|
||||
@@ -22,7 +22,11 @@ export function expects<Keys extends keyof ClientOAuth2Options>(
|
||||
}
|
||||
|
||||
export class AuthError extends Error {
|
||||
constructor(message: string, readonly body: any, readonly code = 'EAUTH') {
|
||||
constructor(
|
||||
message: string,
|
||||
readonly body: any,
|
||||
readonly code = 'EAUTH',
|
||||
) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user