@lvce-editor/test-worker 12.0.0 → 12.1.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.
@@ -2621,11 +2621,11 @@ const getFileMapNode = async url => {
2621
2621
  const fileUrl = toFileUrl(url);
2622
2622
  const allFiles = await getDirents(fileUrl);
2623
2623
  const fileMap = Object.create(null);
2624
- for (const filePath of allFiles) {
2624
+ await Promise.all(allFiles.map(async filePath => {
2625
2625
  const content = await readFile$1(filePath);
2626
2626
  const relativePaths = filePath.slice(fileUrl.length + 1);
2627
2627
  fileMap[relativePaths] = content;
2628
- }
2628
+ }));
2629
2629
  return fileMap;
2630
2630
  };
2631
2631
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "12.0.0",
3
+ "version": "12.1.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",