openshift-rest-client
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="1.6.2"></a> | ||
## [1.6.2](https://github.com/nodeshift/openshift-rest-client/compare/v1.6.1...v1.6.2) (2018-12-12) | ||
<a name="1.6.1"></a> | ||
@@ -7,0 +12,0 @@ ## [1.6.1](https://github.com/nodeshift/openshift-rest-client/compare/v1.6.0...v1.6.1) (2018-12-07) |
@@ -36,5 +36,6 @@ 'use strict'; | ||
return load(client.settings).then((config) => { | ||
client.apiUrl = `${config.cluster}/oapi/${config.apiVersion}`; | ||
client.kubeUrl = `${config.cluster}/api/${config.apiVersion}`; | ||
client.authUrl = `${config.cluster}/oauth/authorize?response_type=token&client_id=openshift-challenging-client`; | ||
const clusterUrl = removeTrailingSlash(config.cluster); | ||
client.apiUrl = `${clusterUrl}/oapi/${config.apiVersion}`; | ||
client.kubeUrl = `${clusterUrl}/api/${config.apiVersion}`; | ||
client.authUrl = `${clusterUrl}/oauth/authorize?response_type=token&client_id=openshift-challenging-client`; | ||
client.apis = { | ||
@@ -67,2 +68,6 @@ oapi: { | ||
function removeTrailingSlash (url) { | ||
return url.endsWith('/') ? url.slice(0, url.length - 1) : url; | ||
} | ||
module.exports = loadConfig; |
{ | ||
"name": "openshift-rest-client", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Node.js client for developing with OpenShift", | ||
@@ -9,3 +9,2 @@ "main": "index.js", | ||
"test": "tape test/*-test.js | tap-spec", | ||
"prepare": "nsp check", | ||
"coverage": "nyc npm test", | ||
@@ -12,0 +11,0 @@ "coverage:html": "nyc npm test && nyc report --reporter=html", |
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
104219
2627