@sap-ux/axios-extension
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -76,2 +76,3 @@ /// <reference types="node" /> | ||
private readonly publicUrl; | ||
private readonly isDest; | ||
/** | ||
@@ -170,8 +171,6 @@ * Extension of the base constructor to set preferred response format if not provided by caller. | ||
* @param e.host hostname | ||
* @param e.isDest | ||
*/ | ||
protected logError({ error, host, isDest }: { | ||
protected logError({ error, host }: { | ||
error: Error; | ||
host?: string; | ||
isDest?: boolean; | ||
}): void; | ||
@@ -178,0 +177,0 @@ /** |
@@ -55,2 +55,3 @@ "use strict"; | ||
this.publicUrl = config.publicUrl || this.defaults.baseURL; | ||
this.isDest = /\.dest\//.test(this.defaults.baseURL); | ||
} | ||
@@ -125,3 +126,2 @@ /** | ||
const frontendUrl = this.getAbapFrontendUrl(); | ||
const isDest = /\.dest\//.test(config.baseURL); | ||
try { | ||
@@ -135,3 +135,3 @@ const response = yield this.updateRepoRequest(!!info, bsp.name, payload, config); | ||
host: frontendUrl, | ||
isDest | ||
isDest: this.isDest | ||
}); | ||
@@ -153,3 +153,3 @@ } | ||
host: frontendUrl, | ||
isDest | ||
isDest: this.isDest | ||
}, false); | ||
@@ -160,3 +160,3 @@ } | ||
catch (error) { | ||
this.logError({ error, host: frontendUrl, isDest }); | ||
this.logError({ error, host: frontendUrl }); | ||
throw error; | ||
@@ -180,3 +180,2 @@ } | ||
const info = yield this.getInfo(bsp.name); | ||
const isDest = /\.dest\//.test(config.baseURL); | ||
try { | ||
@@ -190,3 +189,3 @@ if (info) { | ||
host, | ||
isDest | ||
isDest: this.isDest | ||
}); | ||
@@ -202,3 +201,3 @@ } | ||
catch (error) { | ||
this.logError({ error, host, isDest }); | ||
this.logError({ error, host }); | ||
throw error; | ||
@@ -377,5 +376,4 @@ } | ||
* @param e.host hostname | ||
* @param e.isDest | ||
*/ | ||
logError({ error, host, isDest }) { | ||
logError({ error, host }) { | ||
var _a, _b; | ||
@@ -386,3 +384,3 @@ this.log.error(error.message); | ||
if (errorMessage) { | ||
(0, message_1.prettyPrintError)({ error: errorMessage, host, log: this.log, isDest }); | ||
(0, message_1.prettyPrintError)({ error: errorMessage, host, log: this.log, isDest: this.isDest }); | ||
} | ||
@@ -389,0 +387,0 @@ else { |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
240006
5415