@lvce-editor/shared-process 0.42.4 → 0.43.1
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.
|
|
3
|
+
"version": "0.43.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.3.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.
|
|
22
|
-
"@lvce-editor/ipc": "13.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.43.1",
|
|
22
|
+
"@lvce-editor/ipc": "13.7.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "5.4.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
25
25
|
"@lvce-editor/pretty-error": "1.6.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@lvce-editor/embeds-process": "1.6.0",
|
|
33
33
|
"@lvce-editor/network-process": "2.2.0",
|
|
34
34
|
"@lvce-editor/preload": "1.4.0",
|
|
35
|
-
"@lvce-editor/preview-process": "7.
|
|
35
|
+
"@lvce-editor/preview-process": "7.20.0",
|
|
36
36
|
"@lvce-editor/pty-host": "3.1.0",
|
|
37
37
|
"@lvce-editor/search-process": "4.1.0",
|
|
38
38
|
"@lvce-editor/typescript-compile-process": "2.2.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', 'f44539c', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -2,6 +2,7 @@ import * as HandleIpc from '../HandleIpc/HandleIpc.js';
|
|
|
2
2
|
import * as IpcParent from '../IpcParent/IpcParent.js';
|
|
3
3
|
import * as IpcParentType from '../IpcParentType/IpcParentType.js';
|
|
4
4
|
import * as IsElectron from '../IsElectron/IsElectron.js';
|
|
5
|
+
import * as IsProduction from '../IsProduction/IsProduction.js';
|
|
5
6
|
import * as Preferences from '../Preferences/Preferences.js';
|
|
6
7
|
import * as PreviewProcessPath from '../PreviewProcessPath/PreviewProcessPath.js';
|
|
7
8
|
const getMethod = (isElectron) => {
|
|
@@ -10,10 +11,17 @@ const getMethod = (isElectron) => {
|
|
|
10
11
|
}
|
|
11
12
|
return IpcParentType.NodeForkedProcess;
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
const getConfiguredUrl = async () => {
|
|
14
15
|
const preferences = await Preferences.getUserPreferences();
|
|
15
16
|
const customPreviewProcessPath = preferences['develop.previewProcessPath'];
|
|
16
|
-
|
|
17
|
+
let previewProcessPath = customPreviewProcessPath || PreviewProcessPath.previewProcessPath;
|
|
18
|
+
if (IsProduction.isProduction) {
|
|
19
|
+
previewProcessPath = PreviewProcessPath.previewProcessPath;
|
|
20
|
+
}
|
|
21
|
+
return previewProcessPath;
|
|
22
|
+
};
|
|
23
|
+
export const launchPreviewProcess = async () => {
|
|
24
|
+
const previewProcessPath = await getConfiguredUrl();
|
|
17
25
|
const method = getMethod(IsElectron.isElectron);
|
|
18
26
|
const previewProcess = await IpcParent.create({
|
|
19
27
|
method,
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2024-12-
|
|
44
|
+
export const version = '0.43.1';
|
|
45
|
+
export const commit = 'f44539c';
|
|
46
|
+
export const date = '2024-12-31T08:57:42.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|