@sap-ux/axios-extension 1.11.7 → 1.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,6 @@ import { AdtService } from './adt-catalog/services';
|
|
|
10
10
|
* Extension of the service provider for ABAP services.
|
|
11
11
|
*/
|
|
12
12
|
export declare class AbapServiceProvider extends ServiceProvider {
|
|
13
|
-
s4Cloud: boolean | undefined;
|
|
14
13
|
protected atoSettings: AtoSettings;
|
|
15
14
|
/**
|
|
16
15
|
* Maintain the public facing URL which is required for destination related flows
|
|
@@ -92,22 +92,13 @@ class AbapServiceProvider extends service_provider_1.ServiceProvider {
|
|
|
92
92
|
*/
|
|
93
93
|
isS4Cloud() {
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
if (this.
|
|
96
|
-
|
|
97
|
-
const settings = yield this.getAtoInfo();
|
|
98
|
-
this.s4Cloud =
|
|
99
|
-
settings.tenantType === types_1.TenantType.Customer &&
|
|
100
|
-
settings.operationsType === 'C' &&
|
|
101
|
-
settings.isExtensibilityDevelopmentSystem === true &&
|
|
102
|
-
settings.developmentPrefix !== '' &&
|
|
103
|
-
settings.developmentPackage !== '';
|
|
104
|
-
}
|
|
105
|
-
catch (error) {
|
|
106
|
-
this.log.warn('Failed to detect whether this is an SAP S/4HANA Cloud system or not.');
|
|
107
|
-
this.s4Cloud = false;
|
|
108
|
-
}
|
|
95
|
+
if (this.atoSettings === undefined) {
|
|
96
|
+
yield this.getAtoInfo();
|
|
109
97
|
}
|
|
110
|
-
return this.
|
|
98
|
+
return (this.atoSettings.tenantType === types_1.TenantType.Customer &&
|
|
99
|
+
this.atoSettings.operationsType === 'C' &&
|
|
100
|
+
this.atoSettings.developmentPrefix !== '' &&
|
|
101
|
+
this.atoSettings.developmentPackage !== '');
|
|
111
102
|
});
|
|
112
103
|
}
|
|
113
104
|
/**
|
|
@@ -81,7 +81,13 @@ export type OperationsType = 'C' | 'P';
|
|
|
81
81
|
export interface AtoSettings {
|
|
82
82
|
developmentPackage?: string;
|
|
83
83
|
developmentPrefix?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Operations type cloud or on premise.
|
|
86
|
+
*/
|
|
84
87
|
operationsType?: OperationsType;
|
|
88
|
+
/**
|
|
89
|
+
* True if it is an S/4HANA Cloud Public Edition client for key user extensibility.
|
|
90
|
+
*/
|
|
85
91
|
isExtensibilityDevelopmentSystem?: boolean;
|
|
86
92
|
tenantType?: TenantType;
|
|
87
93
|
isTransportRequestRequired?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/axios-extension",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.9",
|
|
4
4
|
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"qs": "6.7.3",
|
|
23
23
|
"xpath": "0.0.33",
|
|
24
24
|
"@xmldom/xmldom": "0.8.10",
|
|
25
|
-
"@sap-ux/btp-utils": "0.14.
|
|
25
|
+
"@sap-ux/btp-utils": "0.14.4",
|
|
26
26
|
"@sap-ux/logger": "0.5.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash": "4.14.202",
|
|
30
30
|
"nock": "13.4.0",
|
|
31
31
|
"supertest": "6.3.3",
|
|
32
|
-
"@sap-ux/project-access": "1.19.
|
|
32
|
+
"@sap-ux/project-access": "1.19.14"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|