Socket
Socket
Sign inDemoInstall

npm-check-updates

Package Overview
Dependencies
Maintainers
2
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-check-updates - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

lib/npm-check-updates.js

@@ -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 :)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc