@lvce-editor/shared-process 0.80.10 → 0.80.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.5.1",
|
|
21
21
|
"@lvce-editor/auth-process": "1.6.0",
|
|
22
|
-
"@lvce-editor/extension-host-helper-process": "0.80.
|
|
22
|
+
"@lvce-editor/extension-host-helper-process": "0.80.11",
|
|
23
23
|
"@lvce-editor/ipc": "15.0.0",
|
|
24
24
|
"@lvce-editor/json-rpc": "8.0.0",
|
|
25
25
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -2,6 +2,6 @@ import { join } from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
export const getBuiltinExtensionsPath = () => {
|
|
4
4
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
|
|
5
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '6a84db7', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -5,6 +5,16 @@ import * as HandleIncomingIpcWebSocket from '../HandleIncomingIpcWebSocket/Handl
|
|
|
5
5
|
import * as HandleIpcModule from '../HandleIpcModule/HandleIpcModule.js';
|
|
6
6
|
import * as IsMessagePortMain from '../IsMessagePortMain/IsMessagePortMain.js';
|
|
7
7
|
import * as IsSocket from '../IsSocket/IsSocket.js';
|
|
8
|
+
const strinfyHandle = (handle) => {
|
|
9
|
+
if (!handle) {
|
|
10
|
+
return `${handle}`;
|
|
11
|
+
}
|
|
12
|
+
console.log({ handle });
|
|
13
|
+
if (handle.constructor && handle.constructor.name) {
|
|
14
|
+
return `${handle.constructor.name}`;
|
|
15
|
+
}
|
|
16
|
+
return `${handle}`;
|
|
17
|
+
};
|
|
8
18
|
const getIpcAndResponse = (module, handle, message) => {
|
|
9
19
|
if (IsMessagePortMain.isMessagePortMain(handle)) {
|
|
10
20
|
return HandleIncomingIpcMessagePort.handleIncomingIpcMessagePort(module, handle, message);
|
|
@@ -12,7 +22,7 @@ const getIpcAndResponse = (module, handle, message) => {
|
|
|
12
22
|
if (IsSocket.isSocket(handle)) {
|
|
13
23
|
return HandleIncomingIpcWebSocket.handleIncomingIpcWebSocket(module, handle, message);
|
|
14
24
|
}
|
|
15
|
-
throw new Error(`Unexpected ipc handle`);
|
|
25
|
+
throw new Error(`Unexpected ipc handle: ${strinfyHandle(handle)}`);
|
|
16
26
|
};
|
|
17
27
|
export const handleIncomingIpc = async (ipcId, handle, message) => {
|
|
18
28
|
Assert.number(ipcId);
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.80.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2026-
|
|
44
|
+
export const version = '0.80.11';
|
|
45
|
+
export const commit = '6a84db7';
|
|
46
|
+
export const date = '2026-05-02T11:44:56.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import * as Root from '../Root/Root.js';
|
|
3
3
|
export const getPreloadUrl = () => {
|
|
4
|
-
return join(Root.root, 'static', '
|
|
4
|
+
return join(Root.root, 'static', '6a84db7', 'packages', 'preload', 'dist', 'index.js');
|
|
5
5
|
};
|