@lvce-editor/ipc 14.4.0 → 14.6.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -351,7 +351,7 @@ const listen$a = () => {
351
351
  parentPort
352
352
  } = process;
353
353
  if (!parentPort) {
354
- throw new Error('parent port must be defined');
354
+ throw new IpcError('parent port must be defined');
355
355
  }
356
356
  return parentPort;
357
357
  };
@@ -621,7 +621,7 @@ const getTransferrablesNode = value => {
621
621
 
622
622
  const listen$5 = async () => {
623
623
  if (!process.send) {
624
- throw new Error('process.send must be defined');
624
+ throw new IpcError('process.send must be defined');
625
625
  }
626
626
  return process;
627
627
  };
@@ -1563,7 +1563,7 @@ const create$2 = async ({
1563
1563
  throw new ChildProcessError(stderr);
1564
1564
  }
1565
1565
  if (type === Error$2) {
1566
- throw new Error(`child process had an error ${event}`);
1566
+ throw new IpcError(`child process had an error ${event}`);
1567
1567
  }
1568
1568
  if (stdio === 'inherit' && childProcess.stdout && childProcess.stderr) {
1569
1569
  childProcess.stdout.pipe(process.stdout);
@@ -1636,7 +1636,8 @@ const create$1 = async ({
1636
1636
  argv = [],
1637
1637
  env = process.env,
1638
1638
  execArgv = [],
1639
- stdio
1639
+ stdio,
1640
+ name
1640
1641
  }) => {
1641
1642
  string(path);
1642
1643
  const actualArgv = ['--ipc-type=node-worker', ...argv];
@@ -1653,7 +1654,8 @@ const create$1 = async ({
1653
1654
  env: actualEnv,
1654
1655
  execArgv,
1655
1656
  stdout: ignoreStdio,
1656
- stderr: ignoreStdio
1657
+ stderr: ignoreStdio,
1658
+ name
1657
1659
  });
1658
1660
  const {
1659
1661
  type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ipc",
3
- "version": "14.4.0",
3
+ "version": "14.6.0",
4
4
  "description": "Inter Process Communication for Lvce Editor",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",