@octokit/rest
Advanced tools
Comparing version 15.2.1 to 15.2.2
@@ -13,3 +13,3 @@ module.exports = getRequestAgent | ||
function getRequestAgent (options) { | ||
function getRequestAgent (baseUrl, options) { | ||
if (options.agent) { | ||
@@ -30,3 +30,3 @@ return options.agent | ||
const protocol = urlParse(options.baseUrl).protocol.replace(':', '') | ||
const protocol = urlParse(baseUrl).protocol.replace(':', '') | ||
@@ -43,3 +43,3 @@ if ('proxy' in options) { | ||
return new HttpsProxyAgent(agentOptions) | ||
return new HttpsProxyAgent(proxyAgentOptions) | ||
} | ||
@@ -46,0 +46,0 @@ |
@@ -69,3 +69,3 @@ module.exports = parseOptions | ||
if (!process.browser) { | ||
clientDefaults.request.agent = getRequestAgent(userOptions) | ||
clientDefaults.request.agent = getRequestAgent(clientDefaults.baseUrl, userOptions) | ||
} | ||
@@ -72,0 +72,0 @@ |
{ | ||
"name": "@octokit/rest", | ||
"version": "15.2.1", | ||
"version": "15.2.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
563815