@sap-ux/generator-adp 1.0.32 → 1.0.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.
@@ -166,7 +166,7 @@ class default_1 extends yeoman_generator_1.default {
166
166
  this._setupLogging();
167
167
  this.options = opts;
168
168
  this.isMtaYamlFound = (0, adp_tooling_1.isMtaProject)(process.cwd());
169
- const jsonInputString = (0, parse_json_input_js_1.getFirstArgAsString)(args);
169
+ const jsonInputString = (0, parse_json_input_js_1.getFirstArg)(args);
170
170
  this.jsonInput = (0, parse_json_input_js_1.parseJsonInput)(jsonInputString, this.logger);
171
171
  if (!this.jsonInput) {
172
172
  this.env.lookup({
@@ -2,12 +2,12 @@ import type { ToolsLogger } from '@sap-ux/logger';
2
2
  import type { JsonInput } from '../app/types.js';
3
3
  /**
4
4
  * Returns the first argument from a list of CLI arguments. If the first argument
5
- * is not a string returns empty string.
5
+ * is not a string and not an array, returns empty string.
6
6
  *
7
- * @param {string | string[]} args - The list of CLI command arguments.
8
- * @returns {string} The first parameter in the argument's list as string.
7
+ * @param {T | T[]} args - The list of CLI command arguments.
8
+ * @returns {T | string} The first parameter in the argument's list, or empty string if the format is unexpected.
9
9
  */
10
- export declare function getFirstArgAsString(args: string | string[]): string;
10
+ export declare function getFirstArg<T>(args: T | T[]): T | string;
11
11
  /**
12
12
  * Parse a json string as an object conforming to the {@link JsonInput} interface.
13
13
  *
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFirstArgAsString = getFirstArgAsString;
3
+ exports.getFirstArg = getFirstArg;
4
4
  exports.parseJsonInput = parseJsonInput;
5
5
  const type_guards_js_1 = require("./type-guards.js");
6
6
  /**
7
7
  * Returns the first argument from a list of CLI arguments. If the first argument
8
- * is not a string returns empty string.
8
+ * is not a string and not an array, returns empty string.
9
9
  *
10
- * @param {string | string[]} args - The list of CLI command arguments.
11
- * @returns {string} The first parameter in the argument's list as string.
10
+ * @param {T | T[]} args - The list of CLI command arguments.
11
+ * @returns {T | string} The first parameter in the argument's list, or empty string if the format is unexpected.
12
12
  */
13
- function getFirstArgAsString(args) {
13
+ function getFirstArg(args) {
14
14
  if ((0, type_guards_js_1.isString)(args)) {
15
15
  return args;
16
16
  }
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.32",
6
+ "version": "1.0.34",
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": "25.10.10",
31
31
  "yeoman-generator": "5.10.0",
32
32
  "uuid": "11.1.1",
33
- "@sap-ux/adp-tooling": "1.0.31",
34
- "@sap-ux/axios-extension": "2.0.7",
35
- "@sap-ux/btp-utils": "2.0.5",
33
+ "@sap-ux/adp-tooling": "1.0.32",
36
34
  "@sap-ux/feature-toggle": "1.0.5",
37
- "@sap-ux/inquirer-common": "1.0.21",
35
+ "@sap-ux/inquirer-common": "1.0.22",
36
+ "@sap-ux/axios-extension": "2.0.7",
38
37
  "@sap-ux/logger": "1.0.3",
38
+ "@sap-ux/btp-utils": "2.0.5",
39
39
  "@sap-ux/project-access": "2.1.6",
40
40
  "@sap-ux/store": "2.0.4",
41
41
  "@sap-ux/system-access": "1.0.7",
42
42
  "@sap-ux/project-input-validator": "1.0.10",
43
- "@sap-ux/fiori-generator-shared": "1.0.20",
44
- "@sap-ux/odata-service-writer": "1.0.12",
45
- "@sap-ux/telemetry": "1.0.18"
43
+ "@sap-ux/fiori-generator-shared": "1.1.0",
44
+ "@sap-ux/telemetry": "1.0.18",
45
+ "@sap-ux/odata-service-writer": "1.0.12"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@jest/globals": "30.4.1",
@@ -58,7 +58,7 @@
58
58
  "fs-extra": "11.3.5",
59
59
  "rimraf": "6.1.3",
60
60
  "yeoman-test": "6.3.0",
61
- "@sap-ux/deploy-config-sub-generator": "1.0.40"
61
+ "@sap-ux/deploy-config-sub-generator": "1.0.42"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22.x"