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

gofer

Package Overview
Dependencies
Maintainers
3
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.3.3 to 2.3.4

5

CHANGELOG.md

@@ -0,1 +1,6 @@

2.3.4
-----
* Preserve errors for error responses - @jkrems
https://github.com/groupon/gofer/pull/35
2.3.3

@@ -2,0 +7,0 @@ -----

7

lib/gofer.js

@@ -221,7 +221,10 @@ // Generated by CoffeeScript 1.9.0

return this.hub.fetch(options, function(error, body, response, responseData) {
var parseJSON, _ref3, _ref4;
var parseError, parseJSON, _ref3, _ref4;
parseJSON = (_ref3 = options.parseJSON) != null ? _ref3 : isJsonResponse(response, body);
if (parseJSON) {
_ref4 = safeParseJSON(body, response), error = _ref4.error, body = _ref4.body;
_ref4 = safeParseJSON(body, response), parseError = _ref4.parseError, body = _ref4.body;
}
if (error == null) {
error = parseError;
}
return cb(error, body, responseData, response);

@@ -228,0 +231,0 @@ });

@@ -97,7 +97,10 @@ // Generated by CoffeeScript 1.9.0

handleResult = function(error, response, body) {
var apiError, logLine, maxStatusCode, minStatusCode, parseJSON, successfulRequest, uri, _ref5, _ref6, _ref7;
var apiError, logLine, maxStatusCode, minStatusCode, parseError, parseJSON, successfulRequest, uri, _ref5, _ref6, _ref7;
parseJSON = (_ref5 = options.parseJSON) != null ? _ref5 : isJsonResponse(response, body);
if (parseJSON) {
_ref6 = safeParseJSON(body, response), error = _ref6.error, body = _ref6.body;
_ref6 = safeParseJSON(body, response), parseError = _ref6.parseError, body = _ref6.body;
}
if (error == null) {
error = parseError;
}
responseData.fetchDuration = getSeconds();

@@ -104,0 +107,0 @@ responseData.requestOptions.uri = this.uri;

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

@@ -5,0 +5,0 @@ "main": "lib/gofer.js",

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