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

superagent-proxy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent-proxy - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

6

History.md
0.4.0 / 2015-07-15
==================
* update to "proxy-agent" v2 API
* use %o debug() formatter
0.3.2 / 2015-05-18

@@ -3,0 +9,0 @@ ==================

11

index.js

@@ -62,3 +62,3 @@

function proxy (uri) {
debug('Request#proxy(%j)', uri);
debug('Request#proxy(%o)', uri);

@@ -71,9 +71,4 @@ // we need to observe the `url` field from now on... Superagent sometimes

// determine if the `http` or `https` node-core module are going to be used.
// This information is useful to the proxy agents being created
var secure = 0 == this.url.indexOf('https:');
debug('url is secure? %s', secure);
// attempt to get a proxying `http.Agent` instance
var agent = proxyAgent(uri, secure);
var agent = proxyAgent(uri);

@@ -130,5 +125,5 @@ // if we have an `http.Agent` instance then call the .agent() function

function setUrl (v) {
debug('set `.url`: %s', v);
debug('set `.url`: %o', v);
this._url = v;
proxy.call(this, this._proxyUri);
}
{
"name": "superagent-proxy",
"version": "0.3.2",
"version": "0.4.0",
"description": "`Request#proxy(uri)` superagent extension",

@@ -26,4 +26,4 @@ "main": "index.js",

"dependencies": {
"proxy-agent": "1",
"debug": "~2.2.0"
"proxy-agent": "2",
"debug": "2"
},

@@ -34,5 +34,5 @@ "peerDependencies": {

"devDependencies": {
"mocha": "~1.12.0",
"mocha": "2",
"superagent": ">= 0.15.4 && < 2"
}
}
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