@sap-ux/system-access 0.6.66 → 0.7.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.
- package/dist/base/credentials.js +9 -2
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
package/dist/base/credentials.js
CHANGED
|
@@ -42,10 +42,17 @@ async function getCredentialsFromStore(target, logger) {
|
|
|
42
42
|
try {
|
|
43
43
|
if (!(0, btp_utils_1.isAppStudio)()) {
|
|
44
44
|
const systemService = await (0, store_1.getService)({ entityName: 'system' });
|
|
45
|
-
let
|
|
45
|
+
let url = target.url;
|
|
46
|
+
if (target.connectPath) {
|
|
47
|
+
const normalizedPath = target.connectPath.startsWith('/')
|
|
48
|
+
? target.connectPath
|
|
49
|
+
: `/${target.connectPath}`;
|
|
50
|
+
url = new URL(normalizedPath, target.url).href;
|
|
51
|
+
}
|
|
52
|
+
let system = await systemService.read(new store_1.BackendSystemKey({ url, client: target.client }));
|
|
46
53
|
// check if there are credentials for the default client
|
|
47
54
|
if (!system && target.client) {
|
|
48
|
-
system = await systemService.read(new store_1.BackendSystemKey({ url
|
|
55
|
+
system = await systemService.read(new store_1.BackendSystemKey({ url }));
|
|
49
56
|
}
|
|
50
57
|
return system;
|
|
51
58
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { AxiosRequestConfig, ServiceInfo } from '@sap-ux/axios-extension';
|
|
|
2
2
|
import type { AuthenticationType } from '@sap-ux/store';
|
|
3
3
|
export interface UrlAbapTarget {
|
|
4
4
|
url: string;
|
|
5
|
+
connectPath?: string;
|
|
5
6
|
client?: string;
|
|
6
7
|
scp?: boolean;
|
|
7
8
|
authenticationType?: AuthenticationType;
|
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.
|
|
12
|
+
"version": "0.7.1",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"prompts": "2.4.2",
|
|
26
|
-
"@sap-ux/axios-extension": "1.25.
|
|
26
|
+
"@sap-ux/axios-extension": "1.25.25",
|
|
27
27
|
"@sap-ux/btp-utils": "1.1.10",
|
|
28
28
|
"@sap-ux/logger": "0.8.2",
|
|
29
29
|
"@sap-ux/store": "1.5.10"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/prompts": "2.4.4",
|
|
33
33
|
"nock": "14.0.11",
|
|
34
34
|
"rimraf": "6.1.3",
|
|
35
|
-
"@sap-ux/project-access": "1.35.
|
|
35
|
+
"@sap-ux/project-access": "1.35.14"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=20.x"
|