@lvce-editor/search-process 8.0.0 → 8.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/index.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1264,15 +1264,15 @@ const Auto = argv => {
|
|
|
1264
1264
|
const getModule = method => {
|
|
1265
1265
|
switch (method) {
|
|
1266
1266
|
case NodeForkedProcess:
|
|
1267
|
-
return NodeForkedProcessRpcClient;
|
|
1267
|
+
return NodeForkedProcessRpcClient.create;
|
|
1268
1268
|
case NodeWorker:
|
|
1269
|
-
return NodeWorkerRpcClient;
|
|
1269
|
+
return NodeWorkerRpcClient.create;
|
|
1270
1270
|
case ElectronUtilityProcess:
|
|
1271
|
-
return ElectronUtilityProcessRpcClient;
|
|
1271
|
+
return ElectronUtilityProcessRpcClient.create;
|
|
1272
1272
|
case ElectronMessagePort:
|
|
1273
|
-
return ElectronMessagePortRpcClient;
|
|
1273
|
+
return ElectronMessagePortRpcClient.create;
|
|
1274
1274
|
case WebSocket:
|
|
1275
|
-
return NodeWebSocketRpcClient;
|
|
1275
|
+
return NodeWebSocketRpcClient.create;
|
|
1276
1276
|
default:
|
|
1277
1277
|
throw new Error('unexpected ipc type');
|
|
1278
1278
|
}
|
|
@@ -1282,8 +1282,8 @@ const listen$1 = async ({
|
|
|
1282
1282
|
method,
|
|
1283
1283
|
...params
|
|
1284
1284
|
}) => {
|
|
1285
|
-
const
|
|
1286
|
-
const rpc = await
|
|
1285
|
+
const create = getModule(method);
|
|
1286
|
+
const rpc = await create(params);
|
|
1287
1287
|
return rpc;
|
|
1288
1288
|
};
|
|
1289
1289
|
|
|
@@ -1594,7 +1594,7 @@ const collectStdout = async (childProcess, maxSearchResults, charsBefore, charsA
|
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
}));
|
|
1597
|
-
const results = Object.values(allSearchResults).flat(
|
|
1597
|
+
const results = Object.values(allSearchResults).flat();
|
|
1598
1598
|
return {
|
|
1599
1599
|
results,
|
|
1600
1600
|
stats,
|