@sap-ux/axios-extension
Advanced tools
Comparing version 1.11.7 to 1.11.8
@@ -13,3 +13,2 @@ import { ServiceProvider } from '../base/service-provider'; | ||
export declare class AbapServiceProvider extends ServiceProvider { | ||
s4Cloud: boolean | undefined; | ||
protected atoSettings: AtoSettings; | ||
@@ -16,0 +15,0 @@ /** |
@@ -95,18 +95,9 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.s4Cloud === undefined) { | ||
try { | ||
const settings = yield this.getAtoInfo(); | ||
this.s4Cloud = | ||
settings.tenantType === types_1.TenantType.Customer && | ||
settings.operationsType === 'C' && | ||
settings.isExtensibilityDevelopmentSystem === true && | ||
settings.developmentPrefix !== '' && | ||
settings.developmentPackage !== ''; | ||
} | ||
catch (error) { | ||
this.log.warn('Failed to detect whether this is an SAP S/4HANA Cloud system or not.'); | ||
this.s4Cloud = false; | ||
} | ||
if (this.atoSettings === undefined) { | ||
yield this.getAtoInfo(); | ||
} | ||
return this.s4Cloud; | ||
return (this.atoSettings.tenantType === types_1.TenantType.Customer && | ||
this.atoSettings.operationsType === 'C' && | ||
this.atoSettings.developmentPrefix !== '' && | ||
this.atoSettings.developmentPackage !== ''); | ||
}); | ||
@@ -113,0 +104,0 @@ } |
@@ -84,3 +84,9 @@ /** | ||
developmentPrefix?: string; | ||
/** | ||
* Operations type cloud or on premise. | ||
*/ | ||
operationsType?: OperationsType; | ||
/** | ||
* True if it is an S/4HANA Cloud Public Edition client for key user extensibility. | ||
*/ | ||
isExtensibilityDevelopmentSystem?: boolean; | ||
@@ -87,0 +93,0 @@ tenantType?: TenantType; |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.11.7", | ||
"version": "1.11.8", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.19.10" | ||
"@sap-ux/project-access": "1.19.14" | ||
}, | ||
@@ -35,0 +35,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
242769
5493