Socket
Socket
Sign inDemoInstall

openshift-rest-client

Package Overview
Dependencies
Maintainers
4
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openshift-rest-client - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

5

CHANGELOG.md

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

11

lib/config-loader.js

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

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