@lvce-editor/main-process 2.2.0 → 2.3.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/mainProcessMain.js +15 -1
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -5632,6 +5632,19 @@ const createPidMap = () => {
|
|
|
5632
5632
|
return pidWindowMap;
|
|
5633
5633
|
};
|
|
5634
5634
|
|
|
5635
|
+
const rpcs = Object.create(null);
|
|
5636
|
+
const set$3 = (id, rpc) => {
|
|
5637
|
+
rpcs[id] = rpc;
|
|
5638
|
+
};
|
|
5639
|
+
|
|
5640
|
+
const createUtilityProcessRpc = async options => {
|
|
5641
|
+
const rpc = await ElectronUtilityProcessRpcParent.create({
|
|
5642
|
+
commandMap: commandMapRef,
|
|
5643
|
+
...options
|
|
5644
|
+
});
|
|
5645
|
+
set$3(options.rpcId, rpc);
|
|
5646
|
+
};
|
|
5647
|
+
|
|
5635
5648
|
const serializeDeskopCapturerSource = source => {
|
|
5636
5649
|
return {
|
|
5637
5650
|
display_id: source.display_id,
|
|
@@ -7143,9 +7156,10 @@ const commandMap = {
|
|
|
7143
7156
|
'AppWindow.createAppWindow': createAppWindow,
|
|
7144
7157
|
'Beep.beep': beep$1,
|
|
7145
7158
|
'Crash.crashMainProcess': crashMainProcess$1,
|
|
7146
|
-
'DesktopCapturer.getSources': getSources,
|
|
7147
7159
|
'CreateMessagePort.createMessagePort': createMessagePort,
|
|
7148
7160
|
'CreatePidMap.createPidMap': createPidMap,
|
|
7161
|
+
'CreateUtilityProcessRpc.createUtilityProcessRpc': createUtilityProcessRpc,
|
|
7162
|
+
'DesktopCapturer.getSources': getSources,
|
|
7149
7163
|
'ElectronApplicationMenu.setItems': setItems,
|
|
7150
7164
|
'ElectronBeep.beep': beep,
|
|
7151
7165
|
'ElectronContentTracing.startRecording': startRecording,
|