@sap-ux/repo-app-import-sub-generator 0.3.41 → 0.3.43

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.
@@ -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.getAppConfig = exports.getAbapDeployConfig = void 0;
6
+ exports.getAbapDeployConfig = void 0;
7
+ exports.getAppConfig = getAppConfig;
7
8
  const fiori_elements_writer_1 = require("@sap-ux/fiori-elements-writer");
8
9
  const odata_service_inquirer_1 = require("@sap-ux/odata-service-inquirer");
9
10
  const i18n_1 = require("../utils/i18n");
@@ -131,5 +132,4 @@ async function getAppConfig(app, extractedProjectPath, qfaJson, systemSelection,
131
132
  throw error;
132
133
  }
133
134
  }
134
- exports.getAppConfig = getAppConfig;
135
135
  //# sourceMappingURL=app-config.js.map
@@ -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.fetchAppListForSelectedSystem = exports.formatAppChoices = exports.extractAppData = exports.getYUIDetails = void 0;
6
+ exports.formatAppChoices = exports.extractAppData = void 0;
7
+ exports.getYUIDetails = getYUIDetails;
8
+ exports.fetchAppListForSelectedSystem = fetchAppListForSelectedSystem;
7
9
  const constants_1 = require("../utils/constants");
8
10
  const prompt_state_1 = require("./prompt-state");
9
11
  const i18n_1 = require("../utils/i18n");
@@ -21,7 +23,6 @@ function getYUIDetails() {
21
23
  }
22
24
  ];
23
25
  }
