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.3.3 to 2.3.4

8

CHANGES.md
# restify Changelog
## 2.3.4 (not yet released)
## 2.3.5 (not yet released)
## 2.3.4
- GH-343 default to 'identity' for accept-encoding
- GH-342 client support for PATCH
- Pick up spdy@1.4.6 (doesn't ship all the example garbage)
## 2.3.3

@@ -6,0 +12,0 @@

@@ -300,2 +300,10 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

HttpClient.prototype.patch = function patch(options, callback) {
var opts = this._options('PATCH', options);
return (this.request(opts, callback));
};
HttpClient.prototype.read = function read(options, callback) {

@@ -302,0 +310,0 @@ var r = this.request(options, function readRequestCallback(err, req) {

@@ -57,2 +57,13 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

StringClient.prototype.patch = function patch(options, body, callback) {
var opts = this._options('PATCH', options);
if (typeof (body) === 'function') {
callback = body;
body = null;
}
return (this.write(opts, body, callback));
};
StringClient.prototype.read = function read(options, callback) {

@@ -59,0 +70,0 @@ var self = this;

3

lib/request.js

@@ -33,3 +33,4 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

accept: h.accept || '*/*',
'accept-encoding': h['accept-encoding'] || '*'
'accept-encoding': h['accept-encoding'] ||
'identity'
}

@@ -36,0 +37,0 @@ });

@@ -28,3 +28,3 @@ {

"description": "REST framework",
"version": "2.3.3",
"version": "2.3.4",
"repository": {

@@ -59,3 +59,3 @@ "type": "git",

"semver": "1.1.2",
"spdy": "1.4.3",
"spdy": "1.4.6",
"verror": "1.3.5"

@@ -62,0 +62,0 @@ },

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