transforming package URLs during zod parsing

This commit is contained in:
Brandon Teng
2024-04-16 16:04:11 -05:00
parent a318e62c6c
commit 3ca15314ff
4 changed files with 11 additions and 32 deletions

View File

@@ -70,7 +70,7 @@ export function octokitClient(token = 'repo-token', required = true): Octokit {
return new Octokit(opts)
}
export const parseGroupPURL = (purlString: string): PackageURL | undefined => {
export const parsePURL = (purlString: string): PackageURL | undefined => {
try {
return PackageURL.fromString(purlString)
} catch (error) {