@sap-ux/axios-extension
Advanced tools
Comparing version 1.17.8 to 1.18.0
@@ -55,3 +55,3 @@ import { ServiceProvider } from '../base/service-provider'; | ||
*/ | ||
isS4Cloud(): Promise<boolean>; | ||
isAbapCloud(): Promise<boolean>; | ||
/** | ||
@@ -58,0 +58,0 @@ * Create or get an existing instance of AdtCatalogService for fetching ADT schema. |
@@ -87,10 +87,7 @@ "use strict"; | ||
*/ | ||
async isS4Cloud() { | ||
async isAbapCloud() { | ||
if (this.atoSettings === undefined) { | ||
await this.getAtoInfo(); | ||
} | ||
return (this.atoSettings.tenantType === types_1.TenantType.Customer && | ||
this.atoSettings.operationsType === 'C' && | ||
this.atoSettings.developmentPrefix !== '' && | ||
this.atoSettings.developmentPackage !== ''); | ||
return this.atoSettings.tenantType === types_1.TenantType.Customer && this.atoSettings.operationsType === 'C'; | ||
} | ||
@@ -130,4 +127,4 @@ /** | ||
} | ||
Object.defineProperty(service, 'isS4Cloud', { | ||
get: this.isS4Cloud.bind(this) | ||
Object.defineProperty(service, 'isAbapCloud', { | ||
get: this.isAbapCloud.bind(this) | ||
}); | ||
@@ -134,0 +131,0 @@ return service; |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.17.8", | ||
"version": "1.18.0", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -5,0 +5,0 @@ "repository": { |
263893
6359