function checkAll(versions, source, dep) {
	const version = versions[dep];
	const devDeps = source.devDependencies;
	const deps = source.dependencies;
	const peer = source.peerDependencies;
	const isModDevDeps = check(devDeps, dep, version, 'dev');
	const isModDeps = check(deps, dep, version);
	const isModPeers = check(peer, dep, version, 'peer');
	if (isModDevDeps || isModDeps || isModPeers) {
		// eslint-disable-next-line no-param-reassign
		source.modified = true;
	}
}
/**
 * @param {Object<dependency, version>} versions - target versions
 * @param {Object<dependency, version>} source - actual dependencies and their versions
 * will be mutated and provided to caller by reference
 * mutation include update of version and added modified properties as boolean
 * @param {String} dep one dep from `versions`
 */
@param {Object} versions - target versions
@param {Object} source - actual dependencies and their versions
will be mutated and provided to caller by reference
mutation include update of version and added modified properties as boolean
@param {String} dep one dep from `versions`
@param { Object } versions - target versions @param { Object } source - actual dependencies and their versions will be mutated and provided to caller by reference mutation include update of version and added modified properties as boolean @param { String } dep one dep from ` versions `
function checkAll(versions, source, dep) {
	const version = versions[dep];
	const devDeps = source.devDependencies;
	const deps = source.dependencies;
	const peer = source.peerDependencies;
	const isModDevDeps = check(devDeps, dep, version, 'dev');
	const isModDeps = check(deps, dep, version);
	const isModPeers = check(peer, dep, version, 'peer');
	if (isModDevDeps || isModDeps || isModPeers) {
		source.modified = true;
	}
}
function checkAll ( versions , source , dep ) { const version = versions [ dep ] ; const devDeps = source . devDependencies ; const deps = source . dependencies ; const peer = source . peerDependencies ; const isModDevDeps = check ( devDeps , dep , version , 'dev' ) ; const isModDeps = check ( deps , dep , version ) ; const isModPeers = check ( peer , dep , version , 'peer' ) ; if ( isModDevDeps || isModDeps || isModPeers ) { source . modified = true ; } }
@param {Object<dependency, version>} versions - target versions
 @param {Object<dependency, version>} source - actual dependencies and their versions
 will be mutated and provided to caller by reference
 mutation include update of version and added modified properties as boolean
 @param {String} dep one dep from `versions`
@param { Object<dependency version > } versions - target versions @param { Object<dependency version > } source - actual dependencies and their versions will be mutated and provided to caller by reference mutation include update of version and added modified properties as boolean @param { String } dep one dep from ` versions `
// eslint-disable-next-line no-param-reassign