npm-check-updates
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -215,3 +215,3 @@ var options = {}; | ||
} | ||
print('The following ' + (count === 1 ? 'dependency is' : 'dependencies are') + ' satisfied by ' + (count === 1 ? 'its' : 'their') + ' declared version range, but the installed version' + (count === 1 ? ' is' : 's are') + ' behind. Update without modifying your package.json by running ' + chalk.blue('npm update') + '. Upgrade your package.json by running ' + chalk.blue('ncu -ua') + '\n') | ||
print('The following dependenc' + (count === 1 ? 'y is' : 'ies are') + ' satisfied by ' + (count === 1 ? 'its' : 'their') + ' declared version range, but the installed version' + (count === 1 ? ' is' : 's are') + ' behind. You can install the latest version' + (count === 1 ? '' : 's') + ' without modifying your package.json by using ' + chalk.blue('npm update') + '. If you want to update the dependenc' + (count === 1 ? 'y' : 'ies') + ' in your package.json anyway, use ' + chalk.blue('ncu --upgradeAll') + '.\n') | ||
print(satisfiedTable.toString()); | ||
@@ -218,0 +218,0 @@ } |
var semverutils = require('semver-utils'); | ||
var _ = require('lodash'); | ||
var chalk = require('chalk'); | ||
var util = require('util'); | ||
@@ -23,3 +24,9 @@ var VERSION_BASE_PARTS = ['major', 'minor', 'patch']; | ||
function numParts(version) { | ||
var semver = semverutils.parseRange(version)[0]; | ||
if(!semver) { | ||
throw new Error(util.format('semverutils.parseRange returned null when trying to parse "%s". This is probably a problem with the "semver-utils" dependency. Please report an issue at https://github.com/tjunnone/npm-check-updates/issues.', version)) | ||
} | ||
return _.intersection(VERSION_PARTS, Object.keys(semver)).length; | ||
@@ -26,0 +33,0 @@ } |
{ | ||
"name": "npm-check-updates", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Tomas Junnonen <tomas1@gmail.com>", | ||
@@ -50,3 +50,3 @@ "license": "MIT", | ||
"semver": "^5.0.1", | ||
"semver-utils": "metaraine/semver-utils.git#ff978" | ||
"semver-utils": "metaraine/semver-utils.git#86ea225" | ||
}, | ||
@@ -53,0 +53,0 @@ "devDependencies": { |
@@ -129,2 +129,4 @@ [![npm stable version](https://img.shields.io/npm/v/npm-check-updates.svg?label=stable)](https://npmjs.org/package/npm-check-updates) | ||
- 2.0.1 | ||
- Fix silence | ||
- 2.0.0 | ||
@@ -190,2 +192,4 @@ - Finally! Includes all the previous alpha features. :) | ||
Pull requests are also welcome :) | ||
Always include your package.json when reporting a bug! | ||
Pull requests are welcome, and will not collect dust :) |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
70201
1341
194