@lvce-editor/ipc 9.0.0 → 9.1.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/browser.js CHANGED
@@ -245,7 +245,7 @@ class VError extends Error {
245
245
 
246
246
  class IpcError extends VError {
247
247
  // @ts-ignore
248
- constructor(message, stdout = '', stderr = '') {
248
+ constructor(betterMessage, stdout = '', stderr = '') {
249
249
  if (stdout || stderr) {
250
250
  // @ts-ignore
251
251
  const {
@@ -257,9 +257,9 @@ class IpcError extends VError {
257
257
  // @ts-ignore
258
258
  cause.code = code;
259
259
  cause.stack = stack;
260
- super(cause, message);
260
+ super(cause, betterMessage);
261
261
  } else {
262
- super(message);
262
+ super(betterMessage);
263
263
  }
264
264
  // @ts-ignore
265
265
  this.name = 'IpcError';
package/dist/index.js CHANGED
@@ -143,7 +143,7 @@ const getHelpfulChildProcessError = (stdout, stderr) => {
143
143
 
144
144
  class IpcError extends VError {
145
145
  // @ts-ignore
146
- constructor(message, stdout = '', stderr = '') {
146
+ constructor(betterMessage, stdout = '', stderr = '') {
147
147
  if (stdout || stderr) {
148
148
  // @ts-ignore
149
149
  const {
@@ -155,9 +155,9 @@ class IpcError extends VError {
155
155
  // @ts-ignore
156
156
  cause.code = code;
157
157
  cause.stack = stack;
158
- super(cause, message);
158
+ super(cause, betterMessage);
159
159
  } else {
160
- super(message);
160
+ super(betterMessage);
161
161
  }
162
162
  // @ts-ignore
163
163
  this.name = 'IpcError';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ipc",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "Inter Process Communication for Lvce Editor",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",