Skip to content

Commit 12dd455

Browse files
authored
Update dependencies (#94)
1 parent 65fa386 commit 12dd455

File tree

6 files changed

+4705
-3840
lines changed

6 files changed

+4705
-3840
lines changed

index.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ collect.set('isIssue', [
112112
]);
113113

114114
export const isConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean =>
115-
isGlobalConversationList(url) ||
116-
isRepoConversationList(url) ||
117-
isMilestone(url);
115+
isGlobalConversationList(url)
116+
|| isRepoConversationList(url)
117+
|| isMilestone(url);
118118
collect.set('isConversationList', combinedTestOnly);
119119

120120
export const isConversation = (url: URL | HTMLAnchorElement | Location = location): boolean => isIssue(url) || isPRConversation(url);
@@ -277,12 +277,12 @@ collect.set('isEditingWikiPage', [
277277
'https://github.com/tooomm/wikitest/wiki/Getting-Started/_edit',
278278
]);
279279

280-
export const isRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => /^[^/]+\/[^/]+/.test(getCleanPathname(url)) &&
281-
!reservedNames.includes(url.pathname.split('/', 2)[1]!) &&
282-
!isDashboard(url) &&
283-
!isGist(url) &&
284-
!isRepoSearch(url) &&
285-
!isNewRepoTemplate(url);
280+
export const isRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => /^[^/]+\/[^/]+/.test(getCleanPathname(url))
281+
&& !reservedNames.includes(url.pathname.split('/', 2)[1]!)
282+
&& !isDashboard(url)
283+
&& !isGist(url)
284+
&& !isRepoSearch(url)
285+
&& !isNewRepoTemplate(url);
286286
collect.set('isRepo', [
287287
// Some of these are here simply as "gotchas" to other detections
288288
'https://github.com/sindresorhus/refined-github/blame/master/package.json',
@@ -309,9 +309,9 @@ collect.set('isRepoTaxonomyConversationList', [
309309
]);
310310

311311
export const isRepoConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean =>
312-
isRepoPRList(url) ||
313-
isRepoIssueList(url) ||
314-
isRepoTaxonomyConversationList(url);
312+
isRepoPRList(url)
313+
|| isRepoIssueList(url)
314+
|| isRepoTaxonomyConversationList(url);
315315
collect.set('isRepoConversationList', combinedTestOnly);
316316

317317
export const isRepoPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('pulls'));
@@ -479,20 +479,20 @@ export const isUserProfile = (): boolean => exists('.user-profile-nav');
479479
export const isUserProfileMainTab = (): boolean => exists('[aria-label="User profile"] > .selected:first-child');
480480

481481
export const isUserProfileRepoTab = (): boolean =>
482-
isUserProfile() &&
483-
new URLSearchParams(location.search).get('tab') === 'repositories';
482+
isUserProfile()
483+
&& new URLSearchParams(location.search).get('tab') === 'repositories';
484484

485485
export const isUserProfileStarsTab = (): boolean =>
486-
isUserProfile() &&
487-
new URLSearchParams(location.search).get('tab') === 'stars';
486+
isUserProfile()
487+
&& new URLSearchParams(location.search).get('tab') === 'stars';
488488

489489
export const isUserProfileFollowersTab = (): boolean =>
490-
isUserProfile() &&
491-
new URLSearchParams(location.search).get('tab') === 'followers';
490+
isUserProfile()
491+
&& new URLSearchParams(location.search).get('tab') === 'followers';
492492

493493
export const isUserProfileFollowingTab = (): boolean =>
494-
isUserProfile() &&
495-
new URLSearchParams(location.search).get('tab') === 'following';
494+
isUserProfile()
495+
&& new URLSearchParams(location.search).get('tab') === 'following';
496496

497497
export const isSingleTag = (url: URL | HTMLAnchorElement | Location = location): boolean => /^(releases\/tag)/.test(getRepo(url)?.path!);
498498
collect.set('isSingleTag', [
@@ -502,29 +502,29 @@ collect.set('isSingleTag', [
502502

503503
collect.set('hasComments', combinedTestOnly);
504504
export const hasComments = (url: URL | HTMLAnchorElement | Location = location): boolean =>
505-
isPR(url) ||
506-
isIssue(url) ||
507-
isCommit(url) ||
508-
isOrganizationDiscussion(url) ||
509-
isSingleGist(url);
505+
isPR(url)
506+
|| isIssue(url)
507+
|| isCommit(url)
508+
|| isOrganizationDiscussion(url)
509+
|| isSingleGist(url);
510510

511511
collect.set('hasRichTextEditor', combinedTestOnly);
512512
export const hasRichTextEditor = (url: URL | HTMLAnchorElement | Location = location): boolean =>
513-
hasComments(url) ||
514-
isNewIssue(url) ||
515-
isCompare(url) ||
516-
isRepliesSettings(url) ||
517-
isNewRelease(url) ||
518-
isDiscussion(url);
513+
hasComments(url)
514+
|| isNewIssue(url)
515+
|| isCompare(url)
516+
|| isRepliesSettings(url)
517+
|| isNewRelease(url)
518+
|| isDiscussion(url);
519519

520520
collect.set('hasCode', combinedTestOnly);
521521
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean => // Static code, not the editor
522-
hasComments(url) ||
523-
isRepoTree(url) || // Readme files
524-
isSingleFile(url) ||
525-
isGist(url) ||
526-
isCompare(url) ||
527-
isBlame(url);
522+
hasComments(url)
523+
|| isRepoTree(url) // Readme files
524+
|| isSingleFile(url)
525+
|| isGist(url)
526+
|| isCompare(url)
527+
|| isBlame(url);
528528

529529
export const isMarketplaceAction = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
530530
collect.set('isMarketplaceAction', [

0 commit comments

Comments
 (0)