@lvce-editor/ipc 10.2.0 → 10.2.1
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/electron.js +8 -8
- package/dist/index.js +21 -21
- package/package.json +1 -1
package/dist/electron.js
CHANGED
|
@@ -438,7 +438,7 @@ class IpcError extends VError {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
// @ts-ignore
|
|
441
|
-
const create$
|
|
441
|
+
const create$3 = async ({
|
|
442
442
|
path,
|
|
443
443
|
argv = [],
|
|
444
444
|
execArgv = [],
|
|
@@ -507,7 +507,7 @@ const wrap$3 = process => {
|
|
|
507
507
|
|
|
508
508
|
const IpcParentWithElectronUtilityProcess$1 = {
|
|
509
509
|
__proto__: null,
|
|
510
|
-
create: create$
|
|
510
|
+
create: create$3,
|
|
511
511
|
wrap: wrap$3
|
|
512
512
|
};
|
|
513
513
|
|
|
@@ -626,7 +626,7 @@ const getFirstNodeChildProcessEvent = async childProcess => {
|
|
|
626
626
|
};
|
|
627
627
|
|
|
628
628
|
// @ts-ignore
|
|
629
|
-
const create$
|
|
629
|
+
const create$2 = async ({
|
|
630
630
|
path,
|
|
631
631
|
argv = [],
|
|
632
632
|
env,
|
|
@@ -699,7 +699,7 @@ const wrap$2 = childProcess => {
|
|
|
699
699
|
|
|
700
700
|
const IpcParentWithNodeForkedProcess$1 = {
|
|
701
701
|
__proto__: null,
|
|
702
|
-
create: create$
|
|
702
|
+
create: create$2,
|
|
703
703
|
wrap: wrap$2
|
|
704
704
|
};
|
|
705
705
|
|
|
@@ -753,7 +753,7 @@ const getFirstNodeWorkerEvent = worker => {
|
|
|
753
753
|
const readyMessage = 'ready';
|
|
754
754
|
|
|
755
755
|
// @ts-ignore
|
|
756
|
-
const create = async ({
|
|
756
|
+
const create$1 = async ({
|
|
757
757
|
path,
|
|
758
758
|
argv = [],
|
|
759
759
|
env = process.env,
|
|
@@ -826,7 +826,7 @@ const wrap$1 = worker => {
|
|
|
826
826
|
|
|
827
827
|
const IpcParentWithNodeWorker = {
|
|
828
828
|
__proto__: null,
|
|
829
|
-
create,
|
|
829
|
+
create: create$1,
|
|
830
830
|
wrap: wrap$1
|
|
831
831
|
};
|
|
832
832
|
|
|
@@ -844,7 +844,7 @@ const getActualDataElectron = event => {
|
|
|
844
844
|
};
|
|
845
845
|
};
|
|
846
846
|
|
|
847
|
-
const
|
|
847
|
+
const create = ({
|
|
848
848
|
messagePort
|
|
849
849
|
}) => {
|
|
850
850
|
if (!isMessagePortMain(messagePort)) {
|
|
@@ -886,7 +886,7 @@ const wrap = messagePort => {
|
|
|
886
886
|
|
|
887
887
|
const IpcParentWithElectronMessagePort$1 = {
|
|
888
888
|
__proto__: null,
|
|
889
|
-
|
|
889
|
+
create,
|
|
890
890
|
signal,
|
|
891
891
|
wrap
|
|
892
892
|
};
|
package/dist/index.js
CHANGED
|
@@ -279,7 +279,7 @@ class IpcError extends VError {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
const listen$
|
|
282
|
+
const listen$8 = ({
|
|
283
283
|
messagePort
|
|
284
284
|
}) => {
|
|
285
285
|
if (!isMessagePortMain(messagePort)) {
|
|
@@ -321,7 +321,7 @@ const wrap$c = messagePort => {
|
|
|
321
321
|
|
|
322
322
|
const IpcChildWithElectronMessagePort$1 = {
|
|
323
323
|
__proto__: null,
|
|
324
|
-
listen: listen$
|
|
324
|
+
listen: listen$8,
|
|
325
325
|
signal: signal$7,
|
|
326
326
|
wrap: wrap$c
|
|
327
327
|
};
|
|
@@ -343,7 +343,7 @@ const getUtilityProcessPortData = event => {
|
|
|
343
343
|
|
|
344
344
|
const readyMessage = 'ready';
|
|
345
345
|
|
|
346
|
-
const listen$
|
|
346
|
+
const listen$7 = () => {
|
|
347
347
|
// @ts-ignore
|
|
348
348
|
const {
|
|
349
349
|
parentPort
|
|
@@ -386,7 +386,7 @@ const wrap$b = parentPort => {
|
|
|
386
386
|
|
|
387
387
|
const IpcChildWithElectronUtilityProcess$1 = {
|
|
388
388
|
__proto__: null,
|
|
389
|
-
listen: listen$
|
|
389
|
+
listen: listen$7,
|
|
390
390
|
signal: signal$6,
|
|
391
391
|
wrap: wrap$b
|
|
392
392
|
};
|
|
@@ -395,7 +395,7 @@ const getData$1 = event => {
|
|
|
395
395
|
return event.data;
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
const listen$
|
|
398
|
+
const listen$6 = () => {
|
|
399
399
|
// @ts-ignore
|
|
400
400
|
if (typeof WorkerGlobalScope === 'undefined') {
|
|
401
401
|
throw new TypeError('module is not in web worker scope');
|
|
@@ -434,7 +434,7 @@ const wrap$a = global => {
|
|
|
434
434
|
|
|
435
435
|
const IpcChildWithModuleWorker$1 = {
|
|
436
436
|
__proto__: null,
|
|
437
|
-
listen: listen$
|
|
437
|
+
listen: listen$6,
|
|
438
438
|
signal: signal$5,
|
|
439
439
|
wrap: wrap$a
|
|
440
440
|
};
|
|
@@ -463,8 +463,8 @@ const waitForFirstMessage = async port => {
|
|
|
463
463
|
return event.data;
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
const listen$
|
|
467
|
-
const parentIpcRaw = listen$
|
|
466
|
+
const listen$5 = async () => {
|
|
467
|
+
const parentIpcRaw = listen$6();
|
|
468
468
|
signal$5(parentIpcRaw);
|
|
469
469
|
const parentIpc = wrap$a(parentIpcRaw);
|
|
470
470
|
const firstMessage = await waitForFirstMessage(parentIpc);
|
|
@@ -512,7 +512,7 @@ const wrap$9 = port => {
|
|
|
512
512
|
|
|
513
513
|
const IpcChildWithModuleWorkerAndMessagePort$1 = {
|
|
514
514
|
__proto__: null,
|
|
515
|
-
listen: listen$
|
|
515
|
+
listen: listen$5,
|
|
516
516
|
wrap: wrap$9
|
|
517
517
|
};
|
|
518
518
|
|
|
@@ -534,7 +534,7 @@ const getActualData = (message, handle) => {
|
|
|
534
534
|
return message;
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
const listen$
|
|
537
|
+
const listen$4 = async () => {
|
|
538
538
|
if (!process.send) {
|
|
539
539
|
throw new Error('process.send must be defined');
|
|
540
540
|
}
|
|
@@ -573,12 +573,12 @@ const wrap$8 = process => {
|
|
|
573
573
|
|
|
574
574
|
const IpcChildWithNodeForkedProcess$1 = {
|
|
575
575
|
__proto__: null,
|
|
576
|
-
listen: listen$
|
|
576
|
+
listen: listen$4,
|
|
577
577
|
signal: signal$4,
|
|
578
578
|
wrap: wrap$8
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
const listen$
|
|
581
|
+
const listen$3 = async ({
|
|
582
582
|
messagePort
|
|
583
583
|
}) => {
|
|
584
584
|
if (!isMessagePort(messagePort)) {
|
|
@@ -619,12 +619,12 @@ const wrap$7 = port => {
|
|
|
619
619
|
|
|
620
620
|
const IpcChildWithNodeMessagePort = {
|
|
621
621
|
__proto__: null,
|
|
622
|
-
listen: listen$
|
|
622
|
+
listen: listen$3,
|
|
623
623
|
signal: signal$3,
|
|
624
624
|
wrap: wrap$7
|
|
625
625
|
};
|
|
626
626
|
|
|
627
|
-
const listen$
|
|
627
|
+
const listen$2 = async () => {
|
|
628
628
|
const {
|
|
629
629
|
parentPort
|
|
630
630
|
} = await import('node:worker_threads');
|
|
@@ -663,13 +663,13 @@ const wrap$6 = parentPort => {
|
|
|
663
663
|
|
|
664
664
|
const IpcChildWithNodeWorker = {
|
|
665
665
|
__proto__: null,
|
|
666
|
-
listen: listen$
|
|
666
|
+
listen: listen$2,
|
|
667
667
|
signal: signal$2,
|
|
668
668
|
wrap: wrap$6
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
const preloadChannelType = 'port';
|
|
672
|
-
const listen$
|
|
672
|
+
const listen$1 = ({
|
|
673
673
|
webContents
|
|
674
674
|
}) => {
|
|
675
675
|
return webContents;
|
|
@@ -712,7 +712,7 @@ const wrap$5 = webContents => {
|
|
|
712
712
|
|
|
713
713
|
const IpcChildWithRendererProcess2$1 = {
|
|
714
714
|
__proto__: null,
|
|
715
|
-
listen: listen$
|
|
715
|
+
listen: listen$1,
|
|
716
716
|
wrap: wrap$5
|
|
717
717
|
};
|
|
718
718
|
|
|
@@ -817,7 +817,7 @@ const handleUpgrade = async (...args) => {
|
|
|
817
817
|
};
|
|
818
818
|
|
|
819
819
|
// @ts-ignore
|
|
820
|
-
const listen
|
|
820
|
+
const listen = async ({
|
|
821
821
|
request,
|
|
822
822
|
handle
|
|
823
823
|
}) => {
|
|
@@ -888,12 +888,12 @@ const wrap$4 = webSocket => {
|
|
|
888
888
|
|
|
889
889
|
const IpcChildWithWebSocket = {
|
|
890
890
|
__proto__: null,
|
|
891
|
-
listen
|
|
891
|
+
listen,
|
|
892
892
|
signal: signal$1,
|
|
893
893
|
wrap: wrap$4
|
|
894
894
|
};
|
|
895
895
|
|
|
896
|
-
const
|
|
896
|
+
const create$3 = ({
|
|
897
897
|
messagePort
|
|
898
898
|
}) => {
|
|
899
899
|
if (!isMessagePortMain(messagePort)) {
|
|
@@ -935,7 +935,7 @@ const wrap$3 = messagePort => {
|
|
|
935
935
|
|
|
936
936
|
const IpcParentWithElectronMessagePort$1 = {
|
|
937
937
|
__proto__: null,
|
|
938
|
-
|
|
938
|
+
create: create$3,
|
|
939
939
|
signal,
|
|
940
940
|
wrap: wrap$3
|
|
941
941
|
};
|