@lvce-editor/main-process 2.17.0 → 2.19.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 +14 -12
- package/package.json +2 -2
package/dist/mainProcessMain.js
CHANGED
|
@@ -2046,7 +2046,7 @@ const listen$a = () => {
|
|
|
2046
2046
|
parentPort
|
|
2047
2047
|
} = process;
|
|
2048
2048
|
if (!parentPort) {
|
|
2049
|
-
throw new
|
|
2049
|
+
throw new IpcError('parent port must be defined');
|
|
2050
2050
|
}
|
|
2051
2051
|
return parentPort;
|
|
2052
2052
|
};
|
|
@@ -2104,7 +2104,7 @@ const getTransferrablesNode = value => {
|
|
|
2104
2104
|
};
|
|
2105
2105
|
const listen$5 = async () => {
|
|
2106
2106
|
if (!process.send) {
|
|
2107
|
-
throw new
|
|
2107
|
+
throw new IpcError('process.send must be defined');
|
|
2108
2108
|
}
|
|
2109
2109
|
return process;
|
|
2110
2110
|
};
|
|
@@ -2572,7 +2572,7 @@ const create$2$2 = async ({
|
|
|
2572
2572
|
throw new ChildProcessError(stderr);
|
|
2573
2573
|
}
|
|
2574
2574
|
if (type === Error$2) {
|
|
2575
|
-
throw new
|
|
2575
|
+
throw new IpcError(`child process had an error ${event}`);
|
|
2576
2576
|
}
|
|
2577
2577
|
if (stdio === 'inherit' && childProcess.stdout && childProcess.stderr) {
|
|
2578
2578
|
childProcess.stdout.pipe(process.stdout);
|
|
@@ -2641,7 +2641,8 @@ const create$1$2 = async ({
|
|
|
2641
2641
|
argv = [],
|
|
2642
2642
|
env = process.env,
|
|
2643
2643
|
execArgv = [],
|
|
2644
|
-
stdio
|
|
2644
|
+
stdio,
|
|
2645
|
+
name
|
|
2645
2646
|
}) => {
|
|
2646
2647
|
string(path);
|
|
2647
2648
|
const actualArgv = ['--ipc-type=node-worker', ...argv];
|
|
@@ -2658,7 +2659,8 @@ const create$1$2 = async ({
|
|
|
2658
2659
|
env: actualEnv,
|
|
2659
2660
|
execArgv,
|
|
2660
2661
|
stdout: ignoreStdio,
|
|
2661
|
-
stderr: ignoreStdio
|
|
2662
|
+
stderr: ignoreStdio,
|
|
2663
|
+
name
|
|
2662
2664
|
});
|
|
2663
2665
|
const {
|
|
2664
2666
|
type,
|
|
@@ -2717,7 +2719,7 @@ const create$4 = (method, params) => {
|
|
|
2717
2719
|
};
|
|
2718
2720
|
};
|
|
2719
2721
|
const callbacks = Object.create(null);
|
|
2720
|
-
const set$
|
|
2722
|
+
const set$2 = (id, fn) => {
|
|
2721
2723
|
callbacks[id] = fn;
|
|
2722
2724
|
};
|
|
2723
2725
|
const get$4 = id => {
|
|
@@ -2736,7 +2738,7 @@ const registerPromise = () => {
|
|
|
2736
2738
|
resolve,
|
|
2737
2739
|
promise
|
|
2738
2740
|
} = Promise.withResolvers();
|
|
2739
|
-
set$
|
|
2741
|
+
set$2(id, resolve);
|
|
2740
2742
|
return {
|
|
2741
2743
|
id,
|
|
2742
2744
|
promise
|
|
@@ -5315,7 +5317,7 @@ const get$2 = () => {
|
|
|
5315
5317
|
}
|
|
5316
5318
|
return state$2.session;
|
|
5317
5319
|
};
|
|
5318
|
-
const set = value => {
|
|
5320
|
+
const set$1 = value => {
|
|
5319
5321
|
state$2.session = value;
|
|
5320
5322
|
};
|
|
5321
5323
|
|
|
@@ -5336,7 +5338,7 @@ const create$2 = rpc => {
|
|
|
5336
5338
|
|
|
5337
5339
|
const get$1 = () => {
|
|
5338
5340
|
if (!has()) {
|
|
5339
|
-
set(createElectronSession());
|
|
5341
|
+
set$1(createElectronSession());
|
|
5340
5342
|
}
|
|
5341
5343
|
return get$2();
|
|
5342
5344
|
};
|
|
@@ -5594,7 +5596,7 @@ const createPidMap = () => {
|
|
|
5594
5596
|
};
|
|
5595
5597
|
|
|
5596
5598
|
const rpcs = Object.create(null);
|
|
5597
|
-
const set
|
|
5599
|
+
const set = (id, rpc) => {
|
|
5598
5600
|
rpcs[id] = rpc;
|
|
5599
5601
|
};
|
|
5600
5602
|
const get = id => {
|
|
@@ -5607,7 +5609,7 @@ const createUtilityProcessRpc = async options => {
|
|
|
5607
5609
|
...options
|
|
5608
5610
|
});
|
|
5609
5611
|
const rpcId = options.targetRpcId || options.rpcId || options.ipcId;
|
|
5610
|
-
set
|
|
5612
|
+
set(rpcId, rpc);
|
|
5611
5613
|
};
|
|
5612
5614
|
|
|
5613
5615
|
const serializeDeskopCapturerSource = source => {
|
|
@@ -7058,7 +7060,7 @@ const handleElectronMessagePort = async (messagePort, rpcId) => {
|
|
|
7058
7060
|
requiresSocket: requiresSocket
|
|
7059
7061
|
});
|
|
7060
7062
|
if (rpcId) {
|
|
7061
|
-
set
|
|
7063
|
+
set(rpcId, rpc);
|
|
7062
7064
|
}
|
|
7063
7065
|
};
|
|
7064
7066
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/main-process",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.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": "
|
|
17
|
+
"electron": "38.0.0"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=22"
|