@lvce-editor/shared-process 0.97.1 → 0.97.2
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/GetElectronFileResponse/GetElectronFileResponse.ipc.js +1 -0
- package/src/parts/GetElectronFileResponse/GetElectronFileResponse.js +7 -0
- package/src/parts/ModuleMap/ModuleMap.js +1 -0
- 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.97.
|
|
3
|
+
"version": "0.97.2",
|
|
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.9.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.97.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.97.2",
|
|
22
22
|
"@lvce-editor/ipc": "16.10.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "8.6.0",
|
|
24
24
|
"@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', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '52e031d', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { pathToFileURL } from 'node:url'
|
|
1
2
|
import * as GetContentResponse from '../GetContentResponse/GetContentResponse.js'
|
|
2
3
|
import * as GetElectronFileResponseAbsolutePath from '../GetElectronFileResponseAbsolutePath/GetElectronFileResponseAbsolutePath.js'
|
|
3
4
|
import * as GetElectronFileResponseContent from '../GetElectronFileResponseContent/GetElectronFileResponseContent.js'
|
|
@@ -13,6 +14,12 @@ import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js'
|
|
|
13
14
|
import * as IsTypeScriptSyntaxError from '../IsTypeScriptSyntaxError/IsTypeScriptSyntaxError.js'
|
|
14
15
|
import * as Logger from '../Logger/Logger.js'
|
|
15
16
|
|
|
17
|
+
export const resolveElectronFileUri = (url) => {
|
|
18
|
+
const pathName = GetElectronFileResponseRelativePath.getElectronFileResponseRelativePath(url)
|
|
19
|
+
const absolutePath = GetElectronFileResponseAbsolutePath.getElectronFileResponseAbsolutePath(pathName)
|
|
20
|
+
return pathToFileURL(absolutePath).toString()
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
// TODO maybe handle app responses and webview responses separately
|
|
17
24
|
// maybe send webview requests directly to preview process
|
|
18
25
|
export const getElectronFileResponse = async (url, request) => {
|
|
@@ -158,6 +158,7 @@ export const getModuleId = (commandId) => {
|
|
|
158
158
|
case 'FirefoxCookieImport.importCookies':
|
|
159
159
|
return ModuleId.FirefoxCookieImport
|
|
160
160
|
case 'GetElectronFileResponse.getElectronFileResponse':
|
|
161
|
+
case 'GetElectronFileResponse.resolveElectronFileUri':
|
|
161
162
|
return ModuleId.GetElectronFileResponse
|
|
162
163
|
case 'GetExtensions.getExtensions':
|
|
163
164
|
return ModuleId.GetExtensions
|
|
@@ -61,11 +61,11 @@ export const getSetupName = () => {
|
|
|
61
61
|
return 'Lvce-Setup'
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export const version = '0.97.
|
|
64
|
+
export const version = '0.97.2'
|
|
65
65
|
|
|
66
|
-
export const commit = '
|
|
66
|
+
export const commit = '52e031d'
|
|
67
67
|
|
|
68
|
-
export const date = '2026-08-
|
|
68
|
+
export const date = '2026-08-03T09:17:07.000Z'
|
|
69
69
|
|
|
70
70
|
export const getVersion = () => {
|
|
71
71
|
return version
|
|
@@ -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', '52e031d', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|