Skip to content

Commit 12e0961

Browse files
committed
Update dependencies
1 parent 84a6e40 commit 12e0961

File tree

4 files changed

+18506
-1319
lines changed

4 files changed

+18506
-1319
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ collect.set('isGist', [
8080
'https://my-little-hub.com/gist',
8181
]);
8282

83-
export const isGlobalConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean => ['issues', 'pulls'].includes(url.pathname.split('/', 2)[1]);
83+
export const isGlobalConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean => ['issues', 'pulls'].includes(url.pathname.split('/', 2)[1]!);
8484
collect.set('isGlobalConversationList', [
8585
'https://github.com/issues',
8686
'https://github.com/issues?q=is%3Apr+is%3Aopen',
@@ -237,7 +237,7 @@ collect.set('isEditingRelease', [
237237
]);
238238

239239
export const isRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => /^[^/]+\/[^/]+/.test(getCleanPathname(url)) &&
240-
!reservedNames.includes(url.pathname.split('/', 2)[1]) &&
240+
!reservedNames.includes(url.pathname.split('/', 2)[1]!) &&
241241
!isDashboard(url) &&
242242
!isGist(url) &&
243243
!isRepoSearch(url);
@@ -562,7 +562,7 @@ const getRepo = (url?: URL | HTMLAnchorElement | Location | string): RepositoryI
562562
return;
563563
}
564564

565-
const [owner, name, ...path] = getCleanPathname(url).split('/');
565+
const [owner, name, ...path] = getCleanPathname(url).split('/') as [string, string, string];
566566
return {
567567
owner,
568568
name,

0 commit comments

Comments
 (0)