npm-registry-fetch
Advanced tools
Comparing version 3.8.0 to 3.9.0
@@ -28,2 +28,8 @@ 'use strict' | ||
} | ||
if (AUTH._auth && !(AUTH.username && AUTH.password)) { | ||
let auth = Buffer.from(AUTH._auth, 'base64').toString() | ||
auth = auth.split(':') | ||
AUTH.username = auth.shift() | ||
AUTH.password = auth.join(':') | ||
} | ||
AUTH.alwaysAuth = AUTH.alwaysAuth === 'false' ? false : !!AUTH.alwaysAuth | ||
@@ -30,0 +36,0 @@ return AUTH |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="3.9.0"></a> | ||
# [3.9.0](https://github.com/npm/registry-fetch/compare/v3.8.0...v3.9.0) (2019-01-24) | ||
### Features | ||
* **auth:** support username:password encoded legacy _auth ([a91f90c](https://github.com/npm/registry-fetch/commit/a91f90c)) | ||
<a name="3.8.0"></a> | ||
@@ -7,0 +17,0 @@ # [3.8.0](https://github.com/npm/registry-fetch/compare/v3.7.0...v3.8.0) (2018-08-23) |
{ | ||
"name": "npm-registry-fetch", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"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
42168
518