npm-check-updates
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -8,2 +8,3 @@ 'use strict'; | ||
const ProgressBar = require('progress'); | ||
const packageJson = require('package-json'); | ||
const versionUtil = require('./version-util.js'); | ||
@@ -328,4 +329,4 @@ const packageManagers = require('./package-managers'); | ||
if (!options.json && options.loglevel !== 'silent') { | ||
bar = new ProgressBar('[:bar] :percent', {total: packageList.length*2+1, width: 20}); | ||
bar.tick(); | ||
bar = new ProgressBar('[:bar] :current/:total :percent', {total: packageList.length, width: 20}); | ||
bar.render(); | ||
} | ||
@@ -363,7 +364,5 @@ | ||
function getPackageVersionProtected(dep) { | ||
if (bar) { | ||
bar.tick(); | ||
} | ||
return getPackageVersion(dep, packageMap[dep], options.pre).catch(err => { | ||
if (err && (err.message || err).toString().match(/E404|404 Not Found|doesn't exist/i)) { | ||
if (err && (err.message || err).toString().match(/E404|ENOTFOUND|404 Not Found/i) || | ||
err instanceof packageJson.PackageNotFoundError) { | ||
return null; | ||
@@ -370,0 +369,0 @@ } else { |
{ | ||
"name": "npm-check-updates", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"author": "Tomas Junnonen <tomas1@gmail.com>", | ||
@@ -34,3 +34,3 @@ "license": "Apache-2.0", | ||
"watch": "chokidar \"lib/**/*.js\" -c \"npm run test\"", | ||
"test": "npm run lint && mocha && mocha test/individual; if [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then snyk test; fi" | ||
"test": "npm run lint && mocha && mocha test/individual && if [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then snyk test; fi" | ||
}, | ||
@@ -37,0 +37,0 @@ "bin": { |
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
61946
1187