@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
|
@@ -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', '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.
|
|
699
|
-
|
|
701
|
+
const html = await FileSystem.readFile(`${root}/dist/index.html`)
|
|
702
|
+
const title = `${testFile} - Lvce Editor`.replace(testIdCharactersToEscapeRegex, (character) => {
|
|
703
|
+
const entities = {
|
|
704
|
+
"'": ''',
|
|
705
|
+
'"': '"',
|
|
706
|
+
'&': '&',
|
|
707
|
+
'<': '<',
|
|
708
|
+
'>': '>',
|
|
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.
|
|
59
|
+
export const version = '0.126.12'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = '7528a78'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-10-
|
|
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', '
|
|
5
|
+
return join(Root.root, 'static', '7528a78', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|