@sap-ux/axios-extension 1.11.6 → 1.11.8

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.s4Cloud === undefined) {
96
- try {
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.s4Cloud;
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;
@@ -37,7 +37,7 @@ function getReentranceTicket({ backendUrl, logger, timeout = connection_1.defaul
37
37
  server.listen();
38
38
  const redirectPort = server.address().port;
39
39
  // Open browser to handle SAML flow and return the reentrance ticket
40
- const scenario = (_a = process.env.SCENARIO) !== null && _a !== void 0 ? _a : 'FIORI';
40
+ const scenario = (_a = process.env.FIORI_TOOLS_SCENARIO) !== null && _a !== void 0 ? _a : 'FIORI';
41
41
  const url = `${backend.uiHostname()}${ADT_REENTRANCE_ENDPOINT}?scenario=${scenario}&redirect-url=${redirectUrl(redirectPort)}`;
42
42
  (_b = open(url)) === null || _b === void 0 ? void 0 : _b.catch((error) => logger.error(error));
43
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/axios-extension",
3
- "version": "1.11.6",
3
+ "version": "1.11.8",
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",
@@ -29,7 +29,7 @@
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.6"
32
+ "@sap-ux/project-access": "1.19.14"
33
33
  },
34
34
  "files": [
35
35
  "dist",