openshift-rest-client
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="1.6.4"></a> | ||
## [1.6.4](https://github.com/nodeshift/openshift-rest-client/compare/v1.6.3...v1.6.4) (2019-01-23) | ||
### Bug Fixes | ||
* no cluster url should return a rejected Promise ([fa2a549](https://github.com/nodeshift/openshift-rest-client/commit/fa2a549)) | ||
* Throw an error when there's no CLUSTER URL ([#108](https://github.com/nodeshift/openshift-rest-client/issues/108)) ([65093a3](https://github.com/nodeshift/openshift-rest-client/commit/65093a3)) | ||
<a name="1.6.3"></a> | ||
@@ -7,0 +18,0 @@ ## [1.6.3](https://github.com/nodeshift/openshift-rest-client/compare/v1.6.2...v1.6.3) (2019-01-15) |
@@ -101,3 +101,7 @@ 'use strict'; | ||
const url = client.settings.config.cluster; | ||
client.settings.config.cluster = url.endsWith('/') ? url.slice(0, url.length - 1) : url; | ||
if (!url) { | ||
return Promise.reject(new Error('Please provide an url of your OpenShift cluster in your configuration settings.')); | ||
} else { | ||
client.settings.config.cluster = url.endsWith('/') ? url.slice(0, url.length - 1) : url; | ||
} | ||
} | ||
@@ -104,0 +108,0 @@ |
{ | ||
"name": "openshift-rest-client", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Node.js client for developing with OpenShift", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
104990
2631