Skip to content

Commit 9ef3a88

Browse files
renovate[bot]create-or-update-pull-requestkfcampbell
authored
chore(deps): update dependency prettier to v3 (#167)
* chore(deps): update dependency prettier to v3 * style: prettier * Empty commit to trigger test run --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Create or Update Pull Request Action <[email protected]> Co-authored-by: Keegan Campbell <[email protected]>
1 parent a033e04 commit 9ef3a88

24 files changed

+79
-79
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"fetch-mock": "^9.11.0",
3636
"glob": "^10.2.7",
3737
"jest": "^29.0.0",
38-
"prettier": "2.8.8",
38+
"prettier": "3.0.0",
3939
"semantic-release": "^21.0.0",
4040
"semantic-release-plugin-update-version-in-files": "^1.1.0",
4141
"ts-jest": "^29.0.0",

scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ async function main() {
6969
sideEffects: false,
7070
},
7171
null,
72-
2
73-
)
72+
2,
73+
),
7474
);
7575
}
7676
main();

src/check-token.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ export type CheckTokenGitHubAppResponse =
3535
};
3636

3737
export async function checkToken(
38-
options: CheckTokenOAuthAppOptions
38+
options: CheckTokenOAuthAppOptions,
3939
): Promise<CheckTokenOAuthAppResponse>;
4040
export async function checkToken(
41-
options: CheckTokenGitHubAppOptions
41+
options: CheckTokenGitHubAppOptions,
4242
): Promise<CheckTokenGitHubAppResponse>;
4343

4444
export async function checkToken(
45-
options: CheckTokenOAuthAppOptions | CheckTokenGitHubAppOptions
45+
options: CheckTokenOAuthAppOptions | CheckTokenGitHubAppOptions,
4646
): Promise<any> {
4747
const request =
4848
options.request ||
@@ -52,7 +52,7 @@ export async function checkToken(
5252
const response = await request("POST /applications/{client_id}/token", {
5353
headers: {
5454
authorization: `basic ${btoa(
55-
`${options.clientId}:${options.clientSecret}`
55+
`${options.clientId}:${options.clientSecret}`,
5656
)}`,
5757
},
5858
client_id: options.clientId,

src/create-device-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type CreateDeviceCodeDeviceTokenResponse = OctokitResponse<{
2424
}>;
2525

2626
export async function createDeviceCode(
27-
options: CreateDeviceCodeOAuthAppOptions | CreateDeviceCodeGitHubAppOptions
27+
options: CreateDeviceCodeOAuthAppOptions | CreateDeviceCodeGitHubAppOptions,
2828
): Promise<CreateDeviceCodeDeviceTokenResponse> {
2929
const request =
3030
options.request ||

src/delete-authorization.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ export type DeleteAuthorizationResponse =
2020
Endpoints["DELETE /applications/{client_id}/grant"]["response"];
2121

2222
export async function deleteAuthorization(
23-
options: DeleteAuthorizationOAuthAppOptions
23+
options: DeleteAuthorizationOAuthAppOptions,
2424
): Promise<DeleteAuthorizationResponse>;
2525
export async function deleteAuthorization(
26-
options: DeleteAuthorizationGitHubAppOptions
26+
options: DeleteAuthorizationGitHubAppOptions,
2727
): Promise<DeleteAuthorizationResponse>;
2828

2929
export async function deleteAuthorization(
3030
options:
3131
| DeleteAuthorizationOAuthAppOptions
32-
| DeleteAuthorizationGitHubAppOptions
32+
| DeleteAuthorizationGitHubAppOptions,
3333
): Promise<any> {
3434
const request =
3535
options.request ||
@@ -46,6 +46,6 @@ export async function deleteAuthorization(
4646
},
4747
client_id: options.clientId,
4848
access_token: options.token,
49-
}
49+
},
5050
);
5151
}

src/delete-token.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ export type DeleteTokenResponse =
2121
Endpoints["DELETE /applications/{client_id}/token"]["response"];
2222

2323
export async function deleteToken(
24-
options: DeleteTokenOAuthAppOptions
24+
options: DeleteTokenOAuthAppOptions,
2525
): Promise<DeleteTokenResponse>;
2626
export async function deleteToken(
27-
options: DeleteTokenGitHubAppOptions
27+
options: DeleteTokenGitHubAppOptions,
2828
): Promise<DeleteTokenResponse>;
2929

3030
export async function deleteToken(
31-
options: DeleteTokenOAuthAppOptions | DeleteTokenGitHubAppOptions
31+
options: DeleteTokenOAuthAppOptions | DeleteTokenGitHubAppOptions,
3232
): Promise<any> {
3333
const request =
3434
options.request ||
@@ -45,6 +45,6 @@ export async function deleteToken(
4545
},
4646
client_id: options.clientId,
4747
access_token: options.token,
48-
}
48+
},
4949
);
5050
}

src/exchange-device-code.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,36 +87,36 @@ export type ExchangeDeviceCodeGitHubAppResponseWithoutClientSecret =
8787
* Exchange the code from GitHub's OAuth Web flow for OAuth Apps.
8888
*/
8989
export async function exchangeDeviceCode(
90-
options: ExchangeDeviceCodeOAuthAppOptions
90+
options: ExchangeDeviceCodeOAuthAppOptions,
9191
): Promise<ExchangeDeviceCodeOAuthAppResponse>;
9292

