@openui5/sap.ui.support 1.71.76 → 1.71.78

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/LICENSE.txt CHANGED
@@ -616,7 +616,7 @@ License: MIT License
616
616
  <year> = 2018
617
617
  <copyright holders> = Michael Mclaughlin
618
618
 
619
- Component: lodash 4.17.21
619
+ Component: lodash 4.17.23
620
620
  Licensor: JS Foundation and other contributors
621
621
  Website: https://github.com/lodash/lodash
622
622
  License: MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.support",
3
- "version": "1.71.76",
3
+ "version": "1.71.78",
4
4
  "description": "OpenUI5 UI Library sap.ui.support",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,11 +14,11 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.71.76",
18
- "@openui5/sap.ui.codeeditor": "1.71.76",
19
- "@openui5/sap.ui.core": "1.71.76",
20
- "@openui5/sap.ui.fl": "1.71.76",
21
- "@openui5/sap.ui.layout": "1.71.76",
22
- "@openui5/themelib_sap_belize": "1.71.76"
17
+ "@openui5/sap.m": "1.71.78",
18
+ "@openui5/sap.ui.codeeditor": "1.71.78",
19
+ "@openui5/sap.ui.core": "1.71.78",
20
+ "@openui5/sap.ui.fl": "1.71.78",
21
+ "@openui5/sap.ui.layout": "1.71.78",
22
+ "@openui5/themelib_sap_belize": "1.71.78"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.71.76</version>
9
+ <version>1.71.78</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.support</documentation>
12
12
 
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @namespace
33
33
  * @alias sap.ui.support.RuleAnalyzer
34
34
  * @author SAP SE
35
- * @version 1.71.76
35
+ * @version 1.71.78
36
36
  * @public
37
37
  */
