You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/npm-check-updates.js
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,8 +100,10 @@ function createDependencyTable() {
100
100
}
101
101
102
102
/**
103
-
* @param args.from
104
-
* @param args.to
103
+
* @param {object} args
104
+
* @param {object} args.from
105
+
* @param {object} args.to
106
+
* @returns {Table}
105
107
*/
106
108
functiontoDependencyTable(args){
107
109
consttable=createDependencyTable();
@@ -144,7 +146,7 @@ function analyzeGlobalPackages(options) {
144
146
print(options,latest,'silly');
145
147
146
148
constupgradedPackageNames=Object.keys(upgraded);
147
-
constupgradePromise=printUpgrades(options,{
149
+
printUpgrades(options,{
148
150
current: globalPackages,
149
151
upgraded,
150
152
latest,
@@ -164,8 +166,6 @@ function analyzeGlobalPackages(options) {
164
166
}elseif(instruction.length){
165
167
print(options,'\n'+chalk.cyan('ncu')+' itself cannot upgrade global packages. Run the following to upgrade all global packages: \n\n'+chalk.cyan('npm -g install '+instruction)+'\n');
166
168
}
167
-
168
-
returnupgradePromise;
169
169
});
170
170
});
171
171
}
@@ -255,6 +255,7 @@ function analyzeProjectDependencies(options, pkgData, pkgFile) {
255
255
* @param {Object} args.upgraded - The packages that should be upgraded.
256
256
* @param {number} args.numUpgraded - The number of upgraded packages
257
257
* @param {number} args.total - The total number of all possible upgrades
0 commit comments