Socket
Socket
Sign inDemoInstall

openshift-rest-client

Package Overview
Dependencies
150
Maintainers
7
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0 to 7.0.0

17

CHANGELOG.md

@@ -5,2 +5,19 @@ # Changelog

## [7.0.0](https://github.com/nodeshift/openshift-rest-client/compare/v6.1.0...v7.0.0) (2021-10-01)
### ⚠ BREAKING CHANGES
* changes the default value of loadClusterFromSpec to true instead of false ([#285](https://github.com/nodeshift/openshift-rest-client/pull/285))([1442a3b](https://github.com/nodeshift/openshift-rest-client/commit/1442a3bfa08ac13ae962b8ea76e369a4a0ce2c28))
### Bug Fixes
* package.json & package-lock.json to reduce vulnerabilities ([#284](https://github.com/nodeshift/openshift-rest-client/issues/284)) ([a4742e8](https://github.com/nodeshift/openshift-rest-client/commit/a4742e87306c23858f9c969351b090eb953dec55))
* upgrade eslint-plugin-import from 2.23.4 to 2.24.0 ([#280](https://github.com/nodeshift/openshift-rest-client/issues/280)) ([6223ddb](https://github.com/nodeshift/openshift-rest-client/commit/6223ddb4e3fce11dd5741a8aef996c871c4a6815))
* upgrade eslint-plugin-import from 2.24.0 to 2.24.1 ([#282](https://github.com/nodeshift/openshift-rest-client/issues/282)) ([da100e7](https://github.com/nodeshift/openshift-rest-client/commit/da100e72f03515a1bc6f9f44fa9d655c07468d50))
* upgrade eslint-plugin-import from 2.24.1 to 2.24.2 ([#283](https://github.com/nodeshift/openshift-rest-client/issues/283)) ([f9e3ee8](https://github.com/nodeshift/openshift-rest-client/commit/f9e3ee8ac72a19307a9649241292ce28e1789127))
* upgrade tape from 5.2.2 to 5.3.1 ([#279](https://github.com/nodeshift/openshift-rest-client/issues/279)) ([d1feab8](https://github.com/nodeshift/openshift-rest-client/commit/d1feab895ef5d2d3d63a1f25abf379e17b1b9854))
## [6.1.0](https://www.github.com/nodeshift/openshift-rest-client/compare/v6.0.0...v6.1.0) (2021-08-23)

@@ -7,0 +24,0 @@

8

lib/openshift-rest-client.js

@@ -64,3 +64,3 @@ 'use strict';

* @param {object} [settings] - settings object for the openshiftClient function
* @param {boolean} [settings.loadSpecFromCluster] - load the api spec from a remote cluster. Defaults to false
* @param {boolean} [settings.loadSpecFromCluster] - load the api spec from a remote cluster. Defaults to true
* @param {object|string} [settings.config] - custom config object(KubeConfig or object). String value will assume a config file location.

@@ -77,6 +77,8 @@ * @param {string} [settings.config.url] - Openshift cluster url

let config = settings.config;
// Default the load spec from cluster to true
const { loadSpecFromCluster = true } = settings;
const clientConfig = { backend: null, /* spec, */ getNames };
if (!settings.loadSpecFromCluster) {
if (!loadSpecFromCluster) {
clientConfig.spec = spec;

@@ -171,3 +173,3 @@ }

let client = new Client(clientConfig);
if (settings.loadSpecFromCluster) {
if (loadSpecFromCluster) {
try {

@@ -174,0 +176,0 @@ await client.loadSpec();

{
"name": "openshift-rest-client",
"version": "6.1.0",
"version": "7.0.0",
"description": "Node.js client for developing with OpenShift",

@@ -14,2 +14,3 @@ "main": "index.js",

"package.json",
"pacakage-support.json",
"README.md",

@@ -47,6 +48,6 @@ "LICENSE",

"documentation": "^13.2.5",
"eslint": "^6.8.0",
"eslint": "^7.16.0",
"eslint-config-semistandard": "^15.0.1",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "~2.23.4",
"eslint-plugin-import": "~2.24.2",
"eslint-plugin-node": "~11.1.0",

@@ -60,5 +61,5 @@ "eslint-plugin-promise": "~4.3.1",

"tap-spec": "^5.0.0",
"tape": "~5.2.2"
"tape": "~5.3.1"
},
"support": true
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc