@lvce-editor/shared-process 0.120.11 → 0.120.13

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.120.11",
3
+ "version": "0.120.13",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -6,13 +6,13 @@ import * as Preferences from '../Preferences/Preferences.js'
6
6
 
7
7
  const configElementPattern = /(<script\b[^>]*\bid=["']Config["'][^>]*>)([\s\S]*?)(<\/script>)/i
8
8
 
9
- export const addCustomPathsToIndexHtml = async (content) => {
9
+ export const addCustomPathsToIndexHtml = async (content, runtimeConfig = {}) => {
10
10
  let preferences = {}
11
11
  if (!Platform.isProduction) {
12
12
  preferences = ApplyCustomWorkerPathCliOverride.applyCustomWorkerPathCliOverride(await Preferences.getUserPreferences())
13
13
  }
14
14
  const linkedWorkerPreferences = await LinkedWorkerPreferences.getLinkedWorkerPreferences()
15
- const config = GetCustomPathsConfig.getCustomPathsConfig({ ...preferences, ...linkedWorkerPreferences })
15
+ const config = { ...GetCustomPathsConfig.getCustomPathsConfig({ ...preferences, ...linkedWorkerPreferences }), ...runtimeConfig }
16
16
  if (Object.keys(config).length === 0) {
17
17
  return content
18
18
  }
@@ -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', '914c803', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '01e13d3', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -37,10 +37,10 @@ export const getElectronFileResponseContent = async (request, absolutePath, url,
37
37
  if (!Platform.isProduction && url === `${Platform.scheme}://-/`) {
38
38
  // @ts-ignore
39
39
  content = content.toString().replace(' <link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />\n', '')
40
- content = await AddCustomPathsToIndexHtml.addCustomPathsToIndexHtml(content)
40
+ content = await AddCustomPathsToIndexHtml.addCustomPathsToIndexHtml(content, { platform: 'electron' })
41
41
  }
42
42
  if (url === '/') {
43
- content = await AddCustomPathsToIndexHtml.addCustomPathsToIndexHtml(content)
43
+ content = await AddCustomPathsToIndexHtml.addCustomPathsToIndexHtml(content, { platform: 'electron' })
44
44
  }
45
45
  if (typeof content === 'string') {
46
46
  content = Buffer.from(content)
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.120.11'
59
+ export const version = '0.120.13'
60
60
 
61
- export const commit = '914c803'
61
+ export const commit = '01e13d3'
62
62
 
63
- export const date = '2026-10-05T17:25:32.000Z'
63
+ export const date = '2026-10-05T19:26:56.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  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', '914c803', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '01e13d3', 'packages', 'preload', 'dist', 'index.js')
6
6
  }