diff --git a/lib/workers/repository/process/lookup/current.ts b/lib/workers/repository/process/lookup/current.ts index 94f8d12fd4e7d99ebc807868e8652f27c8c88246..0b7113f703988ed6ebd3039c562c429d89c45894 100644 --- a/lib/workers/repository/process/lookup/current.ts +++ b/lib/workers/repository/process/lookup/current.ts @@ -2,16 +2,15 @@ import is from '@sindresorhus/is'; import { logger } from '../../../../logger'; import { regEx } from '../../../../util/regex'; import type { VersioningApi } from '../../../../versioning/types'; -import type { LookupUpdateConfig } from './types'; export function getCurrentVersion( - config: LookupUpdateConfig, + currentValue: string, + lockedVersion: string, versioning: VersioningApi, rangeStrategy: string, latestVersion: string, allVersions: string[] ): string | null { - const { currentValue, lockedVersion } = config; // istanbul ignore if if (!is.string(currentValue)) { return null; diff --git a/lib/workers/repository/process/lookup/index.ts b/lib/workers/repository/process/lookup/index.ts index ae5165ca9490fed1f654dda715543f15721b3342..22041898d1ff1e1c16d17aa880ad47d78de25be5 100644 --- a/lib/workers/repository/process/lookup/index.ts +++ b/lib/workers/repository/process/lookup/index.ts @@ -170,14 +170,16 @@ export async function lookupUpdates( .map((release) => release.version); const currentVersion = getCurrentVersion( - config, + currentValue, + lockedVersion, versioning, rangeStrategy, latestVersion, nonDeprecatedVersions ) || getCurrentVersion( - config, + currentValue, + lockedVersion, versioning, rangeStrategy, latestVersion,