Skip to content

Commit

Permalink
outdated: don't throw on non-version/tag/range dep
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 4, 2020
1 parent ac5aa70 commit a36e253
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
4 changes: 4 additions & 0 deletions lib/outdated.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ async function outdated_ (tree, deps, opts) {
try {
const packument = await getPackument(spec)
const expected = edge.spec
// if it's not a range, version, or tag, skip it
if (!npa(`${edge.name}@${edge.spec}`).registry) {
return null
}
const wanted = pickManifest(packument, expected, npm.flatOptions)
const latest = pickManifest(packument, '*', npm.flatOptions)

Expand Down
2 changes: 1 addition & 1 deletion node_modules/json-parse-even-better-errors/LICENSE.md

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

9 changes: 8 additions & 1 deletion node_modules/json-parse-even-better-errors/index.js

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

2 changes: 1 addition & 1 deletion node_modules/json-parse-even-better-errors/package.json

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

12 changes: 6 additions & 6 deletions package-lock.json

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

0 comments on commit a36e253

Please sign in to comment.