@sap-ux/btp-utils
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -52,4 +52,11 @@ "use strict"; | ||
const serviceInfo = yield cf_tools_1.cfGetInstanceKeyParameters(instance); | ||
const clientId = ((_a = serviceInfo.uaa) === null || _a === void 0 ? void 0 : _a.clientid) || serviceInfo.clientid; | ||
const clientSecret = ((_b = serviceInfo.uaa) === null || _b === void 0 ? void 0 : _b.clientsecret) || serviceInfo.clientsecret; | ||
if (!serviceInfo) { | ||
throw new Error(`No destination instance ${instance} found`); | ||
} | ||
const serviceCredentials = serviceInfo.credentials; | ||
if (!serviceCredentials) { | ||
throw new Error(`No credentials for destination instance ${instance} found`); | ||
} | ||
const clientId = ((_a = serviceCredentials.uaa) === null || _a === void 0 ? void 0 : _a.clientid) || serviceCredentials.clientid; | ||
const clientSecret = ((_b = serviceCredentials.uaa) === null || _b === void 0 ? void 0 : _b.clientsecret) || serviceCredentials.clientsecret; | ||
return Buffer.from(`${encodeURIComponent(clientId)}:${encodeURIComponent(clientSecret)}`).toString('base64'); | ||
@@ -56,0 +63,0 @@ } |
{ | ||
"name": "@sap-ux/btp-utils", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Library to simplify working with SAP BTP specific features especially in SAP Business Application", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33920
334