renovate/lib/manager/nvm/extract.js

19 lines
414 B
JavaScript
Raw Normal View History

2018-06-02 17:36:12 +00:00
const semver = require('../../versioning/semver');
module.exports = {
extractDependencies,
};
function extractDependencies(content) {
2018-06-02 17:36:12 +00:00
const dep = {
depName: 'node',
currentValue: content.trim(),
purl: 'pkg:github/nodejs/node?sanitize=true',
versionScheme: 'semver',
2018-06-02 17:36:12 +00:00
};
if (!semver.isVersion(dep.currentValue)) {
2018-06-02 17:36:12 +00:00
dep.skipReason = 'unsupported-version';
}
return { deps: [dep] };
}