UNPKG

npm-check-updates

Version:

Find newer versions of dependencies than what your package.json allows

15 lines (14 loc) 656 B
import { Index } from '../types/IndexType'; import { Options } from '../types/Options'; import { VersionSpec } from '../types/VersionSpec'; /** * Upgrade the dependency declarations in the package data. * * @param pkgData The package.json data, as utf8 text * @param oldDependencies Old dependencies {package: range} * @param newDependencies New dependencies {package: range} * @returns The updated package data, as utf8 text * @description Side Effect: prompts */ declare function upgradePackageData(pkgData: string, current: Index<VersionSpec>, upgraded: Index<VersionSpec>, options: Options): Promise<string>; export default upgradePackageData;