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.8.0 to 2.8.1

4

CHANGES.md

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

## 2.8.1
- revert #604, work around by not removing client listener
## 2.8.0

@@ -7,0 +11,0 @@

12

lib/clients/http_client.js

@@ -144,2 +144,6 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved.

var emit_result = once(function _emit_result(_err, _req, _res) {
_req.emit('result', _err, _res);
});
var req = proto.request(opts, function onResponse(res) {

@@ -160,9 +164,5 @@ clearTimeout(connectionTimer);

req.removeAllListeners('error');
req.removeAllListeners('socket');
req.on('error', function (err2) {
err = err2;
});
req.emit('result', (err || null), res);
emit_result((err || null), req, res);
});

@@ -182,3 +182,3 @@ req.log = log;

process.nextTick(function () {
req.emit('result', err, null);
emit_result(err, req, null);
});

@@ -185,0 +185,0 @@ }

@@ -36,3 +36,3 @@ {

"description": "REST framework",
"version": "2.8.0",
"version": "2.8.1",
"repository": {

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