@lvce-editor/shared-process 0.126.11 → 0.126.12

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.126.11",
3
+ "version": "0.126.12",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -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', '49446cf', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '7528a78', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -674,6 +674,9 @@ export const createFilemapsPerFixture = async (fixturesPath) => {
674
674
  )
675
675
  }
676
676
 
677
+ const htmlTitleRegex = /<title>[\s\S]*?<\/title>/
678
+ const testIdCharactersToEscapeRegex = /[&<>"']/g
679
+
677
680
  const addTestFiles = async ({ commitHash, pathPrefix, root, testPath } ) => {
678
681
  const testRoot = isAbsolute(testPath) ? testPath : join(root, testPath)
679
682
  await FileSystem.copy(`${testRoot}/src`, `${root}/dist/${commitHash}/packages/extension-host-worker-tests/src`)
@@ -695,8 +698,20 @@ const addTestFiles = async ({ commitHash, pathPrefix, root, testPath } ) =>
695
698
  await FileSystem.copyFile(`${root}/dist/index.html`, `${hashTestsPath}/_all.html`)
696
699
  await FileSystem.copyFile(`${root}/dist/index.html`, `${rootTestsPath}/_all.html`)
697
700
  for (const testFile of testFiles) {
698
- await FileSystem.copyFile(`${root}/dist/index.html`, `${hashTestsPath}/${testFile}.html`)
699
- await FileSystem.copyFile(`${root}/dist/index.html`, `${rootTestsPath}/${testFile}.html`)
701
+ const html = await FileSystem.readFile(`${root}/dist/index.html`)
702
+ const title = `${testFile} - Lvce Editor`.replace(testIdCharactersToEscapeRegex, (character) => {
703
+ const entities = {
704
+ "'": '&#39;',
705
+ '"': '&quot;',
706
+ '&': '&amp;',
707
+ '<': '&lt;',
708
+ '>': '&gt;',
709
+ }
710
+ return entities[character]
711
+ })
712
+ const testHtml = html.replace(htmlTitleRegex, `<title>${title}</title>`)
713
+ await FileSystem.writeFile(`${hashTestsPath}/${testFile}.html`, testHtml)
714
+ await FileSystem.writeFile(`${rootTestsPath}/${testFile}.html`, testHtml)
700
715
  }
701
716
  const testOverviewHtml = generateTestOverviewHtml(testFiles)
702
717
  await FileSystem.writeFile(`${hashTestsPath}/index.html`, testOverviewHtml)
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.126.11'
59
+ export const version = '0.126.12'
60
60
 
61
- export const commit = '49446cf'
61
+ export const commit = '7528a78'
62
62
 
63
- export const date = '2026-10-27T17:34:05.000Z'
63
+ export const date = '2026-10-28T00:52:35.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', '49446cf', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '7528a78', 'packages', 'preload', 'dist', 'index.js')
6
6
  }