@lvce-editor/shared-process 0.26.3 → 0.26.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.26.3",
3
+ "version": "0.26.4",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.26.3",
22
- "@lvce-editor/ipc": "^7.4.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.26.4",
22
+ "@lvce-editor/ipc": "^8.0.0",
23
23
  "@lvce-editor/json-rpc": "^1.3.0",
24
24
  "@lvce-editor/jsonc-parser": "^1.2.0",
25
25
  "@lvce-editor/pretty-error": "^1.5.0",
26
- "@lvce-editor/pty-host": "0.26.3",
26
+ "@lvce-editor/pty-host": "0.26.4",
27
27
  "@lvce-editor/verror": "^1.2.0",
28
28
  "@lvce-editor/web-socket-server": "^1.1.0",
29
29
  "debug": "^4.3.4",
@@ -2,12 +2,12 @@ import { writeFile } from 'node:fs/promises';
2
2
  import { tmpdir } from 'node:os';
3
3
  import { join } from 'node:path';
4
4
  import * as ColorTheme from '../ColorTheme/ColorTheme.js';
5
- import * as GetPreloadUrl from '../GetPreloadUrl/GetPreloadUrl.js';
5
+ import * as PreloadUrl from '../PreloadUrl/PreloadUrl.js';
6
6
  import * as GetProcessExplorerUrl from '../GetProcessExplorerUrl/GetProcessExplorerUrl.js';
7
7
  import * as ParentIpc from '../ParentIpc/ParentIpc.js';
8
8
  const getOptions = async (colorThemeJson) => {
9
9
  const backgroundColor = colorThemeJson.MainBackground;
10
- const preload = GetPreloadUrl.getPreloadUrl();
10
+ const preload = PreloadUrl.preloadUrl;
11
11
  const options = {
12
12
  width: 800,
13
13
  height: 500,
@@ -1,5 +1,5 @@
1
1
  import * as GetIcon from '../GetIcon/GetIcon.js';
2
- import * as GetPreloadUrl from '../GetPreloadUrl/GetPreloadUrl.js';
2
+ import * as PreloadUrl from '../PreloadUrl/PreloadUrl.js';
3
3
  /**
4
4
  *
5
5
  * @returns {any}
@@ -21,7 +21,7 @@ export const getBrowserWindowOptions = ({ x, y, width, height, titleBarStyle, ti
21
21
  sandbox: true,
22
22
  contextIsolation: true,
23
23
  v8CacheOptions: 'bypassHeatCheck', // TODO this is what vscode uses, but it doesn't work properly in electron https://github.com/electron/electron/issues/27075
24
- preload: GetPreloadUrl.getPreloadUrl(),
24
+ preload: PreloadUrl.preloadUrl,
25
25
  additionalArguments: ['--lvce-window-kind'],
26
26
  },
27
27
  backgroundColor: background,
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.26.3';
45
- export const commit = '68c671e';
46
- export const date = '2024-04-26T16:31:36.000Z';
44
+ export const version = '0.26.4';
45
+ export const commit = '59e174c';
46
+ export const date = '2024-04-28T08:40:44.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -0,0 +1,3 @@
1
+ import { join } from 'node:path';
2
+ import * as Root from '../Root/Root.js';
3
+ export const preloadUrl = join(Root.root, 'packages', 'preload', 'src', 'index.js');
@@ -1,5 +0,0 @@
1
- import { join } from 'node:path';
2
- import * as Root from '../Root/Root.js';
3
- export const getPreloadUrl = () => {
4
- return join(Root.root, 'packages', 'main-process', 'src', 'preload.js');
5
- };