Skip to content

Commit 6f61121

Browse files
committed
fix(validate): version repo type detect git.sr.ht
1 parent 8487ef8 commit 6f61121

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/validate/src/packument/repository.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ function isGitProtocol(protocol: string): protocol is GitProtocol {
2323
}
2424

2525
export const REPOSITORY_DOMAIN_MAP = Object.freeze({
26-
git: ['github.com', 'bitbucket.org', 'gitlab.com', 'gitee.com'],
26+
git: [
27+
'github.com',
28+
'bitbucket.org',
29+
'gitlab.com',
30+
'gitee.com',
31+
'git.sr.ht',
32+
],
2733
} satisfies Record<Exclude<RepositoryType, 'unknown'>, string[]>);
2834

2935
export const DOMAIN_REPOSITORY_TYPE_MAP = Object.freeze(

0 commit comments

Comments
 (0)