npm-registry-fetch
Advanced tools
Comparing version 4.0.6 to 4.0.7
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.0.7"></a> | ||
## [4.0.7](https://github.com/npm/registry-fetch/compare/v4.0.6...v4.0.7) (2020-08-17) | ||
### Bug Fixes | ||
* correct password redaction ([110032b](https://github.com/npm/registry-fetch/commit/110032b)) | ||
<a name="4.0.6"></a> | ||
@@ -7,0 +17,0 @@ ## [4.0.6](https://github.com/npm/registry-fetch/compare/v4.0.5...v4.0.6) (2020-08-14) |
@@ -35,5 +35,8 @@ 'use strict' | ||
try { | ||
const { URL } = require('url') | ||
const URL = require('url').URL | ||
const url = new URL(res.url) | ||
urlStr = res.url.replace(url.password, '***') | ||
if (url.password) { | ||
url.password = '***' | ||
} | ||
urlStr = url.toString() | ||
} catch (er) { | ||
@@ -40,0 +43,0 @@ urlStr = res.url |
{ | ||
"name": "npm-registry-fetch", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "Fetch-based http client for use with npm registry APIs", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"postrelease": "npm publish && git push --follow-tags", | ||
"pretest": "standard", | ||
"posttest": "standard", | ||
"release": "standard-version -s", | ||
@@ -19,0 +19,0 @@ "test": "tap -J --coverage test/*.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
45991
535