@lvce-editor/test-worker 11.17.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/api.d.ts +5 -5
- package/dist/testWorkerMain.js +2 -2
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -519,11 +519,11 @@ interface Search {
|
|
|
519
519
|
readonly focusPrevious: () => Promise<void>;
|
|
520
520
|
readonly focusPreviousPage: () => Promise<void>;
|
|
521
521
|
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
522
|
-
readonly handleInputContextMenu: (name:
|
|
523
|
-
readonly handleInputCopy: (name:
|
|
524
|
-
readonly handleInputCut: (name:
|
|
525
|
-
readonly handleInputPaste: (name:
|
|
526
|
-
readonly handleInputSelectionChange: (name:
|
|
522
|
+
readonly handleInputContextMenu: (name: SearchInputType, button: number, x: number, y: number) => Promise<void>;
|
|
523
|
+
readonly handleInputCopy: (name: SearchInputType) => Promise<void>;
|
|
524
|
+
readonly handleInputCut: (name: SearchInputType) => Promise<void>;
|
|
525
|
+
readonly handleInputPaste: (name: SearchInputType) => Promise<void>;
|
|
526
|
+
readonly handleInputSelectionChange: (name: SearchInputType, start: number, end: number) => Promise<void>;
|
|
527
527
|
readonly handleListBlur: () => Promise<void>;
|
|
528
528
|
readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
529
529
|
readonly open: () => Promise<void>;
|
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
|
|