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

feat: Add enum-like static readonly property KnownQualifierNames to reflect known qualifier names #34

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

jkowalleck
Copy link
Contributor

@jkowalleck jkowalleck commented Sep 7, 2022

Add enum-like static readonly property KnownQualifierNames to reflect known qualifier names
as defined by https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#known-qualifiers-keyvalue-pairs

The implementation uses a readonly(frozen) dictionary(object),
because the version ob JavaScript this library was targeting(node 10 according to .travis.yml) did not support nativve language-level enum.

The usage, responsibility and capabilities are clearly shown in the new unit tests.

@jkowalleck jkowalleck changed the title feat: KnownQualifierNames feat: Add enum-like static readonly property KnownQualifierNames to reflect known qualifier names Sep 7, 2022
@jkowalleck jkowalleck marked this pull request as ready for review September 7, 2022 06:52
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
Copy link
Contributor Author

Hello @steven-esser ,

could you have a review on this?

@steven-esser steven-esser merged commit 180843d into package-url:master Sep 7, 2022
satanshiro pushed a commit to satanshiro/packageurl-js that referenced this pull request Oct 30, 2023
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
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.

None yet

2 participants