@lvce-editor/shared-process 0.91.25 → 0.91.27

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.91.25",
3
+ "version": "0.91.27",
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.7.0",
21
21
  "@lvce-editor/auth-process": "1.10.0",
22
- "@lvce-editor/extension-host-helper-process": "0.91.25",
22
+ "@lvce-editor/extension-host-helper-process": "0.91.27",
23
23
  "@lvce-editor/ipc": "16.4.0",
24
24
  "@lvce-editor/json-rpc": "8.3.0",
25
25
  "@lvce-editor/jsonc-parser": "1.5.0",
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '48ec708', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '1019076', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -0,0 +1,19 @@
1
+ import { pathToFileURL } from 'node:url'
2
+ import * as Path from '../Path/Path.js'
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ export const getConfigJsonPath = ({ getStaticPath, isBuiltServer, isProduction, root } ) => {
12
+ if (!isProduction) {
13
+ return pathToFileURL(Path.join(root, 'static', 'config.json')).toString()
14
+ }
15
+ if (isBuiltServer) {
16
+ return pathToFileURL(Path.join(getStaticPath(), '..', 'config.json')).toString()
17
+ }
18
+ return pathToFileURL(Path.join(root, 'config.json')).toString()
19
+ }
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.91.25'
64
+ export const version = '0.91.27'
65
65
 
66
- export const commit = '48ec708'
66
+ export const commit = '1019076'
67
67
 
68
- export const date = '2026-07-19T15:06:34.000Z'
68
+ export const date = '2026-07-19T16:24:26.000Z'
69
69
 
70
70
  export const getVersion = () => {
71
71
  return version
@@ -2,11 +2,14 @@ import { homedir, tmpdir } from 'node:os'
2
2
  import { isAbsolute, join, resolve, sep } from 'node:path'
3
3
  import { pathToFileURL } from 'node:url'
4
4
  import { xdgCache, xdgConfig, xdgData, xdgState } from 'xdg-basedir'
5
+ import * as GetConfigJsonPath from '../GetConfigJsonPath/GetConfigJsonPath.js'
5
6
  import * as GetResolvedTestPath from '../GetResolvedTestPath/GetResolvedTestPath.js'
7
+ import * as IsBuiltServer from '../IsBuiltServer/IsBuiltServer.js'
6
8
  import * as Path from '../Path/Path.js'
7
9
  import * as Platform from '../Platform/Platform.js'
8
10
  import * as Process from '../Process/Process.js'
9
11
  import * as Root from '../Root/Root.js'
12
+ import * as StaticPath from '../StaticPath/StaticPath.js'
10
13
 
11
14
  const { env } = process
12
15
 
@@ -146,10 +149,12 @@ export const getConfigDir = () => {
146
149
  }
147
150
 
148
151
  export const getConfigJsonPath = () => {
149
- if (Platform.isProduction) {
150
- return pathToFileURL(Path.join(Root.root, 'config.json')).toString()
151
- }
152
- return pathToFileURL(Path.join(Root.root, 'static', 'config.json')).toString()
152
+ return GetConfigJsonPath.getConfigJsonPath({
153
+ getStaticPath: StaticPath.getStaticPath,
154
+ isBuiltServer: IsBuiltServer.isBuiltServer,
155
+ isProduction: Platform.isProduction,
156
+ root: Root.root,
157
+ })
153
158
  }
154
159
 
155
160
  export const getDataDir = () => {
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', '48ec708', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '1019076', 'packages', 'preload', 'dist', 'index.js')
6
6
  }