@lvce-editor/file-system-worker 1.11.0 → 1.12.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.
|
@@ -1200,7 +1200,6 @@ const RendererWorker = {
|
|
|
1200
1200
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1201
1201
|
set: set$3};
|
|
1202
1202
|
|
|
1203
|
-
// @ts-ignore
|
|
1204
1203
|
const {
|
|
1205
1204
|
set: set$1,
|
|
1206
1205
|
rename: rename$1,
|
|
@@ -1329,6 +1328,7 @@ const createFileSystemProcessRpcNode = async () => {
|
|
|
1329
1328
|
}
|
|
1330
1329
|
};
|
|
1331
1330
|
|
|
1331
|
+
const Web = 1;
|
|
1332
1332
|
const Electron = 2;
|
|
1333
1333
|
const Remote = 3;
|
|
1334
1334
|
|
|
@@ -1348,11 +1348,18 @@ const createFileSystemProcessRpc = async platform => {
|
|
|
1348
1348
|
return create();
|
|
1349
1349
|
};
|
|
1350
1350
|
|
|
1351
|
-
const
|
|
1351
|
+
const initializeFileSytemProcess = async platform => {
|
|
1352
|
+
if (platform === Web) {
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1352
1355
|
const rpc = await createFileSystemProcessRpc(platform);
|
|
1353
1356
|
set$1(rpc);
|
|
1354
1357
|
};
|
|
1355
1358
|
|
|
1359
|
+
const initialize = async platform => {
|
|
1360
|
+
await initializeFileSytemProcess(platform);
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1356
1363
|
const commandMap = {
|
|
1357
1364
|
'FileSystem.copy': copy,
|
|
1358
1365
|
'FileSystem.createFile': createFile,
|