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

restify

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restify - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

6

CHANGES.md

@@ -5,5 +5,9 @@ # restify Changelog

## 2.4.1
- Support node 0.10.X TLS options in client(s)
## 2.4.0
- GH-368 Route /\/.*/ does not match request /? (Ben Hutchinson)
- GH-368 Route /\/.*/ does not match request /? (Ben Hutchison)
- GH-366 `req.accepts()` not working with short-hand mime types

@@ -10,0 +14,0 @@ - GH-362 Empty body throws TypeError in StringClient (Bryan Donovan)

@@ -189,4 +189,8 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

var self = this;
this.agent = options.agent;
this.ca = options.ca;
this.cert = options.cert;
this.ciphers = options.ciphers;
this.connectTimeout = options.connectTimeout || false;

@@ -204,2 +208,10 @@ this.headers = options.headers || {};

this.name = options.name || 'HttpClient';
this.passphrase = options.passphrase;
this.pfx = options.pfx;
if (options.rejectUnauthorized !== undefined) {
this.rejectUnauthorized = options.rejectUnauthorized;
} else {
this.rejectUnauthorized = true;
}
this.retry = cloneRetryOptions(options.retry);

@@ -245,5 +257,12 @@ this.signRequest = options.signRequest || false;

this.agent = new Agent({
cert: self.cert,
ca: self.ca,
ciphers: self.ciphers,
key: self.key,
maxSockets: maxSockets,
maxKeepAliveRequests: 0,
maxKeepAliveTime: 0
maxKeepAliveTime: 0,
passphrase: self.passphrase,
pfx: self.pfx,
rejectUnauthorized: self.rejectUnauthorized
});

@@ -377,3 +396,5 @@ }

agent: options.agent || self.agent,
ca: options.ca || self.ca,
cert: options.cert || self.cert,
ciphers: options.ciphers || self.ciphers,
connectTimeout: options.connectTimeout || self.connectTimeout,

@@ -384,3 +405,7 @@ headers: options.headers || {},

method: method,
passphrase: options.passphrase || self.passphrase,
path: options.path || self.path,
pfx: options.pfx || self.pfx,
rejectUnauthorized: options.rejectUnauthorized ||
self.rejectUnauthorized,
retry: options.retry || self.retry,

@@ -387,0 +412,0 @@ signRequest: options.signRequest || self.signRequest

2

package.json

@@ -30,3 +30,3 @@ {

"description": "REST framework",
"version": "2.4.0",
"version": "2.4.1",
"repository": {

@@ -33,0 +33,0 @@ "type": "git",

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