File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -916,7 +916,7 @@ export default class Package {
916916 if ( isOutdated ) {
917917 updates . push ( {
918918 "name" : dependency . name ,
919- "wanted" : dependency . range . toString ( ) ,
919+ "wanted" : dependency . range ,
920920 "latest" : res . data . latest ,
921921 "next" : res . data . next ,
922922 isOutdated,
@@ -963,13 +963,29 @@ export default class Package {
963963 "headerValign" : "end" ,
964964 "align" : "end" ,
965965 "width" : 30 ,
966+ format ( value , row ) {
967+ if ( row . wanted . test ( value ) ) {
968+ return ` ${ value } ` ;
969+ }
970+ else {
971+ return ansi . error ( ` ${ value } ` ) ;
972+ }
973+ } ,
966974 } ,
967975 "next" : {
968976 "title" : ansi . hl ( "NEXT VERSION" ) ,
969977 "headerAlign" : "center" ,
970978 "headerValign" : "end" ,
971979 "align" : "end" ,
972980 "width" : 30 ,
981+ format ( value , row ) {
982+ if ( row . wanted . test ( value ) ) {
983+ return ` ${ value } ` ;
984+ }
985+ else {
986+ return ansi . error ( ` ${ value } ` ) ;
987+ }
988+ } ,
973989 } ,
974990 } ,
975991 } )
You can’t perform that action at this time.
0 commit comments