PURL output isn't correctly separate namespace and name for NPM (maybe more) #131
Labels
detector:pip
The pip detector
status:ready
Ready to start implementation
type:bug
Bug fix of existing functionality
An example of the ScanManifest.json contents for an NPM package:
It looks like the tool is not aligning with the PURL spec definition of how namespaces should be decomposed in NPM packages (defined as the
scope
component).It appears this would be relatively simple code in the NpmComponent -- Instead of passing along NPM's concept of name into the name property and ignoring whitespace, a simple
split
(taking the last segment as the name and the former X segments, escaped and joined with/
) could provide the Namespace.It also seems possible other ecosystems are not correctly utilizing namespace in PURL, but I haven't looked much into it.
The text was updated successfully, but these errors were encountered: