@sap-ux/axios-extension
Advanced tools
Comparing version
import type { AxiosRequestConfig } from 'axios'; | ||
import type { Destination } from '@sap-ux/btp-utils'; | ||
import { type Destination } from '@sap-ux/btp-utils'; | ||
import type { ServiceInfo, RefreshTokenChanged } from './auth'; | ||
@@ -4,0 +4,0 @@ import type { ProviderConfiguration } from './base/service-provider'; |
@@ -23,3 +23,2 @@ "use strict"; | ||
const http_proxy_agent_1 = require("http-proxy-agent"); | ||
const feature_toggle_1 = require("@sap-ux/feature-toggle"); | ||
/** | ||
@@ -66,4 +65,3 @@ * PatchedHttpsProxyAgent is a custom implementation of HttpsProxyAgent that allows to pass additional options, currently not supported by the original implementation when calling tls.connect | ||
const localProxy = (0, proxy_from_env_1.getProxyForUrl)(config.baseURL); | ||
const isPatchProxyEnabled = (0, feature_toggle_1.isFeatureEnabled)('sap.ux.enablePatchProxy'); | ||
if (isPatchProxyEnabled && localProxy) { | ||
if (localProxy && !(0, btp_utils_1.isAppStudio)()) { | ||
// axios doesn't handle proxies correctly, instead use a custom agent with axios proxy disabled | ||
@@ -70,0 +68,0 @@ providerConfig.httpsAgent = new PatchedHttpsProxyAgent(localProxy, agentOptions); |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.22.0", | ||
"version": "1.22.1", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -5,0 +5,0 @@ "repository": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
281100
-0.05%6825
-0.03%