@lvce-editor/renderer-process 30.38.1 → 30.39.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/rendererProcessMain.js +12 -3
- package/package.json +1 -1
|
@@ -3659,14 +3659,23 @@ const create$w = async ({
|
|
|
3659
3659
|
name,
|
|
3660
3660
|
port,
|
|
3661
3661
|
raw,
|
|
3662
|
+
rpcId,
|
|
3662
3663
|
url
|
|
3663
|
-
},
|
|
3664
|
-
const rpc = await
|
|
3664
|
+
}, createTransferredRpc = create$y, createNativeRpc = create$z) => {
|
|
3665
|
+
const rpc = await (rpcId === undefined ? createTransferredRpc({
|
|
3665
3666
|
commandMap: {},
|
|
3666
3667
|
name,
|
|
3667
3668
|
port,
|
|
3668
3669
|
url
|
|
3669
|
-
})
|
|
3670
|
+
}) : createNativeRpc({
|
|
3671
|
+
commandMap: {},
|
|
3672
|
+
name,
|
|
3673
|
+
url
|
|
3674
|
+
}));
|
|
3675
|
+
if (rpcId !== undefined) {
|
|
3676
|
+
await rpc.invokeAndTransfer('initialize', 'message-port', port);
|
|
3677
|
+
registerRpc(rpcId, rpc);
|
|
3678
|
+
}
|
|
3670
3679
|
const worker = rpc.ipc?._rawIpc;
|
|
3671
3680
|
if (typeof id === 'number' && raw && worker) {
|
|
3672
3681
|
set$7(id, worker);
|