Skip to content

feat: Factories.FromNodePackageJson.PackageUrlFactory to omits PURL's npm defaults#207

Merged
jkowalleck merged 1 commit intomainfrom
strip-purls-to-nessessarry
Sep 7, 2022
Merged

feat: Factories.FromNodePackageJson.PackageUrlFactory to omits PURL's npm defaults#207
jkowalleck merged 1 commit intomainfrom
strip-purls-to-nessessarry

Conversation

@jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Sep 7, 2022

Added

  • New class Factories.FromNodePackageJson.PackageUrlFactory that acts like Factories.PackageUrlFactory, but
    omits PackageUrl's npm-specific "default derived" qualifier values for download_url & vcs_url.

fixes #204

@jkowalleck jkowalleck added the enhancement New feature or request label Sep 7, 2022
@jkowalleck jkowalleck force-pushed the strip-purls-to-nessessarry branch from b90eeb0 to e031689 Compare September 7, 2022 14:01
@jkowalleck jkowalleck force-pushed the strip-purls-to-nessessarry branch 2 times, most recently from bdff14e to 737bdf5 Compare September 7, 2022 14:08
@jkowalleck jkowalleck marked this pull request as ready for review September 7, 2022 14:09
@jkowalleck jkowalleck requested a review from a team as a code owner September 7, 2022 14:09
@jkowalleck jkowalleck changed the title feat: Factories.FromNodePackageJson to strip purl npm defaults feat: Factories.FromNodePackageJson.PackageUrlFactory to strip PURL's npm defaults Sep 7, 2022
@jkowalleck jkowalleck changed the title feat: Factories.FromNodePackageJson.PackageUrlFactory to strip PURL's npm defaults feat: Factories.FromNodePackageJson.PackageUrlFactory to omits PURL's npm defaults Sep 7, 2022
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the strip-purls-to-nessessarry branch from 737bdf5 to 254b466 Compare September 7, 2022 14:12
@jkowalleck
Copy link
Member Author

jkowalleck commented Sep 7, 2022

hey @mwing ,

i am planning to incorporte this solution into https://github.com/CycloneDX/cyclonedx-node-npm
to solve CycloneDX/cyclonedx-node-npm#90

This means, that there will be no need to a switch, the PURLS would be shorter out of the box, unless additional qualifiers are needed to identify a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

strip unnecessary PURL qualifiers

1 participant