@sap-ux/generator-adp 1.0.55 → 1.0.57
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.
|
@@ -279,7 +279,6 @@ export declare class ConfigPrompter {
|
|
|
279
279
|
* loading the available applications.
|
|
280
280
|
*
|
|
281
281
|
* @param {string} system - The selected system.
|
|
282
|
-
* @param {ConfigAnswers} answers - The configuration answers provided by the user.
|
|
283
282
|
* @returns An error message if validation fails, or true if the system selection is valid.
|
|
284
283
|
*/
|
|
285
284
|
private validateSystem;
|
|
@@ -238,7 +238,7 @@ class ConfigPrompter {
|
|
|
238
238
|
hint: (0, i18n_js_1.t)('prompts.systemTooltip')
|
|
239
239
|
},
|
|
240
240
|
default: '',
|
|
241
|
-
validate:
|
|
241
|
+
validate: (value) => this.validateSystem(value),
|
|
242
242
|
additionalMessages: () => {
|
|
243
243
|
this.systemAdditionalMessage = (0, additional_messages_js_1.getSystemAdditionalMessages)(this.flexUICapability, this.selectedProjectType);
|
|
244
244
|
return this.systemAdditionalMessage;
|
|
@@ -253,11 +253,11 @@ class ConfigPrompter {
|
|
|
253
253
|
getSystemValidationPromptForCli() {
|
|
254
254
|
return {
|
|
255
255
|
name: types_js_1.configPromptNames.systemValidationCli,
|
|
256
|
-
when: async (
|
|
257
|
-
if (!
|
|
256
|
+
when: async ({ system }) => {
|
|
257
|
+
if (!system) {
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
|
-
const result = await this.validateSystem(
|
|
260
|
+
const result = await this.validateSystem(system);
|
|
261
261
|
if (typeof result === 'string') {
|
|
262
262
|
throw new Error(result);
|
|
263
263
|
}
|
|
@@ -638,26 +638,23 @@ class ConfigPrompter {
|
|
|
638
638
|
* loading the available applications.
|
|
639
639
|
*
|
|
640
640
|
* @param {string} system - The selected system.
|
|
641
|
-
* @param {ConfigAnswers} answers - The configuration answers provided by the user.
|
|
642
641
|
* @returns An error message if validation fails, or true if the system selection is valid.
|
|
643
642
|
*/
|
|
644
|
-
async validateSystem(system
|
|
643
|
+
async validateSystem(system) {
|
|
645
644
|
const validationResult = (0, project_input_validator_1.validateEmptyString)(system);
|
|
646
645
|
if (typeof validationResult === 'string') {
|
|
647
646
|
return validationResult;
|
|
648
647
|
}
|
|
649
|
-
const options = {
|
|
650
|
-
system,
|
|
651
|
-
client: undefined,
|
|
652
|
-
username: answers.username,
|
|
653
|
-
password: answers.password
|
|
654
|
-
};
|
|
655
648
|
try {
|
|
656
649
|
this.targetApps = [];
|
|
657
650
|
this.flexUICapability = undefined;
|
|
658
651
|
this.selectedProjectType = undefined;
|
|
659
652
|
this.selectedSystemType = undefined;
|
|
660
653
|
this.supportedProject = undefined;
|
|
654
|
+
const options = {
|
|
655
|
+
system,
|
|
656
|
+
client: undefined
|
|
657
|
+
};
|
|
661
658
|
this.abapProvider = await (0, adp_tooling_1.getConfiguredProvider)(options, this.logger);
|
|
662
659
|
this.isAuthRequired = (await this.getIsAuthRequired(system)) ?? false;
|
|
663
660
|
if (this.isAuthRequired) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "SAPUI5 Adaptation Project",
|
|
4
4
|
"homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
|
|
5
5
|
"description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.57",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"i18next": "26.3.6",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
32
|
"uuid": "11.1.1",
|
|
33
|
-
"@sap-ux/adp-tooling": "1.0.
|
|
34
|
-
"@sap-ux/axios-extension": "2.0.9",
|
|
35
|
-
"@sap-ux/feature-toggle": "1.0.5",
|
|
33
|
+
"@sap-ux/adp-tooling": "1.0.51",
|
|
36
34
|
"@sap-ux/btp-utils": "2.0.6",
|
|
37
|
-
"@sap-ux/
|
|
35
|
+
"@sap-ux/feature-toggle": "1.0.5",
|
|
36
|
+
"@sap-ux/inquirer-common": "1.0.38",
|
|
38
37
|
"@sap-ux/logger": "1.0.3",
|
|
38
|
+
"@sap-ux/axios-extension": "2.0.9",
|
|
39
39
|
"@sap-ux/project-access": "2.1.13",
|
|
40
40
|
"@sap-ux/store": "2.0.7",
|
|
41
41
|
"@sap-ux/system-access": "1.0.12",
|
|
42
|
+
"@sap-ux/fiori-generator-shared": "1.2.13",
|
|
42
43
|
"@sap-ux/project-input-validator": "1.0.18",
|
|
43
|
-
"@sap-ux/
|
|
44
|
-
"@sap-ux/telemetry": "2.0.
|
|
45
|
-
"@sap-ux/odata-service-writer": "1.0.21"
|
|
44
|
+
"@sap-ux/odata-service-writer": "1.0.21",
|
|
45
|
+
"@sap-ux/telemetry": "2.0.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@jest/globals": "30.4.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"fs-extra": "11.3.6",
|
|
59
59
|
"rimraf": "6.1.3",
|
|
60
60
|
"yeoman-test": "6.3.0",
|
|
61
|
-
"@sap-ux/deploy-config-sub-generator": "1.0.
|
|
61
|
+
"@sap-ux/deploy-config-sub-generator": "1.0.66"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22.x"
|