@ledgerhq/live-cli 22.4.5-nightly.0 → 22.4.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/lib/commands-index.d.ts +0 -20
- package/lib/commands-index.d.ts.map +1 -1
- package/lib/commands-index.js +0 -2
- package/lib/commands-index.js.map +1 -1
- package/package.json +13 -13
- package/lib/commands/getDeviceRunningMode.d.ts +0 -24
- package/lib/commands/getDeviceRunningMode.d.ts.map +0 -1
- package/lib/commands/getDeviceRunningMode.js +0 -31
- package/lib/commands/getDeviceRunningMode.js.map +0 -1
package/lib/commands-index.d.ts
CHANGED
|
@@ -794,26 +794,6 @@ declare const _default: {
|
|
|
794
794
|
verify: boolean;
|
|
795
795
|
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getAddress/types").Result>;
|
|
796
796
|
};
|
|
797
|
-
getDeviceRunningMode: {
|
|
798
|
-
description: string;
|
|
799
|
-
args: ({
|
|
800
|
-
name: string;
|
|
801
|
-
alias: string;
|
|
802
|
-
type: StringConstructor;
|
|
803
|
-
descOpt: string;
|
|
804
|
-
desc: string;
|
|
805
|
-
} | {
|
|
806
|
-
name: string;
|
|
807
|
-
alias: string;
|
|
808
|
-
desc: string;
|
|
809
|
-
type: NumberConstructor;
|
|
810
|
-
})[];
|
|
811
|
-
job: ({ device, unresponsiveTimeoutMs, cantOpenDeviceRetryLimit, }: Partial<{
|
|
812
|
-
device: string;
|
|
813
|
-
unresponsiveTimeoutMs: number;
|
|
814
|
-
cantOpenDeviceRetryLimit: number;
|
|
815
|
-
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getDeviceRunningMode").GetDeviceRunningModeResult | null>;
|
|
816
|
-
};
|
|
817
797
|
getTransactionStatus: {
|
|
818
798
|
description: string;
|
|
819
799
|
args: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,wBAsDE"}
|
package/lib/commands-index.js
CHANGED
|
@@ -33,7 +33,6 @@ var generateTestScanAccounts_1 = __importDefault(require("./commands/generateTes
|
|
|
33
33
|
var generateTestTransaction_1 = __importDefault(require("./commands/generateTestTransaction"));
|
|
34
34
|
var genuineCheck_1 = __importDefault(require("./commands/genuineCheck"));
|
|
35
35
|
var getAddress_1 = __importDefault(require("./commands/getAddress"));
|
|
36
|
-
var getDeviceRunningMode_1 = __importDefault(require("./commands/getDeviceRunningMode"));
|
|
37
36
|
var getTransactionStatus_1 = __importDefault(require("./commands/getTransactionStatus"));
|
|
38
37
|
var i18n_1 = __importDefault(require("./commands/i18n"));
|
|
39
38
|
var liveData_1 = __importDefault(require("./commands/liveData"));
|
|
@@ -88,7 +87,6 @@ exports["default"] = {
|
|
|
88
87
|
generateTestTransaction: generateTestTransaction_1["default"],
|
|
89
88
|
genuineCheck: genuineCheck_1["default"],
|
|
90
89
|
getAddress: getAddress_1["default"],
|
|
91
|
-
getDeviceRunningMode: getDeviceRunningMode_1["default"],
|
|
92
90
|
getTransactionStatus: getTransactionStatus_1["default"],
|
|
93
91
|
i18n: i18n_1["default"],
|
|
94
92
|
liveData: liveData_1["default"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.js","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;AAAA,uDAAiC;AACjC,+EAAyD;AACzD,+FAAyE;AACzE,6EAAuD;AACvD,mFAA6D;AAC7D,6EAAuD;AACvD,uDAAiC;AACjC,yEAAmD;AACnD,uEAAiD;AACjD,mEAA6C;AAC7C,2EAAqD;AACrD,mEAA6C;AAC7C,2EAAqD;AACrD,qEAA+C;AAC/C,2FAAqE;AACrE,iFAA2D;AAC3D,qEAA+C;AAC/C,2EAAqD;AACrD,+EAAyD;AACzD,yDAAmC;AACnC,yFAAmE;AACnE,6EAAuD;AACvD,6EAAuD;AACvD,6EAAuD;AACvD,2EAAqD;AACrD,yEAAmD;AACnD,iGAA2E;AAC3E,+FAAyE;AACzE,yEAAmD;AACnD,qEAA+C;AAC/C,yFAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"commands-index.js","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;AAAA,uDAAiC;AACjC,+EAAyD;AACzD,+FAAyE;AACzE,6EAAuD;AACvD,mFAA6D;AAC7D,6EAAuD;AACvD,uDAAiC;AACjC,yEAAmD;AACnD,uEAAiD;AACjD,mEAA6C;AAC7C,2EAAqD;AACrD,mEAA6C;AAC7C,2EAAqD;AACrD,qEAA+C;AAC/C,2FAAqE;AACrE,iFAA2D;AAC3D,q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AAA;IACT,KAAK,oBAAA;IACL,OAAO,sBAAA;IACP,IAAI,mBAAA;IACJ,QAAQ,uBAAA;IACR,cAAc,6BAAA;IACd,eAAe,8BAAA;IACf,IAAI,mBAAA;IACJ,WAAW,0BAAA;IACX,YAAY,2BAAA;IACZ,IAAI,mBAAA;IACJ,IAAI,mBAAA;IACJ,qBAAqB,oCAAA;IACrB,qBAAqB,oCAAA;IACrB,6BAA6B,4CAAA;IAC7B,IAAI,mBAAA;IACJ,OAAO,sBAAA;IACP,aAAa,4BAAA;CACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "22.4.5
|
|
3
|
+
"version": "22.4.5",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"lib"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.
|
|
20
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.6"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.
|
|
23
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.6"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ledgerhq/cryptoassets": "^6.
|
|
27
|
-
"@ledgerhq/errors": "^6.11.
|
|
28
|
-
"@ledgerhq/hw-app-btc": "^8.1.
|
|
29
|
-
"@ledgerhq/hw-transport": "^6.27.
|
|
30
|
-
"@ledgerhq/hw-transport-http": "^6.27.
|
|
31
|
-
"@ledgerhq/hw-transport-mocker": "^6.27.
|
|
32
|
-
"@ledgerhq/hw-transport-node-hid": "^6.27.
|
|
33
|
-
"@ledgerhq/hw-transport-node-speculos": "^6.27.
|
|
34
|
-
"@ledgerhq/live-common": "^27.6.0
|
|
26
|
+
"@ledgerhq/cryptoassets": "^6.36.1",
|
|
27
|
+
"@ledgerhq/errors": "^6.11.1",
|
|
28
|
+
"@ledgerhq/hw-app-btc": "^8.1.1",
|
|
29
|
+
"@ledgerhq/hw-transport": "^6.27.6",
|
|
30
|
+
"@ledgerhq/hw-transport-http": "^6.27.6",
|
|
31
|
+
"@ledgerhq/hw-transport-mocker": "^6.27.6",
|
|
32
|
+
"@ledgerhq/hw-transport-node-hid": "^6.27.6",
|
|
33
|
+
"@ledgerhq/hw-transport-node-speculos": "^6.27.6",
|
|
34
|
+
"@ledgerhq/live-common": "^27.6.0",
|
|
35
35
|
"@ledgerhq/logs": "^6.10.1",
|
|
36
36
|
"@walletconnect/client": "^1.7.1",
|
|
37
37
|
"asciichart": "^1.5.25",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@ledgerhq/types-cryptoassets": "^6.23.2",
|
|
59
|
-
"@ledgerhq/types-live": "^6.25.1
|
|
59
|
+
"@ledgerhq/types-live": "^6.25.1",
|
|
60
60
|
"@types/command-line-args": "^5.2.0",
|
|
61
61
|
"@types/lodash": "^4.14.177",
|
|
62
62
|
"@types/node": "^17.0.15",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { GetDeviceRunningModeResult } from "@ledgerhq/live-common/hw/getDeviceRunningMode";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
description: string;
|
|
5
|
-
args: ({
|
|
6
|
-
name: string;
|
|
7
|
-
alias: string;
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
descOpt: string;
|
|
10
|
-
desc: string;
|
|
11
|
-
} | {
|
|
12
|
-
name: string;
|
|
13
|
-
alias: string;
|
|
14
|
-
desc: string;
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
})[];
|
|
17
|
-
job: ({ device, unresponsiveTimeoutMs, cantOpenDeviceRetryLimit, }: Partial<{
|
|
18
|
-
device: string;
|
|
19
|
-
unresponsiveTimeoutMs: number;
|
|
20
|
-
cantOpenDeviceRetryLimit: number;
|
|
21
|
-
}>) => Observable<GetDeviceRunningModeResult | null>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
//# sourceMappingURL=getDeviceRunningMode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceRunningMode.d.ts","sourceRoot":"","sources":["../../src/commands/getDeviceRunningMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAwB,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;;;;;;;;;;;;;;;;gBAyBrG,MAAM;+BACS,MAAM;kCACH,MAAM;WAC7B,WAAW,0BAA0B,GAAG,IAAI,CAAC;;AAzBpD,wBA+BE"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
var getDeviceRunningMode_1 = require("@ledgerhq/live-common/hw/getDeviceRunningMode");
|
|
4
|
-
var scan_1 = require("../scan");
|
|
5
|
-
exports["default"] = {
|
|
6
|
-
description: "Get the mode (bootloader, main, locked-device, disconnected-or-locked-device) in which the device is",
|
|
7
|
-
args: [
|
|
8
|
-
{
|
|
9
|
-
name: "nbUnresponsiveRetry",
|
|
10
|
-
alias: "r",
|
|
11
|
-
desc: "Number of received CantOpenDevice errors while retrying before considering the device as maybe disconnected or cold-started-locked",
|
|
12
|
-
type: Number
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "unresponsiveTimeoutMs",
|
|
16
|
-
alias: "t",
|
|
17
|
-
desc: "Time in ms of the timeout before considering the device unresponsive",
|
|
18
|
-
type: Number
|
|
19
|
-
},
|
|
20
|
-
scan_1.deviceOpt,
|
|
21
|
-
],
|
|
22
|
-
job: function (_a) {
|
|
23
|
-
var device = _a.device, unresponsiveTimeoutMs = _a.unresponsiveTimeoutMs, cantOpenDeviceRetryLimit = _a.cantOpenDeviceRetryLimit;
|
|
24
|
-
return (0, getDeviceRunningMode_1.getDeviceRunningMode)({
|
|
25
|
-
deviceId: device !== null && device !== void 0 ? device : "",
|
|
26
|
-
unresponsiveTimeoutMs: unresponsiveTimeoutMs,
|
|
27
|
-
cantOpenDeviceRetryLimit: cantOpenDeviceRetryLimit
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=getDeviceRunningMode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceRunningMode.js","sourceRoot":"","sources":["../../src/commands/getDeviceRunningMode.ts"],"names":[],"mappings":";;AACA,sFAAiH;AACjH,gCAAoC;AAEpC,qBAAe;IACb,WAAW,EAAE,sGAAsG;IACnH,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,oIAAoI;YAC1I,IAAI,EAAE,MAAM;SACb;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,sEAAsE;YAC5E,IAAI,EAAE,MAAM;SACb;QACD,gBAAS;KACV;IACD,GAAG,EAAE,UAAC,EAQJ;YAPA,MAAM,YAAA,EACN,qBAAqB,2BAAA,EACrB,wBAAwB,8BAAA;QAMxB,OAAA,IAAA,2CAAoB,EAAC;YACnB,QAAQ,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE;YACtB,qBAAqB,uBAAA;YACrB,wBAAwB,0BAAA;SAC3B,CAAC;IAJA,CAIA;CACH,CAAC"}
|