diff --git a/lib/versioning/npm/range.js b/lib/versioning/npm/range.js index 451a481155f7cf6744e6e6d6c3d99fbfa1647539..c2a03dc8022214f0a6f851b3972c7ccf94cdc984 100644 --- a/lib/versioning/npm/range.js +++ b/lib/versioning/npm/range.js @@ -17,7 +17,7 @@ function getNewValue(currentValue, rangeStrategy, fromVersion, toVersion) { if (rangeStrategy === 'pin' || isVersion(currentValue)) { return toVersion; } - if (rangeStrategy === 'lockfile-update') { + if (rangeStrategy === 'update-lockfile') { if (satisfies(toVersion, currentValue)) { return currentValue; } diff --git a/lib/workers/repository/process/lookup/index.js b/lib/workers/repository/process/lookup/index.js index 30edf1e3aabf1c07955f5953e0004b54b68a1e5e..9811901b26fd5261aa57533af0b6623644b2f3e1 100644 --- a/lib/workers/repository/process/lookup/index.js +++ b/lib/workers/repository/process/lookup/index.js @@ -132,7 +132,7 @@ async function lookupUpdates(config) { }); } let filterStart = fromVersion; - if (lockedVersion && rangeStrategy === 'lockfile-update') { + if (lockedVersion && rangeStrategy === 'update-lockfile') { // Look for versions greater than the current locked version that still satisfy the package.json range filterStart = lockedVersion; } diff --git a/test/workers/repository/process/lookup/index.spec.js b/test/workers/repository/process/lookup/index.spec.js index 416b225c2a27b07f52c3ac8bbcc960d35f4e2d53..c265595a6a4a3d64abc11b65c7612a814d1f37d5 100644 --- a/test/workers/repository/process/lookup/index.spec.js +++ b/test/workers/repository/process/lookup/index.spec.js @@ -58,7 +58,7 @@ describe('workers/repository/process/lookup', () => { }); it('supports lock file updates mixed with regular updates', async () => { config.currentValue = '^0.4.0'; - config.rangeStrategy = 'lockfile-update'; + config.rangeStrategy = 'update-lockfile'; config.depName = 'q'; config.datasource = 'npm'; config.lockedVersion = '0.4.0';