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.4.2 to 2.4.3

5

CHANGELOG.md

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

2.4.3
-----
* Keep form.options in options b/c request - @jkrems
https://github.com/groupon/gofer/pull/44
2.4.2

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

11

lib/gofer.js

@@ -183,3 +183,3 @@ // Generated by CoffeeScript 1.9.0

Gofer.prototype._request = function(options, cb) {
var defaults, err, form, req, _base, _ref2;
var defaults, err, req, _base, _ref2;
defaults = this._getDefaults(this.defaults, options);

@@ -225,4 +225,2 @@ if (options.methodName == null) {

}
form = options.form;
delete options.form;
if (typeof cb === 'function') {

@@ -243,7 +241,4 @@ req = this.hub.fetch(options, function(error, body, response, responseData) {

}
if (form != null) {
req.form(form);
if (options.forceFormEncoding !== false) {
req.setHeader('Content-Type', GOOD_FORM_ENCODED);
}
if (options.form && options.forceFormEncoding !== false) {
req.setHeader('Content-Type', GOOD_FORM_ENCODED);
}

@@ -250,0 +245,0 @@ return req;

{
"name": "gofer",
"version": "2.4.2",
"version": "2.4.3",
"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