Skip to content

Commit

Permalink
fix: consistent use of url.URL
Browse files Browse the repository at this point in the history
Even though the engines field limits the range of node versions to those
that have a global URL, all but one of the files still used
require('url').URL.  This fixes the one remaining file to also use that.
While older versions of node are still not supported, and not
recommended, this will allow this module to potentially still work there
for the time being.
  • Loading branch information
wraithgar committed Feb 9, 2022
1 parent caa4309 commit 847e5f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/auth.js
@@ -1,5 +1,6 @@
'use strict'
const npa = require('npm-package-arg')
const { URL } = require('url')

// Find the longest registry key that is used for some kind of auth
// in the options.
Expand Down

0 comments on commit 847e5f9

Please sign in to comment.