@lvce-editor/ipc 10.2.1 → 11.0.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/browser.js +5 -0
- package/dist/electron.js +1 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -365,6 +365,11 @@ const listen$3 = async () => {
|
|
|
365
365
|
}
|
|
366
366
|
const type = firstMessage.params[0];
|
|
367
367
|
if (type === 'message-port') {
|
|
368
|
+
parentIpc.send({
|
|
369
|
+
jsonrpc: '2.0',
|
|
370
|
+
id: firstMessage.id,
|
|
371
|
+
result: null
|
|
372
|
+
});
|
|
368
373
|
parentIpc.dispose();
|
|
369
374
|
const port = firstMessage.params[1];
|
|
370
375
|
return port;
|
package/dist/electron.js
CHANGED
|
@@ -543,7 +543,7 @@ class ChildProcessError extends Error {
|
|
|
543
543
|
const fixNodeParameters = value => {
|
|
544
544
|
const transfer = getTransferrables(value);
|
|
545
545
|
if (transfer.length === 0) {
|
|
546
|
-
throw new
|
|
546
|
+
throw new IpcError('no transferrables found');
|
|
547
547
|
}
|
|
548
548
|
const newValue = removeValues(value, transfer);
|
|
549
549
|
return {
|
package/dist/index.js
CHANGED
|
@@ -473,6 +473,11 @@ const listen$5 = async () => {
|
|
|
473
473
|
}
|
|
474
474
|
const type = firstMessage.params[0];
|
|
475
475
|
if (type === 'message-port') {
|
|
476
|
+
parentIpc.send({
|
|
477
|
+
jsonrpc: '2.0',
|
|
478
|
+
id: firstMessage.id,
|
|
479
|
+
result: null
|
|
480
|
+
});
|
|
476
481
|
parentIpc.dispose();
|
|
477
482
|
const port = firstMessage.params[1];
|
|
478
483
|
return port;
|
|
@@ -1119,7 +1124,7 @@ class ChildProcessError extends Error {
|
|
|
1119
1124
|
const fixNodeParameters = value => {
|
|
1120
1125
|
const transfer = getTransferrables(value);
|
|
1121
1126
|
if (transfer.length === 0) {
|
|
1122
|
-
throw new
|
|
1127
|
+
throw new IpcError('no transferrables found');
|
|
1123
1128
|
}
|
|
1124
1129
|
const newValue = removeValues(value, transfer);
|
|
1125
1130
|
return {
|