@sap-ux/ui5-application-inquirer 0.7.0 → 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/i18n.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.t = exports.initI18nUi5AppInquirer = exports.defaultProjectNumber = void 0;
6
+ exports.defaultProjectNumber = void 0;
7
+ exports.initI18nUi5AppInquirer = initI18nUi5AppInquirer;
8
+ exports.t = t;
7
9
  const i18next_1 = __importDefault(require("i18next"));
8
10
  const ui5_application_inquirer_i18n_json_1 = __importDefault(require("./translations/ui5-application-inquirer.i18n.json"));
9
11
  const ui5AppInquirerNamespace = 'ui5-application-inquirer';
@@ -22,7 +24,6 @@ async function initI18nUi5AppInquirer() {
22
24
  }
23
25
  }, () => i18next_1.default.addResourceBundle('en', ui5AppInquirerNamespace, ui5_application_inquirer_i18n_json_1.default));
24
26
  }
25
- exports.initI18nUi5AppInquirer = initI18nUi5AppInquirer;
26
27
  /**
27
28
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
28
29
  *
@@ -36,7 +37,6 @@ function t(key, options) {
36
37
  }
37
38
  return i18next_1.default.t(key, options);
38
39
  }
39
- exports.t = t;
40
40
  initI18nUi5AppInquirer().catch(() => {
41
41
  // Needed for lint
42
42
  });
package/dist/index.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.promptNames = exports.prompt = exports.getPrompts = void 0;
6
+ exports.promptNames = void 0;
7
+ exports.getPrompts = getPrompts;
8
+ exports.prompt = prompt;
7
9
  const ui5_info_1 = require("@sap-ux/ui5-info");
8
10
  const inquirer_autocomplete_prompt_1 = __importDefault(require("inquirer-autocomplete-prompt"));
9
11
  const isNil_1 = __importDefault(require("lodash/isNil"));
@@ -31,7 +33,6 @@ async function getPrompts(promptOptions, capCdsInfo, isYUI = false) {
31
33
  const ui5Versions = await (0, ui5_info_1.getUI5Versions)(filterOptions);
32
34
  return (0, prompts_1.getQuestions)(ui5Versions, promptOptions, capCdsInfo, isYUI);
33
35
  }
34
- exports.getPrompts = getPrompts;
35
36
  /**
36
37
  * Prompt for ui5 application writer inputs.
37
38
  *
@@ -55,7 +56,6 @@ async function prompt(adapter, promptOptions, capCdsInfo, isYUI = false) {
55
56
  }
56
57
  return answers;
57
58
  }
58
- exports.prompt = prompt;
59
59
  /**
60
60
  * Apply prompt option default values to prompt answers in case they have not been executed by the user selections.
61
61
  * This can occur where some prompts are hidden by advanced option selections.
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateTargetFolder = exports.hidePrompts = exports.isVersionIncluded = exports.defaultAppName = exports.appPathExists = void 0;
3
+ exports.appPathExists = appPathExists;
4
+ exports.defaultAppName = defaultAppName;
5
+ exports.isVersionIncluded = isVersionIncluded;
6
+ exports.hidePrompts = hidePrompts;
7
+ exports.validateTargetFolder = validateTargetFolder;
4
8
  const ui5_info_1 = require("@sap-ux/ui5-info");
5
9
  const fs_1 = require("fs");
6
10
  const path_1 = require("path");
@@ -19,7 +23,6 @@ const validators_1 = require("./validators");
19
23
  function appPathExists(appName, targetPath) {
20
24
  return (0, fs_1.existsSync)((0, path_1.join)(targetPath ?? process.cwd(), appName.trim()));
21
25
  }
22
- exports.appPathExists = appPathExists;
23
26
  /**
24
27
  * Generate a default applicaiton name that does not exist at the specified path.
25
28
  *
@@ -38,7 +41,6 @@ function defaultAppName(targetPath) {
38
41
  }
39
42
  return defaultName;
40
43
  }
41
- exports.defaultAppName = defaultAppName;
42
44
  /**
43
45
  * Checks if the specified semantic version string is greater than or equal to the minimum version.
44
46
  * If the specified version is not a parsable semantic version, returns true.
@@ -55,7 +57,6 @@ function isVersionIncluded(version, minVersion) {
55
57
  }
56
58
  return version === ui5_info_1.latestVersionString;
57
59
  }
58
- exports.isVersionIncluded = isVersionIncluded;
59
60
  /**
60
61
  * Will remove prompts from the specified prompts based on prompt options
61
62
  * and applicability in the case of CAP projects. Removing prompts is preferable to using `when()`
@@ -83,7 +84,6 @@ function hidePrompts(prompts, promptOptions, isCapProject) {
83
84
  }
84
85
  return questions;
85
86
  }
86
- exports.hidePrompts = hidePrompts;
87
87
  /**
88
88
  * @param targetPath the target directory path.
89
89
  * @param appName the application directory name.
@@ -103,5 +103,4 @@ async function validateTargetFolder(targetPath, appName, validateFioriAppFolder)
103
103
  }
104
104
  return true;
105
105
  }
106
- exports.validateTargetFolder = validateTargetFolder;
107
106
  //# sourceMappingURL=prompt-helpers.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getQuestions = void 0;
3
+ exports.getQuestions = getQuestions;
4
4
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
5
5
  const project_access_1 = require("@sap-ux/project-access");
6
6
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
@@ -54,7 +54,6 @@ function getQuestions(ui5Versions, promptOptions, capCdsInfo, isYUI = false) {
54
54
  }
55
55
  return questions;
56
56
  }
57
- exports.getQuestions = getQuestions;
58
57
  /**
59
58
  * Get the `enableTypeScript` prompt.
60
59
  *
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateFioriAppProjectFolder = exports.validateAppName = void 0;
3
+ exports.validateAppName = validateAppName;
4
+ exports.validateFioriAppProjectFolder = validateFioriAppProjectFolder;
4
5
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
5
6
  const prompt_helpers_1 = require("./prompt-helpers");
6
7
  const i18n_1 = require("../i18n");
@@ -24,7 +25,6 @@ function validateAppName(appName, targetDir) {
24
25
  }
25
26
  return true;
26
27
  }
27
- exports.validateAppName = validateAppName;
28
28
  /**
29
29
  * Returns true if the specified target path does not contain a Fiori project.
30
30
  *
@@ -43,5 +43,4 @@ async function validateFioriAppProjectFolder(targetDir) {
43
43
  return true;
44
44
  }
45
45
  }
46
- exports.validateFioriAppProjectFolder = validateFioriAppProjectFolder;
47
46
  //# sourceMappingURL=validators.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-application-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for UI5 application writing",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -24,7 +24,7 @@
24
24
  "lodash": "4.17.21",
25
25
  "semver": "7.5.4",
26
26
  "@sap-ux/inquirer-common": "0.4.6",
27
- "@sap-ux/project-access": "1.27.5",
27
+ "@sap-ux/project-access": "1.27.6",
28
28
  "@sap-ux/project-input-validator": "0.3.3",
29
29
  "@sap-ux/ui5-info": "0.8.1"
30
30
  },
@@ -35,7 +35,7 @@
35
35
  "@types/lodash": "4.14.202",
36
36
  "@types/semver": "7.5.4",
37
37
  "inquirer": "8.2.6",
38
- "@sap-ux/cap-config-writer": "0.7.44"
38
+ "@sap-ux/cap-config-writer": "0.7.46"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=18.x"