@lvce-editor/main-process 1.4.0 → 1.6.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.
@@ -3755,37 +3755,7 @@ const getPortTuple = () => {
3755
3755
  };
3756
3756
  };
3757
3757
 
3758
- const join = (...paths) => {
3759
- return NodePath.join(...paths);
3760
- };
3761
-
3762
- const __dirname = dirname(fileURLToPath(import.meta.url));
3763
- const root = process.env.LVCE_ROOT || join(__dirname, '../../../../..');
3764
-
3765
- const {
3766
- env: env$1,
3767
- platform
3768
- } = process;
3769
- const isLinux = platform === 'linux';
3770
- const isProduction = false;
3771
- const homeDirectory = homedir();
3772
- const applicationName = 'lvce-oss';
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') : '';
3777
- const scheme = 'lvce-oss';
3778
- const getSessionId = () => {
3779
- return process.env.SESSION_ID || `persist:${scheme}`;
3780
- };
3781
- const getSharedProcessPath = () => {
3782
- if (process.env.LVCE_SHARED_PROCESS_PATH) {
3783
- return process.env.LVCE_SHARED_PROCESS_PATH;
3784
- }
3785
- return join(root, 'packages', 'shared-process', 'src', 'sharedProcessMain.ts');
3786
- };
3787
-
3788
- const getSharedProcessArgv = () => {
3758
+ const getSharedProcessArgv = isProduction => {
3789
3759
  return [];
3790
3760
  };
3791
3761
 
@@ -5187,6 +5157,36 @@ const DidStartSharedProcess = 'code/didStartSharedProcess';
5187
5157
  const WillCreateCodeWindow = 'code/willCreateCodeWindow';
5188
5158
  const DidCreateCodeWindow = 'code/didCreateCodeWindow';
5189
5159
 
5160
+ const join = (...paths) => {
5161
+ return NodePath.join(...paths);
5162
+ };
5163
+
5164
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5165
+ const root = process.env.LVCE_ROOT || join(__dirname, '../../../../..');
5166
+
5167
+ const {
5168
+ env: env$1,
5169
+ platform
5170
+ } = process;
5171
+ const isLinux = platform === 'linux';
5172
+ const isProduction = false;
5173
+ const homeDirectory = homedir();
5174
+ const applicationName = 'lvce-oss';
5175
+ const xdgCache = env$1.XDG_CACHE_HOME || (homeDirectory ? join(homeDirectory, '.cache') : undefined);
5176
+ const xdgData = env$1.XDG_DATA_HOME || (homeDirectory ? join(homeDirectory, '.local', 'share') : undefined);
5177
+ join(xdgData || tmpdir(), applicationName);
5178
+ const chromeUserDataPath = xdgCache ? join(xdgCache, applicationName, 'userdata') : '';
5179
+ const scheme = 'lvce-oss';
5180
+ const getSessionId = () => {
5181
+ return process.env.SESSION_ID || `persist:${scheme}`;
5182
+ };
5183
+ const getSharedProcessPath = () => {
5184
+ if (process.env.LVCE_SHARED_PROCESS_PATH) {
5185
+ return process.env.LVCE_SHARED_PROCESS_PATH;
5186
+ }
5187
+ return join(root, 'packages', 'shared-process', 'src', 'sharedProcessMain.ts');
5188
+ };
5189
+
5190
5190
  const state$6 = {
5191
5191
  /**
5192
5192
  * @type{any|undefined}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lvce-editor",
@@ -15,7 +15,7 @@
15
15
  "type": "module",
16
16
  "main": "dist/mainProcessMain.js",
17
17
  "dependencies": {
18
- "electron": "35.0.2"
18
+ "electron": "35.0.3"
19
19
  },
20
20
  "engines": {
21
21
  "node": ">=22"