@lvce-editor/file-system-worker 1.15.0 → 1.16.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.
@@ -1308,10 +1308,13 @@ const getFolderSize = async uri => {
1308
1308
  };
1309
1309
 
1310
1310
  const handleMessagePort = async (port, rpcId) => {
1311
- await PlainMessagePortRpc.create({
1311
+ const rpc = await PlainMessagePortRpc.create({
1312
1312
  commandMap: {},
1313
1313
  messagePort: port
1314
1314
  });
1315
+ if (rpcId) {
1316
+ set$g(rpcId, rpc);
1317
+ }
1315
1318
  };
1316
1319
 
1317
1320
  const getPortTuple = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"