Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
typo in outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 21, 2011
1 parent b8f641f commit 12d26da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/outdated.js
Expand Up @@ -15,10 +15,7 @@ module.exports = outdated

outdated.usage = "npm outdated [<pkg> [<pkg> ...]]"

outdated.completion = function (args, index, cb) {
var installedPkgs = require("./utils/completion/installed-packages")
installedPkgs(args, index, false, true, cb)
}
outdated.completion = function (opts, cb) {}

var readInstalled = require("./utils/read-installed")
, path = require("path")
Expand Down Expand Up @@ -81,7 +78,7 @@ function outdated_ (prefix, args, cb) {

// return cb with (er, currentVersion or false, needsUpdate boolean)
function validateDep (prefix, args, dep, req, cb) {
var canUpdate = args.length === 0 ? true : args.indexOf(dep !== -1)
var canUpdate = args.length === 0 ? true : args.indexOf(dep) !== -1
, current = -1
, latest
, needsUpdate = false
Expand Down

0 comments on commit 12d26da

Please sign in to comment.