Bump deps, update with stricter TS checks from dev (#415)

* Bump deps, update with stricter TS checks from dev

* Add pretty to tsc
This commit is contained in:
Jaco Greeff
2018-11-27 14:44:51 +01:00
committed by GitHub
parent 05bf1d3d8d
commit 5e5f8b8dab
10 changed files with 34 additions and 35 deletions
+1 -1
View File
@@ -33,6 +33,6 @@
"@polkadot/jsonrpc": "^0.32.6",
"@polkadot/rpc-provider": "^0.32.6",
"@polkadot/types": "^0.32.6",
"@polkadot/util": "^0.33.1"
"@polkadot/util": "^0.33.2"
}
}
+3 -3
View File
@@ -30,10 +30,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
"@polkadot/keyring": "^0.33.1",
"@polkadot/keyring": "^0.33.2",
"@polkadot/storage": "^0.32.6",
"@polkadot/util": "^0.33.1",
"@polkadot/util-crypto": "^0.33.1",
"@polkadot/util": "^0.33.2",
"@polkadot/util-crypto": "^0.33.2",
"@types/nock": "^9.3.0",
"eventemitter3": "^3.1.0",
"isomorphic-fetch": "^2.2.1",
+1 -1
View File
@@ -127,7 +127,7 @@ export default class Mock implements ProviderInterface {
// Do something every 1 seconds
setInterval(() => {
if (!this.isUpdating) {
return false;
return;
}
// create a new header (next block)
+1 -1
View File
@@ -12,6 +12,6 @@
"dependencies": {
"@babel/runtime": "^7.1.5",
"@polkadot/types": "^0.32.6",
"@polkadot/util": "^0.33.1"
"@polkadot/util": "^0.33.2"
}
}
+3 -3
View File
@@ -30,9 +30,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
"@polkadot/keyring": "^0.33.1",
"@polkadot/keyring": "^0.33.2",
"@polkadot/types": "^0.32.6",
"@polkadot/util": "^0.33.1",
"@polkadot/util-crypto": "^0.33.1"
"@polkadot/util": "^0.33.2",
"@polkadot/util-crypto": "^0.33.2"
}
}
+2 -2
View File
@@ -30,7 +30,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
"@polkadot/keyring": "^0.33.1",
"@polkadot/util": "^0.33.1"
"@polkadot/keyring": "^0.33.2",
"@polkadot/util": "^0.33.2"
}
}
+1 -1
View File
@@ -49,7 +49,7 @@ export default class Compact extends Base<UInt | Moment> implements Codec {
static encodeU8a = compactToU8a;
static stripLengthPrefix (u8a: Uint8Array, bitLength: UIntBitLength = DEFAULT_BITLENGTH): Uint8Array {
const [_, value] = compactStripLength(u8a, bitLength);
const [, value] = compactStripLength(u8a, bitLength);
return value;
}
+1 -2
View File
@@ -36,8 +36,7 @@ function generateSectionLinks (sectionName: string, metadata: Metadata) {
).join('');
default:
console.error('Unknown section name provided to generate anchors');
break;
throw new Error('Unknown section name provided to generate anchors');
}
}