@lvce-editor/shared-process 0.74.6 → 0.74.8

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.74.6",
3
+ "version": "0.74.8",
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.5.1",
21
- "@lvce-editor/extension-host-helper-process": "0.74.6",
21
+ "@lvce-editor/extension-host-helper-process": "0.74.8",
22
22
  "@lvce-editor/ipc": "15.0.0",
23
23
  "@lvce-editor/json-rpc": "8.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": "9.0.0",
26
+ "@lvce-editor/rpc-registry": "9.1.0",
27
27
  "@lvce-editor/verror": "1.7.0",
28
28
  "is-object": "^1.0.2",
29
29
  "xdg-basedir": "^5.1.0"
@@ -37,7 +37,7 @@
37
37
  "@lvce-editor/preview-process": "11.0.0",
38
38
  "@lvce-editor/pty-host": "7.1.0",
39
39
  "@lvce-editor/search-process": "13.1.0",
40
- "@lvce-editor/typescript-compile-process": "4.1.0",
40
+ "@lvce-editor/typescript-compile-process": "5.0.0",
41
41
  "open": "^11.0.0",
42
42
  "tail": "^2.2.6",
43
43
  "tmp-promise": "^3.0.3",
@@ -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', 'd2bd42d', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'c467344', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -8,6 +8,9 @@ export const getElectronFileResponseContent = async (request, absolutePath, url)
8
8
  if (ShouldTranspileTypescript.shouldTranspileTypescript(request, url)) {
9
9
  const content = await readFile(absolutePath);
10
10
  const newContent = await TranspileTypeScript.transpileTypeScript(content.toString(), useCache);
11
+ if (typeof newContent === 'string') {
12
+ return Buffer.from(newContent);
13
+ }
11
14
  const newContentString = newContent.outputText;
12
15
  const newContentBuffer = Buffer.from(newContentString);
13
16
  return newContentBuffer;
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.74.6';
45
- export const commit = 'd2bd42d';
46
- export const date = '2026-02-24T15:46:43.000Z';
44
+ export const version = '0.74.8';
45
+ export const commit = 'c467344';
46
+ export const date = '2026-02-25T00:15:14.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', 'd2bd42d', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', 'c467344', 'packages', 'preload', 'dist', 'index.js');
5
5
  };
@@ -2,7 +2,7 @@ import * as TypeScriptCompileProcess from '../TypeScriptCompileProcess/TypeScrip
2
2
  import * as TranspileTypeScriptCached from '../TranspileTypeScriptCached/TranspileTypeScriptCached.js';
3
3
  export const transpileTypeScript = (code, useCache) => {
4
4
  if (useCache) {
5
- return TranspileTypeScriptCached.transpileTypeScript(code);
5
+ return TranspileTypeScriptCached.transpileTypeScriptCached(code);
6
6
  }
7
- return TypeScriptCompileProcess.invoke('TranspileTypeScript.transpileTypeScript', code);
7
+ return TypeScriptCompileProcess.invoke('TranspileTypeScript.transpileTypeScript2', code);
8
8
  };
@@ -4,7 +4,7 @@ import { dirname, join } from 'node:path';
4
4
  import * as Hash from '../Hash/Hash.js';
5
5
  import * as TypeScriptCompileCachePath from '../TypeScriptCompileCachePath/TypeScriptCompileCachePath.js';
6
6
  import * as TypeScriptCompileProcess from '../TypeScriptCompileProcess/TypeScriptCompileProcess.js';
7
- export const transpileTypeScript = async (code) => {
7
+ export const transpileTypeScriptCached = async (code) => {
8
8
  const hash = Hash.fromString(code);
9
9
  const cachePath = join(TypeScriptCompileCachePath.typescriptCompileCachePath, `${hash}.ts`);
10
10
  if (!existsSync(cachePath)) {