@sap/bas-sdk
Advanced tools
Comparing version 3.7.4 to 3.7.5
@@ -19,4 +19,7 @@ "use strict"; | ||
try { | ||
/* Axios exposes the version in the user-agent header, creating a security issue. | ||
To address this, we override the header for enhanced security.*/ | ||
const headers = { | ||
"Content-Type": "application/json", | ||
"User-Agent": "Bas", | ||
}; | ||
@@ -23,0 +26,0 @@ const reqConfig = { |
@@ -175,2 +175,3 @@ "use strict"; | ||
"Content-Type": "application/json", | ||
"User-Agent": "Bas" | ||
}; | ||
@@ -177,0 +178,0 @@ return (0, headers_helper_1.addJwtHeader)(headers); |
@@ -122,2 +122,3 @@ "use strict"; | ||
"x-approuter-authorization": `bearer ${jwt}`, | ||
"User-Agent": "Bas" | ||
}, | ||
@@ -124,0 +125,0 @@ }; |
@@ -362,2 +362,3 @@ "use strict"; | ||
"Content-Type": "application/json", | ||
"User-Agent": "Bas", | ||
}; | ||
@@ -371,2 +372,3 @@ (0, chai_1.expect)((0, destinations_1.getDestinationHeaders)()).deep.equals(expectedHeaders); | ||
"x-approuter-authorization": `Bearer H2O_JWT_VALUE`, | ||
"User-Agent": "Bas", | ||
}; | ||
@@ -373,0 +375,0 @@ (0, chai_1.expect)((0, destinations_1.getDestinationHeaders)()).deep.equals(expectedHeaders); |
{ | ||
"name": "@sap/bas-sdk", | ||
"version": "3.7.4", | ||
"version": "3.7.5", | ||
"description": "SDK for SAP Business Application Studio", | ||
@@ -31,3 +31,3 @@ "license": "SAP", | ||
"devDependencies": { | ||
"@sap/bas-sdk-sinon-helper": "^3.7.4", | ||
"@sap/bas-sdk-sinon-helper": "^3.7.5", | ||
"@types/cross-spawn": "^6.0.2", | ||
@@ -34,0 +34,0 @@ "@types/fs-extra": "^11.0.1", |
@@ -20,4 +20,7 @@ import urljoin from "url-join"; | ||
try { | ||
/* Axios exposes the version in the user-agent header, creating a security issue. | ||
To address this, we override the header for enhanced security.*/ | ||
const headers: Record<string, string> = { | ||
"Content-Type": "application/json", | ||
"User-Agent": "Bas", | ||
}; | ||
@@ -24,0 +27,0 @@ |
@@ -301,4 +301,5 @@ import { URL } from "url"; | ||
"Content-Type": "application/json", | ||
"User-Agent": "Bas" | ||
}; | ||
return addJwtHeader(headers); | ||
} |
@@ -264,2 +264,3 @@ import axios, { AxiosResponse, RawAxiosRequestHeaders } from "axios"; | ||
"x-approuter-authorization": `bearer ${jwt}`, | ||
"User-Agent": "Bas" | ||
} as RawAxiosRequestHeaders, | ||
@@ -266,0 +267,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
368024
5588