UNPKG

@sap-cloud-sdk/connectivity

Version:

SAP Cloud SDK for JavaScript connectivity

16 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDestinationServiceCredentials = getDestinationServiceCredentials; const service_credentials_1 = require("./service-credentials"); /** * Utility function to get destination service credentials, including error handling. * @internal */ function getDestinationServiceCredentials() { const credentials = (0, service_credentials_1.getServiceCredentials)('destination'); if (!credentials) { throw new Error('Could not find binding to the destination service.'); } return credentials; } //# sourceMappingURL=destination.js.map