@lvce-editor/completion-worker 1.32.0 → 1.33.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.
@@ -1072,10 +1072,11 @@ const create$2 = () => {
1072
1072
  wrapCommand(fn) {
1073
1073
  const wrapped = async (uid, ...args) => {
1074
1074
  const {
1075
+ oldState,
1075
1076
  newState
1076
1077
  } = states[uid];
1077
1078
  const newerState = await fn(newState, ...args);
1078
- if (newState === newerState) {
1079
+ if (oldState === newerState || newState === newerState) {
1079
1080
  return;
1080
1081
  }
1081
1082
  const latest = states[uid];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/completion-worker",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Web Worker for the completion widget in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",