@lvce-editor/text-search-worker 7.10.0 → 7.12.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/textSearchWorkerMain.js +14 -0
- package/package.json +1 -1
|
@@ -1372,6 +1372,20 @@ const launchSearchProcessElectron = async () => {
|
|
|
1372
1372
|
};
|
|
1373
1373
|
|
|
1374
1374
|
const launchSearchProcessNode = async () => {
|
|
1375
|
+
try {
|
|
1376
|
+
const {
|
|
1377
|
+
protocols,
|
|
1378
|
+
url
|
|
1379
|
+
} = await invoke$3('WebSocketCapability.create', 'search-process');
|
|
1380
|
+
return create$4({
|
|
1381
|
+
commandMap: commandMapRef,
|
|
1382
|
+
webSocket: new WebSocket(url, protocols)
|
|
1383
|
+
});
|
|
1384
|
+
} catch (error) {
|
|
1385
|
+
if (!(error instanceof Error && (error.message.includes('WebSocketCapability.create') || error.message.includes('module WebSocketCapability not found')) && /command not found|not found/i.test(error.message))) {
|
|
1386
|
+
throw error;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1375
1389
|
return create$2({
|
|
1376
1390
|
commandMap: commandMapRef,
|
|
1377
1391
|
// @ts-ignore
|