@xuda.io/runtime-bundle 1.0.1126 → 1.0.1128

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.
@@ -3030,12 +3030,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
3030
3030
  delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
3031
3031
 
3032
3032
  delete_pending_jobs();
3033
-
3034
- // for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
3035
- // if (ui_cache_val.paramsP.dsSessionP === dsP) {
3036
- // delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
3037
- // }
3038
- // }
3033
+ if (glb.new_xu_render) {
3034
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
3035
+ if (ui_cache_val.paramsP.dsSessionP === dsP) {
3036
+ delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
3037
+ }
3038
+ }
3039
+ }
3039
3040
  }
3040
3041
  if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
3041
3042
  var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
@@ -5977,7 +5978,7 @@ func.utils.get_plugin_resource = function (SESSION_ID, plugin_name, plugin_resou
5977
5978
  return `${_conf.plugins_drive_path}/${_session.app_id}/node_modules/${plugin_name}/${resource}`;
5978
5979
  } else {
5979
5980
  // return `./node_modules/${plugin_name}/${resource}?app_id=${_session.app_id}`;
5980
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
5981
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
5981
5982
  }
5982
5983
  };
5983
5984
 
@@ -6053,7 +6054,7 @@ func.utils.get_plugin_npm_cdn = async function (SESSION_ID, plugin_name, resourc
6053
6054
  return `../../plugins/${plugin_name}/${resource}`;
6054
6055
  }
6055
6056
 
6056
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
6057
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
6057
6058
  };
6058
6059
 
6059
6060
  return get_path(resource);
@@ -3030,12 +3030,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
3030
3030
  delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
3031
3031
 
3032
3032
  delete_pending_jobs();
3033
-
3034
- // for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
3035
- // if (ui_cache_val.paramsP.dsSessionP === dsP) {
3036
- // delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
3037
- // }
3038
- // }
3033
+ if (glb.new_xu_render) {
3034
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
3035
+ if (ui_cache_val.paramsP.dsSessionP === dsP) {
3036
+ delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
3037
+ }
3038
+ }
3039
+ }
3039
3040
  }
3040
3041
  if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
3041
3042
  var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
@@ -5977,7 +5978,7 @@ func.utils.get_plugin_resource = function (SESSION_ID, plugin_name, plugin_resou
5977
5978
  return `${_conf.plugins_drive_path}/${_session.app_id}/node_modules/${plugin_name}/${resource}`;
5978
5979
  } else {
5979
5980
  // return `./node_modules/${plugin_name}/${resource}?app_id=${_session.app_id}`;
5980
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
5981
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
5981
5982
  }
5982
5983
  };
5983
5984
 
@@ -6053,7 +6054,7 @@ func.utils.get_plugin_npm_cdn = async function (SESSION_ID, plugin_name, resourc
6053
6054
  return `../../plugins/${plugin_name}/${resource}`;
6054
6055
  }
6055
6056
 
6056
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
6057
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
6057
6058
  };
6058
6059
 
6059
6060
  return get_path(resource);