@lvce-editor/shared-process 0.18.7 → 0.18.8

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,15 +1,15 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.18.7",
3
+ "version": "0.18.8",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@babel/code-frame": "^7.22.13",
8
- "@lvce-editor/extension-host": "0.18.7",
9
- "@lvce-editor/extension-host-helper-process": "0.18.7",
8
+ "@lvce-editor/extension-host": "0.18.8",
9
+ "@lvce-editor/extension-host-helper-process": "0.18.8",
10
10
  "@lvce-editor/jsonc-parser": "^1.1.0",
11
11
  "@lvce-editor/pretty-error": "^1.2.0",
12
- "@lvce-editor/pty-host": "0.18.7",
12
+ "@lvce-editor/pty-host": "0.18.8",
13
13
  "@lvce-editor/verror": "^1.1.1",
14
14
  "debug": "^4.3.4",
15
15
  "execa": "^8.0.1",
@@ -107,7 +107,7 @@ const applyOverrides = async ({ root, commitHash, pathPrefix }) => {
107
107
  await replace(
108
108
  Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'),
109
109
  'platform = Remote;',
110
- 'platform = Web;',
110
+ 'platform = Web$1;',
111
111
  )
112
112
  await replace(
113
113
  Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'),
@@ -1,6 +1,4 @@
1
1
  import * as Assert from '../Assert/Assert.js'
2
- import * as Error from '../Error/Error.js'
3
- import * as ErrorCodes from '../ErrorCodes/ErrorCodes.js'
4
2
  import * as FileSystemWatch from '../FileSystemWatch/FileSystemWatch.js'
5
3
  import * as ReadJson from '../JsonFile/JsonFile.js'
6
4
  import * as JsonRpcVersion from '../JsonRpcVersion/JsonRpcVersion.js'
@@ -33,10 +31,7 @@ export const getColorThemeJson = async (colorThemeId) => {
33
31
  const extensions = await ExtensionManagement.getExtensions()
34
32
  const colorThemePath = await getColorThemePath(extensions, colorThemeId)
35
33
  if (!colorThemePath) {
36
- throw new Error.OperationalError({
37
- code: ErrorCodes.E_COLOR_THEME_NOT_FOUND,
38
- message: `Color theme "${colorThemeId}" not found in extensions folder`,
39
- })
34
+ throw new VError(`Color theme "${colorThemeId}" not found in extensions folder`)
40
35
  }
41
36
  try {
42
37
  const json = await ReadJson.readJson(colorThemePath)
@@ -1,5 +1,3 @@
1
- import * as Error from '../Error/Error.js'
2
- import * as ErrorCodes from '../ErrorCodes/ErrorCodes.js'
3
1
  import * as ReadJson from '../JsonFile/JsonFile.js'
4
2
  import * as Path from '../Path/Path.js'
5
3
  import { VError } from '../VError/VError.js'
@@ -27,8 +25,5 @@ export const getIconTheme = async (iconThemeId) => {
27
25
  }
28
26
  }
29
27
  }
30
- throw new Error.OperationalError({
31
- code: ErrorCodes.E_ICON_THEME_NOT_FOUND,
32
- message: `Icon theme "${iconThemeId}" not found in extensions folder`,
33
- })
28
+ throw new VError(`Icon theme "${iconThemeId}" not found in extensions folder`)
34
29
  }
@@ -55,11 +55,11 @@ export const getSetupName = () => {
55
55
  return 'Lvce-Setup'
56
56
  }
57
57
 
58
- export const version = '0.18.7'
58
+ export const version = '0.18.8'
59
59
 
60
- export const commit = '5ac1fb7'
60
+ export const commit = 'dad4ebc'
61
61
 
62
- export const date = '2023-10-05T16:52:27.000Z'
62
+ export const date = '2023-10-05T18:41:48.000Z'
63
63
 
64
64
  export const getVersion = () => {
65
65
  return version
@@ -24,7 +24,7 @@ export const getExtensionsPath = () => {
24
24
  }
25
25
 
26
26
  export const getBuiltinExtensionsPath = () => {
27
- return Path.join(Root.root, 'extensions')
27
+ return process.env.BUILTIN_EXTENSIONS_PATH || Path.join(Root.root, 'extensions')
28
28
  }
29
29
 
30
30
  export const getDisabledExtensionsPath = () => {
@@ -1,30 +0,0 @@
1
- import { VError } from '../VError/VError.js'
2
-
3
- /**
4
- *
5
- * @param {unknown} cause
6
- * @returns {cause is Error}
7
- */
8
- const isError = (cause) => {
9
- // @ts-ignore
10
- return cause && cause.stack && cause.message
11
- }
12
-
13
- export class OperationalError extends VError {
14
- /**
15
- *
16
- * @param {{cause?:unknown, message:string, code:string, stack?:any, codeFrame?:any, category?:string, stderr?:string }} param0
17
- */
18
- constructor({ cause, message, code, stack, codeFrame, category, stderr }) {
19
- if (isError(cause)) {
20
- super(cause, message)
21
- } else {
22
- super(message)
23
- }
24
- this.code = code
25
- this.originalStack = stack
26
- this.originalCodeFrame = codeFrame
27
- this.category = category
28
- this.stderr = stderr
29
- }
30
- }