Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const AuditConfig = figgyPudding({
prod: {},
production: {},
registry: {},
runId: {}
runId: {},
scoped: {}
})

module.exports = auditCmd
Expand Down
2 changes: 1 addition & 1 deletion lib/install/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function getScope (name) {
function shouldScrubName (name) {
const scope = getScope(name)
const cfg = npm.config // avoid the no-dynamic-lookups test
return Boolean(scope && cfg.get(scope + ':registry'))
return Boolean(scope && cfg.get('scoped') !== scope && cfg.get(scope + ':registry'))
}
function shouldScrubSpec (name, spec) {
const req = npa.resolve(name, spec)
Expand Down