Skip to content

Commit

Permalink
Remove HTTP Referer header config
Browse files Browse the repository at this point in the history
Last bit of #930
  • Loading branch information
isaacs committed Mar 7, 2020
1 parent bf3370b commit d781d0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
16 changes: 0 additions & 16 deletions lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,6 @@
}
})

if (!registryRefer) {
registryRefer = [a].concat(args[0]).map(function (arg) {
// exclude anything that might be a URL, path, or private module
// Those things will always have a slash in them somewhere
if (arg && arg.match && arg.match(/\/|\\/)) {
return '[REDACTED]'
} else {
return arg
}
}).filter(function (arg) {
return arg && arg.match
}).join(' ')
npm.referer = registryRefer
npm.config.set('refer', npm.referer)
}

cmd.apply(npm, args)
}

Expand Down
23 changes: 0 additions & 23 deletions test/tap/referer.js

This file was deleted.

0 comments on commit d781d0d

Please sign in to comment.