@lvce-editor/file-system-process 3.2.0 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +14 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -265,6 +265,8 @@ const ErrorWorker$1 = 3308;
265
265
  const SyntaxHighlightingWorker$1 = 3309;
266
266
  const ClipBoardWorker$1 = 3400;
267
267
  const ClipBoardProcess$1 = 3401;
268
+ const ExtensionDetailWorker = 3402;
269
+ const ProblemsWorker = 3403;
268
270
  const RpcId = {
269
271
  __proto__: null,
270
272
  ClipBoardProcess: ClipBoardProcess$1,
@@ -276,11 +278,13 @@ const RpcId = {
276
278
  EmbedsProcess: EmbedsProcess$1,
277
279
  EmbedsWorker,
278
280
  ErrorWorker: ErrorWorker$1,
281
+ ExtensionDetailWorker,
279
282
  ExtensionHostWorker,
280
283
  FileSystemProcess: FileSystemProcess$1,
281
284
  FileSystemWorker: FileSystemWorker$1,
282
285
  MainProcess: MainProcess$1,
283
286
  MarkdownWorker: MarkdownWorker$1,
287
+ ProblemsWorker,
284
288
  RendererProcess: RendererProcess$1,
285
289
  RendererWorker: RendererWorker$1,
286
290
  SearchProcess: SearchProcess$1,
@@ -474,6 +478,11 @@ const mkdir = async uri => {
474
478
  throw new VError(error, `Failed to create directory "${uri}"`);
475
479
  }
476
480
  };
481
+ const exists = async uri => {
482
+ assertUri(uri);
483
+ const path = fileURLToPath(uri);
484
+ return existsSync(path);
485
+ };
477
486
  const fallbackRename = async (oldUri, newUri) => {
478
487
  try {
479
488
  const oldPath = fileURLToPath(oldUri);
@@ -1610,7 +1619,7 @@ const listen$2 = async (module, options) => {
1610
1619
  const ipc = module.wrap(rawIpc);
1611
1620
  return ipc;
1612
1621
  };
1613
- const create$g = async ({
1622
+ const create$j = async ({
1614
1623
  commandMap,
1615
1624
  messagePort,
1616
1625
  requiresSocket
@@ -1629,9 +1638,9 @@ const create$g = async ({
1629
1638
  };
1630
1639
  const ElectronMessagePortRpcClient = {
1631
1640
  __proto__: null,
1632
- create: create$g
1641
+ create: create$j
1633
1642
  };
1634
- const create$f = async ({
1643
+ const create$i = async ({
1635
1644
  commandMap
1636
1645
  }) => {
1637
1646
  // TODO create a commandMap per rpc instance
@@ -1643,7 +1652,7 @@ const create$f = async ({
1643
1652
  };
1644
1653
  const ElectronUtilityProcessRpcClient = {
1645
1654
  __proto__: null,
1646
- create: create$f
1655
+ create: create$i
1647
1656
  };
1648
1657
  const create$9 = async ({
1649
1658
  commandMap
@@ -1835,7 +1844,7 @@ const initialize = async () => {
1835
1844
  const commandMap = {
1836
1845
  'FileSystem.chmod': chmod,
1837
1846
  'FileSystem.copy': copy,
1838
- 'FileSystem.exists': rename,
1847
+ 'FileSystem.exists': exists,
1839
1848
  'FileSystem.getFolderSize': getFolderSize,
1840
1849
  'FileSystem.getPathSeparator': getPathSeparator,
1841
1850
  'FileSystem.mkdir': mkdir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-process",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "File System Process",
5
5
  "keywords": [
6
6
  "Lvce Editor",