@lvce-editor/shared-process 0.111.17 → 0.111.19
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/FileSystem/FileSystem.ipc.js +0 -1
- package/src/parts/FileSystem/FileSystem.js +0 -5
- package/src/parts/FileSystemDisk/FileSystemDisk.ipc.js +0 -1
- package/src/parts/FileSystemDisk/FileSystemDisk.js +0 -4
- package/src/parts/ModuleMap/ModuleMap.js +0 -2
- package/src/parts/Platform/Platform.js +3 -8
- package/src/parts/PlatformPaths/PlatformPaths.js +1 -5
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
- package/src/parts/ResolveRoot/ResolveRoot.js +7 -9
- package/src/parts/Workspace/Workspace.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.111.
|
|
3
|
+
"version": "0.111.19",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@lvce-editor/auth-process": "1.17.0",
|
|
34
34
|
"@lvce-editor/cookie-import-view": "0.3.2",
|
|
35
35
|
"@lvce-editor/embeds-process": "4.21.2",
|
|
36
|
-
"@lvce-editor/file-system-process": "5.16.
|
|
36
|
+
"@lvce-editor/file-system-process": "5.16.1",
|
|
37
37
|
"@lvce-editor/file-watcher-process": "4.14.0",
|
|
38
38
|
"@lvce-editor/network-process": "5.2.0",
|
|
39
39
|
"@lvce-editor/preload": "1.5.1",
|
|
@@ -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', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'a689ccd', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -22,7 +22,6 @@ export const Commands = {
|
|
|
22
22
|
createFile: FileSystem.createFile,
|
|
23
23
|
createFolder: FileSystem.createFolder,
|
|
24
24
|
ensureFile: FileSystem.ensureFile,
|
|
25
|
-
getPathSeparator: FileSystem.getPathSeparator,
|
|
26
25
|
getRealPath: FileSystem.getRealPath,
|
|
27
26
|
getRealUri: FileSystem.getRealUri,
|
|
28
27
|
mkdir: FileSystem.mkdir,
|
|
@@ -10,7 +10,6 @@ import { FileNotFoundError } from '../FileNotFoundError/FileNotFoundError.js'
|
|
|
10
10
|
import * as GetDirentType from '../GetDirentType/GetDirentType.js'
|
|
11
11
|
import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js'
|
|
12
12
|
import * as Path from '../Path/Path.js'
|
|
13
|
-
import * as Platform from '../Platform/Platform.js'
|
|
14
13
|
import * as Trash from '../Trash/Trash.js'
|
|
15
14
|
import { VError } from '../VError/VError.js'
|
|
16
15
|
|
|
@@ -246,10 +245,6 @@ export const rename = async (oldPath, newPath) => {
|
|
|
246
245
|
}
|
|
247
246
|
}
|
|
248
247
|
|
|
249
|
-
export const getPathSeparator = () => {
|
|
250
|
-
return Platform.getPathSeparator()
|
|
251
|
-
}
|
|
252
|
-
|
|
253
248
|
export const getRealPath = async (path) => {
|
|
254
249
|
try {
|
|
255
250
|
return await fs.realpath(path)
|
|
@@ -6,7 +6,6 @@ export const Commands = {
|
|
|
6
6
|
chmod: FileSystemDisk.chmod,
|
|
7
7
|
copy: FileSystemDisk.copy,
|
|
8
8
|
getFolderSize: FileSystemDisk.getFolderSize,
|
|
9
|
-
getPathSeparator: FileSystemDisk.getPathSeparator,
|
|
10
9
|
mkdir: FileSystemDisk.mkdir,
|
|
11
10
|
readDirWithFileTypes: FileSystemDisk.readDirWithFileTypes,
|
|
12
11
|
readFile: FileSystemDisk.readFile,
|
|
@@ -120,7 +120,6 @@ export const getModuleId = (commandId) => {
|
|
|
120
120
|
case 'FileSystem.createFile':
|
|
121
121
|
case 'FileSystem.createFolder':
|
|
122
122
|
case 'FileSystem.ensureFile':
|
|
123
|
-
case 'FileSystem.getPathSeparator':
|
|
124
123
|
case 'FileSystem.getRealUri':
|
|
125
124
|
case 'FileSystem.mkdir':
|
|
126
125
|
case 'FileSystem.readDirWithFileTypes':
|
|
@@ -134,7 +133,6 @@ export const getModuleId = (commandId) => {
|
|
|
134
133
|
case 'FileSystemDisk.chmod':
|
|
135
134
|
case 'FileSystemDisk.copy':
|
|
136
135
|
case 'FileSystemDisk.getFolderSize':
|
|
137
|
-
case 'FileSystemDisk.getPathSeparator':
|
|
138
136
|
case 'FileSystemDisk.mkdir':
|
|
139
137
|
case 'FileSystemDisk.readDirWithFileTypes':
|
|
140
138
|
case 'FileSystemDisk.readFile':
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { tmpdir } from 'node:os'
|
|
2
|
-
import { sep } from 'node:path'
|
|
3
2
|
import { xdgState } from 'xdg-basedir'
|
|
4
3
|
import * as Process from '../Process/Process.js'
|
|
5
4
|
|
|
@@ -23,10 +22,6 @@ export const isAppImage = false
|
|
|
23
22
|
|
|
24
23
|
export const scheme = 'lvce-oss'
|
|
25
24
|
|
|
26
|
-
export const getPathSeparator = () => {
|
|
27
|
-
return sep
|
|
28
|
-
}
|
|
29
|
-
|
|
30
25
|
export const getStateDir = () => {
|
|
31
26
|
return xdgState
|
|
32
27
|
}
|
|
@@ -61,11 +56,11 @@ export const getSetupName = () => {
|
|
|
61
56
|
return 'Lvce-Setup'
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
export const version = '0.111.
|
|
59
|
+
export const version = '0.111.19'
|
|
65
60
|
|
|
66
|
-
export const commit = '
|
|
61
|
+
export const commit = 'a689ccd'
|
|
67
62
|
|
|
68
|
-
export const date = '2026-09-
|
|
63
|
+
export const date = '2026-09-01T22:31:14.000Z'
|
|
69
64
|
|
|
70
65
|
export const getVersion = () => {
|
|
71
66
|
return version
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { homedir, tmpdir } from 'node:os'
|
|
2
|
-
import { isAbsolute, join, resolve
|
|
2
|
+
import { isAbsolute, join, resolve } from 'node:path'
|
|
3
3
|
import { pathToFileURL } from 'node:url'
|
|
4
4
|
import { xdgCache, xdgConfig, xdgData, xdgState } from 'xdg-basedir'
|
|
5
5
|
import * as GetConfigJsonPath from '../GetConfigJsonPath/GetConfigJsonPath.js'
|
|
@@ -66,10 +66,6 @@ export const getMarketplaceUrl = () => {
|
|
|
66
66
|
return env.LVCE_MARKETPLACE_URL || 'https://marketplace.22e924c84de072d4b25b.com'
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export const getPathSeparator = () => {
|
|
70
|
-
return sep
|
|
71
|
-
}
|
|
72
|
-
|
|
73
69
|
export const getStateDir = () => {
|
|
74
70
|
return xdgState
|
|
75
71
|
}
|
|
@@ -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', '
|
|
5
|
+
return join(Root.root, 'static', 'a689ccd', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|
|
@@ -8,11 +8,12 @@ import * as IsElectron from '../IsElectron/IsElectron.js'
|
|
|
8
8
|
import * as IsProduction from '../IsProduction/IsProduction.js'
|
|
9
9
|
import * as IsPromptMode from '../IsPromptMode/IsPromptMode.js'
|
|
10
10
|
import * as ParentIpc from '../MainProcess/MainProcess.js'
|
|
11
|
-
import * as Platform from '../Platform/Platform.js'
|
|
12
11
|
import * as PlatformPaths from '../PlatformPaths/PlatformPaths.js'
|
|
13
12
|
import * as Root from '../Root/Root.js'
|
|
14
13
|
import * as WorkspaceSource from '../WorkspaceSource/WorkspaceSource.js'
|
|
15
14
|
|
|
15
|
+
const pathSeparator = '/'
|
|
16
|
+
|
|
16
17
|
const getAbsolutePath = (path) => {
|
|
17
18
|
if (IsAbsolutePath.isAbsolutePath(path)) {
|
|
18
19
|
return path
|
|
@@ -32,7 +33,6 @@ const toUri = (path) => {
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -48,13 +48,11 @@ const getWindowWorkspace = (href) => {
|
|
|
48
48
|
if (url.protocol === 'file:') {
|
|
49
49
|
return {
|
|
50
50
|
path: fileURLToPath(url),
|
|
51
|
-
pathSeparator: Platform.getPathSeparator(),
|
|
52
51
|
uri: url.href,
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
return {
|
|
56
55
|
path: url.href,
|
|
57
|
-
pathSeparator: '/',
|
|
58
56
|
uri: url.href,
|
|
59
57
|
}
|
|
60
58
|
}
|
|
@@ -67,7 +65,7 @@ export const resolveRoot = async (href = '') => {
|
|
|
67
65
|
homeDir: PlatformPaths.getHomeDir(),
|
|
68
66
|
homeDirUri: toUri(PlatformPaths.getHomeDir()),
|
|
69
67
|
path: windowWorkspace.path,
|
|
70
|
-
pathSeparator
|
|
68
|
+
pathSeparator,
|
|
71
69
|
source: WorkspaceSource.SharedProcessCliArg,
|
|
72
70
|
uri: windowWorkspace.uri,
|
|
73
71
|
workspaceId: GetWorkspaceId.getWorkspaceId(windowWorkspace.uri),
|
|
@@ -82,7 +80,7 @@ export const resolveRoot = async (href = '') => {
|
|
|
82
80
|
homeDir: PlatformPaths.getHomeDir(),
|
|
83
81
|
homeDirUri: toUri(PlatformPaths.getHomeDir()),
|
|
84
82
|
path: actual,
|
|
85
|
-
pathSeparator
|
|
83
|
+
pathSeparator,
|
|
86
84
|
source: WorkspaceSource.SharedProcessCliArg,
|
|
87
85
|
uri: toUri(actual),
|
|
88
86
|
workspaceId: GetWorkspaceId.getWorkspaceId(actual),
|
|
@@ -93,7 +91,7 @@ export const resolveRoot = async (href = '') => {
|
|
|
93
91
|
homeDir: PlatformPaths.getHomeDir(),
|
|
94
92
|
homeDirUri: toUri(PlatformPaths.getHomeDir()),
|
|
95
93
|
path: last,
|
|
96
|
-
pathSeparator
|
|
94
|
+
pathSeparator,
|
|
97
95
|
source: WorkspaceSource.SharedProcessCliArg,
|
|
98
96
|
uri: toUri(last),
|
|
99
97
|
workspaceId: GetWorkspaceId.getWorkspaceId(last),
|
|
@@ -109,7 +107,7 @@ export const resolveRoot = async (href = '') => {
|
|
|
109
107
|
homeDir: PlatformPaths.getHomeDir(),
|
|
110
108
|
homeDirUri: toUri(PlatformPaths.getHomeDir()),
|
|
111
109
|
path,
|
|
112
|
-
pathSeparator
|
|
110
|
+
pathSeparator,
|
|
113
111
|
source: WorkspaceSource.SharedProcessEnv,
|
|
114
112
|
uri: path ? toUri(path) : '',
|
|
115
113
|
workspaceId: GetWorkspaceId.getWorkspaceId(path),
|
|
@@ -123,7 +121,7 @@ export const resolveRoot = async (href = '') => {
|
|
|
123
121
|
homeDir: PlatformPaths.getHomeDir(),
|
|
124
122
|
homeDirUri: toUri(PlatformPaths.getHomeDir()),
|
|
125
123
|
path: absolutePath,
|
|
126
|
-
pathSeparator
|
|
124
|
+
pathSeparator,
|
|
127
125
|
source: WorkspaceSource.SharedProcessDefault,
|
|
128
126
|
uri: toUri(absolutePath),
|
|
129
127
|
workspaceId,
|