@sap-ux/fiori-elements-writer 0.7.14 → 0.8.0
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 +2 -2
- package/templates/v2/common/add/webapp/test/changes_loader.js +6 -1
- package/templates/v2/common/add/webapp/test/changes_loader.ts +6 -1
- package/templates/v2/common/add/webapp/test/changes_preview.js +6 -1
- package/templates/v2/common/add/webapp/test/changes_preview.ts +6 -1
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.
|
|
4
|
+
"version": "0.8.0",
|
|
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.12",
|
|
24
24
|
"@sap-ux/ui5-application-writer": "0.17.10",
|
|
25
|
-
"@sap-ux/fe-fpm-writer": "0.17.
|
|
25
|
+
"@sap-ux/fe-fpm-writer": "0.17.8",
|
|
26
26
|
"@sap-ux/ui5-config": "0.15.4",
|
|
27
27
|
"@sap-ux/ui5-test-writer": "0.1.4",
|
|
28
28
|
"ejs": "3.1.7",
|
|
@@ -9,7 +9,12 @@ const connectorPath =
|
|
|
9
9
|
: 'sap/ui/fl/initial/api/connectors/FileListBaseConnector';
|
|
10
10
|
|
|
11
11
|
sap.ui.define(['sap/base/util/merge', connectorPath], function(merge, FileListBaseConnector) {
|
|
12
|
-
var trustedHosts = [
|
|
12
|
+
var trustedHosts = [
|
|
13
|
+
/^localhost$/,
|
|
14
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.cloud\.sap$/,
|
|
15
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.sapcloud\.cn$/,
|
|
16
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.vlab-sapcloudplatformdev\.cn$/
|
|
17
|
+
];
|
|
13
18
|
var url = new URL(window.location.toString());
|
|
14
19
|
var isValidHost = trustedHosts.some((host) => {
|
|
15
20
|
return host.test(url.hostname);
|
|
@@ -10,7 +10,12 @@ const connectorPath =
|
|
|
10
10
|
: 'sap/ui/fl/initial/api/connectors/FileListBaseConnector';
|
|
11
11
|
|
|
12
12
|
sap.ui.define(['sap/base/util/merge', connectorPath], function(merge, FileListBaseConnector) {
|
|
13
|
-
var trustedHosts = [
|
|
13
|
+
var trustedHosts = [
|
|
14
|
+
/^localhost$/,
|
|
15
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.cloud\.sap$/,
|
|
16
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.sapcloud\.cn$/,
|
|
17
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.vlab-sapcloudplatformdev\.cn$/
|
|
18
|
+
];
|
|
14
19
|
var url = new URL(window.location.toString());
|
|
15
20
|
var isValidHost = trustedHosts.some((host) => {
|
|
16
21
|
return host.test(url.hostname);
|
|
@@ -42,7 +42,12 @@ if (parseInt(version[0], 10) <= 1 && parseInt(version[1], 10) < 78) {
|
|
|
42
42
|
//Get the content of the changes folder.
|
|
43
43
|
var aPromises = [];
|
|
44
44
|
var sCacheBusterFilePath = "/sap-ui-cachebuster-info.json";
|
|
45
|
-
var trustedHosts = [
|
|
45
|
+
var trustedHosts = [
|
|
46
|
+
/^localhost$/,
|
|
47
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.cloud\.sap$/,
|
|
48
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.sapcloud\.cn$/,
|
|
49
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.vlab-sapcloudplatformdev\.cn$/
|
|
50
|
+
];
|
|
46
51
|
var url = new URL(window.location.toString());
|
|
47
52
|
var isValidHost = trustedHosts.some((host) => {
|
|
48
53
|
return host.test(url.hostname);
|
|
@@ -43,7 +43,12 @@ if (parseInt(version[0], 10) <= 1 && parseInt(version[1], 10) < 78) {
|
|
|
43
43
|
//Get the content of the changes folder.
|
|
44
44
|
var aPromises = [];
|
|
45
45
|
var sCacheBusterFilePath = "/sap-ui-cachebuster-info.json";
|
|
46
|
-
var trustedHosts = [
|
|
46
|
+
var trustedHosts = [
|
|
47
|
+
/^localhost$/,
|
|
48
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.cloud\.sap$/,
|
|
49
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.sapcloud\.cn$/,
|
|
50
|
+
/^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.vlab-sapcloudplatformdev\.cn$/
|
|
51
|
+
];
|
|
47
52
|
var url = new URL(window.location.toString());
|
|
48
53
|
var isValidHost = trustedHosts.some((host) => {
|
|
49
54
|
return host.test(url.hostname);
|