@lvce-editor/test-worker 14.4.0 → 14.5.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.
@@ -3374,10 +3374,11 @@ const getFileMapWeb = async url => {
3374
3374
  };
3375
3375
 
3376
3376
  const loadFixtureToMemFs = async fileMap => {
3377
- for (const [path, content] of Object.entries(fileMap)) {
3377
+ await Promise.all(Object.entries(fileMap).map(entry => {
3378
+ const [path, content] = entry;
3378
3379
  const memfsPath = `memfs:///fixture/${path}`;
3379
- await invoke('FileSystem.writeFile', memfsPath, content);
3380
- }
3380
+ return invoke('FileSystem.writeFile', memfsPath, content);
3381
+ }));
3381
3382
  return `memfs:///fixture`;
3382
3383
  };
3383
3384
 
@@ -4025,10 +4026,7 @@ const selectItem2 = async ({
4025
4026
  const {
4026
4027
  promise
4027
4028
  } = await registerCallbackCommand(callbackCommand);
4028
-
4029
- // @ts-ignore
4030
- invoke('QuickPick.selectItem', label);
4031
- await promise;
4029
+ await Promise.all([promise, invoke('QuickPick.selectItem', label)]);
4032
4030
  };
4033
4031
 
4034
4032
  const QuickPick = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "14.4.0",
3
+ "version": "14.5.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",