Socket
Book a DemoInstallSign in
Socket

@sap-ux/axios-extension

Package Overview
Dependencies
Maintainers
3
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/axios-extension - npm Package Compare versions

Comparing version

to
1.22.1

2

dist/factory.d.ts
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": {