Update dependencies, onClose connect
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user