Bump deps, TS 3.5.1 (#962)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user