@lvce-editor/embeds-worker 2.2.0 → 2.3.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.
@@ -879,7 +879,7 @@ const create$1 = async ({
879
879
  port2
880
880
  } = getPortTuple();
881
881
  // TODO call sendMessagePortToSharedProcess function instead
882
- await invokeAndTransfer('IpcParent.create', [port1], {
882
+ await invokeAndTransfer('IpcParent.create', {
883
883
  method: 8,
884
884
  type: 1,
885
885
  initialCommand,
@@ -917,11 +917,15 @@ const create = async options => {
917
917
  };
918
918
 
919
919
  const launchEmbedsProcessIpc = async () => {
920
- const ipc = await create({
921
- initialCommand: 'HandleMessagePortForEmbedsProcess.handleMessagePortForEmbedsProcess'
922
- });
923
- handleIpc(ipc);
924
- return ipc;
920
+ try {
921
+ const ipc = await create({
922
+ initialCommand: 'HandleMessagePortForEmbedsProcess.handleMessagePortForEmbedsProcess'
923
+ });
924
+ handleIpc(ipc);
925
+ return ipc;
926
+ } catch (error) {
927
+ throw new VError(error, `Failed to launch embeds process`);
928
+ }
925
929
  };
926
930
 
927
931
  const state = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-worker",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "dist/embedsWorkerMain.js",
6
6
  "type": "module",