@sap-ux/inquirer-common 0.5.12 → 0.5.14

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.
@@ -4,17 +4,7 @@ exports.getCFAbapInstanceChoices = getCFAbapInstanceChoices;
4
4
  const cf_tools_1 = require("@sap/cf-tools");
5
5
  const error_handler_1 = require("../error-handler/error-handler");
6
6
  const i18n_1 = require("../i18n");
7
- const AbapEnvType = {
8
- ABAP: 'abap',
9
- ABAP_TRIAL: 'abap-trial',
10
- ABAP_CANARY: 'abap-canary',
11
- ABAP_OEM: 'abap-oem',
12
- ABAP_OEM_CANARY: 'abap-oem-canary',
13
- ABAP_HAAS: 'abap-haas',
14
- ABAP_STAGING: 'abap-staging',
15
- ABAP_INTERNAL_STAGING: 'abap-internal-staging',
16
- DESTINATION: 'destination'
17
- };
7
+ const btp_utils_1 = require("@sap-ux/btp-utils");
18
8
  /**
19
9
  * Get the name sorted list of ABAP instance choices from an active CF login. If not logged in, an error message is logged.
20
10
  *
@@ -25,14 +15,14 @@ async function getCFAbapInstanceChoices(errorHandler) {
25
15
  const choices = [];
26
16
  try {
27
17
  const filteredInstances = [
28
- AbapEnvType.ABAP,
29
- AbapEnvType.ABAP_TRIAL,
30
- AbapEnvType.ABAP_CANARY,
31
- AbapEnvType.ABAP_OEM,
32
- AbapEnvType.ABAP_OEM_CANARY,
33
- AbapEnvType.ABAP_HAAS,
34
- AbapEnvType.ABAP_STAGING,
35
- AbapEnvType.ABAP_INTERNAL_STAGING
18
+ btp_utils_1.AbapEnvType.ABAP,
19
+ btp_utils_1.AbapEnvType.ABAP_TRIAL,
20
+ btp_utils_1.AbapEnvType.ABAP_CANARY,
21
+ btp_utils_1.AbapEnvType.ABAP_OEM,
22
+ btp_utils_1.AbapEnvType.ABAP_OEM_CANARY,
23
+ btp_utils_1.AbapEnvType.ABAP_HAAS,
24
+ btp_utils_1.AbapEnvType.ABAP_STAGING,
25
+ btp_utils_1.AbapEnvType.ABAP_INTERNAL_STAGING
36
26
  ];
37
27
  const serviceInstanceInfo = await (0, cf_tools_1.apiGetServicesInstancesFilteredByType)(filteredInstances);
38
28
  if (serviceInstanceInfo.length > 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/inquirer-common",
3
3
  "description": "Commonly used shared functionality and types to support inquirer modules.",
4
- "version": "0.5.12",
4
+ "version": "0.5.14",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,11 +28,11 @@
28
28
  "lodash": "4.17.21",
29
29
  "os-name": "4.0.1",
30
30
  "semver": "7.5.4",
31
- "@sap-ux/btp-utils": "0.17.1",
31
+ "@sap-ux/btp-utils": "0.17.2",
32
32
  "@sap-ux/feature-toggle": "0.2.3",
33
- "@sap-ux/fiori-generator-shared": "0.7.15",
33
+ "@sap-ux/fiori-generator-shared": "0.7.17",
34
34
  "@sap-ux/guided-answers-helper": "0.1.1",
35
- "@sap-ux/telemetry": "0.5.48",
35
+ "@sap-ux/telemetry": "0.5.50",
36
36
  "@sap-ux/logger": "0.6.0",
37
37
  "@sap-ux/ui5-info": "0.8.3"
38
38
  },