Skip to content

Commit

Permalink
chore: update dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Dec 10, 2023
1 parent 2eedda1 commit 91c5beb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/types/Crates.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export type CrateResponse<T extends 'owners' | 'crates'> = T extends 'owners'
? {
users: CrateUser[];
}
}
: {
crates: Crate[];
};
};

export interface Crate {
badges: never[];
Expand Down
16 changes: 8 additions & 8 deletions src/lib/util/github-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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 [
{
Expand Down Expand Up @@ -375,8 +375,8 @@ interface GraphQLResponse<T extends 'searchRepositories' | 'searchIssuesAndPrs'
data: T extends 'data'
? Record<'repository', Query['repository']>
: 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;
}
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 91c5beb

Please sign in to comment.