diff options
author | Lars Willighagen <lars.willighagen@gmail.com> | 2019-04-05 14:26:31 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-06-30 06:23:54 +0300 |
commit | ce93dab2db423ef23b3e08a0612dafbeb2d25789 (patch) | |
tree | 172b6d285f21bdf0fa00ed76e43009dcdd7c4cbf /lib/outdated.js | |
parent | a4dc34243d946008815b5f6a71ac0e6a9823c14c (diff) |
outdated: fix special 'remote' deps
Add a special case for 'remote' deps (tarballs). Before
b7b54f2d18e2d8d65ec67c850b21ae9f01c60e7e the package names were possibly
just looked up in the registry instead.
See https://npm.community/t/6187
Close: https://github.com/npm/cli/pull/180
Diffstat (limited to 'lib/outdated.js')
-rw-r--r-- | lib/outdated.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/outdated.js b/lib/outdated.js index 1b9e8cf73..17b941461 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -366,6 +366,8 @@ function shouldUpdate (args, tree, dep, has, req, depth, pkgpath, opts, cb, type return doIt('git', 'git') } else if (parsed.type === 'file') { return updateLocalDeps() + } else if (parsed.type === 'remote') { + return doIt('remote', 'remote') } else { return packument(parsed, opts.concat({ 'prefer-online': true |