@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.
- package/dist/embedsWorkerMain.js +10 -6
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -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',
|
|
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
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
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 = {
|