check-deps-versions
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -34,3 +34,3 @@ const chalk = require('chalk'); | ||
if (versionsInRange.length === 0) { | ||
error(`'${packageName}' does not have versions in range ${localRange}. Latest version is ${latestVersion}.`); | ||
error(`Package \`${packageName}\` does not have versions in range ${localRange}. Latest version is ${latestVersion}.`); | ||
return {}; | ||
@@ -47,2 +47,5 @@ } | ||
return {}; | ||
}) | ||
.catch(err => { | ||
error(err.message); | ||
}); | ||
@@ -56,3 +59,3 @@ | ||
updates.reduce((result, update, index) => { | ||
if (update.latest) { | ||
if (update && update.latest) { // update will be undefined if the promise is rejected (which happens when the package doesn't exist) | ||
result[packages[index]] = update; | ||
@@ -59,0 +62,0 @@ } |
{ | ||
"name": "check-deps-versions", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Check if dependencies specified in package.json are up to date with the latest available versions.", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5258
84