Skip to content
Snippets Groups Projects
Commit 3bf09baa authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(packagist): ignore null versions

parent 085a4d85
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,10 @@ async function getPackagistFile(regUrl, file) {
function extractDepReleases(versions) {
const dep = {};
// istanbul ignore if
if (!versions) {
return dep;
}
dep.releases = Object.keys(versions)
.filter(isVersion)
.sort(sortVersions)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment