Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

proxy-rotator-agent

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-rotator-agent - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

7

index.js

@@ -28,4 +28,5 @@ 'use strict'

// console.log(options)
var uriProtocol = (options.protocol || options.uri?.protocol || options._defaultAgent?.protocol === 'https:' ? 'https' : 'http')
var proxyProtocol = (proxyOptions.proxy.protocol === 'https:' ? 'Https' : 'Http')
const reqProtocol = options.protocol || options.uri?.protocol || options._defaultAgent?.protocol;
const uriProtocol = (reqProtocol === 'https:' ? 'https' : 'http')
const proxyProtocol = (proxyOptions.proxy.protocol === 'https:' ? 'Https' : 'Http')
const key = `${uriProtocol}Over${proxyProtocol}`

@@ -46,2 +47,4 @@ // console.log(key, uriProtocol, proxyProtocol, proxyOptions)

ProxyRotatorAgent.defaultPort = 443;
module.exports = ProxyRotatorAgent;

@@ -48,0 +51,0 @@

@@ -6,3 +6,3 @@ {

"description": "HTTP proxy rotator tunneling agent",
"version": "0.0.5",
"version": "0.0.6",
"repository": {

@@ -9,0 +9,0 @@ "url": "https://github.com/fabiel-leon/proxy-rotator-agent"

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