mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
18 lines
414 B
JavaScript
18 lines
414 B
JavaScript
const semver = require('../../versioning/semver');
|
|
|
|
module.exports = {
|
|
extractDependencies,
|
|
};
|
|
|
|
function extractDependencies(content) {
|
|
const dep = {
|
|
depName: 'node',
|
|
currentValue: content.trim(),
|
|
purl: 'pkg:github/nodejs/node?sanitize=true',
|
|
versionScheme: 'semver',
|
|
};
|
|
if (!semver.isVersion(dep.currentValue)) {
|
|
dep.skipReason = 'unsupported-version';
|
|
}
|
|
return { deps: [dep] };
|
|
}
|