@ledgerhq/live-cli 21.33.1-universal.0 → 22.0.0-next.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/README.md +60 -2
- package/lib/commands/deviceInfo.d.ts +1 -1
- package/lib/commands/deviceVersion.d.ts +1 -1
- package/lib/commands/genuineCheck.d.ts +1 -1
- package/lib/commands/getAddress.d.ts +1 -1
- package/lib/commands/signMessage.d.ts +7 -1
- package/lib/commands/signMessage.d.ts.map +1 -1
- package/lib/commands/signMessage.js +26 -6
- package/lib/commands/signMessage.js.map +1 -1
- package/lib/commands-index.d.ts +16 -10
- package/lib/commands-index.d.ts.map +1 -1
- package/lib/live-common-setup-base.js +2 -0
- package/lib/live-common-setup-base.js.map +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,10 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
# ledger-live CLI
|
|
2
2
|
|
|
3
3
|
> Please be advised this software is experimental and shall not create any obligation for Ledger to continue to develop, offer, support or repair any of its features. The software is provided “as is.” Ledger shall not be liable for any damages whatsoever including loss of profits or data, business interruption arising from using the software.
|
|
4
4
|
|
|
5
|
+
This package wraps functionality from `@ledgerhq/live-common` into a suite of tools that can be used directly from the terminal
|
|
6
|
+
|
|
7
|
+
# Usage
|
|
8
|
+
|
|
9
|
+
## Install the CLI
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm i --global @ledgerhq/live-cli
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Run commands
|
|
16
|
+
|
|
17
|
+
Jump to the [documentation](#Documentation) for more informations on the available commands
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
ledger-live <commands>
|
|
5
21
|
```
|
|
6
|
-
Ledger Live @ https://github.com/LedgerHQ/ledger-live-common
|
|
7
22
|
|
|
23
|
+
# Development
|
|
24
|
+
|
|
25
|
+
## Setup
|
|
26
|
+
|
|
27
|
+
### Requirements
|
|
28
|
+
|
|
29
|
+
- [NodeJS](https://nodejs.org) `lts/fermium` (v14.x)
|
|
30
|
+
- [PnPm](https://pnpm.io) (v7.x)
|
|
31
|
+
- [Python](https://www.python.org/) (v3.5+)
|
|
32
|
+
- On Linux: `sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev`
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
> Reminder: all commands should be run at the root of the monorepository
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# install dependencies
|
|
40
|
+
pnpm i
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Dev
|
|
44
|
+
```bash
|
|
45
|
+
# launch a watch mode on the source files and recompiles on the fly
|
|
46
|
+
pnpm dev:cli
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Run
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# run a command of the cli
|
|
53
|
+
pnpm run:cli <command>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Build
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# build the cli for publishing
|
|
60
|
+
pnpm build:cli
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
# Documentation
|
|
64
|
+
|
|
65
|
+
```
|
|
8
66
|
Usage: ledger-live <command> ...
|
|
9
67
|
|
|
10
68
|
Usage: ledger-live cosmosValidators
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
}[];
|
|
9
9
|
job: ({ device, }: Partial<{
|
|
10
10
|
device: string;
|
|
11
|
-
}>) => import("rxjs").Observable<import("
|
|
11
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").DeviceInfo>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=deviceInfo.d.ts.map
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
}[];
|
|
9
9
|
job: ({ device, }: Partial<{
|
|
10
10
|
device: string;
|
|
11
|
-
}>) => import("rxjs").Observable<import("
|
|
11
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").FirmwareInfo>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=deviceVersion.d.ts.map
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
}[];
|
|
10
10
|
job: ({ device, }: Partial<{
|
|
11
11
|
device: string;
|
|
12
|
-
}>) => import("rxjs").Observable<import("
|
|
12
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").SocketEvent>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
15
15
|
//# sourceMappingURL=genuineCheck.d.ts.map
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
path: string;
|
|
23
23
|
derivationMode: string;
|
|
24
24
|
verify: boolean;
|
|
25
|
-
}>) => import("rxjs").Observable<import("
|
|
25
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getAddress/types").Result>;
|
|
26
26
|
};
|
|
27
27
|
export default _default;
|
|
28
28
|
//# sourceMappingURL=getAddress.d.ts.map
|
|
@@ -9,8 +9,14 @@ declare const _default: {
|
|
|
9
9
|
name: string;
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
desc: string;
|
|
12
|
+
default?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
desc: string;
|
|
17
|
+
default: string;
|
|
12
18
|
})[];
|
|
13
|
-
job: (arg: any) => import("rxjs").Observable<import("
|
|
19
|
+
job: (arg: any) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/signMessage/types").Result>;
|
|
14
20
|
};
|
|
15
21
|
export default _default;
|
|
16
22
|
//# sourceMappingURL=signMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;eAiCa,GAAG;;AA3BhB,wBA4DE"}
|
|
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
exports.__esModule = true;
|
|
17
|
+
var fs_1 = __importDefault(require("fs"));
|
|
17
18
|
var rxjs_1 = require("rxjs");
|
|
18
19
|
var operators_1 = require("rxjs/operators");
|
|
19
|
-
var derivation_1 = require("@ledgerhq/live-common/lib/derivation");
|
|
20
20
|
var deviceAccess_1 = require("@ledgerhq/live-common/lib/hw/deviceAccess");
|
|
21
21
|
var signMessage_1 = __importDefault(require("@ledgerhq/live-common/lib/hw/signMessage"));
|
|
22
22
|
var scan_1 = require("../scan");
|
|
@@ -30,25 +30,45 @@ exports["default"] = {
|
|
|
30
30
|
desc: "HDD derivation path"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
name: "
|
|
33
|
+
name: "message",
|
|
34
34
|
type: String,
|
|
35
|
-
desc: "
|
|
35
|
+
desc: "the message to sign"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
name: "
|
|
38
|
+
name: "rawMessage",
|
|
39
39
|
type: String,
|
|
40
|
-
desc: "
|
|
40
|
+
desc: "raw message to sign (used by walletconnect)"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "parser",
|
|
44
|
+
type: String,
|
|
45
|
+
desc: "parser used for the message. Default: String",
|
|
46
|
+
"default": "String"
|
|
41
47
|
},
|
|
42
48
|
],
|
|
43
49
|
job: function (arg) {
|
|
44
50
|
return (0, scan_1.inferCurrency)(arg).pipe((0, operators_1.mergeMap)(function (currency) {
|
|
51
|
+
var _a, _b;
|
|
45
52
|
if (!currency) {
|
|
46
53
|
throw new Error("no currency provided");
|
|
47
54
|
}
|
|
48
55
|
if (!arg.path) {
|
|
49
56
|
throw new Error("--path is required");
|
|
50
57
|
}
|
|
51
|
-
(0
|
|
58
|
+
switch ((_a = arg.parser) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
59
|
+
case "object":
|
|
60
|
+
case "json":
|
|
61
|
+
case "json.parse":
|
|
62
|
+
arg.message = JSON.parse(arg.message);
|
|
63
|
+
break;
|
|
64
|
+
case "file":
|
|
65
|
+
arg.message = JSON.parse(fs_1["default"].readFileSync(arg.message, "utf8"));
|
|
66
|
+
break;
|
|
67
|
+
case "string":
|
|
68
|
+
default:
|
|
69
|
+
arg.message = (_b = arg.message) === null || _b === void 0 ? void 0 : _b.toString();
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
52
72
|
return (0, deviceAccess_1.withDevice)(arg.device || "")(function (t) {
|
|
53
73
|
return (0, rxjs_1.from)((0, signMessage_1["default"])(t, __assign(__assign({}, arg), { currency: currency })));
|
|
54
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6BAA4B;AAC5B,4CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAoB;AACpB,6BAA4B;AAC5B,4CAA0C;AAC1C,0EAAuE;AACvE,yFAAmE;AACnE,gCAAqD;AACrD,qBAAe;IACb,WAAW,EACT,mEAAmE;IACrE,IAAI,EAAE;QACJ,kBAAW;QACX;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,I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J,CAAC,CAAC,CACH;IA/BD,CA+BC;CACJ,CAAC"}
|
package/lib/commands-index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
}[];
|
|
55
55
|
job: ({ device, }: Partial<{
|
|
56
56
|
device: string;
|
|
57
|
-
}>) => import("rxjs").Observable<import("
|
|
57
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/apps").State>;
|
|
58
58
|
};
|
|
59
59
|
appsCheckAllAppVersions: {
|
|
60
60
|
description: string;
|
|
@@ -85,7 +85,7 @@ declare const _default: {
|
|
|
85
85
|
}[];
|
|
86
86
|
job: ({ device, }: Partial<{
|
|
87
87
|
device: string;
|
|
88
|
-
}>) => import("rxjs").Observable<import("
|
|
88
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/apps").State>;
|
|
89
89
|
};
|
|
90
90
|
appsUpdateTestAll: {
|
|
91
91
|
description: string;
|
|
@@ -375,7 +375,7 @@ declare const _default: {
|
|
|
375
375
|
}[];
|
|
376
376
|
job: ({ device, }: Partial<{
|
|
377
377
|
device: string;
|
|
378
|
-
}>) => import("rxjs").Observable<import("
|
|
378
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").DeviceInfo>;
|
|
379
379
|
};
|
|
380
380
|
deviceVersion: {
|
|
381
381
|
args: {
|
|
@@ -387,7 +387,7 @@ declare const _default: {
|
|
|
387
387
|
}[];
|
|
388
388
|
job: ({ device, }: Partial<{
|
|
389
389
|
device: string;
|
|
390
|
-
}>) => import("rxjs").Observable<import("
|
|
390
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").FirmwareInfo>;
|
|
391
391
|
};
|
|
392
392
|
discoverDevices: {
|
|
393
393
|
args: ({
|
|
@@ -697,7 +697,7 @@ declare const _default: {
|
|
|
697
697
|
}[];
|
|
698
698
|
job: ({ device, }: Partial<{
|
|
699
699
|
device: string;
|
|
700
|
-
}>) => import("rxjs").Observable<import("
|
|
700
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").SocketEvent>;
|
|
701
701
|
};
|
|
702
702
|
getAddress: {
|
|
703
703
|
description: string;
|
|
@@ -723,7 +723,7 @@ declare const _default: {
|
|
|
723
723
|
path: string;
|
|
724
724
|
derivationMode: string;
|
|
725
725
|
verify: boolean;
|
|
726
|
-
}>) => import("rxjs").Observable<import("
|
|
726
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getAddress/types").Result>;
|
|
727
727
|
};
|
|
728
728
|
getTransactionStatus: {
|
|
729
729
|
description: string;
|
|
@@ -1142,7 +1142,7 @@ declare const _default: {
|
|
|
1142
1142
|
}[];
|
|
1143
1143
|
job: ({ continuous }: {
|
|
1144
1144
|
continuous?: boolean | undefined;
|
|
1145
|
-
}) => import("rxjs").Observable<import("
|
|
1145
|
+
}) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/families/bitcoin/satstack").SatStackStatus>;
|
|
1146
1146
|
};
|
|
1147
1147
|
scanDescriptors: {
|
|
1148
1148
|
description: string;
|
|
@@ -1155,7 +1155,7 @@ declare const _default: {
|
|
|
1155
1155
|
job: (opts: Partial<{
|
|
1156
1156
|
device: string;
|
|
1157
1157
|
currency: string;
|
|
1158
|
-
}>) => import("rxjs").Observable<import("
|
|
1158
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/families/bitcoin/descriptor").AccountDescriptor>;
|
|
1159
1159
|
};
|
|
1160
1160
|
send: {
|
|
1161
1161
|
description: string;
|
|
@@ -1232,8 +1232,14 @@ declare const _default: {
|
|
|
1232
1232
|
name: string;
|
|
1233
1233
|
type: StringConstructor;
|
|
1234
1234
|
desc: string;
|
|
1235
|
+
default?: undefined;
|
|
1236
|
+
} | {
|
|
1237
|
+
name: string;
|
|
1238
|
+
type: StringConstructor;
|
|
1239
|
+
desc: string;
|
|
1240
|
+
default: string;
|
|
1235
1241
|
})[];
|
|
1236
|
-
job: (arg: any) => import("rxjs").Observable<import("
|
|
1242
|
+
job: (arg: any) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/signMessage/types").Result>;
|
|
1237
1243
|
};
|
|
1238
1244
|
speculosList: {
|
|
1239
1245
|
description: string;
|
|
@@ -1406,7 +1412,7 @@ declare const _default: {
|
|
|
1406
1412
|
index: number;
|
|
1407
1413
|
length: number;
|
|
1408
1414
|
paginateOperations: number;
|
|
1409
|
-
}>) => import("rxjs").Observable<import("
|
|
1415
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types").Operation[]>;
|
|
1410
1416
|
};
|
|
1411
1417
|
testGetTrustedInputFromTxHash: {
|
|
1412
1418
|
args: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-common-setup-base.js","sourceRoot":"","sources":["../src/live-common-setup-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,oDAA8B;AAC9B,qDAAsE;AACtE,iFAA2D;AAC3D,uCAAwC;AACxC,mEAA8E;AAC9E,sEAAgF;AAEhF,IAAA,4BAAkB,EAAC,OAAO,CAAC,CAAC;AAE5B,IAAA,mCAAsB,EAAC;IACrB,SAAS;IACT,UAAU;IACV,KAAK;IACL,UAAU;IACV,QAAQ;IACR,UAAU;IACV,SAAS;IACT,cAAc;IACd,SAAS;IACT,UAAU;IACV,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,kBAAkB;IAClB,OAAO;IACP,QAAQ;IACR,UAAU;IACV,UAAU;IACV,MAAM;IACN,cAAc;IACd,QAAQ;IACR,MAAM;IACN,SAAS;IACT,UAAU;IACV,UAAU;IACV,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,YAAY;IACZ,qBAAqB;IACrB,MAAM;IACN,QAAQ;
|
|
1
|
+
{"version":3,"file":"live-common-setup-base.js","sourceRoot":"","sources":["../src/live-common-setup-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,oDAA8B;AAC9B,qDAAsE;AACtE,iFAA2D;AAC3D,uCAAwC;AACxC,mEAA8E;AAC9E,sEAAgF;AAEhF,IAAA,4BAAkB,EAAC,OAAO,CAAC,CAAC;AAE5B,IAAA,mCAAsB,EAAC;IACrB,SAAS;IACT,UAAU;IACV,KAAK;IACL,UAAU;IACV,QAAQ;IACR,UAAU;IACV,SAAS;IACT,cAAc;IACd,SAAS;IACT,UAAU;IACV,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,kBAAkB;IAClB,OAAO;IACP,QAAQ;IACR,UAAU;IACV,UA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AAK,GAAG,OAAO,CAAC;KACjB;IAED,6DAA6D;IAC7D,aAAa;IACb,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-next.2",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
"@ledgerhq/cryptoassets": "^6.28.2",
|
|
24
24
|
"@ledgerhq/errors": "^6.10.0",
|
|
25
25
|
"@ledgerhq/hw-app-btc": "^6.27.1",
|
|
26
|
+
"@ledgerhq/hw-transport": "^6.27.1",
|
|
26
27
|
"@ledgerhq/hw-transport-http": "^6.27.1",
|
|
27
28
|
"@ledgerhq/hw-transport-mocker": "^6.27.1",
|
|
28
29
|
"@ledgerhq/hw-transport-node-hid": "^6.27.1",
|
|
29
30
|
"@ledgerhq/hw-transport-node-speculos": "^6.27.1",
|
|
30
|
-
"@ledgerhq/live-common": "^
|
|
31
|
+
"@ledgerhq/live-common": "^23.0.0-next.2",
|
|
31
32
|
"@ledgerhq/logs": "^6.10.0",
|
|
32
33
|
"@walletconnect/client": "^1.7.1",
|
|
33
34
|
"asciichart": "^1.5.25",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"command-line-args": "^5.2.1",
|
|
38
39
|
"cors": "^2.8.5",
|
|
39
40
|
"express": "^4.17.2",
|
|
41
|
+
"invariant": "^2.2.4",
|
|
40
42
|
"lodash": "^4.17.21",
|
|
41
43
|
"lodash.product": "^18.9.19",
|
|
42
44
|
"qrcode-terminal": "^0.12.0",
|
|
@@ -45,7 +47,8 @@
|
|
|
45
47
|
"react-dom": "^17.0.2",
|
|
46
48
|
"react-redux": "^7.2.6",
|
|
47
49
|
"rxjs": "^6.6.7",
|
|
48
|
-
"winston": "^3.5.1"
|
|
50
|
+
"winston": "^3.5.1",
|
|
51
|
+
"ws": "^8.6.0"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@types/command-line-args": "^5.2.0",
|