@sap-ux/fe-fpm-writer 0.23.4 → 0.23.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.
|
@@ -147,7 +147,7 @@ function updateViewFile(basePath, viewPath, aggregationPath, viewDocument, templ
|
|
|
147
147
|
const xpathSelect = xpath.useNamespaces(viewDocument.firstChild._nsMap);
|
|
148
148
|
// Find target aggregated element and append template as child
|
|
149
149
|
const targetNodes = xpathSelect(aggregationPath, viewDocument);
|
|
150
|
-
if (targetNodes && targetNodes.length > 0) {
|
|
150
|
+
if (targetNodes && Array.isArray(targetNodes) && targetNodes.length > 0) {
|
|
151
151
|
const targetNode = targetNodes[0];
|
|
152
152
|
const sourceNode = viewDocument.importNode(templateDocument.documentElement, true);
|
|
153
153
|
targetNode.appendChild(sourceNode);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fe-fpm-writer",
|
|
3
3
|
"description": "SAP Fiori elements flexible programming model writer",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"mem-fs-editor": "9.4.0",
|
|
27
27
|
"semver": "7.5.4",
|
|
28
28
|
"xml-formatter": "2.6.1",
|
|
29
|
-
"xpath": "0.0.
|
|
29
|
+
"xpath": "0.0.33"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/ejs": "3.1.2",
|
|
33
33
|
"@types/mem-fs": "1.1.2",
|
|
34
34
|
"@types/mem-fs-editor": "7.0.1",
|
|
35
35
|
"@types/semver": "7.5.2",
|
|
36
|
-
"@sap-ux/project-access": "1.13.
|
|
36
|
+
"@sap-ux/project-access": "1.13.6"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
|