@sap-ux/system-access 0.3.17 → 0.3.19

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.
@@ -19,6 +19,7 @@ const btp_utils_1 = require("@sap-ux/btp-utils");
19
19
  const prompts_1 = require("./prompts");
20
20
  const prompts_2 = __importDefault(require("prompts"));
21
21
  const fs_1 = require("fs");
22
+ const store_1 = require("@sap-ux/store");
22
23
  /**
23
24
  * Check if it is a url or destination target.
24
25
  *
@@ -129,6 +130,13 @@ function createAbapServiceProvider(target, requestOptions, prompt, logger) {
129
130
  if (target.scp) {
130
131
  provider = yield createAbapCloudServiceProvider(options, target, prompt, logger);
131
132
  }
133
+ else if (target.authenticationType === store_1.AuthenticationType.ReentranceTicket) {
134
+ provider = (0, axios_extension_1.createForAbapOnCloud)({
135
+ ignoreCertErrors: options.ignoreCertErrors,
136
+ environment: axios_extension_1.AbapCloudEnvironment.EmbeddedSteampunk,
137
+ url: target.url
138
+ });
139
+ }
132
140
  else {
133
141
  provider = yield createAbapOnPremServiceProvider(options, target, prompt, logger);
134
142
  }
package/dist/types.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import type { AxiosRequestConfig, ServiceInfo } from '@sap-ux/axios-extension';
2
+ import type { AuthenticationType } from '@sap-ux/store';
2
3
  export interface UrlAbapTarget {
3
4
  url: string;
4
5
  client?: string;
5
6
  scp?: boolean;
7
+ authenticationType?: AuthenticationType;
6
8
  serviceKey?: ServiceInfo;
7
9
  params?: AxiosRequestConfig['params'];
8
10
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Asystem-access"
11
11
  },
12
- "version": "0.3.17",
12
+ "version": "0.3.19",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -23,15 +23,15 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "prompts": "2.4.2",
26
- "@sap-ux/axios-extension": "1.11.3",
27
- "@sap-ux/btp-utils": "0.14.2",
26
+ "@sap-ux/axios-extension": "1.11.5",
27
+ "@sap-ux/btp-utils": "0.14.3",
28
28
  "@sap-ux/logger": "0.5.1",
29
29
  "@sap-ux/store": "0.5.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/prompts": "2.4.4",
33
- "rimraf": "5.0.1",
34
- "@sap-ux/project-access": "1.17.6"
33
+ "rimraf": "5.0.5",
34
+ "@sap-ux/project-access": "1.19.6"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18.x"