@lvce-editor/shared-process 0.29.6 → 0.29.7

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.29.6",
3
+ "version": "0.29.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,19 +18,19 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.29.6",
21
+ "@lvce-editor/extension-host-helper-process": "0.29.7",
22
22
  "@lvce-editor/ipc": "^9.1.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
26
  "@lvce-editor/verror": "^1.3.0",
27
- "debug": "^4.3.4",
27
+ "debug": "^4.3.5",
28
28
  "is-object": "^1.0.2",
29
29
  "xdg-basedir": "^5.1.0"
30
30
  },
31
31
  "optionalDependencies": {
32
32
  "@lvce-editor/network-process": "^1.2.0",
33
- "@lvce-editor/preload": "^1.2.0",
33
+ "@lvce-editor/preload": "^1.3.0",
34
34
  "@lvce-editor/search-process": "^1.2.0",
35
35
  "@lvce-editor/pty-host": "^1.2.0",
36
36
  "@lvce-editor/embeds-process": "^1.5.0",
@@ -38,6 +38,6 @@
38
38
  "tail": "^2.2.6",
39
39
  "tmp-promise": "^3.0.3",
40
40
  "trash": "^8.1.1",
41
- "@lvce-editor/typescript-compile-process": "0.29.6"
41
+ "@lvce-editor/typescript-compile-process": "0.29.7"
42
42
  }
43
43
  }
@@ -0,0 +1,3 @@
1
+ import * as IsProduction from '../IsProduction/IsProduction.js';
2
+ import * as V8CacheOptions from '../V8CacheOptions/V8CacheOptions.js';
3
+ export const browserWindowV8CacheOptions = IsProduction.isProduction ? V8CacheOptions.BypassHeatCheck : V8CacheOptions.None;
@@ -1,3 +1,4 @@
1
+ import * as BrowserWindowV8CacheOptions from '../BrowserWindowV8CacheOptions/BrowserWindowV8CacheOptions.js';
1
2
  import * as GetIcon from '../GetIcon/GetIcon.js';
2
3
  import * as PreloadUrl from '../PreloadUrl/PreloadUrl.js';
3
4
  /**
@@ -20,9 +21,9 @@ export const getBrowserWindowOptions = ({ x, y, width, height, titleBarStyle, ti
20
21
  spellcheck: false,
21
22
  sandbox: true,
22
23
  contextIsolation: true,
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
+ v8CacheOptions: BrowserWindowV8CacheOptions.browserWindowV8CacheOptions,
24
25
  preload: PreloadUrl.preloadUrl,
25
- additionalArguments: ['--lvce-window-kind'],
26
+ additionalArguments: [],
26
27
  },
27
28
  backgroundColor: background,
28
29
  show: false,
@@ -1,12 +1,14 @@
1
+ import * as IsLinux from '../IsLinux/IsLinux.js';
2
+ import * as IsWindows from '../IsWindows/IsWindows.js';
1
3
  import * as Path from '../Path/Path.js';
2
4
  import * as Platform from '../Platform/Platform.js';
3
5
  import * as Root from '../Root/Root.js';
4
6
  export const getIcon = () => {
5
- if (!Platform.isProduction && Platform.isLinux) {
6
- return Path.join(Root.root, 'build', 'files', 'icon.png');
7
+ if (!Platform.isProduction && IsLinux.isLinux) {
8
+ return Path.join(Root.root, 'packages', 'build', 'files', 'icon.png');
7
9
  }
8
- if (!Platform.isProduction && Platform.isWindows) {
9
- return Path.join(Root.root, 'build', 'files', 'icon.png');
10
+ if (!Platform.isProduction && IsWindows.isWindows) {
11
+ return Path.join(Root.root, 'packages', 'build', 'files', 'icon.png');
10
12
  }
11
13
  if (Platform.isProduction && Platform.isArchLinux) {
12
14
  return Path.join(Root.root, 'static', 'icons', 'icon.png');
@@ -0,0 +1,2 @@
1
+ import * as Platform from '../Platform/Platform.js';
2
+ export const isLinux = Platform.isLinux;
@@ -0,0 +1,2 @@
1
+ import * as Platform from '../Platform/Platform.js';
2
+ export const isProduction = Platform.isProduction;
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.29.6';
45
- export const commit = '3103eaf';
46
- export const date = '2024-05-20T07:02:57.000Z';
44
+ export const version = '0.29.7';
45
+ export const commit = '77ff834';
46
+ export const date = '2024-05-31T16:58:06.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -0,0 +1,2 @@
1
+ export const BypassHeatCheck = 'bypassHeatCheck';
2
+ export const None = 'none';