Comparing version 1.1.0 to 1.1.1
@@ -41,5 +41,8 @@ 'use strict'; | ||
baseUrl.hostname = opts.baseUrl.hostname; | ||
if (opts.baseUrl.username) baseUrl.auth = opts.baseUrl.username; | ||
if (opts.baseUrl.username) { | ||
baseUrl.auth = decodeURIComponent(opts.baseUrl.username); | ||
} | ||
if (opts.baseUrl.password) { | ||
baseUrl.auth = (baseUrl.auth || '') + ':' + opts.baseUrl.password; | ||
baseUrl.auth = (baseUrl.auth || '') + ':' + | ||
decodeURIComponent(opts.baseUrl.password); | ||
} | ||
@@ -46,0 +49,0 @@ if (opts.baseUrl.port) baseUrl.port = opts.baseUrl.port; |
{ | ||
"name": "papi", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Build HTTP API clients", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
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
36491
18
895