@lvce-editor/file-system-worker 5.3.0 → 5.5.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.
@@ -1871,7 +1871,7 @@ const readFile = async uri => {
1871
1871
  return readFile$3(uri);
1872
1872
  }
1873
1873
  if (isMemory(uri)) {
1874
- return readFile$1(uri);
1874
+ return invoke$2('FileSystem.readFile', uri);
1875
1875
  }
1876
1876
  return readFile$2(uri);
1877
1877
  };
@@ -1879,6 +1879,9 @@ const appendFile = async (uri, text) => {
1879
1879
  return appendFile$1(uri, text);
1880
1880
  };
1881
1881
  const readDirWithFileTypes = async uri => {
1882
+ if (isMemory(uri)) {
1883
+ return invoke$2('FileSystem.readDirWithFileTypes', uri);
1884
+ }
1882
1885
  return readDirWithFileTypes$2(uri);
1883
1886
  };
1884
1887
  const getPathSeparator = async root => {
@@ -1922,6 +1925,9 @@ const exists = async uri => {
1922
1925
  if (isHttp(uri)) {
1923
1926
  return exists$3(uri);
1924
1927
  }
1928
+ if (isMemory(uri)) {
1929
+ return invoke$2('FileSystem.exists', uri);
1930
+ }
1925
1931
  return exists$2(uri);
1926
1932
  };
1927
1933
  const createFile = async uri => {
@@ -1932,7 +1938,7 @@ const createFile = async uri => {
1932
1938
  };
1933
1939
  const writeFile = async (uri, content) => {
1934
1940
  if (isMemory(uri)) {
1935
- return writeFile$1(uri, content);
1941
+ return invoke$2('FileSystem.writeFile', uri, content);
1936
1942
  }
1937
1943
  return writeFile$2(uri, content);
1938
1944
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"