Comparing version 2.5.0 to 2.6.0
@@ -0,1 +1,7 @@ | ||
### 2.6.0 | ||
* Backport searchDomain option to 2.x - **[@jkrems](https://github.com/jkrems)** [#70](https://github.com/groupon/gofer/pull/70) | ||
- [`f8d1202`](https://github.com/groupon/gofer/commit/f8d12020e098c6564cd7d138fb8b0a6f15105330) **feat:** Backport searchDomain option to 2.x | ||
### 2.5.0 | ||
@@ -2,0 +8,0 @@ |
@@ -95,3 +95,3 @@ | ||
this.applyBaseUrl = function(baseUrl, options) { | ||
var basePath, hostname, pathname, port, protocol, query, search, uri; | ||
var basePath, hostname, pathname, port, protocol, query, search, searchDomain, uri; | ||
uri = options.uri; | ||
@@ -108,2 +108,7 @@ if ('string' === typeof uri) { | ||
query = uri.query, search = uri.search; | ||
searchDomain = options.searchDomain; | ||
delete options.searchDomain; | ||
if (searchDomain && hostname && hostname[hostname.length - 1] !== '.') { | ||
hostname += "." + searchDomain + "."; | ||
} | ||
uri = Url.format({ | ||
@@ -110,0 +115,0 @@ protocol: protocol, |
{ | ||
"name": "gofer", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "A general purpose service client library for node.js", | ||
@@ -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
50129
909