You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first case (not sure about others right now) isn't currently handled correctly:
"githubRepo": null, // should not be null
"repository": {
"type": "git",
"url": "npm/security-holder", // probably should be an actual URL?
"project": "security-holder",
"user": "npm",
"host": "github.com",
"path": "",
"branch": "master"
},
Npm's tool normalize-package-data normalizes this to the object format in the latest version. As it turns out, however, nice-package, which is used in this project, doesn't use normalize-package-data despite claiming so in the readme, it uses normalize-registry-metadata instead, which seems abandoned.
The reason repository has at least some information is it goes through hosted-git-info as well, which handles this format. This is likely not blocking #657 since we can check for repository.project and repository.user but still, the normalization library looks fairly outdated and there may be various other cases where it doesn't parse correct data.
The text was updated successfully, but these errors were encountered:
Note that we currently don't handle repository.directory field because of the old hosted-git-info version. Might be something to fix on our side if we don't decide to upgrade that package as the field is useful for mono repos: jupyterlab/jupyterlab#6443
Looking into #657, I found npm now allows the
repository
property to be a string:The first case (not sure about others right now) isn't currently handled correctly:
Npm's tool normalize-package-data normalizes this to the object format in the latest version. As it turns out, however,
nice-package
, which is used in this project, doesn't usenormalize-package-data
despite claiming so in the readme, it uses normalize-registry-metadata instead, which seems abandoned.The reason
repository
has at least some information is it goes throughhosted-git-info
as well, which handles this format. This is likely not blocking #657 since we can check forrepository.project
andrepository.user
but still, the normalization library looks fairly outdated and there may be various other cases where it doesn't parse correct data.The text was updated successfully, but these errors were encountered: