Bump deps (#861)
* Bump deps * Align with published common * Fix rxjs to 6.4.0 (false deprecations on 6.5.1)
This commit is contained in:
@@ -25,12 +25,12 @@ import { HeaderAndValidators } from './subscribeNewHead';
|
||||
export function getHeader (api: ApiInterface$Rx) {
|
||||
return (hash: Uint8Array | string): Observable<HeaderExtended | undefined> =>
|
||||
// tslint:disable-next-line
|
||||
(combineLatest(
|
||||
(combineLatest([
|
||||
api.rpc.chain.getHeader(hash) as Observable<Header>,
|
||||
api.query.session
|
||||
? api.query.session.validators.at(hash)
|
||||
: of([])
|
||||
) as Observable<HeaderAndValidators>).pipe(
|
||||
]) as Observable<HeaderAndValidators>).pipe(
|
||||
map(([header, validators]) =>
|
||||
new HeaderExtended(header, validators)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user