@lvce-editor/test-worker 9.8.0 → 9.9.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 +6 -2
- package/package.json +1 -1
package/dist/testWorkerMain.js
CHANGED
|
@@ -1116,6 +1116,11 @@ const createLazyRpc = rpcId => {
|
|
|
1116
1116
|
};
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
|
+
/* eslint-disable no-console */
|
|
1120
|
+
const clearConsole = () => {
|
|
1121
|
+
console.clear();
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1119
1124
|
const createUrlWithQueryParameter = url => {
|
|
1120
1125
|
const parsedUrl = new URL(url, location.href);
|
|
1121
1126
|
parsedUrl.searchParams.set('time', `${Date.now()}`);
|
|
@@ -2220,7 +2225,6 @@ const EditorSourceAction = {
|
|
|
2220
2225
|
selectIndex: selectIndex$5
|
|
2221
2226
|
};
|
|
2222
2227
|
|
|
2223
|
-
/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
|
|
2224
2228
|
const openContextMenu = async index => {
|
|
2225
2229
|
// @ts-ignore
|
|
2226
2230
|
await invoke$1('Explorer.handleContextMenuKeyboard', index);
|
|
@@ -2599,7 +2603,6 @@ const stringifyJson = data => {
|
|
|
2599
2603
|
return JSON.stringify(data, null, 2) + '\n';
|
|
2600
2604
|
};
|
|
2601
2605
|
|
|
2602
|
-
/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
|
|
2603
2606
|
const writeFile = async (uri, content) => {
|
|
2604
2607
|
await invoke$1('FileSystem.writeFile', uri, content);
|
|
2605
2608
|
};
|
|
@@ -4019,6 +4022,7 @@ const hotReloadTest = async () => {
|
|
|
4019
4022
|
return;
|
|
4020
4023
|
}
|
|
4021
4024
|
const withQueryParameter = createUrlWithQueryParameter(url);
|
|
4025
|
+
clearConsole();
|
|
4022
4026
|
await execute(withQueryParameter, platform, assetDir);
|
|
4023
4027
|
};
|
|
4024
4028
|
|