@lvce-editor/text-search-worker 7.11.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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "7.11.0",
3
+ "version": "7.12.0",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"