@sap-ux/axios-extension
Advanced tools
Comparing version 1.11.2 to 1.11.3
@@ -5,2 +5,7 @@ import type { Logger } from '@sap-ux/logger'; | ||
interface AdtServiceExtension { | ||
/** | ||
* Attaches an ADT schema to the service. | ||
* | ||
* @param serviceSchema - The ADT collection to attach. | ||
*/ | ||
attachAdtSchema(serviceSchema: AdtCollection): void; | ||
@@ -7,0 +12,0 @@ } |
@@ -7,2 +7,8 @@ /// <reference types="node" /> | ||
server: http.Server; | ||
/** | ||
* Redirect URL. | ||
* | ||
* @param port Port number. | ||
* @returns Redirect URL. | ||
*/ | ||
redirectUrl(port: number): string; | ||
@@ -9,0 +15,0 @@ } |
@@ -15,6 +15,19 @@ import type { AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
export interface ODataServiceExtension { | ||
/** | ||
* Retrieves the service document. | ||
* | ||
* @returns A Promise that resolves to a ServiceDocument | ||
*/ | ||
document(): Promise<ServiceDocument>; | ||
/** | ||
* Retrieves the metadata of the service. | ||
* | ||
* @returns A Promise that resolves to a string containing the metadata | ||
*/ | ||
metadata(): Promise<string>; | ||
} | ||
export interface ODataResponse<T> extends AxiosResponse { | ||
/** | ||
* | ||
*/ | ||
odata(): T; | ||
@@ -21,0 +34,0 @@ } |
@@ -21,2 +21,8 @@ import type { AxiosRequestConfig } from 'axios'; | ||
export interface ServiceProviderExtension { | ||
/** | ||
* Retrieves the service based on the provided path. | ||
* | ||
* @param path - The path of the service. | ||
* @returns service. | ||
*/ | ||
service(path: string): Service; | ||
@@ -23,0 +29,0 @@ } |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"@xmldom/xmldom": "0.8.10", | ||
"@sap-ux/btp-utils": "0.14.1", | ||
"@sap-ux/btp-utils": "0.14.2", | ||
"@sap-ux/logger": "0.5.1" | ||
@@ -33,3 +33,3 @@ }, | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.17.4" | ||
"@sap-ux/project-access": "1.17.5" | ||
}, | ||
@@ -36,0 +36,0 @@ "files": [ |
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
242355
5479
+ Added@sap-ux/btp-utils@0.14.2(transitive)
- Removed@sap-ux/btp-utils@0.14.1(transitive)
Updated@sap-ux/btp-utils@0.14.2