@sap-ux/ui5-library-reference-inquirer 0.3.32 → 0.3.34

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,8 @@ 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.initI18n = void 0;
6
+ exports.initI18n = initI18n;
7
+ exports.t = t;
7
8
  const i18next_1 = __importDefault(require("i18next"));
8
9
  const ui5_library_reference_inquirer_i18n_json_1 = __importDefault(require("./translations/ui5-library-reference-inquirer.i18n.json"));
9
10
  const ui5LibI18nNamespace = 'ui5-library-reference-inquirer';
@@ -13,7 +14,6 @@ const ui5LibI18nNamespace = 'ui5-library-reference-inquirer';
13
14
  async function initI18n() {
14
15
  await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', ui5LibI18nNamespace, ui5_library_reference_inquirer_i18n_json_1.default));
15
16
  }
16
- exports.initI18n = initI18n;
17
17
  /**
18
18
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
19
19
  *
@@ -27,7 +27,6 @@ function t(key, options) {
27
27
  }
28
28
  return i18next_1.default.t(key, options);
29
29
  }
30
- exports.t = t;
31
30
  initI18n().catch(() => {
32
31
  // Needed for lint
33
32
  });
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@ 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.prompt = exports.getPrompts = void 0;
6
+ exports.getPrompts = getPrompts;
7
+ exports.prompt = prompt;
7
8
  const inquirer_1 = __importDefault(require("inquirer"));
8
9
  const prompts_1 = require("./prompts");
9
10
  const project_access_1 = require("@sap-ux/project-access");
@@ -26,7 +27,6 @@ async function getPrompts(wsFolders, promptOptions) {
26
27
  const libraryChoices = await (0, choices_1.getLibraryChoices)(reuseLibs);
27
28
  return (0, prompts_1.getQuestions)(projectChoices, libraryChoices, promptOptions);
28
29
  }
29
- exports.getPrompts = getPrompts;
30
30
  /**
31
31
  * Prompt for ui5 library generation inputs.
32
32
  *
@@ -39,5 +39,4 @@ async function prompt(wsFolders, adapter, promptOptions) {
39
39
  const ui5LibPrompts = await exports.getPrompts(wsFolders, promptOptions);
40
40
  return adapter ? adapter.prompt(ui5LibPrompts) : inquirer_1.default.prompt(ui5LibPrompts);
41
41
  }
42
- exports.prompt = prompt;
43
42
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hidePrompts = void 0;
3
+ exports.hidePrompts = hidePrompts;
4
4
  /**
5
5
  * Will remove prompts from the specified prompts based on prompt options
6
6
  * Removing prompts is preferable to using `when()` to prevent continuous re-evaluation.
@@ -24,5 +24,4 @@ function hidePrompts(prompts, promptOptions) {
24
24
  }
25
25
  return questions;
26
26
  }
27
- exports.hidePrompts = hidePrompts;
28
27
  //# sourceMappingURL=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 i18n_1 = require("../i18n");
5
5
  const project_access_1 = require("@sap-ux/project-access");
6
6
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
@@ -30,7 +30,6 @@ function getQuestions(projectChoices, reuseLibs, promptOptions) {
30
30
  }
31
31
  return questions;
32
32
  }
33
- exports.getQuestions = getQuestions;
34
33
  /**
35
34
  * Get the target project folder prompt.
36
35
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-library-reference-inquirer",
3
3
  "description": "Prompts module that can provide prompts for UI5 library writer",
4
- "version": "0.3.32",
4
+ "version": "0.3.34",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "i18next": "23.5.1",
23
23
  "@sap-ux/inquirer-common": "0.4.6",
24
- "@sap-ux/project-access": "1.27.5"
24
+ "@sap-ux/project-access": "1.28.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "inquirer": "8.2.6",