whyuzeim 1.1.9 → 1.1.11

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.
@@ -251,7 +251,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
251
251
  });
252
252
  });
253
253
  tools.reportAgentInUse(http, cvs.conversationId, _userInfo);
254
- var customObj = JSON.parse(_userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.ext);
254
+ var customObj = _userInfo !== null && _userInfo !== void 0 && _userInfo.ext ? JSON.parse(_userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.ext) : {};
255
255
  // 假设有一个字段 shouldShowInList 来判断是否展示
256
256
  setIsAgent((customObj === null || customObj === void 0 ? void 0 : customObj.certification) === "1");
257
257
  }
@@ -249,7 +249,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
249
249
  });
250
250
  });
251
251
  reportAgentInUse(http, cvs.conversationId, _userInfo);
252
- var customObj = JSON.parse(_userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.ext);
252
+ var customObj = _userInfo !== null && _userInfo !== void 0 && _userInfo.ext ? JSON.parse(_userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.ext) : {};
253
253
  // 假设有一个字段 shouldShowInList 来判断是否展示
254
254
  setIsAgent((customObj === null || customObj === void 0 ? void 0 : customObj.certification) === "1");
255
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",