@lvce-editor/main-process 2.17.0 → 2.18.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.
@@ -2046,7 +2046,7 @@ const listen$a = () => {
2046
2046
  parentPort
2047
2047
  } = process;
2048
2048
  if (!parentPort) {
2049
- throw new Error('parent port must be defined');
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 Error('process.send must be defined');
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 Error(`child process had an error ${event}`);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "2.17.0",
3
+ "version": "2.18.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.3.1"
17
+ "electron": "37.4.0"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=22"