Skip to content

Commit

Permalink
Update lib/commands/audit.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <[email protected]>
  • Loading branch information
feelepxyz and ljharb authored May 23, 2022
1 parent 3af501d commit 2fee6e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ class VerifySignatures {

buildRegistryConfig (registry) {
const keys = this.keys.get(registry) || []
const registryConfig = {}
const parsedRegistry = new URL(registry)
const regKey = `//${parsedRegistry.host}${parsedRegistry.pathname}`
registryConfig[`${regKey}:_keys`] = keys
return registryConfig
return {
`${regKey}:_keys`: keys
}
}

getSpecRegistry (spec) {
Expand Down

0 comments on commit 2fee6e7

Please sign in to comment.