9393
/**
9494
* Exchange the code from GitHub's OAuth Web flow for OAuth Apps without clientSecret
9595
*/
9696
export async function exchangeDeviceCode(
97-
options: ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret
97+
options: ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret,
9898
): Promise<ExchangeDeviceCodeOAuthAppResponseWithoutClientSecret>;
9999

100100
/**
101101
* Exchange the code from GitHub's OAuth Web flow for GitHub Apps. `scopes` are not supported by GitHub Apps.
102102
*/
103103
export async function exchangeDeviceCode(
104-
options: ExchangeDeviceCodeGitHubAppOptions
104+
options: ExchangeDeviceCodeGitHubAppOptions,
105105
): Promise<ExchangeDeviceCodeGitHubAppResponse>;
106106

107107
/**
108108
* Exchange the code from GitHub's OAuth Web flow for GitHub Apps without using `clientSecret`. `scopes` are not supported by GitHub Apps.
109109
*/
110110
export async function exchangeDeviceCode(
111-
options: ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret
111+
options: ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret,
112112
): Promise<ExchangeDeviceCodeGitHubAppResponseWithoutClientSecret>;
113113

114114
export async function exchangeDeviceCode(
115115
options:
116116
| ExchangeDeviceCodeOAuthAppOptions
117117
| ExchangeDeviceCodeGitHubAppOptions
118118
| ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret
119-
| ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret
119+
| ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret,
120120
): Promise<any> {
121121
const request =
122122
options.request ||
@@ -130,7 +130,7 @@ export async function exchangeDeviceCode(
130130
client_id: options.clientId,
131131
device_code: options.code,
132132
grant_type: "urn:ietf:params:oauth:grant-type:device_code",
133-
}
133+
},
134134
);
135135

136136
const authentication: Record<string, unknown> = {
@@ -151,11 +151,11 @@ export async function exchangeDeviceCode(
151151
(authentication.refreshToken = response.data.refresh_token),
152152
(authentication.expiresAt = toTimestamp(
153153
apiTimeInMs,
154-
response.data.expires_in
154+
response.data.expires_in,
155155
)),
156156
(authentication.refreshTokenExpiresAt = toTimestamp(
157157
apiTimeInMs,
158-
response.data.refresh_token_expires_in
158+
response.data.refresh_token_expires_in,
159159
));
160160
}
161161

src/exchange-web-flow-code.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ export type ExchangeWebFlowCodeGitHubAppResponse = OctokitResponse<
4747
* Exchange the code from GitHub's OAuth Web flow for OAuth Apps.
4848
*/
4949
export async function exchangeWebFlowCode(
50-
options: ExchangeWebFlowCodeOAuthAppOptions
50+
options: ExchangeWebFlowCodeOAuthAppOptions,
5151
): Promise<ExchangeWebFlowCodeOAuthAppResponse>;
5252

5353
/**
5454
* Exchange the code from GitHub's OAuth Web flow for GitHub Apps. Note that `scopes` are not supported by GitHub Apps.
5555
*/
5656
export async function exchangeWebFlowCode(
57-
options: ExchangeWebFlowCodeGitHubAppOptions
57+
options: ExchangeWebFlowCodeGitHubAppOptions,
5858
): Promise<ExchangeWebFlowCodeGitHubAppResponse>;
5959

6060
export async function exchangeWebFlowCode(
6161
options:
6262
| ExchangeWebFlowCodeOAuthAppOptions
63-
| ExchangeWebFlowCodeGitHubAppOptions
63+
| ExchangeWebFlowCodeGitHubAppOptions,
6464
): Promise<any> {
6565
const request =
6666
options.request ||
@@ -75,7 +75,7 @@ export async function exchangeWebFlowCode(
7575
client_secret: options.clientSecret,
7676
code: options.code,
7777
redirect_uri: options.redirectUrl,
78-
}
78+
},
7979
);
8080

8181
const authentication: Record<string, unknown> = {
@@ -93,11 +93,11 @@ export async function exchangeWebFlowCode(
9393
(authentication.refreshToken = response.data.refresh_token),
9494
(authentication.expiresAt = toTimestamp(
9595
apiTimeInMs,
96-
response.data.expires_in
96+
response.data.expires_in,
9797
)),
9898
(authentication.refreshTokenExpiresAt = toTimestamp(
9999
apiTimeInMs,
100-
response.data.refresh_token_expires_in
100+
response.data.refresh_token_expires_in,
101101
));
102102
}
103103

src/get-web-flow-authorization-url.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export type GetWebFlowAuthorizationUrlOAuthAppResult = OAuthAppResult;
3535
export type GetWebFlowAuthorizationUrlGitHubAppResult = GitHubAppResult;
3636

3737
export function getWebFlowAuthorizationUrl(
38-
options: GetWebFlowAuthorizationUrlOAuthAppOptions
38+
options: GetWebFlowAuthorizationUrlOAuthAppOptions,
3939
): OAuthAppResult;
4040
export function getWebFlowAuthorizationUrl(
41-
options: GetWebFlowAuthorizationUrlGitHubAppOptions
41+
options: GetWebFlowAuthorizationUrlGitHubAppOptions,
4242
): GitHubAppResult;
4343

4444
export function getWebFlowAuthorizationUrl({

0 commit comments

Comments
 (0)