Skip to content

fix: ensure purls are deduped and encoded#242

Merged
edezekiel merged 2 commits into
mainfrom
ee/dedupe-and-encode-purls
May 30, 2025
Merged

fix: ensure purls are deduped and encoded#242
edezekiel merged 2 commits into
mainfrom
ee/dedupe-and-encode-purls

Conversation

@edezekiel
Copy link
Copy Markdown
Contributor

@edezekiel edezekiel commented May 27, 2025

cdxgen can yield unencoded and duplicative purls. For example, pkg:npm/@angular/core@14.3.0 and pkg:npm/%40angular/core@14.3.0. This PR ensures that purls are encoded and deduped before being sent to the api. Whether the api should unencode them on the way 'out the door' so to speak is a separate issue. They should be saved in the encoded format.

@edezekiel edezekiel requested a review from a team as a code owner May 27, 2025 16:08
Comment thread src/api/nes/nes.client.ts
@edezekiel edezekiel merged commit f4f2072 into main May 30, 2025
12 checks passed
@edezekiel edezekiel deleted the ee/dedupe-and-encode-purls branch May 30, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants