evmux-app-framework 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evmux-app-framework",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -78,7 +78,11 @@ let createEventResultObject = (requestName, eventName, result) => {
78
78
 
79
79
  let requestObj = {};
80
80
  try {
81
- requestObj = JSON.parse(evt.data);
81
+ if (typeof evt.data === 'string' || evt.data instanceof String){
82
+ requestObj = JSON.parse(evt.data);
83
+ }else{
84
+ requestObj = evt.data
85
+ }
82
86
  } catch (error) {
83
87
  console.log("xxxx", error)
84
88
  }