@lvce-editor/renderer-process 30.41.1 → 30.42.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.
@@ -2385,7 +2385,6 @@ class IpcChildWithElectronWindow extends Ipc {
2385
2385
  return;
2386
2386
  }
2387
2387
  callback(event);
2388
- this._rawIpc.removeEventListener('message', wrapped);
2389
2388
  };
2390
2389
  this._rawIpc.addEventListener('message', wrapped);
2391
2390
  }
@@ -3296,9 +3295,16 @@ const hydrate$4 = async () => {
3296
3295
  };
3297
3296
  const handleMessagePort$1 = async port => {
3298
3297
  if (!state$b.rpc) {
3299
- throw new Error('Drag And Drop Worker is not initialized');
3298
+ const result = await hydrate$4();
3299
+ if (isError(result)) {
3300
+ throw result.error;
3301
+ }
3302
+ }
3303
+ const rpc = state$b.rpc;
3304
+ if (!rpc) {
3305
+ throw new Error('Drag And Drop Worker failed to initialize');
3300
3306
  }
3301
- await state$b.rpc.invokeAndTransfer('DragAndDrop.handleMessagePort', port);
3307
+ await rpc.invokeAndTransfer('DragAndDrop.handleMessagePort', port);
3302
3308
  };
3303
3309
 
3304
3310
  const downloadFile = (fileName, url) => {
@@ -10659,7 +10665,7 @@ const hydrate = async () => {
10659
10665
  return success(undefined);
10660
10666
  };
10661
10667
 
10662
- const requiredWorkerFns = [hydrate$3, hydrate$4];
10668
+ const requiredWorkerFns = [hydrate$3];
10663
10669
  const additionalWorkerFns = [hydrate$1, hydrate];
10664
10670
  const call = fn => {
10665
10671
  return fn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.41.1",
3
+ "version": "30.42.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"