diff --git a/package.json b/package.json index efb19bbc..0c0e45f7 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.0.1", "lint-staged": "^15.2.0", - "prettier": "^3.1.0", + "prettier": "^3.1.1", "tsup": "^8.0.1", "typescript": "^5.3.3", "vite": "^5.0.7", diff --git a/src/commands/npm.ts b/src/commands/npm.ts index 2790ddda..70666e5e 100644 --- a/src/commands/npm.ts +++ b/src/commands/npm.ts @@ -204,9 +204,9 @@ export class UserCommand extends Command { // Parse the author url const authorUrl = author.name.startsWith('@') ? // If the author is an organization then use the Organization url - encodeURI(author.link ?? `https://www.npmjs.com/org/${author.name.slice(1)}`) + encodeURI(author.link ?? `https://www.npmjs.com/org/${author.name.slice(1)}`) : // Otherwise use the User url - encodeURI(author.link ?? `https://www.npmjs.com/~${author.name}`); + encodeURI(author.link ?? `https://www.npmjs.com/~${author.name}`); return bold(hyperlink(author.name, hideLinkEmbed(authorUrl))); } diff --git a/src/lib/types/Crates.d.ts b/src/lib/types/Crates.d.ts index a54af715..64e2cd4e 100644 --- a/src/lib/types/Crates.d.ts +++ b/src/lib/types/Crates.d.ts @@ -1,10 +1,10 @@ export type CrateResponse = T extends 'owners' ? { users: CrateUser[]; - } + } : { crates: Crate[]; - }; + }; export interface Crate { badges: never[]; diff --git a/src/lib/util/github-fetch.ts b/src/lib/util/github-fetch.ts index c2a254e9..8409188d 100644 --- a/src/lib/util/github-fetch.ts +++ b/src/lib/util/github-fetch.ts @@ -135,8 +135,8 @@ function getDataForPullRequest({ pullRequest, ...repository }: Repository): Issu pullRequest?.state === 'CLOSED' ? new Date(pullRequest?.closedAt) : pullRequest?.state === 'OPEN' - ? new Date(pullRequest?.createdAt) - : new Date(pullRequest?.mergedAt); + ? new Date(pullRequest?.createdAt) + : new Date(pullRequest?.mergedAt); const dateOffset = time(dateToUse, TimestampStyles.RelativeTime); const dateStringPrefix = pullRequest?.state === 'CLOSED' ? 'closed' : pullRequest?.state === 'OPEN' ? 'opened' : 'merged'; const dateString = `${dateStringPrefix} ${dateOffset}`; @@ -211,8 +211,8 @@ function getDataForIssuesAndPrSearch( pullRequestsHaveExactNumber?.state === 'CLOSED' ? 'Closed Pull Request' : pullRequestsHaveExactNumber?.state === 'OPEN' - ? 'Open Pull Request' - : 'Merged Pull Request'; + ? 'Open Pull Request' + : 'Merged Pull Request'; return [ { @@ -375,8 +375,8 @@ interface GraphQLResponse : T extends 'searchRepositories' - ? Record<'search', Query['search']> - : T extends 'searchIssuesAndPrs' - ? Record<'repository', Query['repositoryIssuesAndPrs']> - : never; + ? Record<'search', Query['search']> + : T extends 'searchIssuesAndPrs' + ? Record<'repository', Query['repositoryIssuesAndPrs']> + : never; } diff --git a/yarn.lock b/yarn.lock index 35e50788..c5f24509 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4535,12 +4535,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.0.0, prettier@npm:^3.1.0": - version: 3.1.0 - resolution: "prettier@npm:3.1.0" +"prettier@npm:^3.0.0, prettier@npm:^3.1.0, prettier@npm:^3.1.1": + version: 3.1.1 + resolution: "prettier@npm:3.1.1" bin: prettier: bin/prettier.cjs - checksum: e95e8f93c6b9aea2ac1e86bebe329bee90c8c50d9a23d1f593eba8d7f39b33b3641eb28785001505b6723c47895a5322ad12a2fb855b289cb7bae450ffc34425 + checksum: 26a249f321b97d26c04483f1bf2eeb22e082a76f4222a2c922bebdc60111691aad4ec3979610e83942e0b956058ec361d9e9c81c185172264eb6db9aa678082b languageName: node linkType: hard @@ -5095,7 +5095,7 @@ __metadata: he: "npm:^1.2.0" ioredis: "npm:^5.3.2" lint-staged: "npm:^15.2.0" - prettier: "npm:^3.1.0" + prettier: "npm:^3.1.1" tsup: "npm:^8.0.1" turndown: "npm:^7.1.2" typescript: "npm:^5.3.3"