Socket
Socket
Sign inDemoInstall

@octokit/rest

Package Overview
Dependencies
Maintainers
3
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/rest - npm Package Compare versions

Comparing version 15.2.1 to 15.2.2

6

lib/get-request-agent.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc