@sap-ux/ui5-application-writer 1.2.4 → 1.2.6

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.
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
11
11
  },
12
- "version": "1.2.4",
12
+ "version": "1.2.6",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,7 +27,7 @@
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/ui5-config": "0.25.1"
30
+ "@sap-ux/ui5-config": "0.25.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/ejs": "3.1.2",
@@ -38,7 +38,7 @@
38
38
  "@types/semver": "7.5.2",
39
39
  "fs-extra": "10.0.0",
40
40
  "@sap-ux/eslint-plugin-fiori-tools": "0.5.0",
41
- "@sap-ux/project-access": "1.28.5"
41
+ "@sap-ux/project-access": "1.28.7"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18.x"
@@ -1,4 +1,7 @@
1
1
  (function (sap) {
2
+ var sanitizeString = function (str) {
3
+ return str.replace(/[\n]/g, '\\n').replace(/[\r]/g, '\\r');
4
+ }
2
5
  var fioriToolsGetManifestLibs = function (manifestPath) {
3
6
  var url = manifestPath;
4
7
  var result = "";
@@ -98,9 +101,9 @@
98
101
  if (dependency.url && dependency.url.length > 0 && dependency.type === "UI5LIB") {
99
102
  sap.ui.require(["sap/base/Log"], function (Log) {
100
103
  Log.info("Registering Library " +
101
- dependency.componentId +
104
+ sanitizeString(dependency.componentId) +
102
105
  " from server " +
103
- dependency.url);
106
+ sanitizeString(dependency.url));
104
107
  });
105
108
  var compId = dependency.componentId.replace(/\./g, "/");
106
109
  var config = {
@@ -1,4 +1,7 @@
1
1
  (function (sap) {
2
+ var sanitizeString = function (str) {
3
+ return str.replace(/[\n]/g, '\\n').replace(/[\r]/g, '\\r');
4
+ }
2
5
  var fioriToolsGetManifestLibs = function (manifestPath) {
3
6
  var url = manifestPath;
4
7
  var result = "";
@@ -95,9 +98,9 @@
95
98
  if (dependency.url && dependency.url.length > 0 && dependency.type === "UI5LIB") {
96
99
  sap.ui.require(["sap/base/Log"], function (Log) {
97
100
  Log.info("Registering Library " +
98
- dependency.componentId +
101
+ sanitizeString(dependency.componentId) +
99
102
  " from server " +
100
- dependency.url);
103
+ sanitizeString(dependency.url));
101
104
  });
102
105
  var compId = dependency.componentId.replace(/\./g, "/");
103
106
  var config = {