@lvce-editor/file-system-worker 5.13.0 → 5.14.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.
- package/dist/fileSystemWorkerMain.js +14 -0
- package/package.json +1 -1
|
@@ -2143,6 +2143,20 @@ const commandMapRef = {};
|
|
|
2143
2143
|
|
|
2144
2144
|
const createFileSystemProcessRpcNode = async () => {
|
|
2145
2145
|
try {
|
|
2146
|
+
try {
|
|
2147
|
+
const {
|
|
2148
|
+
protocols,
|
|
2149
|
+
url
|
|
2150
|
+
} = await invoke$2('WebSocketCapability.create', 'file-system-process');
|
|
2151
|
+
return await create$3({
|
|
2152
|
+
commandMap: commandMapRef,
|
|
2153
|
+
webSocket: new WebSocket(url, protocols)
|
|
2154
|
+
});
|
|
2155
|
+
} catch (error) {
|
|
2156
|
+
if (!(error instanceof Error && (error.message.includes('WebSocketCapability.create') || error.message.includes('module WebSocketCapability not found')) && /command not found|not found/i.test(error.message))) {
|
|
2157
|
+
throw error;
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2146
2160
|
const rpc = await create$2({
|
|
2147
2161
|
commandMap: commandMapRef,
|
|
2148
2162
|
type: 'file-system-process'
|