@lvce-editor/editor-worker 7.7.0 → 7.8.0

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.
@@ -1058,6 +1058,10 @@ const create$9 = rpcId => {
1058
1058
  },
1059
1059
  set(rpc) {
1060
1060
  set$d(rpcId, rpc);
1061
+ },
1062
+ async dispose() {
1063
+ const rpc = get$6(rpcId);
1064
+ await rpc.dispose();
1061
1065
  }
1062
1066
  };
1063
1067
  };
@@ -9679,10 +9683,14 @@ const getKey = () => {
9679
9683
  const updateDebugInfo = async debugId => {
9680
9684
  const newInfo = await getDebugHighlight(debugId);
9681
9685
  const key = getKey();
9686
+ const instance = get$4(key);
9687
+ if (!instance) {
9688
+ return;
9689
+ }
9682
9690
  const {
9683
9691
  oldState,
9684
9692
  newState
9685
- } = get$4(key);
9693
+ } = instance;
9686
9694
  const newEditor = {
9687
9695
  ...newState,
9688
9696
  highlightedLine: newInfo.rowIndex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",