feat: add nodejs-binary package classifier (#1296)

This commit is contained in:
Christopher Angelo Phillips
2022-10-31 16:45:11 +00:00
committed by GitHub
parent 919c929798
commit edeba9c01c
20 changed files with 209 additions and 12 deletions
@@ -70,6 +70,11 @@ func candidateVendors(p pkg.Package) []string {
vendors := newFieldCandidateSet(candidateProducts(p)...)
switch p.Language {
case pkg.JavaScript:
// for JavaScript if we find node.js as a package then the vendor is "nodejs"
if p.Name == "node.js" {
vendors.addValue("nodejs")
}
case pkg.Ruby:
vendors.addValue("ruby-lang")
case pkg.Go: