@lvce-editor/about-view 5.1.0 → 5.2.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.
@@ -756,6 +756,9 @@ const createRpc = ipc => {
756
756
  },
757
757
  invokeAndTransfer(method, ...params) {
758
758
  return invokeAndTransfer(ipc, method, ...params);
759
+ },
760
+ async dispose() {
761
+ await ipc?.dispose();
759
762
  }
760
763
  };
761
764
  return rpc;
@@ -1740,7 +1743,8 @@ const wrapCommand = fn => {
1740
1743
  if (newState === newerState) {
1741
1744
  return;
1742
1745
  }
1743
- set$1(uid, newState, newerState);
1746
+ const latest = get$1(uid);
1747
+ set$1(uid, latest.oldState, newerState);
1744
1748
  };
1745
1749
  return wrapped;
1746
1750
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/about-view",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "About View Worker",
5
5
  "keywords": [
6
6
  "about-view"