@lvce-editor/shared-process 0.27.0 → 0.27.2

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.27.0",
3
+ "version": "0.27.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,20 +18,19 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.27.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.27.2",
22
22
  "@lvce-editor/ipc": "^8.0.1",
23
23
  "@lvce-editor/json-rpc": "^1.3.0",
24
24
  "@lvce-editor/jsonc-parser": "^1.2.0",
25
- "@lvce-editor/network-process": "0.27.0",
25
+ "@lvce-editor/network-process": "0.27.2",
26
26
  "@lvce-editor/pretty-error": "^1.5.0",
27
- "@lvce-editor/pty-host": "0.27.0",
27
+ "@lvce-editor/pty-host": "0.27.2",
28
28
  "@lvce-editor/verror": "^1.2.0",
29
29
  "@lvce-editor/web-socket-server": "^1.1.0",
30
30
  "debug": "^4.3.4",
31
31
  "execa": "^8.0.1",
32
32
  "exit-hook": "^4.0.0",
33
33
  "is-object": "^1.0.2",
34
- "tar-fs": "^3.0.6",
35
34
  "xdg-basedir": "^5.1.0"
36
35
  },
37
36
  "optionalDependencies": {
@@ -1,26 +1,11 @@
1
- import { createReadStream } from 'node:fs';
2
- import { mkdir } from 'node:fs/promises';
3
- import { pipeline } from 'node:stream/promises';
4
- import { createBrotliDecompress, createGunzip } from 'node:zlib';
5
- import tar from 'tar-fs';
6
- import { VError } from '../VError/VError.js';
7
- export const extractTarBr = async (inFile, outDir) => {
8
- try {
9
- await mkdir(outDir, { recursive: true });
10
- await pipeline(createReadStream(inFile), createBrotliDecompress(), tar.extract(outDir));
11
- }
12
- catch (error) {
13
- throw new VError(error, `Failed to extract ${inFile}`);
14
- }
1
+ import * as NetworkProcess from '../NetworkProcess/NetworkProcess.js';
2
+ export const extractTarBr = (inFile, outDir) => {
3
+ return NetworkProcess.invoke('Extract.extractTarBr', inFile, outDir);
15
4
  };
16
- export const extractTarGz = async ({ inFile, outDir, strip }) => {
17
- try {
18
- await mkdir(outDir, { recursive: true });
19
- await pipeline(createReadStream(inFile), createGunzip(), tar.extract(outDir, {
20
- strip,
21
- }));
22
- }
23
- catch (error) {
24
- throw new VError(error, `Failed to extract ${inFile}`);
25
- }
5
+ export const extractTarGz = ({ inFile, outDir, strip }) => {
6
+ return NetworkProcess.invoke('Extract.extractTarGz', {
7
+ inFile,
8
+ outDir,
9
+ strip,
10
+ });
26
11
  };
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.27.0';
45
- export const commit = 'b9ba170';
46
- export const date = '2024-04-28T20:59:28.000Z';
44
+ export const version = '0.27.2';
45
+ export const commit = '26db1a6';
46
+ export const date = '2024-05-01T05:55:48.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };