@lvce-editor/shared-process 0.42.3 → 0.42.4

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.42.3",
3
+ "version": "0.42.4",
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.42.3",
22
- "@lvce-editor/ipc": "13.0.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.42.4",
22
+ "@lvce-editor/ipc": "13.6.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",
@@ -30,12 +30,12 @@
30
30
  },
31
31
  "optionalDependencies": {
32
32
  "@lvce-editor/embeds-process": "1.6.0",
33
- "@lvce-editor/network-process": "2.1.0",
33
+ "@lvce-editor/network-process": "2.2.0",
34
34
  "@lvce-editor/preload": "1.4.0",
35
- "@lvce-editor/preview-process": "7.13.0",
36
- "@lvce-editor/pty-host": "3.0.0",
37
- "@lvce-editor/search-process": "4.0.1",
38
- "@lvce-editor/typescript-compile-process": "2.1.0",
35
+ "@lvce-editor/preview-process": "7.17.0",
36
+ "@lvce-editor/pty-host": "3.1.0",
37
+ "@lvce-editor/search-process": "4.1.0",
38
+ "@lvce-editor/typescript-compile-process": "2.2.0",
39
39
  "open": "^10.1.0",
40
40
  "tail": "^2.2.6",
41
41
  "tmp-promise": "^3.0.3",
@@ -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', '22c7835', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '5eb472c', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -287,6 +287,7 @@ export const getModuleId = (commandId) => {
287
287
  case 'WebViewServer.setHandler':
288
288
  case 'WebViewServer.registerProtocol':
289
289
  case 'WebViewServer.setInfo':
290
+ case 'WebViewServer.setInfo2':
290
291
  return ModuleId.WebViewServer;
291
292
  case 'GetExtensions.getExtensions':
292
293
  return ModuleId.GetExtensions;
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.42.3';
45
- export const commit = '22c7835';
46
- export const date = '2024-12-29T11:21:33.000Z';
44
+ export const version = '0.42.4';
45
+ export const commit = '5eb472c';
46
+ export const date = '2024-12-30T10:33:16.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -6,4 +6,5 @@ export const Commands = {
6
6
  setHandler: WebViewServer.setHandler,
7
7
  registerProtocol: WebViewServer.registerProtocol,
8
8
  setInfo: WebViewServer.setInfo,
9
+ setInfo2: WebViewServer.setInfo2,
9
10
  };
@@ -1,8 +1,8 @@
1
1
  import * as PreviewProcess from '../PreviewProcess/PreviewProcess.js';
2
2
  import * as RegisterWebViewProtocol from '../RegisterWebViewProtocol/RegisterWebViewProtocol.js';
3
3
  export const registerProtocol = RegisterWebViewProtocol.registerWebViewProtocol;
4
- export const create = async (previewId) => {
5
- await PreviewProcess.invoke('WebViewServer.create', previewId);
4
+ export const create = async (...args) => {
5
+ await PreviewProcess.invoke('WebViewServer.create', ...args);
6
6
  };
7
7
  export const start = async (previewId, port) => {
8
8
  await PreviewProcess.invoke('WebViewServer.start', previewId, port);
@@ -13,3 +13,6 @@ export const setHandler = async (previewId, frameAncestors, webViewRoot, content
13
13
  export const setInfo = async (...args) => {
14
14
  await PreviewProcess.invoke('WebViewServer.setInfo', ...args);
15
15
  };
16
+ export const setInfo2 = async (...args) => {
17
+ await PreviewProcess.invoke('WebViewServer.setInfo2', ...args);
18
+ };