@lvce-editor/editor-worker 19.30.9 → 19.30.10

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.
@@ -5443,7 +5443,7 @@ const isUntitledFile = uri => {
5443
5443
  };
5444
5444
 
5445
5445
  const saveNormalFile = async (uri, content) => {
5446
- await invoke$a('FileSystem.writeFile', uri, content);
5446
+ await invoke$a('FileSystem.writeFile', uri, content, 'utf8', false);
5447
5447
  };
5448
5448
 
5449
5449
  const showFilePicker = async platform => {
@@ -10905,7 +10905,7 @@ const undo = state => {
10905
10905
  return state;
10906
10906
  }
10907
10907
  const last = undoStack.at(-1);
10908
- const inverseChanges = last.map(inverseChange);
10908
+ const inverseChanges = last.toReversed().map(inverseChange);
10909
10909
  const newState = {
10910
10910
  ...state,
10911
10911
  redoStack: [...(state.redoStack || []), last],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.30.9",
3
+ "version": "19.30.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"