diff options
author | claudiahdz <cghr1990@gmail.com> | 2019-08-10 00:40:59 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-08-20 03:09:18 +0300 |
commit | 2f3b79bbad820fd4a398aa494b19f79b7fd520a1 (patch) | |
tree | fa24a91e195fc09667c56ff421ee1240ca6a9058 /lib/outdated.js | |
parent | b417affbf7133dc7687fd809e4956a43eae3438a (diff) |
feat: add new forbidden 403 error code
PR-URL: https://github.com/npm/cli/pull/234
Credit: @claudiahdz
Close: #234
Reviewed-by: @isaacs
Diffstat (limited to 'lib/outdated.js')
-rw-r--r-- | lib/outdated.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/outdated.js b/lib/outdated.js index bb4c346f9..794197cfc 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -421,7 +421,7 @@ function shouldUpdate (args, tree, dep, has, req, depth, pkgpath, opts, cb, type var l = pickManifest(d, 'latest') var m = pickManifest(d, req) } catch (er) { - if (er.code === 'ETARGET') { + if (er.code === 'ETARGET' || er.code === 'E403') { return skip(er) } else { return skip() |