Skip to content

Commit 1d2ebeb

Browse files
committed
update deps and fix linter warnings
1 parent ceba168 commit 1d2ebeb

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@zondax/ledger-js",
33
"author": "Zondax AG",
44
"license": "Apache-2.0",
5-
"version": "0.2.1",
5+
"version": "0.2.2",
66
"description": "TS / Node API for apps running on Ledger Nano S/S+/X",
77
"main": "./dist/index.js",
88
"types": "./dist/index.d.ts",
@@ -21,20 +21,20 @@
2121
},
2222
"homepage": "https://github.com/Zondax/ledger-js",
2323
"dependencies": {
24-
"@ledgerhq/hw-transport": "6.27.9"
24+
"@ledgerhq/hw-transport": "6.28.1"
2525
},
2626
"devDependencies": {
2727
"@types/node": "^18.11.18",
2828
"@typescript-eslint/eslint-plugin": "^5.47.1",
2929
"@typescript-eslint/parser": "^5.47.1",
3030
"eslint": "^8.31.0",
3131
"eslint-config-prettier": "^8.5.0",
32-
"eslint-config-standard-with-typescript": "^24.0.0",
32+
"eslint-config-standard-with-typescript": "^34.0.1",
3333
"eslint-plugin-import": "^2.26.0",
3434
"eslint-plugin-n": "^15.6.0",
3535
"eslint-plugin-promise": "^6.1.1",
3636
"prettier": "^2.8.1",
37-
"typescript": "^4.9.4"
37+
"typescript": "^5.0.2"
3838
},
3939
"files": [
4040
"dist/**"

src/GenericApp.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import Transport from "@ledgerhq/hw-transport";
1+
import type Transport from "@ledgerhq/hw-transport";
22
import { errorCodeToString, processErrorResponse } from "./common";
33
import { LedgerError } from "./consts";
44
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,
1111
} from "./types";
1212

1313
export default class GenericApp {

src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*******************************************************************************
1717
*/
1818

19-
import { ERROR_DESCRIPTION, LedgerError } from "./consts";
19+
import { ERROR_DESCRIPTION, type LedgerError } from "./consts";
2020

21-
import { ResponseBase } from "./types";
21+
import { type ResponseBase } from "./types";
2222

2323
export function errorCodeToString(returnCode: LedgerError): string {
2424
if (returnCode in ERROR_DESCRIPTION) return ERROR_DESCRIPTION[returnCode];

0 commit comments

Comments
 (0)