Skip to content

Commit 14ac955

Browse files
committed
fix: fix deps report
1 parent 1731411 commit 14ac955

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

lib/package.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ export default class Package {
805805
for ( const change of res.data.add ) {
806806
updates.push( {
807807
"name": change.name,
808-
"action": "INSTALLED",
808+
"status": "INSTALLED",
809809
"oldVersion": null,
810810
"newVersion": change.version,
811811
} );
@@ -815,7 +815,7 @@ export default class Package {
815815
for ( const change of res.data.remove ) {
816816
updates.push( {
817817
"name": change.name,
818-
"action": "REMOVED",
818+
"status": "REMOVED",
819819
"oldVersion": change.version,
820820
"newVersion": null,
821821
} );
@@ -825,7 +825,7 @@ export default class Package {
825825
for ( const change of res.data.change ) {
826826
updates.push( {
827827
"name": change.from.name,
828-
"action": change.from.version === change.to.version
828+
"status": change.from.version === change.to.version
829829
? "REINSTALLED"
830830
: "UPDATED",
831831
"oldVersion": change.from.version,
@@ -843,10 +843,11 @@ export default class Package {
843843
"headerAlign": "center",
844844
"headerValign": "end",
845845
},
846-
"action": {
847-
"title": ansi.hl( "ACTION" ),
846+
"status": {
847+
"title": ansi.hl( "STATUS" ),
848848
"headerAlign": "center",
849849
"headerValign": "end",
850+
"align": "end",
850851
"width": 12,
851852
},
852853
"oldVersion": {
@@ -872,7 +873,7 @@ export default class Package {
872873
"width": 30,
873874
"format": ( value, row ) => {
874875
if ( value ) {
875-
if ( row.action === "UPDATED" ) {
876+
if ( row.status === "UPDATED" ) {
876877
return ansi.ok( ` ${ value } ` );
877878
}
878879
else {

0 commit comments

Comments
 (0)