Skip to content

Commit

Permalink
Merge pull request #260 from OskiKervinen-MF/topic/250-filter-npm-rel…
Browse files Browse the repository at this point in the history
…eases

Fixed: #250 cannot install new npm versions
  • Loading branch information
nullivex authored Jan 18, 2023
2 parents 32ad8e5 + 98a7761 commit 4ee7227
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ NPMIST.listAvailable = function(){
per_page: '100'
})
])
.then(([npm, cli]) => npm.concat(cli));
.then(([npm, cli]) => {
// The npm project has two kinds of releases: releases of npm,
// and releases of other utility libraries.
// Ignore the releases of libraries. They are named "package: version",
// while core npm releases are named just "version".
cli = cli.filter( release => release.name.indexOf(':') < 0 );

return npm.concat(cli);
});
};

/**
Expand Down

0 comments on commit 4ee7227

Please sign in to comment.