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

gofer

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gofer - npm Package Compare versions

Comparing version 2.6.5 to 2.7.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### 2.7.0
* support `keepAlive: true` option - **[@dbushong](https://github.com/dbushong)** [#82](https://github.com/groupon/gofer/pull/82)
- [`2e50961`](https://github.com/groupon/gofer/commit/2e5096184d3634746b181e30ca0b3678402bdb05) **feat:** support `keepAlive: true` option
- [`b0278f9`](https://github.com/groupon/gofer/commit/b0278f96a26611f871c9e9a72e371ec83f8660a5) **chore:** clean-up travis build targets
### 2.6.5

@@ -2,0 +9,0 @@

9

lib/hub.js

@@ -125,3 +125,4 @@

options.method = options.method != null ? options.method.toUpperCase() : 'GET';
hubHeaders = generateHeaders(options.requestId, fetchId);
options.forever = options.keepAlive;
hubHeaders = generateHeaders(options.requestId, fetchId, options.keepAlive);
extend(options.headers, hubHeaders);

@@ -325,8 +326,10 @@ options.headers = mapValues(options.headers, removeInvalidHeaderChars);

generateHeaders = function(requestId, fetchId) {
generateHeaders = function(requestId, fetchId, keepAlive) {
var headers;
headers = {
'Connection': 'close',
'X-Fetch-ID': fetchId
};
if (!keepAlive) {
headers.Connection = 'close';
}
if (requestId != null) {

@@ -333,0 +336,0 @@ headers['X-Request-ID'] = requestId;

{
"name": "gofer",
"version": "2.6.5",
"version": "2.7.0",
"description": "A general purpose service client library for node.js",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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