@lvce-editor/file-system-worker 1.10.0 → 1.11.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.
@@ -1068,7 +1068,7 @@ const WebWorkerRpcClient = {
1068
1068
  create: create$3
1069
1069
  };
1070
1070
 
1071
- const readFile$2 = async uri => {
1071
+ const readFile$3 = async uri => {
1072
1072
  const response = await fetch(uri);
1073
1073
  if (!response.ok) {
1074
1074
  throw new Error(response.statusText);
@@ -1129,7 +1129,7 @@ const {
1129
1129
  const remove$1$1 = async uri => {
1130
1130
  return invoke$8('FileSystem.remove', uri);
1131
1131
  };
1132
- const readFile$1$1 = async uri => {
1132
+ const readFile$2 = async uri => {
1133
1133
  return invoke$8('FileSystem.readFile', uri);
1134
1134
  };
1135
1135
  const readDirWithFileTypes$1$1 = async uri => {
@@ -1167,19 +1167,24 @@ const copy$1$1 = async (oldUri, newUri) => {
1167
1167
  // @ts-ignore
1168
1168
  return invoke$8('FileSystem.copy', oldUri, newUri);
1169
1169
  };
1170
- const getFolderSize$1$1 = async uri => {
1170
+ const getFolderSize$2 = async uri => {
1171
1171
  // @ts-ignore
1172
1172
  return invoke$8('FileSystem.getFolderSize', uri);
1173
1173
  };
1174
+ const exists$1$1 = async uri => {
1175
+ // @ts-ignore
1176
+ return invoke$8('FileSystem.exists', uri);
1177
+ };
1174
1178
  const FileSystemProcess = {
1175
1179
  __proto__: null,
1176
1180
  copy: copy$1$1,
1177
- getFolderSize: getFolderSize$1$1,
1181
+ exists: exists$1$1,
1182
+ getFolderSize: getFolderSize$2,
1178
1183
  getPathSeparator: getPathSeparator$1$1,
1179
1184
  getRealPath: getRealPath$1$1,
1180
1185
  mkdir: mkdir$1$1,
1181
1186
  readDirWithFileTypes: readDirWithFileTypes$1$1,
1182
- readFile: readFile$1$1,
1187
+ readFile: readFile$2,
1183
1188
  readJson: readJson$2,
1184
1189
  remove: remove$1$1,
1185
1190
  rename: rename$1$1,
@@ -1224,7 +1229,7 @@ const isHttp = uri => {
1224
1229
  };
1225
1230
  const readFile = async uri => {
1226
1231
  if (isHttp(uri)) {
1227
- return readFile$2(uri);
1232
+ return readFile$3(uri);
1228
1233
  }
1229
1234
  return readFile$1(uri);
1230
1235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"