@lvce-editor/shared-process 0.45.0 → 0.45.1
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.45.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.3.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.45.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.45.1",
|
|
22
22
|
"@lvce-editor/ipc": "13.7.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "5.4.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.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', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '6f7ccc8', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -12,6 +12,7 @@ import * as Platform from '../Platform/Platform.js';
|
|
|
12
12
|
import * as Trash from '../Trash/Trash.js';
|
|
13
13
|
import { VError } from '../VError/VError.js';
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
15
|
+
import { join } from 'node:path';
|
|
15
16
|
export const state = {
|
|
16
17
|
watcherMap: Object.create(null),
|
|
17
18
|
};
|
|
@@ -314,3 +315,15 @@ export const getRealUri = (pathOrUri) => {
|
|
|
314
315
|
return pathOrUri;
|
|
315
316
|
}
|
|
316
317
|
};
|
|
318
|
+
export const getFolderSize = async (uri) => {
|
|
319
|
+
let total = 0;
|
|
320
|
+
const stats = await fs.stat(uri);
|
|
321
|
+
total += stats.size;
|
|
322
|
+
if (stats.isDirectory()) {
|
|
323
|
+
const dirents = await fs.readdir(uri);
|
|
324
|
+
for (const dirent of dirents) {
|
|
325
|
+
total += await getFolderSize(join(uri, dirent));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return total;
|
|
329
|
+
};
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.45.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2025-01-
|
|
44
|
+
export const version = '0.45.1';
|
|
45
|
+
export const commit = '6f7ccc8';
|
|
46
|
+
export const date = '2025-01-19T12:42:37.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|