Skip to content

Commit a15e399

Browse files
committed
fix: fix dependencies updater
1 parent b3462d1 commit a15e399

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/package.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,7 @@ export default class Package {
639639
async getOutdatedDependencies ( { all } = {} ) {
640640
if ( !this.dependencies.hasDependencies ) return result( 200 );
641641

642-
const args = [ "outdated" ];
643-
644-
if ( all ) args.push( "--all" );
645-
646-
return this.npm.api.exec( args );
642+
return this.npm.api.getOutdatedDependencies( { all } );
647643
}
648644

649645
async updateDependencies ( { all, outdated, linked, missing, install, reinstall, commit, quiet, confirmInstall, outdatedDependencies, cache = {} } = {} ) {

0 commit comments

Comments
 (0)