New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

proxy-client

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-client - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

13

lib/proxy-client.js

@@ -37,3 +37,3 @@ /*!

this._authorization = null;
this.headers = util._extend(this.headers || {}, options.headers);
}

@@ -57,3 +57,10 @@ ProxyClient.extend = mi.extend;

var child = this.constructor.createClient(this);
child._authorization = options.auth;
if (options) {
child.rootUrl = options.rootUrl || child.rootUrl;
child.logger = options.logger || child.logger;
child.timeout = options.timeout || child.timeout;
child.headers = util._extend(child.headers, options.headers);
}
return child;

@@ -94,3 +101,3 @@ };

return superagent(method, href)
.set('Authorization', self._authorization || '')
.set(self.headers)
.timeout(self.timeout)

@@ -97,0 +104,0 @@ .use(superagentThen)

{
"name": "proxy-client",
"version": "0.2.4",
"version": "0.3.0",
"description": "A simple base class for API clients, proxyable through Node.",

@@ -5,0 +5,0 @@ "main": "lib/proxy-client.js",

@@ -1,4 +0,3 @@

node-proxy-client
=================
# ProxyClient
A simple base class for API clients, proxyable through Node.

Sorry, the diff of this file is not supported yet

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