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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -30498,7 +30498,7 @@ const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
|
|
|
30498
30498
|
let path = result.data.path;
|
|
30499
30499
|
return path;
|
|
30500
30500
|
};
|
|
30501
|
-
const queryAndStoreAppVariable =
|
|
30501
|
+
const queryAndStoreAppVariable = (name, appVariables) => {
|
|
30502
30502
|
let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
|
|
30503
30503
|
if (!value) {
|
|
30504
30504
|
value = queryAppVariable(name, appVariables);
|
|
@@ -30719,7 +30719,7 @@ const initFrameWindowListener = () => {
|
|
|
30719
30719
|
let eventAction = window.sdataEventActions[eventOperateKey];
|
|
30720
30720
|
//删除缓存方法
|
|
30721
30721
|
delete window.sdataEventActions[eventOperateKey];
|
|
30722
|
-
if (eventAction) await eventAction(event.data.data);
|
|
30722
|
+
if (eventAction) await eventAction(event.data.data, event);
|
|
30723
30723
|
} else {
|
|
30724
30724
|
let eventAction = window.sdataEventActions[eventKey];
|
|
30725
30725
|
let responseData = {
|
|
@@ -30728,7 +30728,7 @@ const initFrameWindowListener = () => {
|
|
|
30728
30728
|
data: {}
|
|
30729
30729
|
};
|
|
30730
30730
|
if (eventAction) {
|
|
30731
|
-
let resultData = await eventAction(event.data.data);
|
|
30731
|
+
let resultData = await eventAction(event.data.data, event);
|
|
30732
30732
|
responseData.data = resultData;
|
|
30733
30733
|
}
|
|
30734
30734
|
event.source.postMessage(responseData, eventSourceKey);
|