Skip to content

Commit

Permalink
upgradePackageDefinitions: Pass all options through to queryVersions.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Feb 22, 2021
1 parent 6137b05 commit 4aa249d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/versionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,7 @@ async function getOwnerPerDependency(fromVersion, toVersion, options) {
* @returns
*/
async function upgradePackageDefinitions(currentDependencies, options) {
const latestVersions = await queryVersions(currentDependencies, {
concurrency: options.concurrency,
deprecated: options.deprecated,
enginesNode: options.enginesNode,
json: options.json,
loglevel: options.loglevel,
packageManager: options.packageManager,
pre: options.pre,
registry: options.registry ? options.registry : null,
target: options.target,
timeout: options.timeout,
})
const latestVersions = await queryVersions(currentDependencies, options)

const upgradedDependencies = upgradeDependencies(currentDependencies, latestVersions, {
removeRange: options.removeRange
Expand Down

0 comments on commit 4aa249d

Please sign in to comment.