@sap-ux/fiori-app-sub-generator 0.9.15 → 0.9.16

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.
@@ -89,7 +89,6 @@ async function runPostGenerationTasks({ service, project }, fs, logger, vscode,
89
89
  entityName: 'system'
90
90
  });
91
91
  // No need to await, we cannot recover anyway
92
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
93
92
  storeService.write(service.backendSystem, { force: true }).catch((error) => {
94
93
  logger.error((0, utils_1.t)('logMessages.backendSystemSaveError', {
95
94
  system: service.backendSystem?.name,
@@ -22,7 +22,7 @@ export interface FioriAppGeneratorOptions extends Generator.GeneratorOptions, Fi
22
22
  * Additional (non-specified option) data may be passed using this property. e.g. Adaptor data
23
23
  * todo: External -> FioriGeneratorOptions
24
24
  */
25
- data?: Object;
25
+ data?: object;
26
26
  /**
27
27
  * Customer provided extensions used to customize existing questions
28
28
  *
@@ -75,9 +75,7 @@ exports.getViewQuestion = getViewQuestion;
75
75
  async function promptUI5ApplicationAnswers({ service, projectName, targetFolder, promptSettings, floorplan, promptExtension, entityRelatedConfig }, yeomanUiStepConfig, adapter) {
76
76
  let inquirerAdapter;
77
77
  // type `any` will be replaced when we can import ESM modules
78
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
79
78
  if (adapter?.actualAdapter) {
80
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
81
79
  inquirerAdapter = adapter.actualAdapter;
82
80
  }
83
81
  else {
@@ -115,9 +113,7 @@ async function promptUI5ApplicationAnswers({ service, projectName, targetFolder,
115
113
  async function promptOdataServiceAnswers(options, logger, adapter, connectedSystem) {
116
114
  let inquirerAdapter;
117
115
  // type `any` will be replaced when we can import ESM modules
118
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
116
  if (adapter?.actualAdapter) {
120
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
121
117
  inquirerAdapter = adapter.actualAdapter;
122
118
  }
123
119
  else {
@@ -33,7 +33,7 @@ async function writeAppGenInfoFiles({ project, service, floorplan, entityRelated
33
33
  generatorVersion,
34
34
  template: templateLabel,
35
35
  serviceType: datasourceLabel,
36
- serviceUrl: `${service.capService ? types_1.DEFAULT_CAP_HOST : service.host ?? ''}${service.servicePath ?? ''}` ||
36
+ serviceUrl: `${service.capService ? types_1.DEFAULT_CAP_HOST : (service.host ?? '')}${service.servicePath ?? ''}` ||
37
37
  (0, utils_1.t)('texts.notApplicable')
38
38
  }, existingAppGenInfo, appGenInfo);
39
39
  appGenInfoCustom.entityRelatedConfig ??= [];
@@ -225,7 +225,7 @@ async function generateLaunchConfig(options, fs, vscode, log, writeToAppOnly = f
225
225
  vscode: vscode,
226
226
  addStartCmd,
227
227
  sapClientParam: options.sapClientParam,
228
- flpAppId: options?.enableVirtualEndpoints ? 'app-preview' : options.flpAppId ?? '',
228
+ flpAppId: options?.enableVirtualEndpoints ? 'app-preview' : (options.flpAppId ?? ''),
229
229
  flpSandboxAvailable: !options?.enableVirtualEndpoints,
230
230
  isAppStudio: (0, btp_utils_1.isAppStudio)(),
231
231
  writeToAppOnly
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "0.9.15",
4
+ "version": "0.9.16",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,23 +29,23 @@
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
- "@sap-ux/annotation-generator": "0.3.84",
33
- "@sap-ux/axios-extension": "1.24.5",
34
- "@sap-ux/btp-utils": "1.1.5",
35
- "@sap-ux/cap-config-writer": "0.12.33",
36
- "@sap-ux/feature-toggle": "0.3.4",
37
- "@sap-ux/fiori-elements-writer": "2.8.18",
38
- "@sap-ux/fiori-freestyle-writer": "2.5.11",
39
- "@sap-ux/fiori-generator-shared": "0.13.42",
40
- "@sap-ux/fiori-tools-settings": "0.2.2",
41
- "@sap-ux/launch-config": "0.10.42",
42
- "@sap-ux/odata-service-inquirer": "2.11.20",
43
- "@sap-ux/odata-service-writer": "0.27.37",
44
- "@sap-ux/project-access": "1.32.15",
45
- "@sap-ux/store": "1.3.4",
46
- "@sap-ux/telemetry": "0.6.46",
47
- "@sap-ux/ui5-application-inquirer": "0.15.46",
48
- "@sap-ux/ui5-info": "0.13.3"
32
+ "@sap-ux/annotation-generator": "0.3.85",
33
+ "@sap-ux/axios-extension": "1.24.6",
34
+ "@sap-ux/btp-utils": "1.1.6",
35
+ "@sap-ux/cap-config-writer": "0.12.34",
36
+ "@sap-ux/feature-toggle": "0.3.5",
37
+ "@sap-ux/fiori-elements-writer": "2.8.19",
38
+ "@sap-ux/fiori-freestyle-writer": "2.5.12",
39
+ "@sap-ux/fiori-generator-shared": "0.13.43",
40
+ "@sap-ux/fiori-tools-settings": "0.2.3",
41
+ "@sap-ux/launch-config": "0.10.43",
42
+ "@sap-ux/odata-service-inquirer": "2.11.21",
43
+ "@sap-ux/odata-service-writer": "0.27.38",
44
+ "@sap-ux/project-access": "1.32.16",
45
+ "@sap-ux/store": "1.3.5",
46
+ "@sap-ux/telemetry": "0.6.47",
47
+ "@sap-ux/ui5-application-inquirer": "0.15.47",
48
+ "@sap-ux/ui5-info": "0.13.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@sap-devx/yeoman-ui-types": "1.16.9",
@@ -62,11 +62,11 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "6.0.1",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/deploy-config-sub-generator": "0.5.18",
66
- "@sap-ux/flp-config-sub-generator": "0.3.82",
67
- "@sap-ux/inquirer-common": "0.9.15",
68
- "@sap-ux/jest-file-matchers": "0.2.7",
69
- "@sap-ux/logger": "0.7.1"
65
+ "@sap-ux/deploy-config-sub-generator": "0.5.19",
66
+ "@sap-ux/flp-config-sub-generator": "0.3.83",
67
+ "@sap-ux/inquirer-common": "0.9.16",
68
+ "@sap-ux/jest-file-matchers": "0.2.8",
69
+ "@sap-ux/logger": "0.7.2"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=20.x"
@@ -75,8 +75,8 @@
75
75
  "build": "tsc --build",
76
76
  "clean": "rimraf --glob generators test/test-output coverage *.tsbuildinfo",
77
77
  "watch": "tsc --watch",
78
- "lint": "eslint . --ext .ts",
79
- "lint:fix": "eslint . --ext .ts --fix",
78
+ "lint": "eslint",
79
+ "lint:fix": "eslint --fix",
80
80
  "test": "jest --ci --forceExit --detectOpenHandles --colors",
81
81
  "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
82
82
  "link": "pnpm link --global",