@sap-ux/system-access 0.6.17 → 0.6.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.
- package/dist/base/connect.js +2 -2
- package/dist/base/prompts.js +2 -2
- package/package.json +5 -5
package/dist/base/connect.js
CHANGED
|
@@ -11,7 +11,7 @@ const credentials_1 = require("./credentials");
|
|
|
11
11
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
12
12
|
const prompts_1 = require("./prompts");
|
|
13
13
|
const prompts_2 = __importDefault(require("prompts"));
|
|
14
|
-
const
|
|
14
|
+
const node_fs_1 = require("node:fs");
|
|
15
15
|
const store_1 = require("@sap-ux/store");
|
|
16
16
|
/**
|
|
17
17
|
* Check if it is a url target.
|
|
@@ -56,7 +56,7 @@ async function createAbapCloudServiceProvider(options, target, prompt, logger) {
|
|
|
56
56
|
}
|
|
57
57
|
if (!providerConfig.service && prompt) {
|
|
58
58
|
const { path } = await (0, prompts_2.default)(prompts_1.questions.serviceKeysPath);
|
|
59
|
-
providerConfig.service = JSON.parse((0,
|
|
59
|
+
providerConfig.service = JSON.parse((0, node_fs_1.readFileSync)(path, 'utf-8'));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
// if no keys are available throw and error
|
package/dist/base/prompts.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.inquirer = exports.questions = void 0;
|
|
4
4
|
const store_1 = require("@sap-ux/store");
|
|
5
|
-
const
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
6
|
const authType = {
|
|
7
7
|
type: 'autocomplete',
|
|
8
8
|
name: 'authType',
|
|
@@ -26,7 +26,7 @@ const serviceKeysPath = {
|
|
|
26
26
|
type: 'text',
|
|
27
27
|
name: 'path',
|
|
28
28
|
message: 'Please provide the service keys as file:',
|
|
29
|
-
validate: (input) => (0,
|
|
29
|
+
validate: (input) => (0, node_fs_1.existsSync)(input)
|
|
30
30
|
};
|
|
31
31
|
const storeCredentials = {
|
|
32
32
|
type: 'confirm',
|
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.6.
|
|
12
|
+
"version": "0.6.19",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"prompts": "2.4.2",
|
|
26
|
-
"@sap-ux/axios-extension": "1.22.
|
|
27
|
-
"@sap-ux/btp-utils": "1.1.
|
|
26
|
+
"@sap-ux/axios-extension": "1.22.10",
|
|
27
|
+
"@sap-ux/btp-utils": "1.1.4",
|
|
28
28
|
"@sap-ux/logger": "0.7.0",
|
|
29
|
-
"@sap-ux/store": "1.1.
|
|
29
|
+
"@sap-ux/store": "1.1.5"
|
|
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.32.
|
|
35
|
+
"@sap-ux/project-access": "1.32.3"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=20.x"
|