@lvce-editor/ipc 10.0.1 → 10.0.2
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/index.js +4 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -275,7 +275,7 @@ const listen$8 = ({
|
|
|
275
275
|
const signal$6 = messagePort => {
|
|
276
276
|
messagePort.start();
|
|
277
277
|
};
|
|
278
|
-
const getActualData
|
|
278
|
+
const getActualData = event => {
|
|
279
279
|
const {
|
|
280
280
|
data,
|
|
281
281
|
ports
|
|
@@ -293,7 +293,7 @@ class IpcChildWithElectronMessagePort extends Ipc {
|
|
|
293
293
|
super(port);
|
|
294
294
|
}
|
|
295
295
|
getData(event) {
|
|
296
|
-
return getActualData
|
|
296
|
+
return getActualData(event);
|
|
297
297
|
}
|
|
298
298
|
send(message) {
|
|
299
299
|
this._rawIpc.postMessage(message);
|
|
@@ -533,21 +533,12 @@ const listen$4 = async () => {
|
|
|
533
533
|
const signal$3 = process => {
|
|
534
534
|
process.send(readyMessage);
|
|
535
535
|
};
|
|
536
|
-
const getActualData = (message, handle) => {
|
|
537
|
-
if (handle) {
|
|
538
|
-
return {
|
|
539
|
-
...message,
|
|
540
|
-
params: [handle, ...message.params]
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
return message;
|
|
544
|
-
};
|
|
545
536
|
class IpcChildWithNodeForkedProcess extends Ipc {
|
|
546
537
|
constructor(process) {
|
|
547
538
|
super(process);
|
|
548
539
|
}
|
|
549
|
-
getData(message
|
|
550
|
-
return
|
|
540
|
+
getData(message) {
|
|
541
|
+
return message;
|
|
551
542
|
}
|
|
552
543
|
onClose(callback) {
|
|
553
544
|
this._rawIpc.on('close', callback);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/ipc",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
4
4
|
"description": "Inter Process Communication for Lvce Editor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@lvce-editor/assert": "^1.2.0",
|
|
18
18
|
"@lvce-editor/verror": "^1.4.0",
|
|
19
|
-
"@lvce-editor/web-socket-server": "^1.
|
|
19
|
+
"@lvce-editor/web-socket-server": "^1.3.0"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=18"
|