npm-registry-fetch
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="4.0.5"></a> | ||
## [4.0.5](https://github.com/npm/registry-fetch/compare/v4.0.4...v4.0.5) (2020-06-30) | ||
<a name="4.0.4"></a> | ||
@@ -7,0 +12,0 @@ ## [4.0.4](https://github.com/npm/registry-fetch/compare/v4.0.3...v4.0.4) (2020-04-28) |
@@ -32,5 +32,15 @@ 'use strict' | ||
const cacheStr = res.headers.get('x-local-cache') ? ' (from cache)' : '' | ||
let urlStr | ||
try { | ||
const URL = require('url') | ||
const url = new URL(res.url) | ||
urlStr = res.url.replace(url.password, '***') | ||
} catch (er) { | ||
urlStr = res.url | ||
} | ||
opts.log.http( | ||
'fetch', | ||
`${method.toUpperCase()} ${res.status} ${res.url} ${elapsedTime}ms${attemptStr}${cacheStr}` | ||
`${method.toUpperCase()} ${res.status} ${urlStr} ${elapsedTime}ms${attemptStr}${cacheStr}` | ||
) | ||
@@ -37,0 +47,0 @@ } |
{ | ||
"name": "npm-registry-fetch", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Fetch-based http client for use with npm registry APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45505
532