@lvce-editor/shared-process 0.79.0 → 0.79.2

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.79.0",
3
+ "version": "0.79.2",
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.5.1",
21
- "@lvce-editor/extension-host-helper-process": "0.79.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.79.2",
22
22
  "@lvce-editor/ipc": "15.0.0",
23
23
  "@lvce-editor/json-rpc": "8.0.0",
24
24
  "@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', '1751ec0', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '76c4b79', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -1,3 +1,4 @@
1
+ import { existsSync } from 'node:fs';
1
2
  import { tmpdir } from 'node:os';
2
3
  import { join } from 'node:path';
3
4
  import { fileURLToPath } from 'node:url';
@@ -5,6 +6,22 @@ import * as Path from '../Path/Path.js';
5
6
  import * as Platform from '../Platform/Platform.js';
6
7
  import * as Root from '../Root/Root.js';
7
8
  import * as StaticPath from '../StaticPath/StaticPath.js';
9
+ const invalidIconsPath = Path.join(Root.root, 'static', '__missing_vscode_icon__.svg');
10
+ const getIconAbsolutePath = (pathName) => {
11
+ const relativePath = pathName.startsWith('/static/icons/') ? pathName.slice('/static/icons/'.length) : pathName.slice('/icons/'.length);
12
+ if (!relativePath || relativePath.includes('/') || relativePath.includes('\\') || relativePath.includes('..')) {
13
+ return invalidIconsPath;
14
+ }
15
+ const codiconPath = Path.join(Root.root, 'packages', 'renderer-worker', 'node_modules', '@vscode', 'codicons', 'src', 'icons', relativePath);
16
+ if (existsSync(codiconPath)) {
17
+ return codiconPath;
18
+ }
19
+ const staticIconPath = Path.join(Root.root, 'static', 'icons', relativePath);
20
+ if (existsSync(staticIconPath)) {
21
+ return staticIconPath;
22
+ }
23
+ return invalidIconsPath;
24
+ };
8
25
  // TODO clean up this code
9
26
  export const getElectronFileResponseAbsolutePath = (pathName) => {
10
27
  // TODO remove if/else in prod (use replacement)
@@ -18,6 +35,9 @@ export const getElectronFileResponseAbsolutePath = (pathName) => {
18
35
  if (pathName.startsWith(`/static`)) {
19
36
  return Path.join(Root.root, pathName);
20
37
  }
38
+ if (pathName.startsWith('/icons/') || pathName.startsWith('/static/icons/')) {
39
+ return getIconAbsolutePath(pathName);
40
+ }
21
41
  if (pathName.startsWith(`/extensions`)) {
22
42
  return Path.join(Root.root, pathName);
23
43
  }
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.79.0';
45
- export const commit = '1751ec0';
46
- export const date = '2026-04-12T13:06:54.000Z';
44
+ export const version = '0.79.2';
45
+ export const commit = '76c4b79';
46
+ export const date = '2026-04-14T15:25:01.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', '1751ec0', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', '76c4b79', 'packages', 'preload', 'dist', 'index.js');
5
5
  };
@@ -144,6 +144,15 @@
144
144
  "hotReloadCommand": "Run And Debug.hotReload",
145
145
  "contentSecurityPolicy": ["default-src 'none'"]
146
146
  },
147
+ {
148
+ "id": "diffWorker",
149
+ "fileName": "diffWorkerMain.js",
150
+ "defaultPath": "/packages/renderer-worker/node_modules/@lvce-editor/diff-worker/dist/diffWorkerMain.js",
151
+ "productionPath": "/packages/diff-worker/dist/diffWorkerMain.js",
152
+ "settingName": "develop.diffWorkerPath",
153
+ "hotReloadCommand": "",
154
+ "contentSecurityPolicy": ["default-src 'none'", "sandbox allow-same-origin"]
155
+ },
147
156
  {
148
157
  "id": "editor",
149
158
  "fileName": "editorWorkerMain.js",