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

fix(nvm): node versioning, not semver

parent 2484766e
No related branches found
No related tags found
No related merge requests found
const semver = require('../../versioning/semver');
const node = require('../../versioning/node');
module.exports = {
extractPackageFile,
......@@ -10,7 +10,7 @@ function extractPackageFile(content) {
currentValue: content.trim(),
purl: 'pkg:github/nodejs/node',
};
if (!semver.isVersion(dep.currentValue)) {
if (!node.isValid(dep.currentValue)) {
dep.skipReason = 'unsupported-version';
}
return { deps: [dep] };
......
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