@lvce-editor/iframe-worker 5.31.0 → 5.32.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/iframeWorkerMain.js +6 -2
- package/package.json +1 -1
package/dist/iframeWorkerMain.js
CHANGED
|
@@ -850,6 +850,9 @@ const createRpc = ipc => {
|
|
|
850
850
|
},
|
|
851
851
|
invokeAndTransfer(method, ...params) {
|
|
852
852
|
return invokeAndTransfer$4(ipc, method, ...params);
|
|
853
|
+
},
|
|
854
|
+
async dispose() {
|
|
855
|
+
await ipc?.dispose();
|
|
853
856
|
}
|
|
854
857
|
};
|
|
855
858
|
return rpc;
|
|
@@ -884,7 +887,7 @@ const listen$1 = async (module, options) => {
|
|
|
884
887
|
const ipc = module.wrap(rawIpc);
|
|
885
888
|
return ipc;
|
|
886
889
|
};
|
|
887
|
-
const create$
|
|
890
|
+
const create$8 = async ({
|
|
888
891
|
commandMap,
|
|
889
892
|
messagePort,
|
|
890
893
|
isMessagePortOpen
|
|
@@ -902,7 +905,7 @@ const create$6 = async ({
|
|
|
902
905
|
};
|
|
903
906
|
const MessagePortRpcParent = {
|
|
904
907
|
__proto__: null,
|
|
905
|
-
create: create$
|
|
908
|
+
create: create$8
|
|
906
909
|
};
|
|
907
910
|
const create$2 = async ({
|
|
908
911
|
commandMap
|
|
@@ -1702,6 +1705,7 @@ const getWebViewWorkerRpc = async rpcInfo => {
|
|
|
1702
1705
|
|
|
1703
1706
|
const createWebViewRpc$1 = async (rpcInfo, webView, savedState, uri, portId, webViewUid, origin) => {
|
|
1704
1707
|
// deprecated below
|
|
1708
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
1705
1709
|
const rpc = await getWebViewWorkerRpc(rpcInfo);
|
|
1706
1710
|
const webViewInfo = {
|
|
1707
1711
|
rpc,
|