@xuda.io/runtime-bundle 1.0.1141 → 1.0.1143

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.
@@ -13106,10 +13106,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13106
13106
  var checkExist = setInterval(function () {
13107
13107
  if ($elm.is(':visible')) {
13108
13108
  try {
13109
- var res = eval('(' + val.value + ')');
13110
- if (typeof res === 'function') {
13111
- res($elm[0]);
13112
- }
13109
+ // var res = eval('(' + val.value + ')');
13110
+ const fn = `(function(${$elm[0]}) {${val.value}})();`;
13111
+ var res = eval(fn);
13112
+ // if (typeof res === 'function') {
13113
+ // res($elm[0]);
13114
+ // }
13113
13115
  } catch (e) {
13114
13116
  eval(val.value);
13115
13117
  }
@@ -13179,7 +13181,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13179
13181
  prop_val.value = res.result;
13180
13182
  }
13181
13183
  }
13182
- $elm.data().xu_ui_plugin = { properties };
13184
+ // $elm.data().xu_ui_plugin = { properties };
13183
13185
  const plugin_runtime_src = await func.utils.get_plugin_npm_cdn(SESSION_ID, plugin_name, `${_plugin.manifest['runtime.mjs'].dist ? 'dist/' : ''}runtime.mjs`);
13184
13186
 
13185
13187
  const plugin_runtime_resources = await import(plugin_runtime_src);
@@ -10831,10 +10831,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10831
10831
  var checkExist = setInterval(function () {
10832
10832
  if ($elm.is(':visible')) {
10833
10833
  try {
10834
- var res = eval('(' + val.value + ')');
10835
- if (typeof res === 'function') {
10836
- res($elm[0]);
10837
- }
10834
+ // var res = eval('(' + val.value + ')');
10835
+ const fn = `(function(${$elm[0]}) {${val.value}})();`;
10836
+ var res = eval(fn);
10837
+ // if (typeof res === 'function') {
10838
+ // res($elm[0]);
10839
+ // }
10838
10840
  } catch (e) {
10839
10841
  eval(val.value);
10840
10842
  }
@@ -10904,7 +10906,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10904
10906
  prop_val.value = res.result;
10905
10907
  }
10906
10908
  }
10907
- $elm.data().xu_ui_plugin = { properties };
10909
+ // $elm.data().xu_ui_plugin = { properties };
10908
10910
  const plugin_runtime_src = await func.utils.get_plugin_npm_cdn(SESSION_ID, plugin_name, `${_plugin.manifest['runtime.mjs'].dist ? 'dist/' : ''}runtime.mjs`);
10909
10911
 
10910
10912
  const plugin_runtime_resources = await import(plugin_runtime_src);