@lvce-editor/main-process 6.29.1 → 6.29.2

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.
@@ -2284,13 +2284,16 @@ const listen$2$1 = ({
2284
2284
  return webContents;
2285
2285
  };
2286
2286
  const getData$1 = (event, message) => {
2287
+ if (!message || !('method' in message)) {
2288
+ return message;
2289
+ }
2287
2290
  const {
2288
2291
  ports,
2289
2292
  sender
2290
2293
  } = event;
2291
2294
  const data = {
2292
2295
  ...message,
2293
- params: [...message.params, ...ports, sender.id]
2296
+ params: [...(Array.isArray(message.params) ? message.params : []), ...ports, sender.id]
2294
2297
  };
2295
2298
  return data;
2296
2299
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "6.29.1",
3
+ "version": "6.29.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "electron"