Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/axios-extension

Package Overview
Dependencies
Maintainers
0
Versions
113
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 1.14.0 to 1.14.1

8

dist/abap/catalog/v2-catalog-service.d.ts

@@ -24,2 +24,10 @@ import type { ODataServiceInfo, Annotations, FilterOptions } from './base';

/**
* Returns the service path for the provided serivce URL.
*
* @param serviceUrl - service url (may be full service url or service path)
* @param baseUrl - base url for the odata service
* @returns - service path
*/
private getServicePath;
/**
* Map the V2 service information to a version independent structure.

@@ -26,0 +34,0 @@ *

21

dist/abap/catalog/v2-catalog-service.js

@@ -32,2 +32,20 @@ "use strict";

/**
* Returns the service path for the provided serivce URL.
*
* @param serviceUrl - service url (may be full service url or service path)
* @param baseUrl - base url for the odata service
* @returns - service path
*/
getServicePath(serviceUrl, baseUrl) {
let parsedUrl;
try {
parsedUrl = new URL(serviceUrl);
}
catch (_a) {
// there are cases where the service url is just the path and not the full service url
parsedUrl = new URL(serviceUrl, baseUrl);
}
return parsedUrl.pathname;
}
/**
* Map the V2 service information to a version independent structure.

@@ -40,6 +58,7 @@ *

return services.map((service) => {
const path = this.getServicePath(service.ServiceUrl, this.defaults.baseURL);
return {
id: service.ID,
name: service.TechnicalServiceName,
path: new URL(service.ServiceUrl).pathname,
path: path,
serviceVersion: service.TechnicalServiceVersion + '',

@@ -46,0 +65,0 @@ odataVersion: odata_service_1.ODataVersion.v2

2

package.json
{
"name": "@sap-ux/axios-extension",
"version": "1.14.0",
"version": "1.14.1",
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc