Skip to content

Commit cd35987

Browse files
claudiahdzClaudia Hernández
authored and
Claudia Hernández
committed
fix: import URL from url module
1 parent 62ce833 commit cd35987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-response.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function logRequest (method, res, startTime, opts) {
3232

3333
let urlStr
3434
try {
35-
const URL = require('url')
35+
const { URL } = require('url')
3636
const url = new URL(res.url)
3737
urlStr = res.url.replace(url.password, '***')
3838
} catch (er) {

0 commit comments

Comments
 (0)