@lvce-editor/shared-process 0.50.2 → 0.51.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/package.json +9 -9
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/ContentSecurityPolicyDebugWorker/ContentSecurityPolicyDebugWorker.js +2 -0
- package/src/parts/GetHeaders/GetHeaders.js +3 -0
- package/src/parts/GetHeadersDebugWorker/GetHeadersDebugWorker.js +9 -0
- package/src/parts/Platform/Platform.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.3.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.51.0",
|
|
22
22
|
"@lvce-editor/ipc": "13.8.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "5.4.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
32
|
"@lvce-editor/embeds-process": "2.0.0",
|
|
33
|
-
"@lvce-editor/file-watcher-process": "
|
|
34
|
-
"@lvce-editor/network-process": "
|
|
33
|
+
"@lvce-editor/file-watcher-process": "2.0.0",
|
|
34
|
+
"@lvce-editor/network-process": "4.0.0",
|
|
35
35
|
"@lvce-editor/preload": "1.4.0",
|
|
36
|
-
"@lvce-editor/preview-process": "
|
|
37
|
-
"@lvce-editor/pty-host": "
|
|
38
|
-
"@lvce-editor/search-process": "
|
|
39
|
-
"@lvce-editor/typescript-compile-process": "
|
|
36
|
+
"@lvce-editor/preview-process": "10.0.0",
|
|
37
|
+
"@lvce-editor/pty-host": "4.0.0",
|
|
38
|
+
"@lvce-editor/search-process": "7.0.0",
|
|
39
|
+
"@lvce-editor/typescript-compile-process": "3.0.0",
|
|
40
40
|
"@lvce-editor/file-system-process": "1.2.0",
|
|
41
|
-
"open": "^10.1.
|
|
41
|
+
"open": "^10.1.2",
|
|
42
42
|
"tail": "^2.2.6",
|
|
43
43
|
"tmp-promise": "^3.0.3",
|
|
44
44
|
"trash": "^9.0.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', '181099c', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -5,6 +5,7 @@ import * as GetHeadersAboutWorker from '../GetHeadersAboutWorker/GetHeadersAbout
|
|
|
5
5
|
import * as GetHeadersDefault from '../GetHeadersDefault/GetHeadersDefault.js';
|
|
6
6
|
import * as GetHeadersEditorWorker from '../GetHeadersEditorWorker/GetHeadersEditorWorker.js';
|
|
7
7
|
import * as GetHeadersEmbedsWorker from '../GetHeadersEmbedsWorker/GetHeadersEmbedsWorker.js';
|
|
8
|
+
import * as GetHeadersDebugWorker from '../GetHeadersDebugWorker/GetHeadersDebugWorker.js';
|
|
8
9
|
import * as GetHeadersErrorWorker from '../GetHeadersErrorWorker/GetHeadersErrorWorker.js';
|
|
9
10
|
import * as GetHeadersExtensionHostWorker from '../GetHeadersExtensionHostWorker/GetHeadersExtensionHostWorker.js';
|
|
10
11
|
import * as GetHeadersFileSearchWorker from '../GetHeadersFileSearchWorker/GetHeadersFileSearchWorker.js';
|
|
@@ -70,6 +71,8 @@ const getExtraHeaders = (pathName, fileExtension) => {
|
|
|
70
71
|
return GetHeadersMarkdownWorker.getHeadersMarkdownWorker();
|
|
71
72
|
case 'titleBarWorkerMain.js':
|
|
72
73
|
return GetHeadersTitleBarWorker.getHeadersTitleBarWorker();
|
|
74
|
+
case 'debugWorkerMain.js':
|
|
75
|
+
return GetHeadersDebugWorker.getHeadersDebugWorker();
|
|
73
76
|
default:
|
|
74
77
|
if (pathName.endsWith('WorkerMain.js') || pathName.endsWith('WorkerMain.ts')) {
|
|
75
78
|
return GetHeadersOtherWorker.getHeadersOtherWorker(pathName);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as ContentSecurityPolicyDebugWorker from '../ContentSecurityPolicyDebugWorker/ContentSecurityPolicyDebugWorker.js';
|
|
2
|
+
import * as CrossOriginEmbedderPolicy from '../CrossOriginEmbedderPolicy/CrossOriginEmbedderPolicy.js';
|
|
3
|
+
import * as HttpHeader from '../HttpHeader/HttpHeader.js';
|
|
4
|
+
export const getHeadersDebugWorker = () => {
|
|
5
|
+
return {
|
|
6
|
+
[HttpHeader.CrossOriginEmbedderPolicy]: CrossOriginEmbedderPolicy.value,
|
|
7
|
+
[HttpHeader.ContentSecurityPolicy]: ContentSecurityPolicyDebugWorker.value,
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -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 = '2025-
|
|
44
|
+
export const version = '0.51.0';
|
|
45
|
+
export const commit = '181099c';
|
|
46
|
+
export const date = '2025-05-01T07:36:22.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|