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 3.0.0 to 3.0.1

7

CHANGELOG.md

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

### [3.0.1](https://github.com/nodeshift/openshift-rest-client/compare/v3.0.0...v3.0.1) (2019-11-19)
### Bug Fixes
* **auth:** Throw some reasonable error message in basic authentication when we can't obtain an access token. ([#174](https://github.com/nodeshift/openshift-rest-client/issues/174)) ([53614e2](https://github.com/nodeshift/openshift-rest-client/commit/53614e2))
## [3.0.0](https://github.com/nodeshift/openshift-rest-client/compare/v2.3.0...v3.0.0) (2019-10-30)

@@ -7,0 +14,0 @@

13

lib/basic-auth-request.js

@@ -34,7 +34,10 @@ 'use strict';

const hash = resp.request.uri.hash;
const startIndex = hash.indexOf('=') + 1;
const stopIndex = hash.indexOf('&');
const accessToken = hash.slice(startIndex, stopIndex);
return resolve(accessToken);
if (hash) {
const startIndex = hash.indexOf('=') + 1;
const stopIndex = hash.indexOf('&');
const accessToken = hash.slice(startIndex, stopIndex);
return resolve(accessToken);
} else {
return reject(new Error(`Unable to authenticate user ${settings.user} to ${resp.request.uri.host}. Cannot obtain access token from response.`));
}
});

@@ -41,0 +44,0 @@ });

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

@@ -5,0 +5,0 @@ "main": "index.js",

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