38
38
  var RuleAnalyzer = {
@@ -32,7 +32,7 @@ sap.ui.define(["sap/ui/support/supportRules/Main",
32
32
  * @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
33
33
  * @alias jQuery.sap.support
34
34
  * @author SAP SE
35
- * @version 1.71.76
35
+ * @version 1.71.78
36
36
  * @public
37
37
  */
38
38
  jQuery.sap.support = {
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/library"],
23
23
  * @namespace
24
24
  * @name sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.71.76
26
+ * @version 1.71.78
27
27
  *
28
28
  * @public
29
29
  */
@@ -41,7 +41,7 @@ sap.ui.define(["sap/ui/core/library"],
41
41
  controls: [],
42
42
  elements: [],
43
43
  noLibraryCSS: true,
44
- version: "1.71.76",
44
+ version: "1.71.78",
45
45
  extensions: {
46
46
  //Configuration used for rule loading of Support Assistant
47
47
  "sap.ui.support": {
@@ -53,7 +53,7 @@ sap.ui.define(["sap/ui/core/library"],
53
53
  /**
54
54
  * Defines severity types.
55
55
  * @enum {string}
56
- * @since 1.71.76
56
+ * @since 1.71.78
57
57
  * @public
58
58
  */
59
59
  sap.ui.support.Severity = {
@@ -77,7 +77,7 @@ sap.ui.define(["sap/ui/core/library"],
77
77
  /**
78
78
  * Defines the Audiences.
79
79
  * @enum {string}
80
- * @since 1.71.76
80
+ * @since 1.71.78
81
81
  * @public
82
82
  */
83
83
  sap.ui.support.Audiences = {
@@ -101,7 +101,7 @@ sap.ui.define(["sap/ui/core/library"],
101
101
  /**
102
102
  * Issue Categories.
103
103
  * @enum {string}
104
- * @since 1.71.76
104
+ * @since 1.71.78
105
105
  * @public
106
106
  */
107
107
  sap.ui.support.Categories = {
@@ -170,7 +170,7 @@ sap.ui.define(["sap/ui/core/library"],
170
170
  /**
171
171
  * Analysis history formats.
172
172
  * @enum {string}
173
- * @since 1.71.76
173
+ * @since 1.71.78
174
174
  * @public
175
175
  */
176
176
  sap.ui.support.HistoryFormats = {
@@ -189,7 +189,7 @@ sap.ui.define(["sap/ui/core/library"],
189
189
  /**
190
190
  * Contains the available system presets.
191
191
  * @enum {object}
192
- * @since 1.71.76
192
+ * @since 1.71.78
193
193
  * @public
194
194
  */
195
195
  sap.ui.support.SystemPresets = {
@@ -127,7 +127,11 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
127
127
 
128
128
  // Validate messages
129
129
  CommunicationBus.onMessageChecks.push(function (msg) {
130
- return msg.origin === IFrameController.getFrameOrigin();
130
+ try {
131
+ return new window.URL(msg.origin).origin === new window.URL(IFrameController.getFrameOrigin()).origin;
132
+ } catch (e) {
133
+ return false;
134
+ }
131
135
  });
132
136
 
133
137
  CommunicationBus.onMessageChecks.push(function (msg) {
@@ -135,10 +139,19 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
135
139
  });
136
140
 
137
141
  CommunicationBus.onMessageChecks.push(function (msg) {
138
- var frameUrl = IFrameController.getFrameUrl();
139
- // remove relative path information
140
- frameUrl = frameUrl.replace(/\.\.\//g, '');
141
- return msg.data._origin.indexOf(frameUrl) > -1;
142
+ try {
143
+ var oOriginUrl = new window.URL(msg.data._origin);
144
+ var sFramePath;
145
+ try {
146
+ sFramePath = new window.URL(IFrameController.getFrameUrl()).pathname;
147
+ } catch (e) {
148
+ // relative URL — strip query string and relative path segments manually
149
+ sFramePath = IFrameController.getFrameUrl().split("?")[0].replace(/\.\.\//g, "");
150
+ }
151
+ return oOriginUrl.pathname.endsWith(sFramePath);
152
+ } catch (e) {
153
+ return false;
154
+ }
142
155
  });
143
156
  });
144
157
  } else {
@@ -30,11 +30,11 @@ sap.ui.define([],
30
30
  rule = serializedRule;
31
31
  }
32
32
 
33
- /* eslint-disable no-eval */
33
+ /* eslint-disable no-new-func */
34
34
  if (!stringifyCheck && rule.check !== undefined) {
35
- eval("rule.check = " + rule.check);
35
+ rule.check = new Function("return (" + rule.check + ")")();
36
36
  }
37
- /* eslint-enable no-eval */
37
+ /* eslint-enable no-new-func */
38
38
 
39
39
  return rule;
40
40
  }
@@ -37,7 +37,7 @@ function (jQuery, storage, constants) {
37
37
  * @name sap.ui.support.RuleSet
38
38
  * @memberof sap.ui.support
39
39
  * @author SAP SE
40
- * @version 1.71.76
40
+ * @version 1.71.78
41
41
  * @param {object} oSettings Name of the initiated
42
42
  * @returns {void}
43
43
  */
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @name sap.ui.support.Storage
23
23
  * @alias sap.ui.support.Storage
24
24
  * @author SAP SE.
25
- * @version 1.71.76
25
+ * @version 1.71.78
26
26
  *
27
27
  * @private
28
28
  *
@@ -23,7 +23,7 @@ function (Log, jQuery, URI) {
23
23
  * @name sap.ui.support.WindowCommunicationBus
24
24
  * @memberof sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.71.76
26
+ * @version 1.71.78
27
27
  * @private
28
28
  */
29
29
  var CommunicationBus = {
@@ -779,9 +779,9 @@ sap.ui.define([
779
779
 
780
780
  checkFunctionString: function (functionString) {
781
781
  try {
782
- /* eslint-disable no-eval */
783
- eval("var testAsignedVar = " + functionString);
784
- /* eslint-enable no-eval */
782
+ /* eslint-disable no-new-func */
783
+ new Function("return (" + functionString + ")");
784
+ /* eslint-enable no-new-func */
785
785
  } catch (err) {
786
786
  MessageToast.show("Your check function contains errors, and can't be evaluated:" + err);
787
787
  return false;
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  *
90
90
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
91
91
  * @author SAP SE
92
- * @version 1.71.76
92
+ * @version 1.71.78
93
93
  * @private
94
94
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
95
95
  */