From 284491fa8469a2472e62c92b8fd4f1680d9ea195 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:59:32 -0700 Subject: [PATCH] chore(deps): update dependency prettier to v3 (#289) * chore(deps): update dependency prettier to v3 * npm run lint:fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Keegan Campbell --- package-lock.json | 12 ++++++------ package.json | 2 +- src/index.ts | 6 +++--- test/index.test.ts | 24 ++++++++++++------------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4f3c0aa..b20fd16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "esbuild": "^0.18.0", "glob": "^10.2.6", "jest": "^29.0.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "ts-jest": "^29.0.0", "typescript": "^5.0.0" }, @@ -3707,15 +3707,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz", + "integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index 2109133..4af4ee7 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "esbuild": "^0.18.0", "glob": "^10.2.6", "jest": "^29.0.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "ts-jest": "^29.0.0", "typescript": "^5.0.0" }, diff --git a/src/index.ts b/src/index.ts index a6394c9..b71a87b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,11 +14,11 @@ export type { export function oauthAuthorizationUrl(options: OAuthAppOptions): OAuthAppResult; export function oauthAuthorizationUrl( - options: GitHubAppOptions + options: GitHubAppOptions, ): GitHubAppResult; export function oauthAuthorizationUrl( - options: Record + options: Record, ): Record { const clientType = options.clientType || "oauth-app"; const baseUrl = options.baseUrl || "https://github.com"; @@ -47,7 +47,7 @@ export function oauthAuthorizationUrl( function urlBuilderAuthorize( base: string, - options: Record + options: Record, ): string { const map = { allowSignup: "allow_signup", diff --git a/test/index.test.ts b/test/index.test.ts index 9c8ea18..9d2aec8 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -8,7 +8,7 @@ test('oauthAuthorizationUrl({clientId: "1234567890abcdef1234"})', () => { expect( oauthAuthorizationUrl({ clientId: "1234567890abcdef1234", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -25,7 +25,7 @@ test('oauthAuthorizationUrl({clientId: "1234567890abcdef1234", clientType: "oaut expect( oauthAuthorizationUrl({ clientId: "1234567890abcdef1234", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -43,7 +43,7 @@ test('oauthAuthorizationUrl({clientId: "lv1.1234567890abcdef", clientType: "gith oauthAuthorizationUrl({ clientId: "lv1.1234567890abcdef", clientType: "github-app", - }) + }), ).toEqual({ allowSignup: true, clientId: "lv1.1234567890abcdef", @@ -59,7 +59,7 @@ test('oauthAuthorizationUrl({clientId: "4321fedcba0987654321"})', () => { expect( oauthAuthorizationUrl({ clientId: "4321fedcba0987654321", - }) + }), ).toEqual({ allowSignup: true, clientId: "4321fedcba0987654321", @@ -77,7 +77,7 @@ test("redirectUrl option", () => { oauthAuthorizationUrl({ clientId: "1234567890abcdef1234", redirectUrl: "https://example.com?q=octocat&sort=date", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -95,7 +95,7 @@ test("login option", () => { oauthAuthorizationUrl({ clientId: "1234567890abcdef1234", login: "octocat", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -114,7 +114,7 @@ test("scopes = []", () => { clientId: "1234567890abcdef1234", login: "octocat", scopes: [], - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -133,7 +133,7 @@ test('scopes = ""', () => { clientId: "1234567890abcdef1234", login: "octocat", scopes: "", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -152,7 +152,7 @@ test('scopes = "user,public_repo, gist notifications"', () => { clientId: "1234567890abcdef1234", login: "octocat", scopes: "user,public_repo, gist notifications", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -172,7 +172,7 @@ test("allowSignup = false", () => { clientId: "1234567890abcdef1234", login: "octocat", scopes: "user,public_repo, gist notifications", - }) + }), ).toEqual({ allowSignup: false, clientId: "1234567890abcdef1234", @@ -191,7 +191,7 @@ test("state = Sjn2oMwNFZPiVm6Mtjn2o9b3xxZ4sVEI", () => { clientId: "1234567890abcdef1234", login: "octocat", state: "Sjn2oMwNFZPiVm6Mtjn2o9b3xxZ4sVEI", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234", @@ -209,7 +209,7 @@ test('oauthAuthorizationUrl({clientId: "1234567890abcdef1234", baseUrl: "https:/ oauthAuthorizationUrl({ clientId: "1234567890abcdef1234", baseUrl: "https://github.my-enterprise.com", - }) + }), ).toEqual({ allowSignup: true, clientId: "1234567890abcdef1234",