@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.
- package/dist/testWorkerMain.js +2 -2
- package/package.json +1 -1
package/dist/testWorkerMain.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|