Skip to content

Commit

Permalink
Update lib/npa.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
bdehamer and ljharb authored Nov 29, 2022
1 parent 2da0729 commit 4b11e8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/npa.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ function resolve (name, spec, where, arg) {
}
}

function toPurl (arg, reg) {
const defaultRegistry = 'https://registry.npmjs.com'

function toPurl (arg, reg = defaultRegistry) {
const res = npa(arg)

if (res.type !== 'version') {
Expand Down

0 comments on commit 4b11e8a

Please sign in to comment.