@sap-ux/axios-extension
Advanced tools
Comparing version 1.11.4 to 1.11.5
@@ -19,5 +19,5 @@ "use strict"; | ||
* DO NOT USE THIS SERVICE ENDPOINT DIRECTLY. | ||
* It might change without notice. | ||
* It might be removed in the future without notice. | ||
*/ | ||
const ADT_REENTRANCE_ENDPOINT = '/sap/bc/adt/core/http/reentranceticket'; | ||
const ADT_REENTRANCE_ENDPOINT = '/sap/bc/sec/reentrance'; | ||
/** | ||
@@ -34,3 +34,3 @@ * Get the reentrance ticket from the backend. | ||
return new Promise((resolve, reject) => { | ||
var _a; | ||
var _a, _b; | ||
const backend = new abap_system_1.ABAPSystem(backendUrl); | ||
@@ -42,4 +42,5 @@ // Start local server to listen to redirect call, with timeout | ||
// Open browser to handle SAML flow and return the reentrance ticket | ||
const url = `${backend.uiHostname()}${ADT_REENTRANCE_ENDPOINT}?redirect-url=${redirectUrl(redirectPort)}`; | ||
(_a = open(url)) === null || _a === void 0 ? void 0 : _a.catch((error) => logger.error(error)); | ||
const scenario = (_a = process.env.SCENARIO) !== null && _a !== void 0 ? _a : 'FIORI'; | ||
const url = `${backend.uiHostname()}${ADT_REENTRANCE_ENDPOINT}?scenario=${scenario}&redirect-url=${redirectUrl(redirectPort)}`; | ||
(_b = open(url)) === null || _b === void 0 ? void 0 : _b.catch((error) => logger.error(error)); | ||
}); | ||
@@ -46,0 +47,0 @@ }); |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.11.4", | ||
"version": "1.11.5", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.19.2" | ||
"@sap-ux/project-access": "1.19.6" | ||
}, | ||
@@ -35,0 +35,0 @@ "files": [ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
242480
5480
2