@sap-ux/axios-extension 1.17.8 → 1.18.1
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.
|
@@ -52,7 +52,7 @@ export declare class AbapServiceProvider extends ServiceProvider {
|
|
|
52
52
|
*
|
|
53
53
|
* @returns true if it an S/4HANA cloud system
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
isAbapCloud(): Promise<boolean>;
|
|
56
56
|
/**
|
|
57
57
|
* Create or get an existing instance of AdtCatalogService for fetching ADT schema.
|
|
58
58
|
*
|
|
@@ -84,14 +84,11 @@ class AbapServiceProvider extends service_provider_1.ServiceProvider {
|
|
|
84
84
|
*
|
|
85
85
|
* @returns true if it an S/4HANA cloud system
|
|
86
86
|
*/
|
|
87
|
-
async
|
|
87
|
+
async isAbapCloud() {
|
|
88
88
|
if (this.atoSettings === undefined) {
|
|
89
89
|
await this.getAtoInfo();
|
|
90
90
|
}
|
|
91
|
-
return
|
|
92
|
-
this.atoSettings.operationsType === 'C' &&
|
|
93
|
-
this.atoSettings.developmentPrefix !== '' &&
|
|
94
|
-
this.atoSettings.developmentPackage !== '');
|
|
91
|
+
return this.atoSettings.tenantType === types_1.TenantType.Customer && this.atoSettings.operationsType === 'C';
|
|
95
92
|
}
|
|
96
93
|
/**
|
|
97
94
|
* Create or get an existing instance of AdtCatalogService for fetching ADT schema.
|
|
@@ -126,8 +123,8 @@ class AbapServiceProvider extends service_provider_1.ServiceProvider {
|
|
|
126
123
|
else {
|
|
127
124
|
throw new Error('not implemented yet');
|
|
128
125
|
}
|
|
129
|
-
Object.defineProperty(service, '
|
|
130
|
-
get: this.
|
|
126
|
+
Object.defineProperty(service, 'isAbapCloud', {
|
|
127
|
+
get: this.isAbapCloud.bind(this)
|
|
131
128
|
});
|
|
132
129
|
return service;
|
|
133
130
|
}
|
|
@@ -7,7 +7,8 @@ const odata_request_error_1 = require("../base/odata-request-error");
|
|
|
7
7
|
exports.abapUrlReplaceMap = new Map([
|
|
8
8
|
[/\.abap\./, '.abap-web.'],
|
|
9
9
|
[/-api\.s4hana\.ondemand\.com/, '.s4hana.ondemand.com'],
|
|
10
|
-
[/-api\.saps4hanacloud\.cn/, '.saps4hanacloud.cn']
|
|
10
|
+
[/-api\.saps4hanacloud\.cn/, '.saps4hanacloud.cn'],
|
|
11
|
+
[/-api\.lab\.s4hana\.cloud\.sap/, '.lab.s4hana.cloud.sap']
|
|
11
12
|
]);
|
|
12
13
|
const xmlReplaceMap = {
|
|
13
14
|
'&': '&',
|
package/package.json
CHANGED