renovate/lib/versioning/node/index.js
2019-01-07 05:49:47 +01:00

20 lines
375 B
JavaScript

const npm = require('../npm');
function getNewValue(currentValue, rangeStrategy, fromVersion, toVersion) {
const res = npm.getNewValue(
currentValue,
rangeStrategy,
fromVersion,
toVersion
);
if (npm.isVersion(res)) {
// normalize out any 'v' prefix
return npm.isVersion(res);
}
return res;
}
module.exports = {
...npm,
getNewValue,
};