@lvce-editor/main-process 2.18.0 → 2.20.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.
@@ -2719,7 +2719,7 @@ const create$4 = (method, params) => {
2719
2719
  };
2720
2720
  };
2721
2721
  const callbacks = Object.create(null);
2722
- const set$1 = (id, fn) => {
2722
+ const set$2 = (id, fn) => {
2723
2723
  callbacks[id] = fn;
2724
2724
  };
2725
2725
  const get$4 = id => {
@@ -2738,7 +2738,7 @@ const registerPromise = () => {
2738
2738
  resolve,
2739
2739
  promise
2740
2740
  } = Promise.withResolvers();
2741
- set$1(id, resolve);
2741
+ set$2(id, resolve);
2742
2742
  return {
2743
2743
  id,
2744
2744
  promise
@@ -5317,7 +5317,7 @@ const get$2 = () => {
5317
5317
  }
5318
5318
  return state$2.session;
5319
5319
  };
5320
- const set = value => {
5320
+ const set$1 = value => {
5321
5321
  state$2.session = value;
5322
5322
  };
5323
5323
 
@@ -5338,7 +5338,7 @@ const create$2 = rpc => {
5338
5338
 
5339
5339
  const get$1 = () => {
5340
5340
  if (!has()) {
5341
- set(createElectronSession());
5341
+ set$1(createElectronSession());
5342
5342
  }
5343
5343
  return get$2();
5344
5344
  };
@@ -5596,7 +5596,7 @@ const createPidMap = () => {
5596
5596
  };
5597
5597
 
5598
5598
  const rpcs = Object.create(null);
5599
- const set$g = (id, rpc) => {
5599
+ const set = (id, rpc) => {
5600
5600
  rpcs[id] = rpc;
5601
5601
  };
5602
5602
  const get = id => {
@@ -5609,7 +5609,7 @@ const createUtilityProcessRpc = async options => {
5609
5609
  ...options
5610
5610
  });
5611
5611
  const rpcId = options.targetRpcId || options.rpcId || options.ipcId;
5612
- set$g(rpcId, rpc);
5612
+ set(rpcId, rpc);
5613
5613
  };
5614
5614
 
5615
5615
  const serializeDeskopCapturerSource = source => {
@@ -7060,7 +7060,7 @@ const handleElectronMessagePort = async (messagePort, rpcId) => {
7060
7060
  requiresSocket: requiresSocket
7061
7061
  });
7062
7062
  if (rpcId) {
7063
- set$g(rpcId, rpc);
7063
+ set(rpcId, rpc);
7064
7064
  }
7065
7065
  };
7066
7066
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "2.18.0",
3
+ "version": "2.20.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "electron"
@@ -14,7 +14,7 @@
14
14
  "type": "module",
15
15
  "main": "dist/mainProcessMain.js",
16
16
  "dependencies": {
17
- "electron": "37.4.0"
17
+ "electron": "38.1.0"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=22"