Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing namespaces without "name" fields #67

Open
bteng22 opened this issue Apr 16, 2024 · 0 comments
Open

Add support for parsing namespaces without "name" fields #67

bteng22 opened this issue Apr 16, 2024 · 0 comments

Comments

@bteng22
Copy link

bteng22 commented Apr 16, 2024

Context

My team uses packageurl-js and needs to handle use cases where we're creating configuration options to deny all packages under a specific namespace. We currently use packageurl-js to parse all of our PURLs (including namespaces i.e. pkg:maven/com.fasterxml.jackson.core/) and it'd be helpful to have an interface that will allow us use the same parser for these options.

Current Behavior

The current packageurl-js library expects a "name" field to be present in the package URL.

Desired Behavior

We would like to be able to create and parse package URLs that have a "namespace" field, but no "name" field.

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

No branches or pull requests

1 participant