ci: Update most of the dev tooling (no-changelog) (#6780)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-28 13:55:16 +02:00
committed by GitHub
parent d2bbdaa58a
commit 7461085408
43 changed files with 3275 additions and 3280 deletions

View File

@@ -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}`);
}
}

View File

@@ -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;

View File

@@ -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);
}
}