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

Commit

Permalink
Browse files Browse the repository at this point in the history
Do the minimal upgrade necessary to get tests passing with new hosted
repo metadata. I anticipate the realize-package-specifier update will be
a little more invasive.
  • Loading branch information
othiym23 committed Mar 19, 2015
1 parent 1e3cb30 commit 3ed41bf
Show file tree
Hide file tree
Showing 34 changed files with 1,895 additions and 159 deletions.
7 changes: 6 additions & 1 deletion lib/outdated.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var path = require("path")
, npa = require("npm-package-arg")
, readInstalled = require("read-installed")
, long = npm.config.get("long")
, log = require("npmlog")

function outdated (args, silent, cb) {
if (typeof cb !== "function") cb = silent, silent = false
Expand Down Expand Up @@ -173,6 +174,7 @@ function outdated_ (args, dir, parentHas, depth, cb) {
var deps = null
var types = {}
readJson(path.resolve(dir, "package.json"), function (er, d) {
log.verbose('outdated.readJson', 'd', d)
d = d || {}
if (er && er.code !== "ENOENT" && er.code !== "ENOTDIR") return cb(er)
deps = (er) ? true : (d.dependencies || {})
Expand Down Expand Up @@ -300,7 +302,10 @@ function shouldUpdate (args, dir, dep, has, req, depth, cb, type) {
}

if (args.length && args.indexOf(dep) === -1) return skip()
if (npa(req).type === "git") return doIt("git", "git")
var parsed = npa(req)
if (parsed.type === "git" || (parsed.hosted && parsed.hosted.type === "github")) {
return doIt("git", "git")
}

// search for the latest package
mapToRegistry(dep, npm.config, function (er, uri, auth) {
Expand Down
76 changes: 61 additions & 15 deletions node_modules/npm-package-arg/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ed41bf

Please sign in to comment.