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.5.0 to 2.5.1

6

CHANGES.md

@@ -5,2 +5,8 @@ # restify Changelog

## 2.5.1
- GH-401 RegEx routes stomp one another, resulting in 404
- GH-389 StringClient should handle garbage servers that send neither
`Content-Length` nor `Transfer-Encoding: chunked` headers.
## 2.5.0

@@ -7,0 +13,0 @@

6

lib/clients/string_client.js

@@ -138,8 +138,2 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

if (res) {
if (res.headers['transfer-encoding'] !== 'chunked' &&
!res.headers['content-length']) {
callback(err, req, res);
return;
}
function done() {

@@ -146,0 +140,0 @@ res.log.trace('body received:\n%s', body);

2

lib/plugins/audit.js

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

remotePort: req.connection.remotePort,
req_id: req.id,
req_id: req.getId(),
req: req,

@@ -80,0 +80,0 @@ res: res,

@@ -14,2 +14,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

var spdy = require('spdy');
var uuid = require('node-uuid');

@@ -380,5 +381,11 @@ var dtrace = require('./dtrace');

}
opts.name = opts.name.replace(/\W/g, '').toLowerCase();
if (this.router.mounts[opts.name]) // GH-401
opts.name += uuid.v4().substr(0, 7);
} else {
opts.name = opts.name.replace(/\W/g, '').toLowerCase();
}
opts.name = opts.name.replace(/\W/g, '').toLowerCase();
if (!(route = this.router.mount(opts)))

@@ -385,0 +392,0 @@ return (false);

@@ -32,3 +32,3 @@ {

"description": "REST framework",
"version": "2.5.0",
"version": "2.5.1",
"repository": {

@@ -35,0 +35,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