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

Include alias information in the output of phylum parse #1301

Open
1 task
andreaphylum opened this issue Nov 21, 2023 · 0 comments
Open
1 task

Include alias information in the output of phylum parse #1301

andreaphylum opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement New feature or request needs triage Needs to be reviewed or assigned

Comments

@andreaphylum
Copy link
Contributor

Overview

Currently, the output schema of phylum parse does not include information about the aliases. This information could be useful to the vuln-reach cli for correctly resolving aliased dependencies.

Proposed formats

There could be more than one alias for a given package, so either of these solutions could work:

  • One package per alias.
    { "name": "vue-loader", "version": "17.0.1", "alias": "vue-loader-vue3" },
    { "name": "vue-loader", "version": "17.0.1", "alias": "vue-loader-svelte" },
  • An array of aliases:
    { "name": "vue-loader", "version": "17.0.1", "aliases": [ "vue-loader-vue3", "vue-loader-svelte" ] },

Acceptance Criteria

  • phylum parse outputs an optional field with alias information alongside the rest of the package information.
@andreaphylum andreaphylum added enhancement New feature or request needs triage Needs to be reviewed or assigned labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage Needs to be reviewed or assigned
Projects
None yet
Development

No branches or pull requests

1 participant