openshift-rest-client
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -19,3 +19,3 @@ 'use strict'; | ||
auth: { | ||
bearer: clientConfig.user.token | ||
bearer: clientConfig.user.token || '' | ||
}, | ||
@@ -34,2 +34,8 @@ strictSSL: false, // Just for testing since self signed certs | ||
// Need to reject on unauthorized and errors that are not 404 | ||
if (resp.statusCode > 399 && resp.statusCode !== 404) { | ||
return reject(body); | ||
} | ||
// The body will i think be an Object | ||
return resolve(body); | ||
@@ -36,0 +42,0 @@ }); |
{ | ||
"name": "openshift-rest-client", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"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
26828
395