@lvce-editor/main-process 1.2.0 → 1.4.0

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.
@@ -5,7 +5,7 @@ import { inspect } from 'node:util';
5
5
  import { spawn } from 'node:child_process';
6
6
  import { createWriteStream, readFileSync } from 'node:fs';
7
7
  import * as NodePath from 'node:path';
8
- import { dirname, join as join$1 } from 'node:path';
8
+ import { dirname } from 'node:path';
9
9
  import require$$0 from 'tty';
10
10
  import require$$1 from 'util';
11
11
  import require$$0$1 from 'os';
@@ -3755,8 +3755,12 @@ const getPortTuple = () => {
3755
3755
  };
3756
3756
  };
3757
3757
 
3758
+ const join = (...paths) => {
3759
+ return NodePath.join(...paths);
3760
+ };
3761
+
3758
3762
  const __dirname = dirname(fileURLToPath(import.meta.url));
3759
- const root = process.env.LVCE_ROOT || join$1(__dirname, '../../../../..');
3763
+ const root = process.env.LVCE_ROOT || join(__dirname, '../../../../..');
3760
3764
 
3761
3765
  const {
3762
3766
  env: env$1,
@@ -3766,10 +3770,10 @@ const isLinux = platform === 'linux';
3766
3770
  const isProduction = false;
3767
3771
  const homeDirectory = homedir();
3768
3772
  const applicationName = 'lvce-oss';
3769
- const xdgCache = env$1.XDG_CACHE_HOME || (homeDirectory ? join$1(homeDirectory, '.cache') : undefined);
3770
- const xdgData = env$1.XDG_DATA_HOME || (homeDirectory ? join$1(homeDirectory, '.local', 'share') : undefined);
3771
- join$1(xdgData || tmpdir(), applicationName);
3772
- const chromeUserDataPath = xdgCache ? join$1(xdgCache, applicationName, 'userdata') : '';
3773
+ const xdgCache = env$1.XDG_CACHE_HOME || (homeDirectory ? join(homeDirectory, '.cache') : undefined);
3774
+ const xdgData = env$1.XDG_DATA_HOME || (homeDirectory ? join(homeDirectory, '.local', 'share') : undefined);
3775
+ join(xdgData || tmpdir(), applicationName);
3776
+ const chromeUserDataPath = xdgCache ? join(xdgCache, applicationName, 'userdata') : '';
3773
3777
  const scheme = 'lvce-oss';
3774
3778
  const getSessionId = () => {
3775
3779
  return process.env.SESSION_ID || `persist:${scheme}`;
@@ -3778,7 +3782,7 @@ const getSharedProcessPath = () => {
3778
3782
  if (process.env.LVCE_SHARED_PROCESS_PATH) {
3779
3783
  return process.env.LVCE_SHARED_PROCESS_PATH;
3780
3784
  }
3781
- return join$1(root, 'packages', 'shared-process', 'src', 'sharedProcessMain.ts');
3785
+ return join(root, 'packages', 'shared-process', 'src', 'sharedProcessMain.ts');
3782
3786
  };
3783
3787
 
3784
3788
  const getSharedProcessArgv = () => {
@@ -9041,10 +9045,6 @@ const ElectronWebContentsView_ipc = {
9041
9045
  name: name$5
9042
9046
  };
9043
9047
 
9044
- const join = (...paths) => {
9045
- return NodePath.join(...paths);
9046
- };
9047
-
9048
9048
  const webContentsViewErrorPath = join(root, 'packages', 'main-process', 'pages', 'error', 'error.html');
9049
9049
 
9050
9050
  // TODO create output channel for browser view debug logs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lvce-editor",