@jhh96/light-app-bridge 1.0.1 → 1.0.2

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.
@@ -72,7 +72,8 @@ function pickMessageBackend() {
72
72
  };
73
73
  window.waltz.event.on('native-call-js', handler);
74
74
  return () => {
75
- const ev = window.waltz?.event;
75
+ var _a;
76
+ const ev = (_a = window.waltz) === null || _a === void 0 ? void 0 : _a.event;
76
77
  if (ev && typeof ev.off === 'function')
77
78
  ev.off('native-call-js', handler);
78
79
  else if (ev && typeof ev.removeListener === 'function')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhh96/light-app-bridge",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "招商随行(WorkLink)插件窗口(plugin)与轻应用窗口(lightapp)之间的双向通信 SDK",
6
6
  "main": "./dist/index.js",