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 3.6.0 to 3.7.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### 3.7.0
* Add gofer.getMergedOptions - **[@jkrems](https://github.com/jkrems)** [#91](https://github.com/groupon/gofer/pull/91)
- [`fb9809e`](https://github.com/groupon/gofer/commit/fb9809ead2ebed842a4e86b9200084648a6a7065) **feat:** Add gofer.getMergedOptions
### 3.6.0

@@ -2,0 +8,0 @@

12

lib/gofer.js

@@ -108,2 +108,11 @@ /*

Gofer.prototype._prepareOptions = function _prepareOptions(defaults, options) {
return this.getMergedOptions(defaults, options);
};
Gofer.prototype.getMergedOptions = function getMergedOptions(
defaults,
options
) {
defaults = defaults || {};
options = options || {};
var endpointName = options.endpointName || defaults.endpointName;

@@ -118,2 +127,3 @@ var mergedOptions = mergeWith(

);
delete mergedOptions.endpointDefaults;
return this._mappers.reduce(applyOptionMapper, mergedOptions);

@@ -125,3 +135,3 @@ };

options = options || {};
return fetch(uri, this._prepareOptions(defaults, options), callback);
return fetch(uri, this.getMergedOptions(defaults, options), callback);
};

@@ -128,0 +138,0 @@ }

2

package.json
{
"name": "gofer",
"version": "3.6.0",
"version": "3.7.0",
"description": "A general purpose service client library",

@@ -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