Skip to content

Commit 847e5f9

Browse files
committed
fix: consistent use of url.URL
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.
1 parent caa4309 commit 847e5f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/auth.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22
const npa = require('npm-package-arg')
3+
const { URL } = require('url')
34

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

0 commit comments

Comments
 (0)