Bump deps (#241)

* Bump deps

* assert doing  it's job

* Unsused import

* throw -> assert
This commit is contained in:
Jaco Greeff
2019-11-13 12:11:47 +01:00
committed by GitHub
parent 47e81eda5c
commit 391ab5130e
14 changed files with 525 additions and 489 deletions
+4 -4
View File
@@ -29,10 +29,10 @@
"test:one": "jest"
},
"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/runtime": "^7.7.0",
"@polkadot/dev-react": "^0.32.0-beta.13",
"@polkadot/ts": "^0.1.84",
"@babel/core": "^7.7.2",
"@babel/runtime": "^7.7.2",
"@polkadot/dev-react": "^0.32.0-beta.14",
"@polkadot/ts": "^0.1.85",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
"react-native": "^0.61.4"
+1 -1
View File
@@ -9,6 +9,6 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1"
"@babel/runtime": "^7.7.2"
}
}
+1 -1
View File
@@ -9,6 +9,6 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1"
"@babel/runtime": "^7.7.2"
}
}
+2 -2
View File
@@ -37,8 +37,8 @@
"stream-http": "^3.1.0"
},
"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/runtime": "^7.7.1",
"@babel/core": "^7.7.2",
"@babel/runtime": "^7.7.2",
"@react-native-community/cli-platform-ios": "^2.9.0",
"@types/react-test-renderer": "16.9.1",
"babel-jest": "^24.9.0",
+4 -4
View File
@@ -9,14 +9,14 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@polkadot/ui-settings": "^0.47.0-beta.5",
"@polkadot/ui-shared": "^0.47.0-beta.5",
"@types/color": "^3.0.0",
"@types/react-copy-to-clipboard": "^4.3.0",
"color": "^3.1.2",
"jdenticon": "2.2.0",
"react-copy-to-clipboard": "^5.0.1",
"react-copy-to-clipboard": "^5.0.2",
"styled-components": "^4.4.1"
},
"peerDependencies": {
@@ -25,8 +25,8 @@
"react": "*"
},
"devDependencies": {
"@polkadot/keyring": "^1.7.0-beta.5",
"@polkadot/util-crypto": "^1.7.0-beta.5",
"@polkadot/keyring": "^1.7.0-beta.7",
"@polkadot/util-crypto": "^1.7.0-beta.7",
"xmlserializer": "^0.6.1"
}
}
+1 -1
View File
@@ -9,7 +9,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@types/react-qr-reader": "^2.1.1",
"qrcode-generator": "^1.4.4",
"react-qr-reader": "^2.2.1"
+1 -1
View File
@@ -9,7 +9,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@polkadot/ui-shared": "^0.47.0-beta.5",
"react-native-svg": "^9.13.3"
},
+1 -1
View File
@@ -9,6 +9,6 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1"
"@babel/runtime": "^7.7.2"
}
}
+7 -7
View File
@@ -17,9 +17,9 @@
"./ledger/transportsWeb": "./ledger/transportsEmpty"
},
"dependencies": {
"@babel/runtime": "^7.7.1",
"@ledgerhq/hw-transport-u2f": "^4.73.4",
"@ledgerhq/hw-transport-webusb": "^4.73.4",
"@babel/runtime": "^7.7.2",
"@ledgerhq/hw-transport-u2f": "^4.73.7",
"@ledgerhq/hw-transport-webusb": "^4.73.7",
"@types/ledgerhq__hw-transport-node-hid": "^4.21.1",
"@types/ledgerhq__hw-transport-u2f": "^4.21.1",
"@types/mkdirp": "^0.5.2",
@@ -30,12 +30,12 @@
"store": "^2.0.12"
},
"devDependencies": {
"@polkadot/keyring": "^1.7.0-beta.5",
"@polkadot/types": "^0.97.0-beta.0",
"@polkadot/util": "^1.7.0-beta.5"
"@polkadot/keyring": "^1.7.0-beta.7",
"@polkadot/types": "^0.97.0-beta.4",
"@polkadot/util": "^1.7.0-beta.7"
},
"optionalDependencies": {
"@ledgerhq/hw-transport-node-hid": "^4.73.4"
"@ledgerhq/hw-transport-node-hid": "^4.73.7"
},
"peerDependencies": {
"@polkadot/keyring": "*"
+6 -10
View File
@@ -1,9 +1,8 @@
/* eslint-disable @typescript-eslint/camelcase */
// Copyright 2017-2019 @polkadot/ui-keyring authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion, TransportDef } from './types';
import { LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types';
import LedgerApp, { ResponseBase } from 'ledger-polkadot';
import { assert, bufferToU8a, u8aToBuffer, u8aToHex } from '@polkadot/util';
@@ -40,8 +39,7 @@ export default class Ledger {
assert(def, `Unable to find a transport for ${this.type}`);
// we have checked for undefined in the assert
const transport = await (def as TransportDef).create();
const transport = await def.create();
this.app = new LedgerApp(transport);
}
@@ -64,9 +62,7 @@ export default class Ledger {
private async wrapError <T extends ResponseBase> (promise: Promise<T>): Promise<T> {
const result = await promise;
if (result.return_code !== SUCCESS_CODE) {
throw new Error(result.error_message);
}
assert(result.return_code === SUCCESS_CODE, result.error_message);
return result;
}
@@ -84,11 +80,11 @@ export default class Ledger {
public async getVersion (): Promise<LedgerVersion> {
return this.withApp(async (app: LedgerApp): Promise<LedgerVersion> => {
const { device_locked, major, minor, patch, test_mode } = await this.wrapError(app.getVersion());
const { device_locked: isLocked, major, minor, patch, test_mode: isTestMode } = await this.wrapError(app.getVersion());
return {
isLocked: device_locked,
isTestMode: test_mode,
isLocked,
isTestMode,
version: [major, minor, patch]
};
});
+2 -2
View File
@@ -9,12 +9,12 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@types/store": "^2.0.2",
"store": "^2.0.12"
},
"devDependencies": {
"@polkadot/util": "^1.7.0-beta.5"
"@polkadot/util": "^1.7.0-beta.7"
},
"peerDependencies": {
"@polkadot/util": "*"
+2 -2
View File
@@ -9,7 +9,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@types/color": "^3.0.0",
"color": "^3.1.2"
},
@@ -17,6 +17,6 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util-crypto": "^1.7.0-beta.5"
"@polkadot/util-crypto": "^1.7.0-beta.7"
}
}
+1 -1
View File
@@ -9,7 +9,7 @@
"main": "index.js",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@polkadot/ui-shared": "^0.47.0-beta.5",
"jdenticon": "2.2.0"
},
+492 -452
View File
File diff suppressed because it is too large Load Diff