@lvce-editor/file-system-worker 1.18.0 → 1.19.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.
@@ -1389,11 +1389,13 @@ const createFileSystemProcessRpcElectron = async () => {
1389
1389
  }
1390
1390
  };
1391
1391
 
1392
+ const commandMapRef = {};
1393
+
1392
1394
  const createFileSystemProcessRpcNode = async () => {
1393
1395
  try {
1394
1396
  const rpc = await WebSocketRpcParent2.create({
1395
1397
  type: 'file-system-process',
1396
- commandMap: {}
1398
+ commandMap: commandMapRef
1397
1399
  });
1398
1400
  return rpc;
1399
1401
  } catch (error) {
@@ -1437,7 +1439,7 @@ const commandMap = {
1437
1439
  'FileSystem.appendFile': appendFile,
1438
1440
  'FileSystem.copy': copy,
1439
1441
  'FileSystem.createFile': createFile,
1440
- 'FileSystem.executeWatchcallback': executeWatchCallback,
1442
+ 'FileSystem.executeWatchCallback': executeWatchCallback,
1441
1443
  'FileSystem.exists': exists,
1442
1444
  'FileSystem.getFolderSize': getFolderSize,
1443
1445
  'FileSystem.getPathSeparator': getPathSeparator,
@@ -1458,6 +1460,7 @@ const commandMap = {
1458
1460
  };
1459
1461
 
1460
1462
  const listen = async () => {
1463
+ Object.assign(commandMapRef, commandMap);
1461
1464
  const rpc = await WebWorkerRpcClient.create({
1462
1465
  commandMap: commandMap
1463
1466
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"