packages/upgradable/lib/start/index.js
function box ({latest, message, name, version}) {
	const lines = [
		`You are running ${name.yellow} version ${version.yellow}`,
		`The latest version is ${latest.green}`,
	];

	if (message) {
		lines.push(message.bold.italic);
	}

	return boxt(
		lines.join('\n'),
		{
			'align': 'left',
			'theme': 'round',
		}
	);
}
function box ({latest, message, name, version}) {
	const lines = [
		`You are running ${name.yellow} version ${version.yellow}`,
		`The latest version is ${latest.green}`,
	];

	if (message) {
		lines.push(message.bold.italic);
	}

	return boxt(
		lines.join('\n'),
		{
			'align': 'left',
			'theme': 'round',
		}
	);
}
function box ( { latest , message , name , version } ) { const lines = [ ` ${ name . yellow } ${ version . yellow } ` , ` ${ latest . green } ` , ] ; if ( message ) { lines . push ( message . bold . italic ) ; } return boxt ( lines . join ( '\n' ) , { 'align' : 'left' , 'theme' : 'round' , } ) ; }
A "boxed" message to user letting them know of our upgrade intentions
@param  {Info}   info Information about the package
@return {String}      Message to user
A boxed message to user letting them know of our upgrade intentions