isdata-customer-sdk 0.1.51 → 0.1.52

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
@@ -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);