@sap-ux/fiori-elements-writer 0.7.2 → 0.7.3

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.
@@ -76,7 +76,8 @@ function setAppDefaults(feApp) {
76
76
  // minimum UI5 version depending on the template required
77
77
  feApp.ui5 = (_g = feApp.ui5) !== null && _g !== void 0 ? _g : {};
78
78
  if (!feApp.ui5.minUI5Version) {
79
- feApp.ui5.minUI5Version = (_h = feApp.ui5.version) !== null && _h !== void 0 ? _h : templateAttributes_1.TemplateTypeAttributes[feApp.template.type].minimumUi5Version[feApp.service.version];
79
+ feApp.ui5.minUI5Version =
80
+ (_h = feApp.ui5.version) !== null && _h !== void 0 ? _h : templateAttributes_1.TemplateTypeAttributes[feApp.template.type].minimumUi5Version[feApp.service.version];
80
81
  }
81
82
  // if not explictely disabled, enable the SAP Fiori tools
82
83
  feApp.appOptions = (_j = feApp.appOptions) !== null && _j !== void 0 ? _j : {};
@@ -7,7 +7,8 @@ exports.oldestSupportedUI5Version = '1.65.0';
7
7
  exports.changesPreviewToVersion = '1.78.0';
8
8
  // Specific escaping is required for FLP texts in flpSandbox.html template file
9
9
  // Escapes '\' with '\\\\' and '"' with '\"' to correctly render inputs in a secure way
10
- exports.escapeFLPText = (s) => s.replace(/\\/g, '\\\\').replace(/(")/g, '\\$&');
10
+ const escapeFLPText = (s) => s.replace(/\\/g, '\\\\').replace(/(")/g, '\\$&');
11
+ exports.escapeFLPText = escapeFLPText;
11
12
  const appComponentLibGeneric = 'sap/suite/ui/generic/template/lib/AppComponent';
12
13
  const appComponentLibOVP = 'sap/ovp/app/Component';
13
14
  const appComponentLibFioriElements = 'sap/fe/core/AppComponent';
package/dist/index.js CHANGED
@@ -59,7 +59,8 @@ function generate(basePath, data, fs) {
59
59
  validate_1.validateApp(feApp);
60
60
  yield odata_service_writer_1.generate(basePath, feApp.service, fs);
61
61
  const templateOptions = {
62
- changesPreview: ((_a = feApp.ui5) === null || _a === void 0 ? void 0 : _a.version) ? semver_1.default.lt(semver_1.default.coerce((_b = feApp.ui5) === null || _b === void 0 ? void 0 : _b.version), templateAttributes_1.changesPreviewToVersion)
62
+ changesPreview: ((_a = feApp.ui5) === null || _a === void 0 ? void 0 : _a.version)
63
+ ? semver_1.default.lt(semver_1.default.coerce((_b = feApp.ui5) === null || _b === void 0 ? void 0 : _b.version), templateAttributes_1.changesPreviewToVersion)
63
64
  : false,
64
65
  changesLoader: feApp.service.version === odata_service_writer_1.OdataVersion.v2
65
66
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "0.7.2",
4
+ "version": "0.7.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@sap-ux/odata-service-writer": "0.14.7",
24
24
  "@sap-ux/ui5-application-writer": "0.17.1",
25
- "@sap-ux/fe-fpm-writer": "0.17.1",
25
+ "@sap-ux/fe-fpm-writer": "0.17.2",
26
26
  "@sap-ux/ui5-config": "0.15.0",
27
27
  "@sap-ux/ui5-test-writer": "0.1.1",
28
28
  "ejs": "3.1.7",