@sap-ux/axios-extension
Advanced tools
Comparing version 1.8.1 to 1.9.0
import type { Service } from '../base/service-provider'; | ||
import { Axios } from 'axios'; | ||
import type { Logger } from '@sap-ux/logger'; | ||
export interface App { | ||
export interface App extends Record<string, unknown> { | ||
'sap.app/id': string; | ||
'sap.app/title': string; | ||
'sap.fiori/registrationIds': string[]; | ||
url: string; | ||
@@ -7,0 +9,0 @@ } |
@@ -51,2 +51,6 @@ /// <reference types="node" /> | ||
safeMode?: boolean; | ||
/** | ||
* if set to true, then any additional info messages will be logged | ||
*/ | ||
showAddInfo?: boolean; | ||
} | ||
@@ -108,5 +112,6 @@ /** | ||
* @param config.safeMode if set then the SafeMode url parameter will be set. SafeMode is by default active, to activate provide false | ||
* @param config.showAddInfo if set to true, then additional info message will be logged | ||
* @returns the Axios response object for further processing | ||
*/ | ||
deploy({ archive, bsp, testMode, safeMode }: DeployConfig): Promise<AxiosResponse>; | ||
deploy({ archive, bsp, testMode, safeMode, showAddInfo }: DeployConfig): Promise<AxiosResponse>; | ||
/** | ||
@@ -113,0 +118,0 @@ * Undeploy an existing app. |
@@ -115,5 +115,6 @@ "use strict"; | ||
* @param config.safeMode if set then the SafeMode url parameter will be set. SafeMode is by default active, to activate provide false | ||
* @param config.showAddInfo if set to true, then additional info message will be logged | ||
* @returns the Axios response object for further processing | ||
*/ | ||
deploy({ archive, bsp, testMode = false, safeMode }) { | ||
deploy({ archive, bsp, testMode = false, safeMode, showAddInfo = false }) { | ||
var _a, _b; | ||
@@ -143,4 +144,4 @@ return __awaiter(this, void 0, void 0, function* () { | ||
: ''; | ||
if (this.isDest) { | ||
this.log.info('(Note: You will need to replace the host in the URL with the internal host, if your destination is configured using an On-Premise SAP Cloud Connector)'); | ||
if (this.isDest && showAddInfo) { | ||
this.log.info('(Note: As the destination is configured using an On-Premise SAP Cloud Connector, you will need to replace the host in the URL above with the internal host)'); | ||
} | ||
@@ -147,0 +148,0 @@ this.log.info(`App available at ${frontendUrl}${path}${query}`); |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.8.1", | ||
"version": "1.9.0", | ||
"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.12.1", | ||
"@sap-ux/btp-utils": "0.13.0", | ||
"@sap-ux/logger": "0.4.0" | ||
@@ -33,3 +33,3 @@ }, | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.16.2" | ||
"@sap-ux/project-access": "1.17.0" | ||
}, | ||
@@ -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
240711
5424
+ Added@sap-ux/btp-utils@0.13.0(transitive)
- Removed@sap-ux/btp-utils@0.12.1(transitive)
- Removedaxios@1.6.0(transitive)
Updated@sap-ux/btp-utils@0.13.0