Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Sep 6, 2021
1 parent 6ba1f9a commit 7f14edd
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 132 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
},
"devDependencies": {
"@types/jest": "^26.0.24",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"browserify": "^17.0.0",
"create-hash": "^1.1.3",
"documentation": "^13.1.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react": "^7.25.1",
"jest": "^27.0.6",
"lerna": "3.22.1",
"prettier": "^2.2.1",
"ts-jest": "^27.0.4",
"ts-node": "^10.2.0",
"typescript": "^4.3.5",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"typescript": "^4.4.2",
"uglify-js": "^3.14.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-app-btc/src/createTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function createTransaction(
try {
const a = await getAppAndVersion(transport);
useTrustedInputForSegwit = shouldUseTrustedInputForSegwit(a);
} catch (e) {
} catch (e: any) {
if (e.statusCode === 0x6d00) {
useTrustedInputForSegwit = false;
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/hw-app-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"@ledgerhq/errors": "^6.2.0",
"@ledgerhq/hw-transport": "^6.3.0",
"@ledgerhq/logs": "^6.2.0",
"axios": "^0.21.1",
"axios": "^0.21.3",
"bignumber.js": "^9.0.1",
"ethers": "^5.4.4"
"ethers": "^5.4.6"
},
"scripts": {
"clean": "bash ../../script/clean.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-transport-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@ledgerhq/errors": "^6.2.0",
"@ledgerhq/hw-transport": "^6.3.0",
"@ledgerhq/logs": "^6.2.0",
"axios": "^0.21.1",
"axios": "^0.21.3",
"ws": "7"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-transport-node-ble/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"types": "lib/TransportNodeBle.d.ts",
"license": "Apache-2.0",
"dependencies": {
"@abandonware/noble": "1.9.2-13",
"@abandonware/noble": "1.9.2-14",
"@ledgerhq/devices": "^6.3.0",
"@ledgerhq/errors": "^6.2.0",
"@ledgerhq/hw-transport": "^6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-transport-node-ble/src/TransportNodeBle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default class BluetoothTransport extends Transport {

try {
await write(this.writeCharacteristic, buffer);
} catch (e) {
} catch (e: any) {
throw new DisconnectedDeviceDuringOperation(e.message);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class TransportNodeHidNoEvents extends Transport {
try {
this.device.write(data);
return Promise.resolve();
} catch (e) {
} catch (e: any) {
const maybeMappedError =
e && e.message ? new DisconnectedDeviceDuringOperation(e.message) : e;
if (maybeMappedError instanceof DisconnectedDeviceDuringOperation) {
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-transport-web-ble/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"rxjs": "6"
},
"devDependencies": {
"@types/web-bluetooth": "^0.0.10"
"@types/web-bluetooth": "^0.0.11"
},
"scripts": {
"clean": "bash ../../script/clean.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-transport-webusb/src/TransportWebUSB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class TransportWebUSB extends Transport {

try {
await device.claimInterface(interfaceNumber);
} catch (e) {
} catch (e: any) {
await device.close();
throw new TransportInterfaceNotAvailable(e.message);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-hid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"rxjs": "6"
},
"devDependencies": {
"@types/react-native": "^0.64.12"
"@types/react-native": "^0.64.13"
},
"scripts": {
"clean": "bash ../../script/clean.sh",
Expand Down
10 changes: 5 additions & 5 deletions packages/react-native-hw-transport-ble/src/BleTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function open(deviceOrId: Device | string, needsReconnect: boolean) {

try {
device = await bleManager.connectToDevice(deviceOrId, connectOptions);
} catch (e) {
} catch (e: any) {
if (e.errorCode === BleErrorCode.DeviceMTUChangeFailed) {
// eslint-disable-next-line require-atomic-updates
connectOptions = {};
Expand All @@ -116,7 +116,7 @@ async function open(deviceOrId: Device | string, needsReconnect: boolean) {

try {
await device.connect(connectOptions);
} catch (e) {
} catch (e: any) {
if (e.errorCode === BleErrorCode.DeviceMTUChangeFailed) {
// eslint-disable-next-line require-atomic-updates
connectOptions = {};
Expand Down Expand Up @@ -408,7 +408,7 @@ export default class BluetoothTransport extends Transport {
const msgOut = data.toString("hex");
log("apdu", `<= ${msgOut}`);
return data;
} catch (e) {
} catch (e: any) {
log("ble-error", "exchange got " + String(e));

if (this.notYetDisconnected) {
Expand All @@ -435,7 +435,7 @@ export default class BluetoothTransport extends Transport {
ignoreElements()
)
).toPromise()) + 3;
} catch (e) {
} catch (e: any) {
log("ble-error", "inferMTU got " + String(e));
await bleManager.cancelDeviceConnection(this.id).catch(() => {}); // but we ignore if disconnect worked.

Expand Down Expand Up @@ -475,7 +475,7 @@ export default class BluetoothTransport extends Transport {
buffer.toString("base64"),
txid
);
} catch (e) {
} catch (e: any) {
throw new DisconnectedDeviceDuringOperation(e.message);
}
};
Expand Down
Loading

0 comments on commit 7f14edd

Please sign in to comment.