@lvce-editor/shared-process 0.85.2 → 0.85.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 +2 -2
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/ElectronWindow/ElectronWindow.js +1 -1
- package/src/parts/ExportStatic/ExportStatic.js +4 -9
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.6.0",
|
|
21
21
|
"@lvce-editor/auth-process": "1.6.0",
|
|
22
|
-
"@lvce-editor/extension-host-helper-process": "0.85.
|
|
22
|
+
"@lvce-editor/extension-host-helper-process": "0.85.3",
|
|
23
23
|
"@lvce-editor/ipc": "16.1.0",
|
|
24
24
|
"@lvce-editor/json-rpc": "8.1.0",
|
|
25
25
|
"@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', 'bbc1fd1', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -11,7 +11,7 @@ export const minimize = (windowId) => {
|
|
|
11
11
|
};
|
|
12
12
|
export const toggleDevtools = (windowId) => {
|
|
13
13
|
Assert.number(windowId);
|
|
14
|
-
return ParentIpc.invoke('ElectronWindow.
|
|
14
|
+
return ParentIpc.invoke('ElectronWindow.executeWindowFunction', windowId, 'toggleDevtools');
|
|
15
15
|
};
|
|
16
16
|
export const maximize = (windowId) => {
|
|
17
17
|
Assert.number(windowId);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
+
import { stripTypeScriptTypes } from 'node:module';
|
|
2
3
|
import { isAbsolute, join } from 'node:path';
|
|
3
4
|
import * as FileSystem from '../FileSystem/FileSystem.js';
|
|
4
5
|
import * as GetContentSecurityPolicy from '../GetContentSecurityPolicy/GetContentSecurityPolicy.js';
|
|
@@ -413,21 +414,15 @@ const isTestFile = (file) => {
|
|
|
413
414
|
const getTestFiles = (testFilesRaw) => {
|
|
414
415
|
return testFilesRaw.filter(isTestFile).map(getName);
|
|
415
416
|
};
|
|
416
|
-
const transpileFile = (
|
|
417
|
-
|
|
418
|
-
compilerOptions: {
|
|
419
|
-
target: 'esnext',
|
|
420
|
-
},
|
|
421
|
-
});
|
|
422
|
-
return result.outputText;
|
|
417
|
+
export const transpileFile = (content) => {
|
|
418
|
+
return stripTypeScriptTypes(content);
|
|
423
419
|
};
|
|
424
420
|
const transpileFiles = async (folder) => {
|
|
425
|
-
const typescript = await import('typescript');
|
|
426
421
|
const dirents = await readdir(folder);
|
|
427
422
|
for (const dirent of dirents) {
|
|
428
423
|
if (dirent.endsWith('.ts')) {
|
|
429
424
|
const content = await readFile(join(folder, dirent), 'utf-8');
|
|
430
|
-
const js = transpileFile(
|
|
425
|
+
const js = transpileFile(content);
|
|
431
426
|
await writeFile(join(folder, dirent.slice(0, -2) + 'js'), js);
|
|
432
427
|
}
|
|
433
428
|
}
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.85.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2026-07-
|
|
44
|
+
export const version = '0.85.3';
|
|
45
|
+
export const commit = 'bbc1fd1';
|
|
46
|
+
export const date = '2026-07-09T05:12:11.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import * as Root from '../Root/Root.js';
|
|
3
3
|
export const getPreloadUrl = () => {
|
|
4
|
-
return join(Root.root, 'static', '
|
|
4
|
+
return join(Root.root, 'static', 'bbc1fd1', 'packages', 'preload', 'dist', 'index.js');
|
|
5
5
|
};
|