@lvce-editor/shared-process 0.41.3 → 0.41.5

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.41.3",
3
+ "version": "0.41.5",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.3.0",
21
- "@lvce-editor/extension-host-helper-process": "0.41.3",
22
- "@lvce-editor/ipc": "^12.0.0",
23
- "@lvce-editor/json-rpc": "^5.3.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.41.5",
22
+ "@lvce-editor/ipc": "^12.2.0",
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",
26
26
  "@lvce-editor/verror": "^1.6.0",
@@ -32,7 +32,7 @@
32
32
  "@lvce-editor/embeds-process": "^1.6.0",
33
33
  "@lvce-editor/network-process": "^2.1.0",
34
34
  "@lvce-editor/preload": "^1.4.0",
35
- "@lvce-editor/preview-process": "^4.0.0",
35
+ "@lvce-editor/preview-process": "^4.2.0",
36
36
  "@lvce-editor/pty-host": "^3.0.0",
37
37
  "@lvce-editor/search-process": "^4.0.1",
38
38
  "@lvce-editor/typescript-compile-process": "^2.1.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', '8478ae6', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'ac81b3b', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -1,6 +1,7 @@
1
1
  // TODO rename file to languageConfiguration.js
2
2
  import { join } from 'node:path';
3
3
  import * as GetRemoteUrl from '../GetRemoteUrl/GetRemoteUrl.js';
4
+ import * as GetWebViewsFromEXtensions from '../GetWebViewsFromExtensions/GetWebViewsFromExtensions.js';
4
5
  import * as JsonFile from '../JsonFile/JsonFile.js';
5
6
  import { VError } from '../VError/VError.js';
6
7
  import * as ExtensionManagement from './ExtensionManagement.js';
@@ -38,26 +39,9 @@ export const getLanguages = async () => {
38
39
  const languages = getLanguagesFromExtensions(extensions);
39
40
  return languages;
40
41
  };
41
- const getWebViewsFromExtensions = (extensions) => {
42
- const webViews = [];
43
- for (const extension of extensions) {
44
- if (extension && extension.webViews) {
45
- for (const webView of extension.webViews) {
46
- const path = join(extension.path, webView.path);
47
- const remotePath = GetRemoteUrl.getRemoteUrl(path);
48
- webViews.push({
49
- ...webView,
50
- path,
51
- remotePath,
52
- });
53
- }
54
- }
55
- }
56
- return webViews;
57
- };
58
42
  export const getWebViews = async () => {
59
43
  const extensions = await ExtensionManagement.getExtensions();
60
- const webViews = getWebViewsFromExtensions(extensions);
44
+ const webViews = GetWebViewsFromEXtensions.getWebViewsFromExtensions(extensions);
61
45
  return webViews;
62
46
  };
63
47
  const getLanguageConfigurationPathFromExtensions = (extensions, languageId) => {
@@ -0,0 +1,22 @@
1
+ import { join } from 'node:path';
2
+ import * as GetRemoteUrl from '../GetRemoteUrl/GetRemoteUrl.js';
3
+ export const getWebViewsFromExtensions = (extensions) => {
4
+ const webViews = [];
5
+ for (const extension of extensions) {
6
+ if (extension && extension.webViews) {
7
+ for (const webView of extension.webViews) {
8
+ let path = extension.path;
9
+ if (webView && webView.path) {
10
+ path = join(extension.path, webView.path);
11
+ }
12
+ const remotePath = GetRemoteUrl.getRemoteUrl(path);
13
+ webViews.push({
14
+ ...webView,
15
+ path,
16
+ remotePath,
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return webViews;
22
+ };
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.41.3';
45
- export const commit = '8478ae6';
46
- export const date = '2024-12-19T22:35:20.000Z';
44
+ export const version = '0.41.5';
45
+ export const commit = 'ac81b3b';
46
+ export const date = '2024-12-21T22:39:26.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };