@lvce-editor/shared-process 0.19.3 → 0.20.0

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.19.3",
3
+ "version": "0.20.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/code-frame": "^7.22.13",
21
- "@lvce-editor/extension-host": "0.19.3",
22
- "@lvce-editor/extension-host-helper-process": "0.19.3",
21
+ "@lvce-editor/extension-host": "0.20.0",
22
+ "@lvce-editor/extension-host-helper-process": "0.20.0",
23
23
  "@lvce-editor/jsonc-parser": "^1.1.0",
24
- "@lvce-editor/pretty-error": "^1.2.1",
25
- "@lvce-editor/pty-host": "0.19.3",
24
+ "@lvce-editor/pretty-error": "^1.2.2",
25
+ "@lvce-editor/pty-host": "0.20.0",
26
26
  "@lvce-editor/verror": "^1.1.1",
27
27
  "debug": "^4.3.4",
28
28
  "execa": "^8.0.1",
@@ -31,7 +31,7 @@
31
31
  "is-object": "^1.0.2",
32
32
  "lines-and-columns": "^2.0.3",
33
33
  "p-queue": "^7.4.1",
34
- "parse-json": "^7.1.1",
34
+ "parse-json": "^8.0.0",
35
35
  "tar-fs": "^3.0.4",
36
36
  "ws": "^8.14.2",
37
37
  "xdg-basedir": "^5.1.0"
@@ -43,6 +43,6 @@
43
43
  "tail": "^2.2.6",
44
44
  "tmp-promise": "^3.0.3",
45
45
  "trash": "^8.1.1",
46
- "@lvce-editor/ripgrep": "^1.0.0"
46
+ "@lvce-editor/ripgrep": "^1.0.1"
47
47
  }
48
48
  }
@@ -1,6 +1,5 @@
1
1
  import * as ParentIpc from '../ParentIpc/ParentIpc.js'
2
2
 
3
3
  export const exit = () => {
4
- // TODO rename to Exit.exit
5
- return ParentIpc.invoke('App.exit')
4
+ return ParentIpc.invoke('Exit.exit')
6
5
  }
@@ -1,22 +1,10 @@
1
1
  // TODO rename file to languageConfiguration.js
2
2
  import { join } from 'node:path'
3
- import { pathToFileURL } from 'node:url'
3
+ import * as GetRemoteUrl from '../GetRemoteUrl/GetRemoteUrl.js'
4
4
  import * as JsonFile from '../JsonFile/JsonFile.js'
5
5
  import { VError } from '../VError/VError.js'
6
6
  import * as ExtensionManagement from './ExtensionManagement.js'
7
7
 
8
- const getExtensionLanguages = (extension) => {
9
- if (!extension.languages) {
10
- return []
11
- }
12
- return extension.languages.map((language) => ({}))
13
- }
14
-
15
- const toRemoteUrl = (path) => {
16
- const url = pathToFileURL(path).toString().slice(8)
17
- return `/remote/${url}`
18
- }
19
-
20
8
  const getLanguagesFromExtension = (extension) => {
21
9
  // TODO what if extension is null? should not crash process, handle error gracefully
22
10
  if (!extension.languages) {
@@ -36,7 +24,7 @@ const getLanguagesFromExtension = (extension) => {
36
24
  return {
37
25
  ...language,
38
26
  extensionPath,
39
- tokenize: toRemoteUrl(join(extensionPath, language.tokenize)),
27
+ tokenize: GetRemoteUrl.getRemoteUrl(join(extensionPath, language.tokenize)),
40
28
  }
41
29
  }
42
30
  return language
@@ -0,0 +1,6 @@
1
+ import { pathToFileURL } from 'node:url'
2
+
3
+ export const getRemoteUrl = (path) => {
4
+ const url = pathToFileURL(path).toString().slice(8)
5
+ return `/remote/${url}`
6
+ }
@@ -51,11 +51,11 @@ export const getSetupName = () => {
51
51
  return 'Lvce-Setup'
52
52
  }
53
53
 
54
- export const version = '0.19.3'
54
+ export const version = '0.20.0'
55
55
 
56
- export const commit = 'f0727d6'
56
+ export const commit = 'bbd20b7'
57
57
 
58
- export const date = '2023-10-31T21:20:48.000Z'
58
+ export const date = '2023-11-05T11:12:15.000Z'
59
59
 
60
60
  export const getVersion = () => {
61
61
  return version