@lvce-editor/shared-process 0.116.4 → 0.116.6

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.116.4",
3
+ "version": "0.116.6",
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', '3ccf100', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'd773431', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -41,7 +41,16 @@ export const getTestRequestResponse = async (request, indexHtmlPath) => {
41
41
  }
42
42
  return GetContentResponse.getContentResponse(content, headers)
43
43
  }
44
- if (pathName === '/tests/' || pathName === '/tests') {
44
+ if (pathName === '/tests') {
45
+ const requestUrl = request.url || ''
46
+ const queryIndex = requestUrl.indexOf('?')
47
+ const search = queryIndex === -1 ? '' : requestUrl.slice(queryIndex)
48
+ const headers = {
49
+ [HttpHeader.Location]: `/tests/${search}`,
50
+ }
51
+ return GetContentResponse.getContentResponse('', headers, HttpStatusCode.PermanentRedirect)
52
+ }
53
+ if (pathName === '/tests/') {
45
54
  const testPath = GetTestPath.getTestPath()
46
55
  const testPathSrc = join(testPath, 'src')
47
56
  const body = await CreateTestOverview.createTestOverview(testPathSrc)
@@ -9,4 +9,5 @@ export const CrossOriginOpenerPolicy = 'Cross-Origin-Opener-Policy'
9
9
  export const CrossOriginResourcePolicy = 'Cross-Origin-Resource-Policy'
10
10
  export const Etag = 'Etag'
11
11
  export const IfNotMatch = 'if-none-match'
12
+ export const Location = 'Location'
12
13
  export const Range = 'range'
@@ -6,4 +6,5 @@ export const UnprocessableContent = 422
6
6
  export const ServerError = 500
7
7
  export const NotModifed = 304
8
8
  export const MultipleChoices = 300
9
+ export const PermanentRedirect = 308
9
10
  export const RangeNotSatisfiable = 416
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.116.4'
59
+ export const version = '0.116.6'
60
60
 
61
- export const commit = '3ccf100'
61
+ export const commit = 'd773431'
62
62
 
63
- export const date = '2026-09-19T18:16:04.000Z'
63
+ export const date = '2026-09-19T19:38:12.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', '3ccf100', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', 'd773431', 'packages', 'preload', 'dist', 'index.js')
6
6
  }