Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclaudiahdz <cghr1990@gmail.com>2019-08-10 00:40:59 +0300
committerisaacs <i@izs.me>2019-08-20 03:09:18 +0300
commit2f3b79bbad820fd4a398aa494b19f79b7fd520a1 (patch)
treefa24a91e195fc09667c56ff421ee1240ca6a9058 /lib/outdated.js
parentb417affbf7133dc7687fd809e4956a43eae3438a (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.js2
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()