@sap-ux/ui5-application-inquirer 0.14.0 → 0.14.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.
@@ -71,12 +71,8 @@ function hidePrompts(prompts, promptOptions, isCapProject = false) {
71
71
  const promptKey = key;
72
72
  // Narrow the type as we are only dealing with `hide` options
73
73
  const promptOpt = promptOptions?.[promptKey];
74
- let hidePrompt = false;
75
- if (typeof promptOpt?.hide === 'function') {
76
- hidePrompt = promptOpt.hide(isCapProject);
77
- }
74
+ const hidePrompt = typeof promptOpt?.hide === 'function' ? promptOpt.hide(isCapProject) : promptOpt?.hide ?? false;
78
75
  if (!hidePrompt &&
79
- !promptOpt?.hide &&
80
76
  // Target directory is determined by the CAP project. `enableEsLint` and `targetFolder` are not available for CAP projects
81
77
  !([types_1.promptNames.targetFolder, types_1.promptNames.enableEslint].includes(types_1.promptNames[promptKey]) && isCapProject)) {
82
78
  questions.push(prompts[promptKey]);
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.14.0",
4
+ "version": "0.14.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",