@@ -195,6 +195,9 @@ class Outdated extends ArboristWorkspaceCmd {
195195 wanted : wanted . version ,
196196 latest : latest . version ,
197197 workspaceDependent : edge . from ?. isWorkspace ? edge . from . pkgid : null ,
198+ dependentLocation : edge . from ?. name
199+ ? edge . from ?. location
200+ : 'global' ,
198201 dependent : edge . from ?. name ?? 'global' ,
199202 homepage : packument . homepage ,
200203 } )
@@ -226,7 +229,7 @@ class Outdated extends ArboristWorkspaceCmd {
226229 'Latest' ,
227230 'Location' ,
228231 'Depended by' ,
229- ...long ? [ 'Package Type' , 'Homepage' ] : [ ] ,
232+ ...long ? [ 'Package Type' , 'Homepage' , 'Dependent Location' ] : [ ] ,
230233 ] . map ( h => bold . underline ( h ) ) ,
231234 ...list . map ( ( d ) => [
232235 d . current === d . wanted ? yellow ( d . name ) : red ( d . name ) ,
@@ -235,7 +238,7 @@ class Outdated extends ArboristWorkspaceCmd {
235238 blue ( d . latest ) ,
236239 d . location ?? '-' ,
237240 d . workspaceDependent ? blue ( d . workspaceDependent ) : d . dependent ,
238- ...long ? [ d . type , blue ( d . homepage ?? '' ) ] : [ ] ,
241+ ...long ? [ d . type , blue ( d . homepage ?? '' ) , d . dependentLocation ] : [ ] ,
239242 ] ) ,
240243 ] , {
241244 align : [ 'l' , 'r' , 'r' , 'r' , 'l' ] ,
@@ -252,7 +255,7 @@ class Outdated extends ArboristWorkspaceCmd {
252255 d . current ? `${ d . name } @${ d . current } ` : 'MISSING' ,
253256 `${ d . name } @${ d . latest } ` ,
254257 d . dependent ,
255- ...this . npm . config . get ( 'long' ) ? [ d . type , d . homepage ] : [ ] ,
258+ ...this . npm . config . get ( 'long' ) ? [ d . type , d . homepage , d . dependentLocation ] : [ ] ,
256259 ] . join ( ':' ) ) . join ( '\n' )
257260 }
258261
@@ -268,7 +271,10 @@ class Outdated extends ArboristWorkspaceCmd {
268271 latest : d . latest ,
269272 dependent : d . dependent ,
270273 location : d . path ,
271- ...this . npm . config . get ( 'long' ) ? { type : d . type , homepage : d . homepage } : { } ,
274+ ...this . npm . config . get ( 'long' ) ? {
275+ type : d . type ,
276+ homepage : d . homepage ,
277+ dependentLocation : d . dependentLocation } : { } ,
272278 }
273279 acc [ d . name ] = acc [ d . name ]
274280 // If this item alread has an outdated dep then we turn it into an array
0 commit comments