Bump deps, TS 3.5.1 (#962)

This commit is contained in:
Jaco Greeff
2019-05-29 22:32:25 +02:00
committed by GitHub
parent b6eb427a47
commit 55cb55aeb1
9 changed files with 154 additions and 150 deletions
+16 -7
View File
@@ -47,15 +47,24 @@ export interface Derive {
}
function injectFunctions (api: ApiInterface$Rx, derive: Derive, functions: DeriveCustom): Derive {
Object.keys(functions).forEach((sectionName: string) => {
const section = functions[sectionName as keyof Derive];
const result = derive[sectionName as keyof Derive] = derive[sectionName as keyof Derive] || {};
Object
.entries(functions)
.forEach(([sectionName, section]) => {
const sectionKey = sectionName as keyof Derive;
Object.keys(section).forEach((methodName) => {
// @ts-ignore No idea how to make this work...
result[methodName as keyof section] = section[methodName as keyof section](api);
if (!derive[sectionKey]) {
derive[sectionKey] = {} as any;
}
const result = derive[sectionKey];
Object
.entries(section)
.forEach(([methodName, method]) => {
// @ts-ignore No idea how to make this work...
result[methodName as keyof section] = method(api);
});
});
});
return derive;
}
+1 -1
View File
@@ -33,6 +33,6 @@
"@polkadot/rpc-rx": "^0.80.0-beta.12",
"@polkadot/storage": "^0.80.0-beta.12",
"@polkadot/types": "^0.80.0-beta.12",
"@polkadot/util-crypto": "^0.92.0-beta.1"
"@polkadot/util-crypto": "^0.92.0-beta.2"
}
}
+1 -1
View File
@@ -30,6 +30,6 @@
"@polkadot/jsonrpc": "^0.80.0-beta.12",
"@polkadot/rpc-provider": "^0.80.0-beta.12",
"@polkadot/types": "^0.80.0-beta.12",
"@polkadot/util": "^0.92.0-beta.1"
"@polkadot/util": "^0.92.0-beta.2"
}
}
+3 -3
View File
@@ -27,10 +27,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/keyring": "^0.92.0-beta.1",
"@polkadot/keyring": "^0.92.0-beta.2",
"@polkadot/storage": "^0.80.0-beta.12",
"@polkadot/util": "^0.92.0-beta.1",
"@polkadot/util-crypto": "^0.92.0-beta.1",
"@polkadot/util": "^0.92.0-beta.2",
"@polkadot/util-crypto": "^0.92.0-beta.2",
"@types/nock": "^10.0.3",
"eventemitter3": "^3.1.0",
"isomorphic-fetch": "^2.2.1",
+1 -1
View File
@@ -12,6 +12,6 @@
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/types": "^0.80.0-beta.12",
"@polkadot/util": "^0.92.0-beta.1"
"@polkadot/util": "^0.92.0-beta.2"
}
}
+3 -3
View File
@@ -27,9 +27,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/keyring": "^0.92.0-beta.1",
"@polkadot/keyring": "^0.92.0-beta.2",
"@polkadot/types": "^0.80.0-beta.12",
"@polkadot/util": "^0.92.0-beta.1",
"@polkadot/util-crypto": "^0.92.0-beta.1"
"@polkadot/util": "^0.92.0-beta.2",
"@polkadot/util-crypto": "^0.92.0-beta.2"
}
}
+2 -2
View File
@@ -27,7 +27,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/keyring": "^0.92.0-beta.1",
"@polkadot/util": "^0.92.0-beta.1"
"@polkadot/keyring": "^0.92.0-beta.2",
"@polkadot/util": "^0.92.0-beta.2"
}
}