@lvce-editor/ipc 13.5.0 → 13.7.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/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export const IpcChildWithMessagePort: IpcChild<MessagePort, IpcChildWithMessageP
24
24
 
25
25
  interface IpcParentWithMessagePortCreateOptions {
26
26
  readonly messagePort: MessagePort
27
- readonly isMessagePortOpen: boolean
27
+ readonly isMessagePortOpen?: boolean
28
28
  }
29
29
 
30
30
  export const IpcParentWithMessagePort: IpcParent<MessagePort, IpcParentWithMessagePortCreateOptions>
package/dist/index.js CHANGED
@@ -1248,7 +1248,8 @@ class IpcParentWithMessagePort extends Ipc {
1248
1248
  this._rawIpc.postMessage(message);
1249
1249
  }
1250
1250
  sendAndTransfer(message) {
1251
- throw new Error('not implemented');
1251
+ const transfer = getTransferrables(message);
1252
+ this._rawIpc.postMessage(message, transfer);
1252
1253
  }
1253
1254
  dispose() {
1254
1255
  this._rawIpc.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ipc",
3
- "version": "13.5.0",
3
+ "version": "13.7.0",
4
4
  "description": "Inter Process Communication for Lvce Editor",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",