rename column headers to 'old' and 'new'

This commit is contained in:
silverwind 2017-12-03 12:38:12 +01:00
parent 5e17d83554
commit 4bcf21ad15
Signed by: silverwind
GPG Key ID: 2E62B41C93869443
2 changed files with 3 additions and 3 deletions

@ -14,7 +14,7 @@ $ yarn global add updates
## Example:
```sh
$ updates
NAME RANGE NEWRANGE
NAME OLD NEW
got ^8.0.1 ^8.0.1
semver ^5.4.1 ^5.4.1
eslint ^4.12.1 ^4.12.1

@ -79,8 +79,8 @@ function formatResults(results) {
if (output.newRange !== output.range) {
return {
name: output.name,
range: chalk.red(output.newRange),
newRange: chalk.green(output.newRange),
old: chalk.red(output.newRange),
"new": chalk.green(output.newRange),
};
}
}).filter(result => Boolean(result)), {