Comparing version 3.6.0 to 3.7.0
@@ -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 @@ |
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65564
1311