File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @zondax/ledger-js" ,
3
3
"author" : " Zondax AG" ,
4
4
"license" : " Apache-2.0" ,
5
- "version" : " 0.2.1 " ,
5
+ "version" : " 0.2.2 " ,
6
6
"description" : " TS / Node API for apps running on Ledger Nano S/S+/X" ,
7
7
"main" : " ./dist/index.js" ,
8
8
"types" : " ./dist/index.d.ts" ,
21
21
},
22
22
"homepage" : " https://github.com/Zondax/ledger-js" ,
23
23
"dependencies" : {
24
- "@ledgerhq/hw-transport" : " 6.27.9 "
24
+ "@ledgerhq/hw-transport" : " 6.28.1 "
25
25
},
26
26
"devDependencies" : {
27
27
"@types/node" : " ^18.11.18" ,
28
28
"@typescript-eslint/eslint-plugin" : " ^5.47.1" ,
29
29
"@typescript-eslint/parser" : " ^5.47.1" ,
30
30
"eslint" : " ^8.31.0" ,
31
31
"eslint-config-prettier" : " ^8.5.0" ,
32
- "eslint-config-standard-with-typescript" : " ^24 .0.0 " ,
32
+ "eslint-config-standard-with-typescript" : " ^34 .0.1 " ,
33
33
"eslint-plugin-import" : " ^2.26.0" ,
34
34
"eslint-plugin-n" : " ^15.6.0" ,
35
35
"eslint-plugin-promise" : " ^6.1.1" ,
36
36
"prettier" : " ^2.8.1" ,
37
- "typescript" : " ^4.9.4 "
37
+ "typescript" : " ^5.0.2 "
38
38
},
39
39
"files" : [
40
40
" dist/**"
Original file line number Diff line number Diff line change 1
- import Transport from "@ledgerhq/hw-transport" ;
1
+ import type Transport from "@ledgerhq/hw-transport" ;
2
2
import { errorCodeToString , processErrorResponse } from "./common" ;
3
3
import { LedgerError } from "./consts" ;
4
4
import {
5
- ConstructorParams ,
6
- INSGeneric ,
7
- P1_VALUESGeneric ,
8
- ResponseAppInfo ,
9
- ResponseDeviceInfo ,
10
- ResponseVersion ,
5
+ type ConstructorParams ,
6
+ type INSGeneric ,
7
+ type P1_VALUESGeneric ,
8
+ type ResponseAppInfo ,
9
+ type ResponseDeviceInfo ,
10
+ type ResponseVersion ,
11
11
} from "./types" ;
12
12
13
13
export default class GenericApp {
Original file line number Diff line number Diff line change 16
16
*******************************************************************************
17
17
*/
18
18
19
- import { ERROR_DESCRIPTION , LedgerError } from "./consts" ;
19
+ import { ERROR_DESCRIPTION , type LedgerError } from "./consts" ;
20
20
21
- import { ResponseBase } from "./types" ;
21
+ import { type ResponseBase } from "./types" ;
22
22
23
23
export function errorCodeToString ( returnCode : LedgerError ) : string {
24
24
if ( returnCode in ERROR_DESCRIPTION ) return ERROR_DESCRIPTION [ returnCode ] ;
You can’t perform that action at this time.
0 commit comments