@lvce-editor/shared-process 0.25.4 → 0.25.5

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.25.4",
3
+ "version": "0.25.5",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.25.4",
21
+ "@lvce-editor/extension-host-helper-process": "0.25.5",
22
22
  "@lvce-editor/ipc": "^3.1.0",
23
23
  "@lvce-editor/json-rpc": "^1.3.0",
24
24
  "@lvce-editor/jsonc-parser": "^1.1.1",
25
25
  "@lvce-editor/pretty-error": "^1.5.0",
26
- "@lvce-editor/pty-host": "0.25.4",
26
+ "@lvce-editor/pty-host": "0.25.5",
27
27
  "@lvce-editor/verror": "^1.2.0",
28
28
  "@lvce-editor/web-socket-server": "^1.1.0",
29
29
  "debug": "^4.3.4",
@@ -6,7 +6,12 @@ export const getTypeFromUrl = (url) => {
6
6
  }
7
7
  const questionMarkIndex = url.indexOf('?')
8
8
  if (questionMarkIndex === -1) {
9
- throw new VError(`missing type parameter`)
9
+ const slashIndex = url.lastIndexOf('/')
10
+ const rest = url.slice(slashIndex + 1)
11
+ if (!rest) {
12
+ throw new Error('missing type parameter')
13
+ }
14
+ return rest
10
15
  }
11
16
  const rest = url.slice(questionMarkIndex)
12
17
  const searchParams = new URLSearchParams(rest)
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.25.4'
64
+ export const version = '0.25.5'
65
65
 
66
- export const commit = 'c282a4e'
66
+ export const commit = '662e03b'
67
67
 
68
- export const date = '2024-04-05T16:05:54.000Z'
68
+ export const date = '2024-04-05T22:04:26.000Z'
69
69
 
70
70
  export const getVersion = () => {
71
71
  return version