isdata-customer-sdk 0.1.51 → 0.1.53

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/dist/index.js CHANGED
@@ -30488,7 +30488,7 @@ const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
30488
30488
  let path = result.data.path;
30489
30489
  return path;
30490
30490
  };
30491
- const queryAndStoreAppVariable = async (name, appVariables) => {
30491
+ const queryAndStoreAppVariable = (name, appVariables) => {
30492
30492
  let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
30493
30493
  if (!value) {
30494
30494
  value = queryAppVariable(name, appVariables);
@@ -30709,7 +30709,7 @@ const initFrameWindowListener = () => {
30709
30709
  let eventAction = window.sdataEventActions[eventOperateKey];
30710
30710
  //删除缓存方法
30711
30711
  delete window.sdataEventActions[eventOperateKey];
30712
- if (eventAction) await eventAction(event.data.data);
30712
+ if (eventAction) await eventAction(event.data.data, event);
30713
30713
  } else {
30714
30714
  let eventAction = window.sdataEventActions[eventKey];
30715
30715
  let responseData = {
@@ -30718,7 +30718,7 @@ const initFrameWindowListener = () => {
30718
30718
  data: {}
30719
30719
  };
30720
30720
  if (eventAction) {
30721
- let resultData = await eventAction(event.data.data);
30721
+ let resultData = await eventAction(event.data.data, event);
30722
30722
  responseData.data = resultData;
30723
30723
  }
30724
30724
  event.source.postMessage(responseData, eventSourceKey);