Update dependencies, onClose connect

This commit is contained in:
Jaco Greeff
2018-06-25 09:36:13 +02:00
parent c56b50f0de
commit 8ca5dc0d70
6 changed files with 99 additions and 98 deletions
+4 -4
View File
@@ -35,9 +35,9 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.51",
"@polkadot/jsonrpc": "^0.19.4",
"@polkadot/primitives-json": "^0.19.4",
"@polkadot/util": "^0.24.5",
"@polkadot/util-keyring": "^0.24.5"
"@polkadot/jsonrpc": "^0.19.5",
"@polkadot/primitives-json": "^0.19.5",
"@polkadot/util": "^0.24.6",
"@polkadot/util-keyring": "^0.24.6"
}
}
+4 -4
View File
@@ -39,10 +39,10 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.51",
"@polkadot/storage": "^0.19.4",
"@polkadot/util": "^0.24.5",
"@polkadot/util-crypto": "^0.24.5",
"@polkadot/util-keyring": "^0.24.5",
"@polkadot/storage": "^0.19.5",
"@polkadot/util": "^0.24.6",
"@polkadot/util-crypto": "^0.24.6",
"@polkadot/util-keyring": "^0.24.6",
"@types/nock": "^9.1.3",
"eventemitter3": "^2.0.3",
"isomorphic-fetch": "^2.2.1",
+3 -2
View File
@@ -4,6 +4,8 @@
import { WsState } from './types';
import connect from './connect';
export default function onClose (self: WsState): () => void {
return (): void => {
self.l.debug(() => ['disconnected from', self.endpoint]);
@@ -13,8 +15,7 @@ export default function onClose (self: WsState): () => void {
if (self.autoConnect) {
setTimeout(() => {
// FIXME: This is a circular dependency
require('./connect')(self);
connect(self);
}, 1000);
}
};
+3 -3
View File
@@ -37,8 +37,8 @@
"@babel/runtime": "^7.0.0-beta.51",
"@polkadot/api-format": "^0.14.4",
"@polkadot/api-provider": "^0.14.4",
"@polkadot/jsonrpc": "^0.19.4",
"@polkadot/params": "^0.19.4",
"@polkadot/util": "^0.24.5"
"@polkadot/jsonrpc": "^0.19.5",
"@polkadot/params": "^0.19.5",
"@polkadot/util": "^0.24.6"
}
}