24
- exports.getYUIDetails = getYUIDetails;
25
26
  /**
26
27
  * Returns the prompt details for the selected application.
27
28
  *
@@ -109,5 +110,4 @@ async function fetchAppListForSelectedSystem(connectedSystem, appId) {
109
110
  }
110
111
  return [];
111
112
  }
112
- exports.fetchAppListForSelectedSystem = fetchAppListForSelectedSystem;
113
113
  //# sourceMappingURL=prompt-helpers.js.map
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import AdmZip from 'adm-zip';
3
2
  import { type OdataServiceAnswers } from '@sap-ux/odata-service-inquirer';
4
3
  /**
@@ -3,7 +3,7 @@ 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.getPrompts = void 0;
6
+ exports.getPrompts = getPrompts;
7
7
  const odata_service_inquirer_1 = require("@sap-ux/odata-service-inquirer");
8
8
  const types_1 = require("../app/types");
9
9
  const i18n_1 = require("../utils/i18n");
@@ -106,8 +106,7 @@ async function getPrompts(appRootPath, quickDeployedAppConfig, appWizard, isCli
106
106
  message: (0, i18n_1.t)('prompts.appSelection.message'),
107
107
  choices: () => (appList.length ? (0, prompt_helpers_1.formatAppChoices)(appList) : []),
108
108
  validate: async (answers) => {
109
- const result = await (0, validators_1.validateAppSelection)(answers, appList, quickDeployedAppConfig, appWizard);
110
- return !!result;
109
+ return await (0, validators_1.validateAppSelection)(answers, appList, quickDeployedAppConfig, appWizard);
111
110
  }
112
111
  }
113
112
  ];
@@ -122,5 +121,4 @@ async function getPrompts(appRootPath, quickDeployedAppConfig, appWizard, isCli
122
121
  throw new Error(`Failed to generate prompts: ${error.message}`);
123
122
  }
124
123
  }
125
- exports.getPrompts = getPrompts;
126
124
  //# sourceMappingURL=prompts.js.map
@@ -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.downloadApp = exports.extractZip = exports.hasQfaJson = void 0;
6
+ exports.hasQfaJson = hasQfaJson;
7
+ exports.extractZip = extractZip;
8
+ exports.downloadApp = downloadApp;
7
9
  const path_1 = require("path");
8
10
  const prompt_state_1 = require("../prompts/prompt-state");
9
11
  const i18n_1 = require("./i18n");
@@ -19,7 +21,6 @@ function hasQfaJson() {
19
21
  const qfaEntries = prompt_state_1.PromptState.admZip?.getEntries().filter((entry) => entry.entryName === constants_1.qfaJsonFileName);
20
22
  return qfaEntries?.length === 1;
21
23
  }
22
- exports.hasQfaJson = hasQfaJson;
23
24
  /**
24
25
  * Extracts a ZIP archive to a temporary directory.
25
26
  *
@@ -43,7 +44,6 @@ async function extractZip(extractedProjectPath, fs) {
43
44
  logger_1.default.logger?.error((0, i18n_1.t)('error.appDownloadErrors.zipExtractionError', { error: error.message }));
44
45
  }
45
46
  }
46
- exports.extractZip = extractZip;
47
47
  /**
48
48
  * Downloads application files from the ABAP repository.
49
49
  *
@@ -59,5 +59,4 @@ async function downloadApp(repoName) {
59
59
  // store downloaded package in prompt state
60
60
  prompt_state_1.PromptState.admZip = downloadedAppPackage;
61
61
  }
62
- exports.downloadApp = downloadApp;
63
62
  //# sourceMappingURL=download-utils.js.map
@@ -3,7 +3,7 @@ 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.runPostAppGenHook = void 0;
6
+ exports.runPostAppGenHook = runPostAppGenHook;
7
7
  const logger_1 = __importDefault(require("./logger"));
8
8
  const i18n_1 = require("./i18n");
9
9
  /**
@@ -30,5 +30,4 @@ async function runPostAppGenHook(context) {
30
30
  logger_1.default.logger?.error((0, i18n_1.t)('error.eventHookErrors.commandExecutionFailed', e.message));
31
31
  }
32
32
  }
33
- exports.runPostAppGenHook = runPostAppGenHook;
34
33
  //# sourceMappingURL=event-hook.js.map
@@ -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.readManifest = exports.makeValidJson = void 0;
6
+ exports.makeValidJson = makeValidJson;
7
+ exports.readManifest = readManifest;
7
8
  const constants_1 = require("./constants");
8
9
  const i18n_1 = require("./i18n");
9
10
  const logger_1 = __importDefault(require("./logger"));
@@ -24,7 +25,6 @@ function makeValidJson(filePath, fs) {
24
25
  throw new Error((0, i18n_1.t)('error.errorProcessingJsonFile', { error }));
25
26
  }
26
27
  }
27
- exports.makeValidJson = makeValidJson;
28
28
  /**
29
29
  * Reads and validates the `manifest.json` file.
30
30
  *
@@ -48,5 +48,4 @@ function readManifest(manifesFilePath, fs) {
48
48
  }
49
49
  return manifest;
50
50
  }
51
- exports.readManifest = readManifest;
52
51
  //# sourceMappingURL=file-helpers.js.map
@@ -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 repo_app_import_sub_generator_i18n_json_1 = __importDefault(require("../translations/repo-app-import-sub-generator.i18n.json"));
9
10
  const repoAppDownloadGeneratorNs = 'repo-app-import-sub-generator';
@@ -13,7 +14,6 @@ const repoAppDownloadGeneratorNs = 'repo-app-import-sub-generator';
13
14
  async function initI18n() {
14
15
  await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', repoAppDownloadGeneratorNs, repo_app_import_sub_generator_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
  });
@@ -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.replaceWebappFiles = exports.validateAndUpdateManifestUI5Version = void 0;
6
+ exports.validateAndUpdateManifestUI5Version = validateAndUpdateManifestUI5Version;
7
+ exports.replaceWebappFiles = replaceWebappFiles;
7
8
  const path_1 = require("path");
8
9
  const project_access_1 = require("@sap-ux/project-access");
9
10
  const i18n_1 = require("./i18n");
@@ -51,7 +52,6 @@ async function validateAndUpdateManifestUI5Version(manifestFilePath, fs) {
51
52
  // update manifest at extracted path
52
53
  fs.writeJSON(manifestFilePath, manifestJson, undefined, 2);
53
54
  }
54
- exports.validateAndUpdateManifestUI5Version = validateAndUpdateManifestUI5Version;
55
55
  /**
56
56
  * Replaces the specified files in the `webapp` directory with the corresponding files from the `extractedPath`.
57
57
  *
@@ -100,5 +100,4 @@ async function replaceWebappFiles(projectPath, extractedPath, fs) {
100
100
  logger_1.default.logger?.error((0, i18n_1.t)('error.replaceWebappFilesError', { error }));
101
101
  }
102
102
  }
103
- exports.replaceWebappFiles = replaceWebappFiles;
104
103
  //# sourceMappingURL=updates.js.map
@@ -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.validateAppSelection = exports.isValidPromptState = exports.validateQfaJsonFile = void 0;
6
+ exports.isValidPromptState = exports.validateQfaJsonFile = void 0;
7
+ exports.validateAppSelection = validateAppSelection;
7
8
  const i18n_1 = require("../utils/i18n");
8
9
  const logger_1 = __importDefault(require("../utils/logger"));
9
10
  const prompt_state_1 = require("../prompts/prompt-state");
@@ -139,5 +140,4 @@ async function validateAppSelection(answers, appList, quickDeployedAppConfig, ap
139
140
  }
140
141
  return false;
141
142
  }
142
- exports.validateAppSelection = validateAppSelection;
143
143
  //# sourceMappingURL=validators.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/repo-app-import-sub-generator",
3
3
  "description": "Generator to download LROP Fiori applications deployed from an ABAP repository.",
4
- "version": "0.3.41",
4
+ "version": "0.3.43",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,18 +28,18 @@
28
28
  "@sap-ux/fiori-generator-shared": "0.12.8",
29
29
  "@sap-ux/inquirer-common": "0.7.13",
30
30
  "@sap-ux/project-access": "1.30.2",
31
- "@sap-ux/odata-service-inquirer": "2.5.2",
31
+ "@sap-ux/odata-service-inquirer": "2.5.3",
32
32
  "@sap-ux/fiori-elements-writer": "2.5.2",
33
33
  "@sap-ux/logger": "0.7.0",
34
34
  "@sap-ux/project-input-validator": "0.6.3",
35
35
  "@sap-ux/launch-config": "0.10.4",
36
36
  "@sap-ux/fiori-tools-settings": "0.2.0",
37
- "@sap-ux/abap-deploy-config-writer": "0.1.9",
37
+ "@sap-ux/abap-deploy-config-writer": "0.1.10",
38
38
  "@sap-ux/btp-utils": "1.1.0",
39
39
  "@sap-ux/ui5-info": "0.12.0",
40
- "@sap-ux/axios-extension": "1.22.1",
40
+ "@sap-ux/axios-extension": "1.22.2",
41
41
  "@sap-ux/store": "1.1.0",
42
- "@sap-ux/system-access": "0.6.6",
42
+ "@sap-ux/system-access": "0.6.7",
43
43
  "@sap-ux/guided-answers-helper": "0.3.0"
44
44
  },
45
45
  "devDependencies": {
@@ -61,7 +61,6 @@
61
61
  "lodash": "4.17.21",
62
62
  "@types/lodash": "4.14.202",
63
63
  "rimraf": "5.0.5",
64
- "typescript": "5.3.3",
65
64
  "unionfs": "4.4.0",
66
65
  "yeoman-test": "6.3.0",
67
66
  "yo": "4",