@sap-ux/system-access 0.5.11 → 0.5.12
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/connect.js +3 -4
- package/dist/base/credentials.js +6 -7
- package/package.json +3 -3
package/dist/base/connect.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.isUrlTarget = isUrlTarget;
|
|
7
|
+
exports.isDestinationTarget = isDestinationTarget;
|
|
8
|
+
exports.createAbapServiceProvider = createAbapServiceProvider;
|
|
7
9
|
const axios_extension_1 = require("@sap-ux/axios-extension");
|
|
8
10
|
const credentials_1 = require("./credentials");
|
|
9
11
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
@@ -20,7 +22,6 @@ const store_1 = require("@sap-ux/store");
|
|
|
20
22
|
function isUrlTarget(target) {
|
|
21
23
|
return target.url !== undefined;
|
|
22
24
|
}
|
|
23
|
-
exports.isUrlTarget = isUrlTarget;
|
|
24
25
|
/**
|
|
25
26
|
* Check if it is a destination target.
|
|
26
27
|
*
|
|
@@ -30,7 +31,6 @@ exports.isUrlTarget = isUrlTarget;
|
|
|
30
31
|
function isDestinationTarget(target) {
|
|
31
32
|
return target.destination !== undefined;
|
|
32
33
|
}
|
|
33
|
-
exports.isDestinationTarget = isDestinationTarget;
|
|
34
34
|
/**
|
|
35
35
|
* Enhance axios options and create a service provider instance for an ABAP Cloud system.
|
|
36
36
|
*
|
|
@@ -189,5 +189,4 @@ async function createAbapServiceProvider(target, requestOptions, prompt, logger)
|
|
|
189
189
|
}
|
|
190
190
|
return provider;
|
|
191
191
|
}
|
|
192
|
-
exports.createAbapServiceProvider = createAbapServiceProvider;
|
|
193
192
|
//# sourceMappingURL=connect.js.map
|
package/dist/base/credentials.js
CHANGED
|
@@ -3,7 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.isBasicAuth = isBasicAuth;
|
|
7
|
+
exports.isServiceAuth = isServiceAuth;
|
|
8
|
+
exports.getCredentialsFromStore = getCredentialsFromStore;
|
|
9
|
+
exports.storeCredentials = storeCredentials;
|
|
10
|
+
exports.getCredentialsFromEnvVariables = getCredentialsFromEnvVariables;
|
|
11
|
+
exports.getCredentialsWithPrompts = getCredentialsWithPrompts;
|
|
7
12
|
const store_1 = require("@sap-ux/store");
|
|
8
13
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
9
14
|
const prompts_1 = __importDefault(require("prompts"));
|
|
@@ -17,7 +22,6 @@ const prompts_2 = require("./prompts");
|
|
|
17
22
|
function isBasicAuth(authOpts) {
|
|
18
23
|
return !!authOpts && authOpts.password !== undefined;
|
|
19
24
|
}
|
|
20
|
-
exports.isBasicAuth = isBasicAuth;
|
|
21
25
|
/**
|
|
22
26
|
* Checks if credentials are of service auth type.
|
|
23
27
|
*
|
|
@@ -27,7 +31,6 @@ exports.isBasicAuth = isBasicAuth;
|
|
|
27
31
|
function isServiceAuth(authOpts) {
|
|
28
32
|
return !!authOpts && authOpts.serviceKeys !== undefined;
|
|
29
33
|
}
|
|
30
|
-
exports.isServiceAuth = isServiceAuth;
|
|
31
34
|
/**
|
|
32
35
|
* Check the secure storage if it has credentials for the given target.
|
|
33
36
|
*
|
|
@@ -53,7 +56,6 @@ async function getCredentialsFromStore(target, logger) {
|
|
|
53
56
|
}
|
|
54
57
|
return undefined;
|
|
55
58
|
}
|
|
56
|
-
exports.getCredentialsFromStore = getCredentialsFromStore;
|
|
57
59
|
/**
|
|
58
60
|
* Store the credentials in the secure storage.
|
|
59
61
|
*
|
|
@@ -84,7 +86,6 @@ async function storeCredentials(name, target, credentials, logger) {
|
|
|
84
86
|
return false;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
exports.storeCredentials = storeCredentials;
|
|
88
89
|
/**
|
|
89
90
|
* Checks the environment variables for Fiori tools settings.
|
|
90
91
|
*
|
|
@@ -101,7 +102,6 @@ function getCredentialsFromEnvVariables() {
|
|
|
101
102
|
return undefined;
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
exports.getCredentialsFromEnvVariables = getCredentialsFromEnvVariables;
|
|
105
105
|
/**
|
|
106
106
|
* Prompt for username and password.
|
|
107
107
|
*
|
|
@@ -118,5 +118,4 @@ async function getCredentialsWithPrompts(username) {
|
|
|
118
118
|
]);
|
|
119
119
|
return credentials;
|
|
120
120
|
}
|
|
121
|
-
exports.getCredentialsWithPrompts = getCredentialsWithPrompts;
|
|
122
121
|
//# sourceMappingURL=credentials.js.map
|
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.5.
|
|
12
|
+
"version": "0.5.12",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@sap-ux/axios-extension": "1.16.6",
|
|
27
27
|
"@sap-ux/btp-utils": "0.15.2",
|
|
28
28
|
"@sap-ux/logger": "0.6.0",
|
|
29
|
-
"@sap-ux/store": "0.9.
|
|
29
|
+
"@sap-ux/store": "0.9.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/prompts": "2.4.4",
|
|
33
33
|
"nock": "13.4.0",
|
|
34
34
|
"rimraf": "5.0.5",
|
|
35
|
-
"@sap-ux/project-access": "1.27.
|
|
35
|
+
"@sap-ux/project-access": "1.27.5"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=18.x"
|