@sap-ux/system-access 0.6.18 → 0.6.20

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.
@@ -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 fs_1 = require("fs");
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, fs_1.readFileSync)(path, 'utf-8'));
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
@@ -166,7 +166,7 @@ async function createAbapServiceProvider(target, requestOptions, prompt, logger)
166
166
  provider = await createAbapDestinationServiceProvider(options, target, prompt);
167
167
  }
168
168
  else if (isUrlTarget(target)) {
169
- if (target.scp) {
169
+ if (target.scp || target.serviceKey) {
170
170
  provider = await createAbapCloudServiceProvider(options, target, prompt, logger);
171
171
  }
172
172
  else if (target.authenticationType === store_1.AuthenticationType.ReentranceTicket) {
@@ -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 fs_1 = require("fs");
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, fs_1.existsSync)(input)
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.18",
12
+ "version": "0.6.20",
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.9",
27
- "@sap-ux/btp-utils": "1.1.3",
26
+ "@sap-ux/axios-extension": "1.23.0",
27
+ "@sap-ux/btp-utils": "1.1.4",
28
28
  "@sap-ux/logger": "0.7.0",
29
- "@sap-ux/store": "1.1.4"
29
+ "@sap-ux/store": "1.2.0"
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.1"
35
+ "@sap-ux/project-access": "1.32.4"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=20.x"