@sap-ux/ui5-application-writer 1.2.3 → 1.2.5
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.
|
|
12
|
+
"version": "1.2.5",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -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.
|
|
41
|
+
"@sap-ux/project-access": "1.28.6"
|
|
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 = "";
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
}
|
|
41
44
|
});
|
|
42
45
|
return libOrCompKeysStringTmp;
|
|
43
|
-
}
|
|
46
|
+
};
|
|
44
47
|
var getComponentUsageNames = function (compUsages, libOrCompKeysString) {
|
|
45
48
|
var libOrCompKeysStringTmp = libOrCompKeysString;
|
|
46
49
|
var compNames = Object.keys(compUsages).map(function (compUsageKey) {
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
}
|
|
58
61
|
});
|
|
59
62
|
return libOrCompKeysStringTmp;
|
|
60
|
-
}
|
|
63
|
+
};
|
|
61
64
|
return new Promise(function (resolve, reject) {
|
|
62
65
|
|
|
63
66
|
sap.ui.require(["sap/ui/thirdparty/jquery"], function (localJQuery) {
|
|
@@ -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 = {
|
|
@@ -113,7 +116,7 @@
|
|
|
113
116
|
});
|
|
114
117
|
}
|
|
115
118
|
});
|
|
116
|
-
}
|
|
119
|
+
};
|
|
117
120
|
/**
|
|
118
121
|
* Registers the module paths for dependencies of the given component.
|
|
119
122
|
* @param {string} manifestPath The the path to the app manifest path
|
|
@@ -168,7 +171,7 @@
|
|
|
168
171
|
//Registering to the icon pool
|
|
169
172
|
IconPool.registerFont(bSuiteTheme);
|
|
170
173
|
});
|
|
171
|
-
}
|
|
174
|
+
};
|
|
172
175
|
|
|
173
176
|
/*eslint-disable fiori-custom/sap-browser-api-warning, fiori-custom/sap-no-dom-access*/
|
|
174
177
|
var currentScript = document.getElementById("locate-reuse-libs");
|
|
@@ -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 = "";
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
}
|
|
41
44
|
});
|
|
42
45
|
return libOrCompKeysStringTmp;
|
|
43
|
-
}
|
|
46
|
+
};
|
|
44
47
|
function getComponentUsageNames(compUsages, libOrCompKeysString) {
|
|
45
48
|
var libOrCompKeysStringTmp = libOrCompKeysString;
|
|
46
49
|
var compNames = Object.keys(compUsages).map(function (compUsageKey) {
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
}
|
|
58
61
|
});
|
|
59
62
|
return libOrCompKeysStringTmp;
|
|
60
|
-
}
|
|
63
|
+
};
|
|
61
64
|
return new Promise(function (resolve, reject) {
|
|
62
65
|
$.ajax(url)
|
|
63
66
|
.done(function (manifest) {
|
|
@@ -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 = {
|
|
@@ -110,7 +113,7 @@
|
|
|
110
113
|
});
|
|
111
114
|
}
|
|
112
115
|
});
|
|
113
|
-
}
|
|
116
|
+
};
|
|
114
117
|
/**
|
|
115
118
|
* Registers the module paths for dependencies of the given component.
|
|
116
119
|
* @param {string} manifestPath The the path to the app manifest path
|
|
@@ -165,7 +168,7 @@ function registerSAPFonts() {
|
|
|
165
168
|
//Registering to the icon pool
|
|
166
169
|
IconPool.registerFont(bSuiteTheme);
|
|
167
170
|
});
|
|
168
|
-
}
|
|
171
|
+
};
|
|
169
172
|
|
|
170
173
|
/*eslint-disable fiori-custom/sap-browser-api-warning, fiori-custom/sap-no-dom-access*/
|
|
171
174
|
var currentScript = document.getElementById("locate-reuse-libs");
|