@lvce-editor/shared-process 0.67.0 → 0.67.3

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.67.0",
3
+ "version": "0.67.3",
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.4.0",
21
- "@lvce-editor/extension-host-helper-process": "0.67.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.67.3",
22
22
  "@lvce-editor/ipc": "14.6.0",
23
23
  "@lvce-editor/json-rpc": "7.0.0",
24
24
  "@lvce-editor/jsonc-parser": "1.5.0",
25
25
  "@lvce-editor/pretty-error": "2.0.0",
26
- "@lvce-editor/rpc-registry": "4.3.0",
26
+ "@lvce-editor/rpc-registry": "4.7.0",
27
27
  "@lvce-editor/verror": "1.7.0",
28
28
  "is-object": "^1.0.2",
29
29
  "xdg-basedir": "^5.1.0"
@@ -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', 'a01bf62', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '40424f5', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -1,10 +1,12 @@
1
1
  import * as childProcess from 'child_process';
2
+ import { fileURLToPath } from 'url';
2
3
  /**
3
4
  *
4
- * @param {string} command
5
+ * @param {string} uri
5
6
  * @param {string[]} args
6
7
  * @returns
7
8
  */
8
- export const exec = async (command, args) => {
9
- childProcess.execFileSync(command, args);
9
+ export const exec = async (uri, args) => {
10
+ const path = fileURLToPath(uri);
11
+ childProcess.execFileSync(path, args);
10
12
  };
@@ -8,6 +8,7 @@ export const Commands = {
8
8
  getBuiltinExtensionsPath: PlatformPaths.getBuiltinExtensionsPath,
9
9
  getCachedExtensionsPath: PlatformPaths.getCachedExtensionsPath,
10
10
  getCacheDir: PlatformPaths.getCacheDir,
11
+ getCacheUri: PlatformPaths.getCacheUri,
11
12
  getCommit: Platform.getCommit,
12
13
  getConfigDir: PlatformPaths.getConfigDir,
13
14
  getDataDir: PlatformPaths.getDataDir,
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.67.0';
45
- export const commit = 'a01bf62';
46
- export const date = '2025-11-16T20:16:00.000Z';
44
+ export const version = '0.67.3';
45
+ export const commit = '40424f5';
46
+ export const date = '2025-11-20T19:27:09.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -1,5 +1,4 @@
1
1
  import * as IsElectron from '../IsElectron/IsElectron.js';
2
- import { VError } from '../VError/VError.js';
3
2
  const getModule = () => {
4
3
  if (IsElectron.isElectron) {
5
4
  return import('../TrashElectron/TrashElectron.js');
@@ -7,11 +6,6 @@ const getModule = () => {
7
6
  return import('../TrashNode/TrashNode.js');
8
7
  };
9
8
  export const trash = async (path) => {
10
- try {
11
- const module = await getModule();
12
- await module.trash(path);
13
- }
14
- catch (error) {
15
- throw new VError(error, 'Failed to move item to trash');
16
- }
9
+ const module = await getModule();
10
+ await module.trash(path);
17
11
  };
@@ -1,4 +1,10 @@
1
+ import { VError } from '@lvce-editor/verror';
1
2
  import _trash from 'trash';
2
3
  export const trash = async (path) => {
3
- await _trash(path);
4
+ try {
5
+ await _trash(path);
6
+ }
7
+ catch (error) {
8
+ throw new VError(error, 'Failed to move item to trash');
9
+ }
4
10
  };